switch query_with_input test to something that will work with STS token
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a667dc09d1
commit
a88995290c
10
src/main.zig
10
src/main.zig
|
@ -78,7 +78,7 @@ pub fn main() anyerror!void {
|
||||||
};
|
};
|
||||||
defer client.deinit();
|
defer client.deinit();
|
||||||
|
|
||||||
const services = aws.Services(.{ .sts, .ec2, .dynamo_db, .ecs, .lambda }){};
|
const services = aws.Services(.{ .sts, .ec2, .dynamo_db, .ecs, .lambda, .sqs }){};
|
||||||
|
|
||||||
for (tests.items) |t| {
|
for (tests.items) |t| {
|
||||||
std.log.info("===== Start Test: {s} =====", .{@tagName(t)});
|
std.log.info("===== Start Test: {s} =====", .{@tagName(t)});
|
||||||
|
@ -93,12 +93,12 @@ pub fn main() anyerror!void {
|
||||||
std.log.info("requestId: {s}", .{call.response_metadata.request_id});
|
std.log.info("requestId: {s}", .{call.response_metadata.request_id});
|
||||||
},
|
},
|
||||||
.query_with_input => {
|
.query_with_input => {
|
||||||
// TODO: Find test without sensitive info
|
const call = try client.call(services.sqs.list_queues.Request{
|
||||||
const call = try client.call(services.sts.get_session_token.Request{
|
.queue_name_prefix = "s",
|
||||||
.duration_seconds = 900,
|
|
||||||
}, options);
|
}, options);
|
||||||
defer call.deinit();
|
defer call.deinit();
|
||||||
std.log.info("access key: {s}", .{call.response.credentials.?.access_key_id});
|
std.log.info("request id: {s}", .{call.response_metadata.request_id});
|
||||||
|
std.log.info("account has queues with prefix 's': {b}", .{call.response.queue_urls != null});
|
||||||
},
|
},
|
||||||
.json_1_0_query_with_input => {
|
.json_1_0_query_with_input => {
|
||||||
const call = try client.call(services.dynamo_db.list_tables.Request{
|
const call = try client.call(services.dynamo_db.list_tables.Request{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user