From f0fe3bbb949c942cb8c9accf6e2e4bc2d63b4630 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Sat, 24 Jul 2021 00:17:09 -0700 Subject: [PATCH] add ec2 test --- src/main.zig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.zig b/src/main.zig index 1d8fb72..48a299c 100644 --- a/src/main.zig +++ b/src/main.zig @@ -65,7 +65,7 @@ pub fn main() anyerror!void { var client = aws.Aws.init(allocator); defer client.deinit(); - const services = aws.Services(.{.sts}){}; + const services = aws.Services(.{ .sts, .ec2 }){}; for (tests.items) |t| { std.log.info("===== Start Test: {s} =====", .{@tagName(t)}); @@ -87,7 +87,9 @@ pub fn main() anyerror!void { std.log.info("access key: {s}", .{access.response.credentials.access_key_id}); }, .ec2_query_no_input => { - // TODO: Find test + const instances = try client.call(services.ec2.describe_instances.Request{}, options); + defer instances.deinit(); + std.log.info("reservation count: {d}", .{instances.response.reservations.len}); }, } std.log.info("===== End Test: {s} =====\n", .{@tagName(t)});