Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Jan 6, 2025
1 parent 10da04f commit ac2b424
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion source/aws_profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,6 @@ static bool s_parse_profile_declaration(
context->current_property = NULL;

s_parse_by_character_predicate(&profile_cursor, s_is_whitespace, NULL, 0);

enum aws_profile_section_type section_type = AWS_PROFILE_SECTION_TYPE_PROFILE;

/*
Expand Down
5 changes: 3 additions & 2 deletions tests/aws_profile_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ AWS_TEST_CASE(aws_profile_multiple_profile_test, s_aws_profile_multiple_profile_
*/
AWS_STATIC_STRING_FROM_LITERAL(
s_credentials_sso_session,
"[profile foo]\nname = value\n[profile bar]\nname2 = value2\n"
"[profile foo]\nname = value\n[profile bar]\nname2 = value2\nservices = test-service\n"
"[sso-session session]\nname3 = value3\ns3 =\n name4 = value4\n"
"[services test-service]\nname4 = value4\ns3 =\n name5 = value5\n");

Expand All @@ -441,8 +441,9 @@ static int s_aws_profile_multiple_sections(struct aws_allocator *allocator, void
EXPECT_PROPERTY_COUNT(profile_collection, AWS_PROFILE_SECTION_TYPE_PROFILE, "foo", 1);
EXPECT_PROPERTY(profile_collection, AWS_PROFILE_SECTION_TYPE_PROFILE, "foo", "name", "value");
EXPECT_SECTION(profile_collection, AWS_PROFILE_SECTION_TYPE_PROFILE, "bar");
EXPECT_PROPERTY_COUNT(profile_collection, AWS_PROFILE_SECTION_TYPE_PROFILE, "bar", 1);
EXPECT_PROPERTY_COUNT(profile_collection, AWS_PROFILE_SECTION_TYPE_PROFILE, "bar", 2);
EXPECT_PROPERTY(profile_collection, AWS_PROFILE_SECTION_TYPE_PROFILE, "bar", "name2", "value2");
EXPECT_PROPERTY(profile_collection, AWS_PROFILE_SECTION_TYPE_PROFILE, "bar", "services", "test-service");

EXPECT_SECTION_COUNT(profile_collection, AWS_PROFILE_SECTION_TYPE_SSO_SESSION, 1);
EXPECT_SECTION(profile_collection, AWS_PROFILE_SECTION_TYPE_SSO_SESSION, "session");
Expand Down

0 comments on commit ac2b424

Please sign in to comment.