mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
node pools: replicate from authoritative region (#17456)
Upserts and deletes of node pools are forwarded to the authoritative region, just like we do for namespaces, quotas, ACL policies, etc. Replicate node pools from the authoritative region.
This commit is contained in:
@@ -73,6 +73,7 @@ func TestHTTP_NodePool_Info(t *testing.T) {
|
||||
// Verify expected pool is returned.
|
||||
must.Eq(t, pool, obj.(*structs.NodePool), must.Cmp(cmpopts.IgnoreFields(
|
||||
structs.NodePool{},
|
||||
"Hash",
|
||||
"CreateIndex",
|
||||
"ModifyIndex",
|
||||
)))
|
||||
@@ -143,6 +144,7 @@ func TestHTTP_NodePool_Create(t *testing.T) {
|
||||
must.NoError(t, err)
|
||||
must.Eq(t, pool, got, must.Cmp(cmpopts.IgnoreFields(
|
||||
structs.NodePool{},
|
||||
"Hash",
|
||||
"CreateIndex",
|
||||
"ModifyIndex",
|
||||
)))
|
||||
@@ -193,6 +195,7 @@ func TestHTTP_NodePool_Update(t *testing.T) {
|
||||
must.NoError(t, err)
|
||||
must.Eq(t, updated, got, must.Cmp(cmpopts.IgnoreFields(
|
||||
structs.NodePool{},
|
||||
"Hash",
|
||||
"CreateIndex",
|
||||
"ModifyIndex",
|
||||
)))
|
||||
@@ -239,6 +242,7 @@ func TestHTTP_NodePool_Update(t *testing.T) {
|
||||
must.NoError(t, err)
|
||||
must.Eq(t, updated, got, must.Cmp(cmpopts.IgnoreFields(
|
||||
structs.NodePool{},
|
||||
"Hash",
|
||||
"CreateIndex",
|
||||
"ModifyIndex",
|
||||
)))
|
||||
@@ -278,6 +282,7 @@ func TestHTTP_NodePool_Update(t *testing.T) {
|
||||
must.NoError(t, err)
|
||||
must.Eq(t, pool, got, must.Cmp(cmpopts.IgnoreFields(
|
||||
structs.NodePool{},
|
||||
"Hash",
|
||||
"CreateIndex",
|
||||
"ModifyIndex",
|
||||
)))
|
||||
|
||||
Reference in New Issue
Block a user