ca: make sure the test fails without the fix

Also change the path used for the secondary so that both primary and secondary do not overwrite each other.
This commit is contained in:
Daniel Nephin 2022-03-02 16:34:28 -05:00 committed by Daniel Nephin
parent f429c1a5d9
commit 161206e24d
1 changed files with 4 additions and 1 deletions

View File

@ -724,7 +724,7 @@ func TestCAManager_Verify_Vault_NoChangeToSecondaryConfig(t *testing.T) {
"Address": vault.Addr,
"Token": vault.RootToken,
"RootPKIPath": "pki-root/",
"IntermediatePKIPath": "pki-intermediate/",
"IntermediatePKIPath": "pki-intermediate-2/",
},
}
})
@ -739,6 +739,9 @@ func TestCAManager_Verify_Vault_NoChangeToSecondaryConfig(t *testing.T) {
renewLeafSigningCert(t, sDC1.caManager, sDC1.caManager.primaryRenewIntermediate)
// Give the secondary some time to notice the update
time.Sleep(100 * time.Millisecond)
var configAfter structs.CAConfiguration
err = msgpackrpc.CallWithCodec(codec, "ConnectCA.ConfigurationGet", &structs.DCSpecificRequest{}, &configAfter)
require.NoError(t, err)