Merge pull request #11545 from hashicorp/spiffe-assertion
Use ClusterID to check for readiness
This commit is contained in:
commit
f587c04008
|
@ -16,7 +16,7 @@ func (s *Server) getCARoots(ws memdb.WatchSet, state *state.Store) (*structs.Ind
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if config == nil {
|
if config == nil || config.ClusterID == "" {
|
||||||
return nil, fmt.Errorf("CA has not finished initializing")
|
return nil, fmt.Errorf("CA has not finished initializing")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,9 +31,6 @@ func (s *Server) getCARoots(ws memdb.WatchSet, state *state.Store) (*structs.Ind
|
||||||
}
|
}
|
||||||
|
|
||||||
indexedRoots.TrustDomain = signingID.Host()
|
indexedRoots.TrustDomain = signingID.Host()
|
||||||
if indexedRoots.TrustDomain == "" {
|
|
||||||
return nil, fmt.Errorf("CA has not finished initializing")
|
|
||||||
}
|
|
||||||
|
|
||||||
indexedRoots.Index, indexedRoots.Roots = index, roots
|
indexedRoots.Index, indexedRoots.Roots = index, roots
|
||||||
if indexedRoots.Roots == nil {
|
if indexedRoots.Roots == nil {
|
||||||
|
|
|
@ -23,7 +23,7 @@ load helpers
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "primary should be able to rpc to the secondary" {
|
@test "primary should be able to rpc to the secondary" {
|
||||||
retry_default curl -sL -f -XPUT localhost:8500/v1/kv/foo?dc=secondary -d'{"Value":"bar"}'
|
retry_long curl -sL -f -XPUT localhost:8500/v1/kv/foo?dc=secondary -d'{"Value":"bar"}'
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "wan pool should show 2 healthy nodes" {
|
@test "wan pool should show 2 healthy nodes" {
|
||||||
|
|
Loading…
Reference in New Issue