Skip to content

Commit

Permalink
set entity to api key ID for all test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
bashar-515 committed Sep 19, 2024
1 parent 8c8660a commit 3fb0c62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion robot/impl/local_robot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,8 @@ func TestConfigRemoteWithAuth(t *testing.T) {
Type: rpc.CredentialsTypeAPIKey,
Payload: apiKey,
}
remoteConfig.Remotes[0].Auth.Entity = apiKeyID

remoteConfig.Remotes[1].Auth.Credentials = &rpc.Credentials{
Type: rutils.CredentialsTypeRobotLocationSecret,
Payload: locationSecret,
Expand All @@ -393,7 +395,6 @@ func TestConfigRemoteWithAuth(t *testing.T) {
test.That(t, ok, test.ShouldBeFalse)
test.That(t, remoteBot, test.ShouldBeNil)

remoteConfig.Remotes[0].Auth.Entity = apiKeyID
remoteConfig.Remotes[1].Auth.Entity = entityName
test.That(t, setupLocalRobot(t, context.Background(), remoteConfig, logger).Close(context.Background()), test.ShouldBeNil)

Expand Down

0 comments on commit 3fb0c62

Please sign in to comment.