opentdf / otdfctl

OpenTDF CLI
BSD 3-Clause Clear License
7 stars 1 forks source link

(bug) e2e test namespaces.bats - list when inactive - missing state switch #393

Open jf-virtru opened 1 week ago

jf-virtru commented 1 week ago

e2e test namespaces.bats - list when inactive - missing state switch

Running namespaces.bats results in failure of listing a deactivated namespace as the state switch is missing from the command line.

Current command line that results in the failure below (output is empty) : run_otdfctl_ns list --json ✗ List namespaces - when inactive (in test file e2e/namespaces.bats, line 140) `echo $output | jq --arg id "$NS_ID" '.[] | select(.[]? | type == "object" and .id == $id)'' failed with status 5 jq: error (at :1): Cannot iterate over null (null)

Command with needed state switch: run_otdfctl_ns list -s inactive --json ✓ List namespaces - when inactive