|
16 | 16 | [[ $output = *"listing namespaces"* ]] |
17 | 17 | [ $status = 0 ] |
18 | 18 |
|
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 |
20 | 20 | echo "$output" |
21 | 21 | [[ $output = *"created attribute"* ]] |
22 | 22 | [ $status = 0 ] |
|
58 | 58 | [[ $output = *"deleted kas registration"* ]] |
59 | 59 | [ $status = 0 ] |
60 | 60 | } |
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