mirror of https://github.com/status-im/consul.git
Merge pull request #11545 from hashicorp/spiffe-assertion
Use ClusterID to check for readiness
This commit is contained in:
commit
09ef65d053
|
@ -16,7 +16,7 @@ func (s *Server) getCARoots(ws memdb.WatchSet, state *state.Store) (*structs.Ind
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if config == nil {
|
||||
if config == nil || config.ClusterID == "" {
|
||||
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()
|
||||
if indexedRoots.TrustDomain == "" {
|
||||
return nil, fmt.Errorf("CA has not finished initializing")
|
||||
}
|
||||
|
||||
indexedRoots.Index, indexedRoots.Roots = index, roots
|
||||
if indexedRoots.Roots == nil {
|
||||
|
|
|
@ -23,7 +23,7 @@ load helpers
|
|||
}
|
||||
|
||||
@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" {
|
||||
|
|
Loading…
Reference in New Issue