mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
e2e: consul namespace tests from nomad ent
(cherry-picked from ent without _ent things) This is part 2/4 of e2e tests for Consul Namespaces. Took a first pass at what the parameterized tests can look like, but only on the ENT side for this PR. Will continue to refactor in the next PRs. Also fixes 2 bugs: - Config Entries registered by Nomad Server on job registration were not getting Namespace set - Group level script checks were not getting Namespace set Those changes will need to be copied back to Nomad OSS. Nomad OSS + no ACLs (previously, needs refactor) Nomad ENT + no ACLs (this) Nomad OSS + ACLs (todo) Nomad ENT + ALCs (todo)
This commit is contained in:
@@ -1303,7 +1303,8 @@ func (c *ServiceClient) AllocRegistrations(allocID string) (*AllocRegistration,
|
||||
// UpdateTTL is used to update the TTL of a check. Typically this will only be
|
||||
// called to heartbeat script checks.
|
||||
func (c *ServiceClient) UpdateTTL(id, namespace, output, status string) error {
|
||||
return c.agentAPI.UpdateTTLOpts(id, output, status, &api.QueryOptions{Namespace: normalizeNamespace(namespace)})
|
||||
ns := normalizeNamespace(namespace)
|
||||
return c.agentAPI.UpdateTTLOpts(id, output, status, &api.QueryOptions{Namespace: ns})
|
||||
}
|
||||
|
||||
// Shutdown the Consul client. Update running task registrations and deregister
|
||||
|
||||
Reference in New Issue
Block a user