-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add string array as an option for request context params for endpoint…
… resolution (#276) Co-authored-by: Waqar Ahmed Khan <[email protected]>
- Loading branch information
1 parent
72e9f47
commit 26be737
Showing
12 changed files
with
78 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ jobs: | |
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: GitHub Action for SwiftLint | ||
uses: norio-nomura/[email protected] | ||
|
||
|
@@ -125,7 +125,7 @@ jobs: | |
runs-on: ubuntu-22.04 # latest | ||
steps: | ||
- name: Checkout Source | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
fetch-depth: 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0. | ||
|
||
import XCTest | ||
@testable import AwsCommonRuntimeKit | ||
import AwsCCommon | ||
|
||
class UtilitiesTests: XCBaseTestCase { | ||
|
||
func testStringArrayToByteCursorArray() { | ||
let strings1 = ["a", "b"] | ||
strings1.withByteCursorArray { cursors, len in | ||
XCTAssertEqual(len, 2) | ||
for i in 0..<len { | ||
withUnsafePointer(to: cursors[i]) { pointer in | ||
XCTAssertTrue(aws_byte_cursor_is_valid(pointer)) | ||
} | ||
} | ||
} | ||
|
||
let strings2: [String] = [] | ||
strings2.withByteCursorArray { cursors, len in | ||
XCTAssertEqual(len, 0) | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule aws-c-auth
updated
16 files
+15 −3 | .github/workflows/ci.yml | |
+4 −6 | .github/workflows/clang-format.yml | |
+47 −0 | format-check.py | |
+0 −24 | format-check.sh | |
+1 −0 | include/aws/auth/auth.h | |
+15 −0 | include/aws/auth/credentials.h | |
+6 −6 | include/aws/auth/private/credentials_utils.h | |
+3 −0 | source/auth.c | |
+104 −5 | source/credentials_provider_ecs.c | |
+11 −0 | source/credentials_provider_profile.c | |
+37 −12 | source/credentials_provider_sts.c | |
+1 −0 | source/credentials_provider_sts_web_identity.c | |
+13 −9 | tests/CMakeLists.txt | |
+92 −17 | tests/credentials_provider_ecs_tests.c | |
+158 −27 | tests/credentials_provider_sts_tests.c | |
+42 −0 | tests/credentials_provider_sts_web_identity_tests.c |
Submodule aws-c-cal
updated
11 files
+11 −2 | .github/workflows/ci.yml | |
+18 −3 | builder.json | |
+50 −0 | tests/aes256_test.c | |
+46 −0 | tests/der_test.c | |
+20 −13 | tests/ecc_test.c | |
+5 −5 | tests/md5_test.c | |
+16 −14 | tests/rsa_test.c | |
+8 −8 | tests/sha1_test.c | |
+5 −5 | tests/sha256_hmac_test.c | |
+8 −8 | tests/sha256_test.c | |
+35 −2 | tests/test_case_helper.h |
Submodule aws-c-common
updated
9 files
+17 −8 | .github/workflows/ci.yml | |
+2 −2 | .github/workflows/proof_ci_resources/config.yaml | |
+2 −1 | README.md | |
+6 −4 | cmake/AwsSanitizers.cmake | |
+68 −1 | include/aws/common/json.h | |
+50 −41 | source/json.c | |
+19 −0 | source/posix/thread.c | |
+2 −18 | source/windows/device_random.c | |
+12 −7 | tests/json_test.c |
Submodule aws-c-http
updated
28 files
+15 −5 | .github/workflows/ci.yml | |
+4 −6 | .github/workflows/clang-format.yml | |
+3 −0 | .github/workflows/stale_issue.yml | |
+47 −0 | format-check.py | |
+0 −24 | format-check.sh | |
+4 −1 | include/aws/http/connection.h | |
+14 −0 | include/aws/http/connection_manager.h | |
+5 −1 | include/aws/http/private/h1_connection.h | |
+3 −1 | include/aws/http/private/h2_frames.h | |
+7 −7 | include/aws/http/proxy.h | |
+3 −1 | include/aws/http/request_response.h | |
+9 −4 | include/aws/http/server.h | |
+61 −1 | source/connection_manager.c | |
+56 −15 | source/h1_connection.c | |
+1 −1 | source/http.c | |
+5 −0 | source/websocket.c | |
+2 −0 | tests/CMakeLists.txt | |
+0 −3 | tests/test_connection.c | |
+48 −0 | tests/test_connection_manager.c | |
+5 −5 | tests/test_h1_client.c | |
+4 −1 | tests/test_h2_client.c | |
+2 −1 | tests/test_h2_encoder.c | |
+2 −1 | tests/test_h2_headers.c | |
+4 −1 | tests/test_localhost_integ.c | |
+4 −1 | tests/test_message.c | |
+4 −1 | tests/test_stream_manager.c | |
+135 −36 | tests/test_tls.c | |
+3 −1 | tests/test_websocket_handler.c |
Submodule aws-c-io
updated
25 files
+40 −5 | .github/workflows/ci.yml | |
+4 −6 | .github/workflows/clang-format.yml | |
+0 −4 | CMakeLists.txt | |
+47 −0 | format-check.py | |
+0 −24 | format-check.sh | |
+2 −2 | include/aws/io/channel.h | |
+3 −4 | include/aws/io/channel_bootstrap.h | |
+3 −4 | include/aws/io/event_loop.h | |
+6 −0 | include/aws/io/private/tls_channel_handler_shared.h | |
+13 −0 | include/aws/io/socket.h | |
+4 −5 | include/aws/io/tls_channel_handler.h | |
+13 −20 | source/channel.c | |
+126 −60 | source/darwin/secure_transport_tls_channel_handler.c | |
+1 −1 | source/io.c | |
+2 −5 | source/message_pool.c | |
+91 −2 | source/posix/socket.c | |
+117 −57 | source/s2n/s2n_tls_channel_handler.c | |
+1 −7 | source/socket_channel_handler.c | |
+1 −1 | source/windows/iocp/iocp_event_loop.c | |
+19 −0 | source/windows/iocp/socket.c | |
+275 −206 | source/windows/secure_channel_tls_handler.c | |
+4 −0 | tests/CMakeLists.txt | |
+1 −1 | tests/socket_handler_test.c | |
+82 −7 | tests/socket_test.c | |
+368 −128 | tests/tls_handler_test.c |
Submodule aws-c-sdkutils
updated
15 files
Submodule s2n
updated
83 files