Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: bash

before_script:
- curl -L "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/shunit2/shunit2-2.1.6.tgz" | tar zx
- curl -L "https://github.com/kward/shunit2/archive/refs/tags/v2.1.8.tar.gz" | tar zx

script:
# Get proper branch name based on http://graysonkoonce.com/getting-the-current-branch-name-during-a-pull-request-in-travis-ci/
Expand Down
6 changes: 3 additions & 3 deletions api-spec_validation_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ testOpenApiSpecValidity() {
expectedOutputSize=${#expectedOutput}
specUrl="$githubRawResourceBaseUrl/$githubUsername/$githubProjectId/$BRANCH/$openApiSpecFileName"
# Now prepare the open API spec file to use the online validator service.
validationUrl="http://online.swagger.io/validator/debug?url=$specUrl"
validationUrl="https://online.swagger.io/validator/debug?url=$specUrl"

echo "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
echo "Validating ENV Variables: TRAVIS_BRANCH=$TRAVIS_BRANCH, PR=$PR, BRANCH=$BRANCH"
echo "OpenAPI Specification File=$validationUrl"
echo "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"

validationOutput=$(curl $validationUrl)
validationOutput=$(curl -L $validationUrl)
validationOutputSize=${#validationOutput}
echo "Testing swagger validation - current output is: $validationOutput"
echo "Expected valid size: $expectedOutputSize, current output: $validationOutputSize"
Expand All @@ -52,4 +52,4 @@ testOpenApiSpecValidity() {


# Execute shunit2 to run the tests (downloaded via `.travis.yaml`)
. shunit2-2.1.6/src/shunit2
. shunit2-2.1.8/shunit2