Skip to content

Commit ed13a56

Browse files
committed
save bats
1 parent 06f551a commit ed13a56

File tree

1 file changed

+1
-29
lines changed

1 file changed

+1
-29
lines changed

test/policy-service.bats

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
[[ $output = *"listing namespaces"* ]]
1717
[ $status = 0 ]
1818

19-
run go run ./examples --creds opentdf:secret attributes add -a https://example.io/attr/IntellectualProperty -v "TradeSecret,Proprietary,BusinessSensitive,Open" --rule hierarchy
19+
run go run ./examples --creds opentdf:secret attributes add -a https://example.io/attr/IntellectualProperty -v "TradeSecret,Proprietary,BusinessSensitive,Open" --rule hierarchy
2020
echo "$output"
2121
[[ $output = *"created attribute"* ]]
2222
[ $status = 0 ]
@@ -58,31 +58,3 @@
5858
[[ $output = *"deleted kas registration"* ]]
5959
[ $status = 0 ]
6060
}
61-
62-
@test "gRPC: kas grants assignment" {
63-
go run ./examples --creds opentdf:secret kas add --kas https://a.example.io --algorithm "rsa:2048" --kid r1 --public-key "$(<${BATS_TEST_DIRNAME}/../kas-cert.pem)"
64-
go run ./examples --creds opentdf:secret kas add --kas https://b.example.io --algorithm "rsa:2048" --kid r1 --public-key "$(<${BATS_TEST_DIRNAME}/../kas-cert.pem)"
65-
go run ./examples --creds opentdf:secret kas add --kas https://c.example.io --algorithm "rsa:2048" --kid r1 --public-key "$(<${BATS_TEST_DIRNAME}/../kas-cert.pem)"
66-
67-
run go run ./examples --creds opentdf:secret kas ls -l
68-
echo "$output"
69-
[[ $output = *"https://a.example.io"* ]]
70-
[[ $output = *"https://b.example.io"* ]]
71-
[[ $output = *"https://c.example.io"* ]]
72-
[ $status = 0 ]
73-
74-
go run ./examples --creds opentdf:secret attributes add -a https://grant.example.io/attr/test -v "a,b,c"
75-
76-
go run ./examples --creds opentdf:secret attributes assign -a https://grant.example.io/attr/test -v a -k https://a.example.io
77-
go run ./examples --creds opentdf:secret attributes assign -a https://grant.example.io/attr/test -v b -k https://b.example.io
78-
go run ./examples --creds opentdf:secret attributes assign -a https://grant.example.io/attr/test -v c -k https://c.example.io
79-
80-
go run ./examples --creds opentdf:secret kas rm -k https://a.example.io
81-
go run ./examples --creds opentdf:secret kas rm -k https://b.example.io
82-
go run ./examples --creds opentdf:secret kas rm -k https://c.example.io
83-
84-
run go run ./examples --creds opentdf:secret attributes rm -f -a https://grant.example.io/attr/test
85-
echo "$output"
86-
[[ $output = *"deleted attribute"* ]]
87-
[ $status = 0 ]
88-
}

0 commit comments

Comments
 (0)