Fix agent use_auto_auth_token force test (#16313)

Update the test to fix a copy-paste error.
This commit is contained in:
Mike Palmiotto 2022-07-15 16:12:59 -07:00 committed by GitHub
parent 3df6e359bc
commit e804f74efa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -372,9 +372,9 @@ func TestLoadConfigFile_Bad_AgentCache_InconsisentAutoAuth(t *testing.T) {
}
func TestLoadConfigFile_Bad_AgentCache_ForceAutoAuthNoMethod(t *testing.T) {
_, err := LoadConfig("./test-fixtures/bad-config-cache-inconsistent-auto_auth.hcl")
_, err := LoadConfig("./test-fixtures/bad-config-cache-force-auto_auth.hcl")
if err == nil {
t.Fatal("LoadConfig should return an error when use_auto_auth_token=true and no auto_auth section present")
t.Fatal("LoadConfig should return an error when use_auto_auth_token=force and no auto_auth section present")
}
}