mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Cluster: Rename RoleInstance to RoleApp in service/cluster/roles.go #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
func TestExitCodes_Register_ValidationAndUnauthorized(t *testing.T) {
|
||||
t.Run("MissingURL", func(t *testing.T) {
|
||||
ctx := NewTestContext([]string{"register", "--name", "pp-node-01", "--role", "instance", "--join-token", cluster.ExampleJoinToken})
|
||||
ctx := NewTestContext([]string{"register", "--name", "pp-node-01", "--role", "app", "--join-token", cluster.ExampleJoinToken})
|
||||
err := ClusterRegisterCommand.Action(ctx)
|
||||
assert.Error(t, err)
|
||||
if ec, ok := err.(cli.ExitCoder); ok {
|
||||
@@ -54,7 +54,7 @@ func TestExitCodes_Nodes_PortalOnlyMisuse(t *testing.T) {
|
||||
}
|
||||
})
|
||||
t.Run("ModNotPortal", func(t *testing.T) {
|
||||
ctx := NewTestContext([]string{"mod", "any", "--role", "instance", "-y"})
|
||||
ctx := NewTestContext([]string{"mod", "any", "--role", "app", "-y"})
|
||||
err := ClusterNodesModCommand.Action(ctx)
|
||||
assert.Error(t, err)
|
||||
if ec, ok := err.(cli.ExitCoder); ok {
|
||||
|
||||
Reference in New Issue
Block a user