-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QT][C++]fixed integration test for Oauth #10921
Conversation
CI reports the following:
Ref: https://app.travis-ci.com/github/OpenAPITools/openapi-generator/builds/242237594 Can you please take a look when you've time? |
The function QDateTime::fromSecsSinceEpoch is causing the error. I will use another function that was introduced in Qt 4.7: QDateTime::fromMSecsSinceEpoch
|
No luck :(
https://app.travis-ci.com/github/OpenAPITools/openapi-generator/builds/242485637 |
Hmm. Any idea whats the reason behind this? I will change the calulations and use ctime lib and remove QDatetime. |
No idea. Does it work for you locally?
(you may need to run the petstore server locally: https://github.com/OpenAPITools/openapi-generator/wiki/Integration-Tests#how-to-add-integration-tests-for-new-petstore-samples) Btw, we use QT5 in Travis CI: https://github.com/OpenAPITools/openapi-generator/blob/master/.travis.yml#L103 |
It ran fine for me even with the other functions. The integration test ran aswell. I will try that again with the local server. If it does not work out I will use another library to calculate if the tokens are still valid. But I got no ETA. I will try later this week! |
I changed the calculations. It uses time.h library. |
Tested via
|
Thanks for the fix, which has been merged into master. Will re-enable the CI check in another commit. |
@basyskom-dege if you find yourself in this area again I think |
Fix for the PR that broke the integration test. #10183
I had to modify the CMakeLists.txt in the Petstore example project and add Qt5::Gui package.
@wing328
PR checklist
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*
.For Windows users, please run the script in Git BASH.
master
(5.3.0),6.0.x