Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions temporalcli/commands.operator_nexus.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (c *TemporalOperatorNexusEndpointCreateCommand) run(cctx *CommandContext, _
return err
}
if target == nil {
return fmt.Errorf("either --target-namespace and --target-task queue or --target-url are required")
return fmt.Errorf("either --target-namespace and --target-task-queue or --target-url are required")
}

cl, err := c.Parent.Parent.Parent.ClientOptions.dialClient(cctx)
Expand Down Expand Up @@ -253,7 +253,7 @@ func (c *TemporalOperatorNexusEndpointCommand) endpointTargetFromArgs(namespace,
},
}, nil
}
return nil, fmt.Errorf("either --target-namespace and --target-task queue or --target-url are required")
return nil, fmt.Errorf("either --target-namespace and --target-task-queue or --target-url are required")
}

func (c *TemporalOperatorNexusEndpointCommand) getEndpointByName(ctx context.Context, cl client.Client, name string) (*nexuspb.Endpoint, error) {
Expand Down
4 changes: 2 additions & 2 deletions temporalcli/commands.operator_nexus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (s *SharedServerSuite) TestCreateNexusEndpoint_Target() {

s.T().Run("NoTarget_FailsValidation", func(t *testing.T) {
res := s.Execute("operator", "nexus", "endpoint", "create", "--name", validEndpointName(t))
require.ErrorContains(t, res.Err, "either --target-namespace and --target-task queue or --target-url are required")
require.ErrorContains(t, res.Err, "either --target-namespace and --target-task-queue or --target-url are required")
})

s.T().Run("NoTaskQueue_FailsValidation", func(t *testing.T) {
Expand All @@ -45,7 +45,7 @@ func (s *SharedServerSuite) TestCreateNexusEndpoint_Target() {
"--name", validEndpointName(t),
"--target-task-queue", "tq",
)
require.ErrorContains(t, res.Err, "either --target-namespace and --target-task queue or --target-url are required")
require.ErrorContains(t, res.Err, "either --target-namespace and --target-task-queue or --target-url are required")
})

s.T().Run("WorkerTarget_Accepted", func(t *testing.T) {
Expand Down