Skip to content

Commit

Permalink
Fix typos in test names
Browse files Browse the repository at this point in the history
  • Loading branch information
georgetarazevich committed Dec 19, 2023
1 parent 6971c74 commit b71da53
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
10 changes: 9 additions & 1 deletion tests/Options/config/app/format.bats
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,15 @@ teardown() {
echo -e "Done ..." >&3
}

@test "--format, Chooses the default reporting format, format=JSON" {
@test "--format, Chooses output format, the default format=XML" {

run curl -F "file=@$PROJECT_ROOT/Resources/Mustang_505.pdf" localhost:8080/api/validate/1b
assert_output --partial "<name>Mustang_505.pdf</name>"

[ "$status" -eq 0 ]
}

@test "--format, Chooses output format, format=JSON" {

run curl -F "file=@$PROJECT_ROOT/Resources/Mustang_505.pdf" localhost:8080/api/validate/1b -H 'accept: application/json'
assert_output --partial '"jobEndStatus" : "normal"'
Expand Down
2 changes: 1 addition & 1 deletion tests/Options/config/features/features.bats
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ teardown() {
echo -e "\nDone ..." >&3
}

@test "--features, The default processing model for the GUI, features=VALIDATE_EXTRACT" {
@test "--features, Extracts and reports PDF features, checking feature=ICCPROFILE" {

run curl -F "file=@$PROJECT_ROOT/Resources/Mustang_505.pdf" localhost:8080/api/validate/1b -H "Accept:text/html"
assert_output --partial "ICC profiles"
Expand Down
2 changes: 1 addition & 1 deletion tests/Options/config/validator/loggingLevel.bats
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ teardown() {
echo -e "\nDone ..." >&3
}

@test "--loggingLevel,Determine the log level, loggingLevel=ALL" {
@test "--loggingLevel, Determine the log level, loggingLevel=ALL" {

run curl -F "file=@$PROJECT_ROOT/Resources/orange.pdf" localhost:8080/api/validate/1b -H "Accept:text/html"
assert_output --partial 'FINE'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ teardown() {
echo -e "\nDone ..." >&3
}

@test "--maxNumberOfDisplayedFailedChecks, Outputs all processed file names, maxNumberOfDisplayedFailedChecks=0" {
@test "--maxNumberOfDisplayedFailedChecks, Sets maximum amount of failed checks displayed for each rule, maxNumberOfDisplayedFailedChecks=0" {

run curl -F "file=@$PROJECT_ROOT/Resources/a.pdf" localhost:8080/api/validate/1b -H "Accept:text/html"
refute_output --partial '<b>Failed</b>'
Expand Down
2 changes: 1 addition & 1 deletion tests/Options/config/validator/recordPasses.bats
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ teardown() {
echo -e "\nDone ..." >&3
}

@test "--recordPasses, Sets maximum amount of failed checks, recordPasses=true" {
@test "--recordPasses, Logs successful validation checks, recordPasses=true" {

run curl -F "file=@$PROJECT_ROOT/Resources/veraPDFPDFAConformanceCheckerGUI.pdf" localhost:8080/api/validate/1b -H "Accept:text/html"
assert_output --partial '<b>Passed</b>'
Expand Down
2 changes: 2 additions & 0 deletions tests/tools/test_helper/common-setup.bash
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ _common_setup() {
echo -e "\nDOCKER_CONTAINER_ID: $DOCKER_CONTAINER \n" >&3

echo "Checking docker container logs...at:" >&3
sleep 1 # sleep sec

export test_logs_starting_time=$(date +%s)
echo $(date -d @"$test_logs_starting_time") >&3
}
Expand Down

0 comments on commit b71da53

Please sign in to comment.