Skip to content

Commit

Permalink
WIP test against the lmars-dev cluster
Browse files Browse the repository at this point in the history
Signed-off-by: Lewis Marshall <[email protected]>
  • Loading branch information
lmars committed Jul 23, 2024
1 parent 5a79a49 commit 6506d0f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
env:
LC_CTYPE: en_US.UTF-8
LANG: en_US.UTF-8
ABLY_ENV: sandbox
ABLY_ENV: lmars-dev

steps:
- name: Check out repo
Expand Down
2 changes: 1 addition & 1 deletion Test/Test Utilities/TestUtilities.swift
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ public func delay(_ seconds: TimeInterval, closure: @escaping () -> Void) {
public func getEnvironment() -> String {
let b = Bundle(for: AblyTests.self)
guard let env = b.infoDictionary!["ABLY_ENV"] as? String, env.count > 0 else {
return "sandbox"
return "lmars-dev"
}
return env
}
Expand Down
4 changes: 2 additions & 2 deletions Test/Tests/RestClientTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1310,9 +1310,9 @@ class RestClientTests: XCTestCase {

// RSC15i
func test__066__RestClient__Host_Fallback__retry_hosts_in_random_order__environment_fallback_hosts_have_the_format__environment___a_e__fallback_ably_realtime_com() {
let environmentFallbackHosts = ARTDefault.fallbackHosts(withEnvironment: "sandbox")
let environmentFallbackHosts = ARTDefault.fallbackHosts(withEnvironment: "lmars-dev")
environmentFallbackHosts.forEach { host in
expect(host).to(match("sandbox-[a-e]-fallback.ably-realtime.com"))
expect(host).to(match("lmars-dev-[a-e]-fallback.ably-realtime.com"))
}
XCTAssertEqual(environmentFallbackHosts.count, 5)
}
Expand Down
4 changes: 2 additions & 2 deletions Test/Tests/RestPaginatedTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import XCTest

private let links = "<./messages?start=0&end=1535035746063&limit=100&direction=backwards&format=msgpack&firstEnd=1535035746063&fromDate=1535035746063&mode=all>; rel=\"first\", <./messages?start=0&end=1535035746063&limit=100&direction=backwards&format=msgpack&firstEnd=1535035746063&fromDate=1535035746063&mode=all>; rel=\"current\""

private let url = URL(string: "https://sandbox-rest.ably.io:443/channels/foo/messages?limit=100&direction=backwards")!
private let url = URL(string: "https://lmars-dev-rest.ably.io:443/channels/foo/messages?limit=100&direction=backwards")!

class RestPaginatedTests: XCTestCase {
// XCTest invokes this method before executing the first test in the test suite. We use it to ensure that the global variables are initialized at the same moment, and in the same order, as they would have been when we used the Quick testing framework.
Expand Down Expand Up @@ -44,6 +44,6 @@ class RestPaginatedTests: XCTestCase {
fail("First link isn't a valid URL"); return
}

XCTAssertEqual(firstRequest.url?.absoluteString, "https://sandbox-rest.ably.io:443/channels/foo/messages?start=0&end=1535035746063&limit=100&direction=backwards&format=msgpack&firstEnd=1535035746063&fromDate=1535035746063&mode=all")
XCTAssertEqual(firstRequest.url?.absoluteString, "https://lmars-dev-rest.ably.io:443/channels/foo/messages?start=0&end=1535035746063&limit=100&direction=backwards&format=msgpack&firstEnd=1535035746063&fromDate=1535035746063&mode=all")
}
}

0 comments on commit 6506d0f

Please sign in to comment.