diff --git a/tests/Options/config/app/type.bats b/tests/Options/config/app/type.bats index 57a7dc9b..1056e5d7 100644 --- a/tests/Options/config/app/type.bats +++ b/tests/Options/config/app/type.bats @@ -9,20 +9,27 @@ setup() { docker cp $BATS_TEST_DIRNAME/type/app.xml $DOCKER_CONTAINER:/opt/verapdf-rest/config/app.xml docker cp $BATS_TEST_DIRNAME/type/features.xml $DOCKER_CONTAINER:/opt/verapdf-rest/config/features.xml + docker cp $BATS_TEST_DIRNAME/type/validator.xml $DOCKER_CONTAINER:/opt/verapdf-rest/config/validator.xml } teardown() { docker cp $DOCKER_CONTAINER:/opt/verapdf-rest/config/app.xml $BATS_TEST_TMPDIR - cat $BATS_TEST_TMPDIR/app.xml >&3 + docker cp $DOCKER_CONTAINER:/opt/verapdf-rest/config/validator.xml $BATS_TEST_TMPDIR + docker cp $DOCKER_CONTAINER:/opt/verapdf-rest/config/features.xml $BATS_TEST_TMPDIR + + cat $BATS_TEST_TMPDIR/app.xml >&3 + cat $BATS_TEST_TMPDIR/validator.xml >&3 + cat $BATS_TEST_TMPDIR/features.xml >&3 echo -e "Done ..." >&3 } @test "--type, The default processing model for the GUI, type=VALIDATE_EXTRACT" { - - run curl -F "file=@$PROJECT_ROOT/Resources/Mustang_505.pdf" localhost:8080/api/validate/1b -H "Accept:text/html" - assert_output --partial "ICC profiles" - [ "$status" -eq 0 ] + run curl -F "file=@$PROJECT_ROOT/Resources/5-t02-fail-a.pdf" localhost:8080/api/validate/1b -H "Accept:text/html" + assert_output --partial "Information dictionary" + assert_output --partial "