Skip to content

Commit 154d40a

Browse files
committed
test swift clients with local petstore via docekr
1 parent d63459c commit 154d40a

146 files changed

Lines changed: 155 additions & 146 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

bitrise.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ workflows:
1818
#!/usr/bin/env bash
1919
2020
sudo gem install cocoapods
21+
- script@1.2.0:
22+
title: Run petstore docker
23+
inputs:
24+
- content: |
25+
#!/usr/bin/env bash
26+
27+
docker pull swaggerapi/petstore
28+
29+
docker run -d -e SWAGGER_HOST=http://petstore.swagger.io -e SWAGGER_BASE_PATH=/v2 -p 80:8080 swaggerapi/petstore
2130
- script@1.2.0:
2231
title: Run Swift6 tests
2332
inputs:
@@ -48,4 +57,4 @@ workflows:
4857
4958
meta:
5059
bitrise.io:
51-
stack: osx-xcode-16.0.x
60+
stack: osx-xcode-16.3.x

modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ info:
66
license:
77
name: Apache-2.0
88
url: 'https://www.apache.org/licenses/LICENSE-2.0.html'
9-
host: petstore.swagger.io:80
9+
host: localhost
1010
basePath: /v2
1111
tags:
1212
- name: pet

samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Foundation
99
import FoundationNetworking
1010
#endif
1111
open class PetstoreClientAPI {
12-
public static var basePath = "http://petstore.swagger.io:80/v2"
12+
public static var basePath = "http://localhost/v2"
1313
public static var customHeaders: [String: String] = [:]
1414
public static var credential: URLCredential?
1515
public static var requestBuilderFactory: RequestBuilderFactory = AlamofireRequestBuilderFactory()

samples/client/petstore/swift5/alamofireLibrary/README.md

Lines changed: 1 addition & 1 deletion

samples/client/petstore/swift5/alamofireLibrary/docs/AnotherFakeAPI.md

Lines changed: 1 addition & 1 deletion

samples/client/petstore/swift5/alamofireLibrary/docs/FakeAPI.md

Lines changed: 1 addition & 1 deletion

samples/client/petstore/swift5/alamofireLibrary/docs/FakeClassnameTags123API.md

Lines changed: 1 addition & 1 deletion

samples/client/petstore/swift5/alamofireLibrary/docs/PetAPI.md

Lines changed: 1 addition & 1 deletion

samples/client/petstore/swift5/alamofireLibrary/docs/StoreAPI.md

Lines changed: 1 addition & 1 deletion

samples/client/petstore/swift5/alamofireLibrary/docs/UserAPI.md

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)