mirror of
https://github.com/photoprism/photoprism.git
synced 2025-10-12 12:10:31 +08:00
API: Update entity.Client and cluster config options #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
|
||||
func TestExitCodes_Register_ValidationAndUnauthorized(t *testing.T) {
|
||||
t.Run("MissingURL", func(t *testing.T) {
|
||||
ctx := NewTestContext([]string{"register", "--name", "pp-node-01", "--type", "instance", "--portal-token", "token"})
|
||||
ctx := NewTestContext([]string{"register", "--name", "pp-node-01", "--role", "instance", "--join-token", "token"})
|
||||
err := ClusterRegisterCommand.Action(ctx)
|
||||
assert.Error(t, err)
|
||||
if ec, ok := err.(cli.ExitCoder); ok {
|
||||
@@ -52,7 +52,7 @@ func TestExitCodes_Nodes_PortalOnlyMisuse(t *testing.T) {
|
||||
}
|
||||
})
|
||||
t.Run("ModNotPortal", func(t *testing.T) {
|
||||
ctx := NewTestContext([]string{"mod", "any", "--type", "instance", "-y"})
|
||||
ctx := NewTestContext([]string{"mod", "any", "--role", "instance", "-y"})
|
||||
err := ClusterNodesModCommand.Action(ctx)
|
||||
assert.Error(t, err)
|
||||
if ec, ok := err.(cli.ExitCoder); ok {
|
||||
|
Reference in New Issue
Block a user