Skip to content

Conversation

@ePaul
Copy link
Contributor

@ePaul ePaul commented Mar 13, 2017

PR checklist

  • Read the contribution guidelines.
  • Ran the shell/batch script under ./bin/ to update Petstore sample so that CIs can verify the change.
    → bin/clojure-petstore.sh
  • Filed the PR against the correct branch: master for non-breaking changes

Description of the PR

This just updates the petstore samples for Clojure to find out why there is a problem in CI (#5035), without any code changes.

@ePaul
Copy link
Contributor Author

ePaul commented Mar 13, 2017

Travis gives the same error as in #5038 and #5035:

...
lein test :only swagger-petstore.core-test/test-api-context

FAIL in (test-api-context) (core_test.clj:9)
default
expected: (= {:base-url "http://petstore.swagger.io/v2", :date-format "yyyy-MM-dd", :datetime-format "yyyy-MM-dd'T'HH:mm:ss.SSSXXX", :debug false, :auths {"api_key" nil, "petstore_auth" nil, "test_api_client_id" nil, "test_api_client_secret" nil, "test_api_key_query" nil, "test_api_key_header" nil}} default-api-context *api-context* (with-api-context {} *api-context*))
  actual: (not (= {:base-url "http://petstore.swagger.io/v2", :date-format "yyyy-MM-dd", :datetime-format "yyyy-MM-dd'T'HH:mm:ss.SSSXXX", :debug false, :auths {"api_key" nil, "petstore_auth" nil, "test_api_client_id" nil, "test_api_client_secret" nil, "test_api_key_query" nil, "test_api_key_header" nil}} {:base-url "http://petstore.swagger.io/v2", :date-format "yyyy-MM-dd", :datetime-format "yyyy-MM-dd'T'HH:mm:ss.SSSXXX", :debug false, :auths {"api_key" nil, "petstore_auth" nil}} {:base-url "http://petstore.swagger.io/v2", :date-format "yyyy-MM-dd", :datetime-format "yyyy-MM-dd'T'HH:mm:ss.SSSXXX", :debug false, :auths {"api_key" nil, "petstore_auth" nil}} {:base-url "http://petstore.swagger.io/v2", :date-format "yyyy-MM-dd", :datetime-format "yyyy-MM-dd'T'HH:mm:ss.SSSXXX", :debug false, :auths {"api_key" nil, "petstore_auth" nil}}))

lein test :only swagger-petstore.core-test/test-api-context

FAIL in (test-api-context) (core_test.clj:48)
customize via with-api-context
expected: (= {:base-url "http://petstore.swagger.io/v2", :date-format "yyyy-MM-dd", :datetime-format "yyyy-MM-dd'T'HH:mm:ss.SSSXXX", :debug false, :auths {"api_key" nil, "petstore_auth" nil, "test_api_client_id" nil, "test_api_client_secret" nil, "test_api_key_query" nil, "test_api_key_header" nil}} default-api-context *api-context*)
  actual: (not (= {:base-url "http://petstore.swagger.io/v2", :date-format "yyyy-MM-dd", :datetime-format "yyyy-MM-dd'T'HH:mm:ss.SSSXXX", :debug false, :auths {"api_key" nil, "petstore_auth" nil, "test_api_client_id" nil, "test_api_client_secret" nil, "test_api_key_query" nil, "test_api_key_header" nil}} {:base-url "http://petstore.swagger.io/v2", :date-format "yyyy-MM-dd", :datetime-format "yyyy-MM-dd'T'HH:mm:ss.SSSXXX", :debug false, :auths {"api_key" nil, "petstore_auth" nil}} {:base-url "http://petstore.swagger.io/v2", :date-format "yyyy-MM-dd", :datetime-format "yyyy-MM-dd'T'HH:mm:ss.SSSXXX", :debug false, :auths {"api_key" nil, "petstore_auth" nil}}))

Ran 26 tests containing 159 assertions.
2 failures, 0 errors.
Tests failed.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] swagger-codegen-project ........................... SUCCESS [5.447s]
[INFO] swagger-codegen (core library) .................... SUCCESS [54.174s]
[INFO] swagger-codegen (executable) ...................... SUCCESS [37.922s]
[INFO] swagger-codegen (maven-plugin) .................... SUCCESS [6.583s]
[INFO] swagger-generator ................................. SUCCESS [20.548s]
[INFO] Ruby Swagger Petstore Client ...................... SUCCESS [12.873s]
[INFO] swagger-petstore-android-volley ................... SUCCESS [1.320s]
[INFO] Bash Swagger Petstore Client ...................... SUCCESS [0.914s]
[INFO] Swagger Petstore - Clojure Client ................. FAILURE [6.314s]
[INFO] Go Petstore Client ................................ SKIPPED
[INFO] swagger-petstore-feign ............................ SKIPPED
...
[INFO] swagger-jaxrs-cxf-cdi-server ...................... SKIPPED
[INFO] swagger-cxf-non-spring ............................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:27.453s
[INFO] Finished at: Mon Mar 13 09:15:55 UTC 2017
[INFO] Final Memory: 66M/240M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (lein-test) on project swagger-petstore-clojure: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]
[ERROR] 

So it looks like this failure didn't come in recently, given that it happens both in 2.3.0 and master (and the merge of both).

@xhh could you have a look what caused this?

@wing328
Copy link
Contributor

wing328 commented Mar 13, 2017

Closed via #5043

@wing328 wing328 closed this Mar 13, 2017
@ePaul ePaul deleted the update-samples-for-clojure-master branch April 2, 2017 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants