Skip to content

Commit

Permalink
Windows version of command
Browse files Browse the repository at this point in the history
  • Loading branch information
graebm committed Sep 5, 2024
1 parent 030e377 commit c8c3a26
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/credentials_provider_process_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,17 @@ AWS_STATIC_STRING_FROM_LITERAL(
"\"Expiration\":\"2020-02-25T06:03:31Z\"}'");
#endif

#ifdef _WIN32
AWS_STATIC_STRING_FROM_LITERAL(
s_test_command_with_logging_on_stderr,
"("
"echo Logging on stderr >&2"
" && "
"echo {\"Version\": 1, \"AccessKeyId\": \"AccessKey123\", "
"\"SecretAccessKey\": \"SecretAccessKey321\", \"SessionToken\":\"TokenSuccess\", "
"\"Expiration\":\"2020-02-25T06:03:31Z\"}"
")");
#else
AWS_STATIC_STRING_FROM_LITERAL(
s_test_command_with_logging_on_stderr,
"("
Expand All @@ -153,6 +164,7 @@ AWS_STATIC_STRING_FROM_LITERAL(
"\"SecretAccessKey\": \"SecretAccessKey321\", \"SessionToken\":\"TokenSuccess\", "
"\"Expiration\":\"2020-02-25T06:03:31Z\"}'"
")");
#endif

AWS_STATIC_STRING_FROM_LITERAL(s_bad_test_command, "/i/dont/know/what/is/this/command");
AWS_STATIC_STRING_FROM_LITERAL(s_bad_command_output, "echo \"Hello, World!\"");
Expand Down

0 comments on commit c8c3a26

Please sign in to comment.