Skip to content

Commit

Permalink
add js client api host env var
Browse files Browse the repository at this point in the history
  • Loading branch information
llbartekll committed Aug 4, 2023
1 parent 60e3cff commit 9fd4431
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Example/ExampleApp.xcodeproj/IntegrationTests.xctestplan
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
"key" : "RELAY_HOST",
"value" : "$(RELAY_HOST)"
},
{
"key" : "JS_CLIENT_API_HOST",
"value" : "$(JS_CLIENT_API_HOST)"
},
{
"key" : "GM_DAPP_PROJECT_SECRET",
"value" : "$(GM_DAPP_PROJECT_SECRET)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ final class XPlatformW3WTests: XCTestCase {


class JavaScriptAutoTestsAPI {
private let host = "https://test-automation-api.walletconnect.com"
private let host = InputConfig.jsClientApiHost

func quickConnect() async throws -> WalletConnectURI {
let url = URL(string: "\(host)/quick_connect")!
Expand Down
4 changes: 4 additions & 0 deletions Example/Shared/Tests/InputConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ struct InputConfig {
return config(for: "GM_DAPP_PROJECT_SECRET")!
}

static var jsClientApiHost: String {
return config(for: "JS_CLIENT_API_HOST")
}

static var relayUrl: String {
return "wss://\(relayHost)"
}
Expand Down
15 changes: 14 additions & 1 deletion XPlatformProtocolTests.xctestplan
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,20 @@
}
],
"defaultOptions" : {

"environmentVariableEntries" : [
{
"key" : "JS_CLIENT_API_HOST",
"value" : "$(JS_CLIENT_API_HOST)"
},
{
"key" : "PROJECT_ID",
"value" : "$(PROJECT_ID)"
},
{
"key" : "RELAY_HOST",
"value" : "$(RELAY_HOST)"
}
]
},
"testTargets" : [
{
Expand Down

0 comments on commit 9fd4431

Please sign in to comment.