Cluster: Rename RoleInstance to RoleApp in service/cluster/roles.go #98

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-10-31 16:46:42 +01:00
parent ef1f0f3bb2
commit 755ebe0aee
34 changed files with 165 additions and 157 deletions

View File

@@ -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 {