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
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