Skip to content

Commit

Permalink
undo more region test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzyfresh committed Jun 12, 2019
1 parent ee8b442 commit 87afced
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion command/agent/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ func TestHTTP_VerifyHTTPSClient_AfterConfigReload(t *testing.T) {
// Requests that specify a valid hostname, CA cert, and client
// certificate succeed.
tlsConf := &tls.Config{
ServerName: "client.global.nomad",
ServerName: "client.regionFoo.nomad",
RootCAs: x509.NewCertPool(),
GetClientCertificate: func(*tls.CertificateRequestInfo) (*tls.Certificate, error) {
c, err := tls.LoadX509KeyPair(foocert, fookey)
Expand Down
6 changes: 3 additions & 3 deletions helper/tlsutil/testdata/nomad-foo-csr.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"CN": "global.nomad",
"CN": "regionFoo.nomad",
"hosts": [
"server.global.nomad",
"client.global.nomad"
"server.regionFoo.nomad",
"client.regionFoo.nomad"
],
"key": {
"algo": "ecdsa",
Expand Down
4 changes: 2 additions & 2 deletions nomad/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func TestServer_Regions(t *testing.T) {
func TestServer_Reload_Vault(t *testing.T) {
t.Parallel()
s1 := TestServer(t, func(c *Config) {
c.Region = "regionFoo"
c.Region = "global"
})
defer s1.Shutdown()

Expand Down Expand Up @@ -433,7 +433,7 @@ func TestServer_Reload_TLSConnections_PlaintextToTLS_OnlyRPC(t *testing.T) {
node := mock.Node()
req := &structs.NodeRegisterRequest{
Node: node,
WriteRequest: structs.WriteRequest{Region: "regionFoo"},
WriteRequest: structs.WriteRequest{Region: "global"},
}

var resp structs.GenericResponse
Expand Down

0 comments on commit 87afced

Please sign in to comment.