File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,7 @@ final class FunctionsClientTests: XCTestCase {
172
172
173
173
Mock (
174
174
url: url. appendingPathComponent ( " hello-world " ) ,
175
+ ignoreQuery: true ,
175
176
statusCode: 200 ,
176
177
data: [ . post: Data ( ) ]
177
178
)
@@ -182,7 +183,7 @@ final class FunctionsClientTests: XCTestCase {
182
183
--header "X-Client-Info: functions-swift/0.0.0" \
183
184
--header "apikey: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0" \
184
185
--header "x-region: ca-central-1" \
185
- "http://localhost:5432/functions/v1/hello-world"
186
+ "http://localhost:5432/functions/v1/hello-world?forceFunctionRegion=ca-central-1 "
186
187
"""#
187
188
}
188
189
. register ( )
@@ -193,6 +194,7 @@ final class FunctionsClientTests: XCTestCase {
193
194
func testInvokeWithRegion( ) async throws {
194
195
Mock (
195
196
url: url. appendingPathComponent ( " hello-world " ) ,
197
+ ignoreQuery: true ,
196
198
statusCode: 200 ,
197
199
data: [ . post: Data ( ) ]
198
200
)
@@ -203,7 +205,7 @@ final class FunctionsClientTests: XCTestCase {
203
205
--header "X-Client-Info: functions-swift/0.0.0" \
204
206
--header "apikey: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0" \
205
207
--header "x-region: ca-central-1" \
206
- "http://localhost:5432/functions/v1/hello-world"
208
+ "http://localhost:5432/functions/v1/hello-world?forceFunctionRegion=ca-central-1 "
207
209
"""#
208
210
}
209
211
. register ( )
You can’t perform that action at this time.
0 commit comments