Simon Hartcher
934323acf1
refactor: generate types for maps
...
TODO: handle json stringify for generated map types
2025-05-14 15:29:21 +10:00
c6a1bb2418
upgrade smithy to 4187d899 (enables optional service version)
2025-05-07 12:25:21 -07:00
Simon Hartcher
dc05b20bda
fix: undefined behaviour for responses with no body
2025-04-24 16:50:46 +10:00
Simon Hartcher
0ac10d5798
chore: 404 is not an error in most situations
2025-04-24 11:00:14 +10:00
Simon Hartcher
324ed9a7e3
chore: add URL to reportTraffic output
2025-04-24 10:33:47 +10:00
Simon Hartcher
dc50fd882c
fix: restore accidentally commented code
2025-04-24 10:32:48 +10:00
Simon Hartcher
3c7b336298
fix: use arena so that set headers no longer leak memory
2025-04-23 16:41:06 +10:00
Simon Hartcher
0fe727c7eb
fix: xml memory leaks using arena
2025-04-23 16:39:04 +10:00
Simon Hartcher
bc328e72ad
fix: json memory leaks using arena
2025-04-23 16:37:28 +10:00
Simon Hartcher
5a8cceaa0b
chore: wip refactor of FullResponse to use arena allocator to simplify memory management
2025-04-23 16:33:20 +10:00
Simon Hartcher
8007a910dd
refactor: create shared lib for json
2025-04-23 12:15:04 +10:00
Simon Hartcher
29e9dd481b
refactor: extract date methods into shared date lib
2025-04-23 11:51:53 +10:00
Simon Hartcher
3fea7d9f0e
refactor: handle empty response bodies and multiple types of timestamps
2025-04-22 16:06:50 +10:00
f4c306a2df
support rest_xml with non-string payloads (e.g. S3 create bucket)
AWS-Zig Build / build-zig-amd64-host (push) Successful in 7m17s
2025-04-18 15:04:43 -07:00
52f99bb35f
split strings from other types that need xml serialization
2025-04-18 11:21:42 -07:00
0a21a9f184
add failing test for S3 create bucket
2025-04-18 11:20:58 -07:00
28698e8ec4
add xml serialization capabilities
AWS-Zig Build / build-zig-amd64-host (push) Successful in 7m6s
2025-04-18 10:20:22 -07:00
ea14e3b90a
better test web server management
AWS-Zig Build / build-zig-amd64-host (push) Successful in 7m20s
2025-04-17 17:42:10 -07:00
12c7c46594
add test server timeout
2025-04-16 19:35:47 -07:00
Simon Hartcher
1b4788f469
fix: undefined behaviour in parseJsonData
2025-04-08 12:49:59 +10:00
Simon Hartcher
b5cd321263
fix(TestSetup): undefined behaviour
2025-04-08 11:39:19 +10:00
9e8b3a6fc6
fix json serialization for null/empty maps
2025-03-21 09:59:33 -07:00
4f16553410
update to zig 0.14.0
2025-03-20 08:18:37 -07:00
acd6589909
add support for raw responses beginning with name of single field in response struct
2025-02-05 13:22:52 -08:00
78b36e2316
support for timestamp as f128 (more)
...
f128 is not really the correct data type long term. More information on the exact details are
https://smithy.io/2.0/aws/protocols/aws-json-1_1-protocol.html and
https://smithy.io/2.0/spec/protocol-traits.html\#timestampformat-trait
But...it will hold all our values and parses correctly, so we can use it for now
2025-02-05 13:21:53 -08:00
3d78705ea5
update to latest zig nominated
aws-zig mach nominated build / build-zig-nominated-mach-latest (push) Failing after 26s
aws-zig nightly build / build-zig-nightly (push) Failing after 3m36s
2024-10-17 10:54:01 -07:00
908c9d2d42
add diagnostics option to rest calls
AWS-Zig Build / build-zig-amd64-host (push) Successful in 1m30s
aws-zig mach nominated build / build-zig-nominated-mach-latest (push) Failing after 35s
aws-zig nightly build / build-zig-nightly (push) Failing after 39s
2024-08-27 13:37:36 -07:00
1fdff0bacd
include credenitals in logging control (tie to signing)
AWS-Zig Build / build-zig-amd64-host (push) Successful in 1m31s
2024-08-27 11:42:07 -07:00
1fe39007c5
add logging control useful for build scripts
AWS-Zig Build / build-zig-amd64-host (push) Successful in 1m32s
2024-08-27 11:30:23 -07:00
c5cb3dde29
Remove extra fields in request (AWS is sensitive to them)
2024-08-27 10:40:52 -07:00
c056dbb0ff
add diagnostics for failures
AWS-Zig Build / build-zig-amd64-host (push) Successful in 1m31s
aws-zig mach nominated build / build-zig-nominated-mach-latest (push) Successful in 1m30s
aws-zig nightly build / build-zig-nightly (push) Failing after 26s
2024-08-23 16:03:37 -07:00
238952d127
add iam getRole test
...
This test triggers the scenario that a required response element exists, which
forces our check for "we do not expect data for this call" to be comptime.
It previously was accidentally runtime, which was solved by making
expected_body_field_len a comptime var.
2024-08-23 12:53:58 -07:00
a9f99c0205
add failing test for duplicate header values
2024-08-19 09:41:39 -07:00
a659c99350
re-enable windows test for 0.13/LLVM 18, update README
aws-zig mach nominated build / build-zig-nominated-mach-latest (push) Successful in 3m5s
aws-zig nightly build / build-zig-nightly (push) Successful in 3m32s
2024-06-04 17:34:33 -07:00
99a61c0bd2
update aws-zig to zig 0.12.0 (example will still fail)
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Failing after 2m25s
2024-04-22 08:23:01 -07:00
e74a0e9456
get build LLVM-approved (riscv64-linux disabled for now)
aws-zig mach nominated build / build-zig-nominated-mach-latest (push) Failing after 3m8s
aws-zig nightly build / build-zig-nightly (push) Failing after 1m0s
2024-04-02 17:49:45 -07:00
7dcf3d3a2e
upgrade to nominated zig 2024.3.0-mach (0.12.0-dev.3180+83e578a18)
...
aws-zig mach nominated build / build-zig-nightly (push) Failing after 28m36s
aws-zig nightly build / build-zig-nightly (push) Failing after 57s
There were significant changes to the way HTTP operates since 0.11,
effecting client operations, but more substantially, the server
implementation, which effected the test harness.
std.http.Headers was removed, including the getFirstValue function, which
needed to be replicated. On the plus side, a std.http.Header struct was
added, identical to our own structure, so I have removed out own header
in favor of stdlib.
On the Http client side, I have switched to use the fetch API. Proxy
support is built in, but we are using (mostly) our own implementation
for now, with the remaining conversion left as a TODO item. Raw URIs are
now supported, so the workaround for issue 17015 has been removed. Large
payloads should also be fixed, but this has not been tested.
The standard library now adds the content-length header
(unconditionally), which is a decision of dubious nature. I have removed
the addition of content-length, which also means it is not present
during signing. This should be allowed.
Dependency loop on fieldTransformer was fixed. This should have been
a problem on zig 0.11, but was not. This effected the API for the json
parsing, but we were not using that. At the call site, these did not
need to be specified as references.
With the http server no longer doing all the allocations it once was,
the test harness now has a lot more allocations to perform. To alleviate
the bookeeping, this was moved to an Arena allocator. The client,
which is really what is under test, continues to use the allocator
passed.
2024-04-02 09:27:42 -07:00
6df02b1074
switch sqs query test (json) with sts query test (xml) and fix response parsing
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 5m22s
2024-02-29 20:41:03 -08:00
55298f7575
skip sqs, which changed from query to json protocol, and update S3 test
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 4m18s
2024-02-29 16:59:10 -08:00
melhindi
7a5fa0bb2e
Replace var with const where applicable
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 7m37s
2024-01-18 13:43:45 +01:00
14666da73f
clean up build (includes two fixes for arm 32 bit)
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 5m38s
2024-01-09 15:22:03 -08:00
0e48c6f79b
clean up test logging/add header logging in test
2023-09-08 21:43:20 -07:00
6ae8b68786
allow static signing iime in aws.zig/use static time for testing
2023-09-08 21:42:38 -07:00
55f662f5d7
add failing test for double encoding issue
2023-08-30 12:59:10 -07:00
0a1de2b967
support chunked transfer encoding to create failing test
2023-08-29 11:56:23 -07:00
70bd8dafa5
add more information on unexpected response
2023-08-29 11:56:01 -07:00
48fc41c4b8
return cleaner error when response not expected
2023-08-29 11:30:21 -07:00
812ad96a66
add proxy support
2023-08-29 11:24:34 -07:00
591f4c43e0
all services from main.zig now under test
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 6m28s
2023-08-28 17:49:30 -07:00
c8cba54fe0
ec2_query_with_input under test
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 7m9s
2023-08-28 13:30:39 -07:00