mirror of https://github.com/status-im/consul.git
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:
parent
f429c1a5d9
commit
161206e24d
|
@ -724,7 +724,7 @@ func TestCAManager_Verify_Vault_NoChangeToSecondaryConfig(t *testing.T) {
|
||||||
"Address": vault.Addr,
|
"Address": vault.Addr,
|
||||||
"Token": vault.RootToken,
|
"Token": vault.RootToken,
|
||||||
"RootPKIPath": "pki-root/",
|
"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)
|
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
|
var configAfter structs.CAConfiguration
|
||||||
err = msgpackrpc.CallWithCodec(codec, "ConnectCA.ConfigurationGet", &structs.DCSpecificRequest{}, &configAfter)
|
err = msgpackrpc.CallWithCodec(codec, "ConnectCA.ConfigurationGet", &structs.DCSpecificRequest{}, &configAfter)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
Loading…
Reference in New Issue