Skip to content

Conversation

@ePaul
Copy link
Contributor

@ePaul ePaul commented Mar 13, 2017

No generator changes here.

PR checklist

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

Description of the PR

This just updates the samples for clojure in the 2.3.0 branch, because #5035 got an error which I could not explain by the merge.

No generator changes here.
@ePaul
Copy link
Contributor Author

ePaul commented Mar 13, 2017

Same failure as in #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 [4.052s]
[INFO] swagger-codegen (core library) .................... SUCCESS [46.501s]
[INFO] swagger-codegen (executable) ...................... SUCCESS [29.230s]
[INFO] swagger-codegen (maven-plugin) .................... SUCCESS [6.351s]
[INFO] swagger-generator ................................. SUCCESS [20.880s]
[INFO] Ruby Swagger Petstore Client ...................... SUCCESS [14.417s]
[INFO] swagger-petstore-android-volley ................... SUCCESS [0.792s]
[INFO] Swagger Petstore - Clojure Client ................. FAILURE [7.419s]
[INFO] Go Petstore Client ................................ SKIPPED
[INFO] swagger-petstore-feign ............................ SKIPPED
...
[INFO] swagger-petstore-spring-cloud ..................... SKIPPED
[INFO] swagger-spring .................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:10.856s
[INFO] Finished at: Mon Mar 13 09:06:14 UTC 2017
[INFO] Final Memory: 68M/265M
[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] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.

@ePaul ePaul mentioned this pull request Mar 13, 2017
3 tasks
@wing328
Copy link
Contributor

wing328 commented Mar 13, 2017

@ePaul I think there's an issue with the latest Clojure generator at the moment.

I'll ask someone who's familiar Clojure to take a look.

@wing328
Copy link
Contributor

wing328 commented Mar 13, 2017

Closed via #5043

Will sync the change/fix from master to 2.3.0 shortly

@wing328 wing328 closed this Mar 13, 2017
@ePaul ePaul deleted the update-samples-for-clojure-2.3.0 branch April 2, 2017 14:18
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