Skip to content

Commit

Permalink
fix tests, update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
drewbailey committed Jan 29, 2020
1 parent fbd5080 commit 2dbcad3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ IMPROVEMENTS:
BUG FIXES:

* agent: Fixed race condition in logging when using `nomad monitor` command [[GH-6872](https://github.com/hashicorp/nomad/issues/6872)]
* agent: Fixed a bug where `nomad monitor -server-id` only work for a server's name instead of uuid or name. [[GH-7015](https://github.com/hashicorp/nomad/issues/7015)]
* cli: Fixed a bug where `nomad monitor -node-id` would cause a cli panic when no nodes where found. [[GH-6828](https://github.com/hashicorp/nomad/issues/6828)]
* config: Fixed a bug where agent startup would fail if the `consul.timeout` configuration was set. [[GH-6907](https://github.com/hashicorp/nomad/issues/6907)]
* consul: Fixed a bug where script-based health checks would fail if the service configuration included interpolation. [[GH-6916](https://github.com/hashicorp/nomad/issues/6916)]
* consul: Fixed a bug where script-based health checks would fail if the service configuration included interpolation. [[GH-6916](https://github.com/hashicorp/nomad/issues/6916)]
* consul/connect: Fixed a bug where Connect-enabled jobs failed to validate when service names used interpolation. [[GH-6855](https://github.com/hashicorp/nomad/issues/6855)]
* scheduler: Fixed a bug that caused evicted allocs on a lost node to be stuck in running. [[GH-6902](https://github.com/hashicorp/nomad/issues/6902)]
* scheduler: Fixed a bug where `nomad job plan/apply` returned errors instead of a partial placement warning for ineligible nodes. [[GH-6968](https://github.com/hashicorp/nomad/issues/6968)]
Expand Down
2 changes: 1 addition & 1 deletion api/agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ func TestAgentCPUProfile(t *testing.T) {
}
resp, err := agent.CPUProfile(opts, q)
require.Error(t, err)
require.Contains(t, err.Error(), "500 (unknown nomad server unknown.global)")
require.Contains(t, err.Error(), "500 (unknown Nomad server unknown.global)")
require.Nil(t, resp)
}

Expand Down
4 changes: 2 additions & 2 deletions e2e/connect/input/multi-service.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ job "multi-service" {

config {
image = "hashicorp/http-echo"
args = ["-listen=:9001", "-text=echo1"]
args = ["-listen=:9001", "-text=echo1"]
}
}

Expand All @@ -43,7 +43,7 @@ job "multi-service" {

config {
image = "hashicorp/http-echo"
args = ["-listen=:9002", "-text=echo2"]
args = ["-listen=:9002", "-text=echo2"]
}
}
}
Expand Down
7 changes: 5 additions & 2 deletions nomad/client_agent_endpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@ func TestMonitor_MonitorServer(t *testing.T) {
// No node ID to monitor the remote server
req := cstructs.MonitorRequest{
LogLevel: "debug",
QueryOptions: structs.QueryOptions{
Region: "global",
},
}

handler, err := s.StreamingRpcHandler("Agent.Monitor")
Expand Down Expand Up @@ -589,7 +592,7 @@ func TestAgentProfile_RemoteRegionMisMatch(t *testing.T) {
reply := structs.AgentPprofResponse{}

err := s1.RPC("Agent.Profile", &req, &reply)
require.Contains(err.Error(), "does not exist in requested region")
require.Contains(err.Error(), "unknown Nomad server")
require.Nil(reply.Payload)
}

Expand Down Expand Up @@ -704,7 +707,7 @@ func TestAgentProfile_Server(t *testing.T) {
serverID: uuid.Generate(),
origin: nonLeader,
reqType: pprof.CmdReq,
expectedErr: "unknown nomad server",
expectedErr: "unknown Nomad server",
expectedAgentID: "",
},
}
Expand Down

0 comments on commit 2dbcad3

Please sign in to comment.