Skip to content

Commit 48d3054

Browse files
Resolve "Fix empty id in test"
1 parent 3dcd977 commit 48d3054

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

test/capability/ssh/ssh_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ func TestSshConnection(t *testing.T) {
4040
}
4141

4242
var executionId, _ = uuid.Parse("6ba7b810-9dad-11d1-80b4-00c04fd430c8")
43-
var playbookId, _ = uuid.Parse("d09351a2-a075-40c8-8054-0b7c423db83f")
44-
var stepId, _ = uuid.Parse("81eff59f-d084-4324-9e0a-59e353dbd28f")
45-
metadata := execution.Metadata{ExecutionId: executionId, PlaybookId: playbookId.String(), StepId: stepId.String()}
43+
var playbookId = "playbook--d09351a2-a075-40c8-8054-0b7c423db83f"
44+
var stepId = "step--81eff59f-d084-4324-9e0a-59e353dbd28f"
45+
var metadata = execution.Metadata{ExecutionId: executionId, PlaybookId: playbookId, StepId: stepId}
4646
results, err := sshCapability.Execute(metadata,
4747
expectedCommand,
4848
expectedAuthenticationInformation,

test/executor/executor_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ func TestExecuteStep(t *testing.T) {
2222

2323
executerObject := executer.New(capabilities)
2424
var executionId, _ = uuid.Parse("6ba7b810-9dad-11d1-80b4-00c04fd430c8")
25-
var playbookId, _ = uuid.Parse("playbook--d09351a2-a075-40c8-8054-0b7c423db83f")
26-
var stepId, _ = uuid.Parse("step--81eff59f-d084-4324-9e0a-59e353dbd28f")
25+
var playbookId = "playbook--d09351a2-a075-40c8-8054-0b7c423db83f"
26+
var stepId = "step--81eff59f-d084-4324-9e0a-59e353dbd28f"
2727

28-
var metadata = execution.Metadata{ExecutionId: executionId, PlaybookId: playbookId.String(), StepId: stepId.String()}
28+
var metadata = execution.Metadata{ExecutionId: executionId, PlaybookId: playbookId, StepId: stepId}
2929

3030
expectedCommand := cacao.Command{
3131
Type: "ssh",
@@ -80,10 +80,10 @@ func TestNonExistingCapabilityStep(t *testing.T) {
8080

8181
executerObject := executer.New(capabilities)
8282
var executionId, _ = uuid.Parse("6ba7b810-9dad-11d1-80b4-00c04fd430c8")
83-
var playbookId, _ = uuid.Parse("playbook--d09351a2-a075-40c8-8054-0b7c423db83f")
84-
var stepId, _ = uuid.Parse("step--81eff59f-d084-4324-9e0a-59e353dbd28f")
83+
var playbookId = "playbook--d09351a2-a075-40c8-8054-0b7c423db83f"
84+
var stepId = "step--81eff59f-d084-4324-9e0a-59e353dbd28f"
8585

86-
var metadata = execution.Metadata{ExecutionId: executionId, PlaybookId: playbookId.String(), StepId: stepId.String()}
86+
var metadata = execution.Metadata{ExecutionId: executionId, PlaybookId: playbookId, StepId: stepId}
8787

8888
expectedCommand := cacao.Command{
8989
Type: "ssh",

0 commit comments

Comments
 (0)