Skip to content

Commit

Permalink
Removed unnecessary parts in test_module
Browse files Browse the repository at this point in the history
Signed-off-by: Raviv Schaffer <[email protected]>
  • Loading branch information
Raviv-S committed Jun 1, 2022
1 parent 55e5e42 commit e76a3f9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 18 deletions.
10 changes: 0 additions & 10 deletions hack/test-script/Asset-0.6.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,3 @@ spec:
geography: theshire
tags:
finance: true
columns:
- name: nameOrig
tags:
PII: true
- name: oldbalanceOrg
tags:
PII: true
- name: newbalanceOrig
tags:
PII: true
8 changes: 0 additions & 8 deletions hack/test-script/sample-policy-0.6.0.rego
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
package dataapi.authz

rule[{"action": {"name":"RedactAction", "columns": column_names}, "policy": description}] {
description := "Redact columns tagged as PII in datasets tagged with finance = true"
input.action.actionType == "read"
input.resource.metadata.tags.finance
column_names := [input.resource.metadata.columns[i].name | input.resource.metadata.columns[i].tags.PII]
count(column_names) > 0
}

rule[{}] {
description := "allow the delete operation"
input.action.actionType == "delete"
Expand Down
1 change: 1 addition & 0 deletions hack/test_module.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ then
helm install fybrik-crd charts/fybrik-crd -n fybrik-system --wait
helm install fybrik charts/fybrik --set global.tag=master --set global.imagePullPolicy=Always -n fybrik-system --wait
cd -
rm -f -R fybrik
else
# Install vault
${TOOLBIN}/helm install vault fybrik-charts/vault --create-namespace -n fybrik-system \
Expand Down

0 comments on commit e76a3f9

Please sign in to comment.