mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
node pools: register a node in a node pool (#17405)
This commit is contained in:
@@ -71,6 +71,10 @@ func TestCommand_Args(t *testing.T) {
|
||||
[]string{"-client", "-data-dir=" + tmpDir, "-meta=invalid.=inaccessible-value"},
|
||||
"Invalid Client.Meta key: invalid.",
|
||||
},
|
||||
{
|
||||
[]string{"-client", "-node-pool=not@valid"},
|
||||
"Invalid node pool",
|
||||
},
|
||||
}
|
||||
for _, tc := range tcases {
|
||||
// Make a new command. We preemptively close the shutdownCh
|
||||
@@ -305,6 +309,26 @@ func TestIsValidConfig(t *testing.T) {
|
||||
},
|
||||
err: "must be given as an absolute",
|
||||
},
|
||||
{
|
||||
name: "InvalidNodePoolChar",
|
||||
conf: Config{
|
||||
Client: &ClientConfig{
|
||||
Enabled: true,
|
||||
NodePool: "not@valid",
|
||||
},
|
||||
},
|
||||
err: "Invalid node pool",
|
||||
},
|
||||
{
|
||||
name: "InvalidNodePoolName",
|
||||
conf: Config{
|
||||
Client: &ClientConfig{
|
||||
Enabled: true,
|
||||
NodePool: structs.NodePoolAll,
|
||||
},
|
||||
},
|
||||
err: "not allowed",
|
||||
},
|
||||
{
|
||||
name: "NegativeMinDynamicPort",
|
||||
conf: Config{
|
||||
|
||||
Reference in New Issue
Block a user