Skip to content

Commit

Permalink
Update test_agent.cc
Browse files Browse the repository at this point in the history
username, not user
  • Loading branch information
nsoblath authored Jun 6, 2024
1 parent eaf1ed4 commit 8d8641e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testing/test_agent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ TEST_CASE( "agent_configuration", "[agent]" )
REQUIRE( the_main.default_config()["dripline"].is_node() );

REQUIRE( the_main.default_config().has("auth-groups") );
REQUIRE_THAT( the_main.default_config()["auth-groups"]["dripline"]["user"]["default"]().as_string(), Equals("guest") );
REQUIRE_THAT( the_main.default_config()["auth-groups"]["dripline"]["username"]["default"]().as_string(), Equals("guest") );
REQUIRE_THAT( the_main.default_config()["auth-groups"]["dripline"]["password"]["default"]().as_string(), Equals("guest") );

// pre_callback() runs the configuration stages and authentication step
Expand All @@ -44,7 +44,7 @@ TEST_CASE( "agent_configuration", "[agent]" )
REQUIRE( the_main.primary_config()["timeout"]().as_int() == 10 );
REQUIRE( the_main.primary_config()["dripline"].is_node() );
REQUIRE( the_main.primary_config().has("auth-groups") );
REQUIRE_THAT( the_main.primary_config()["auth-groups"]["dripline"]["user"]["default"]().as_string(), Equals("guest") );
REQUIRE_THAT( the_main.primary_config()["auth-groups"]["dripline"]["username"]["default"]().as_string(), Equals("guest") );
REQUIRE_THAT( the_main.primary_config()["auth-groups"]["dripline"]["password"]["default"]().as_string(), Equals("guest") );
}

Expand Down

0 comments on commit 8d8641e

Please sign in to comment.