Add go server for petstore tests
For now, as a separate application for manual testing.
This commit does not touch the old Qt5-based server.
So far, the following changes to the test code are required:
* gin parser does not understand DateTime string without timezone,
so we have to use QDateTime::currentDateTimeUtc(). This also
works fine with Qt5 server
* the PetApiTests::uploadPetFileTest() test was providing an
incorrect name for the file that it tried to upload. As a
result, the file contents was never actually sent. This was
unnoticed, because the C++ server did not really try to read
the received file. Fixed the test to provide a proper filename.
Note that all scripts still use the old Qt5-based server.
There will be a separate follow-up commit to remove the old
server and use the new server.
Task-number: QTBUG-137879
Change-Id: Idd759743e7cf5da54af5cc4055122e94c143ab8b
Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
| commit | 06366b1dcddd36025e3d22aa99303f8ad0b3553b |
| parent | 032e62acc75587f9181ecd5cc663d357fbf6efbd |
| author | Ivan Solovev <ivan.solovev@qt.io> |
| committer | Ivan Solovev <ivan.solovev@qt.io> |
| commit time | Thu, 9 Oct 2025 12:26:15 +0200 |
- M tests/auto/petstore/client/PetApiTest/PetApiTests.cpp
- M tests/auto/petstore/client/StoreApiTest/StoreApiTests.cpp
- A tests/auto/petstore/server_go/build-and-run.bash
- A tests/auto/petstore/server_go/go.mod
- A tests/auto/petstore/server_go/go.sum
- A tests/auto/petstore/server_go/go/api_pet.go
- A tests/auto/petstore/server_go/go/api_store.go
- A tests/auto/petstore/server_go/go/api_user.go
- A tests/auto/petstore/server_go/go/model_api_response.go
- A tests/auto/petstore/server_go/go/model_category.go
- A tests/auto/petstore/server_go/go/model_order.go
- A tests/auto/petstore/server_go/go/model_pet.go
- A tests/auto/petstore/server_go/go/model_tag.go
- A tests/auto/petstore/server_go/go/model_user.go
- A tests/auto/petstore/server_go/go/routers.go
- A tests/auto/petstore/server_go/main.go
- A tests/auto/petstore/server_go/qt-logo.png
- A tests/auto/petstore/server_go/response.json