Skip to content

Commit e3be047

Browse files
committed
scripts
1 parent 420c352 commit e3be047

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

provisioner/terraform/resources_test.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -331,10 +331,12 @@ func TestConvertResources(t *testing.T) {
331331
{
332332
DisplayName: "Foobar Script 1",
333333
Script: "echo foobar 1",
334+
RunOnStart: true,
334335
},
335336
{
336337
DisplayName: "Foobar Script 2",
337338
Script: "echo foobar 2",
339+
RunOnStart: true,
338340
},
339341
},
340342
Auth: &proto.Agent_Token{},
@@ -352,6 +354,7 @@ func TestConvertResources(t *testing.T) {
352354
{
353355
DisplayName: "Foobar Script 3",
354356
Script: "echo foobar 3",
357+
RunOnStart: true,
355358
},
356359
},
357360
Auth: &proto.Agent_Token{},
@@ -780,12 +783,6 @@ func TestConvertResources(t *testing.T) {
780783
if agent.GetInstanceId() != "" {
781784
agent.Auth = &proto.Agent_InstanceId{}
782785
}
783-
784-
for _, script := range agent.Scripts {
785-
// FIXME `RunOnStart`` is set only in "Provision", so we need to clear it
786-
// to simplify table tests. Current tests do not verify `RunOnStart` properties.
787-
script.RunOnStart = false
788-
}
789786
}
790787
}
791788
// Convert expectedNoMetadata and resources into a

0 commit comments

Comments
 (0)