diff --git a/e2e/subject-mapping.bats b/e2e/subject-mapping.bats index 76cdab78..99c2742f 100755 --- a/e2e/subject-mapping.bats +++ b/e2e/subject-mapping.bats @@ -133,8 +133,9 @@ teardown_file() { run_otdfctl_sm list assert_success assert_output --partial "$created" - assert_output --regexp "FQN.*https://subject-mappings.net/attr/attr1/value/val1" - # TODO: test the specific FQN in table and in JSON + + run_otdfctl_sm list --json + [ "$(echo $output | jq -r ".[] | select(.id == \"$created\") | .attribute_value.fqn")" == "https://subject-mappings.net/attr/attr1/value/val1" ] } @test "Delete subject mapping" {