Skip to content

Commit e8c61f2

Browse files
committed
Add run-task-tags option in existing test
1 parent 39f7187 commit e8c61f2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,9 @@ describe('Deploy to ECS', () => {
11731173
.mockReturnValueOnce('EC2') // run-task-launch-type
11741174
.mockReturnValueOnce('a,b') // run-task-subnet-ids
11751175
.mockReturnValueOnce('c,d') // run-task-security-group-ids
1176-
.mockReturnValueOnce(JSON.stringify([{ name: 'someapp', command: 'somecmd' }])); // run-task-container-overrides
1176+
.mockReturnValueOnce(JSON.stringify([{ name: 'someapp', command: 'somecmd' }])) // run-task-container-overrides
1177+
.mockReturnValueOnce('') // run-task-assign-public-IP
1178+
.mockReturnValueOnce('[{"key": "project", "value": "myproject"}]'); // run-task-tags
11771179

11781180
await run();
11791181
expect(core.setFailed).toHaveBeenCalledTimes(0);
@@ -1188,7 +1190,7 @@ describe('Deploy to ECS', () => {
11881190
overrides: { containerOverrides: [{ name: 'someapp', command: 'somecmd' }] },
11891191
networkConfiguration: { awsvpcConfiguration: { subnets: ['a', 'b'], securityGroups: ['c', 'd'], assignPublicIp: "DISABLED" } },
11901192
enableECSManagedTags: false,
1191-
tags: []
1193+
tags: [{"key": "project", "value": "myproject"}]
11921194
});
11931195
expect(core.setOutput).toHaveBeenNthCalledWith(2, 'run-task-arn', ["arn:aws:ecs:fake-region:account_id:task/arn"]);
11941196
});

0 commit comments

Comments
 (0)