Skip to content

Commit ccd4167

Browse files
author
Satej Sawant
committed
Revert "Fix unit tests to match feat: Set url to deployments instead of events (#809)"
This reverts commit 57f0c3a.
1 parent 57f0c3a commit ccd4167

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ describe('Deploy to ECS', () => {
191191
volumeConfigurations: []
192192
});
193193
expect(waitUntilServicesStable).toHaveBeenCalledTimes(0);
194-
expect(core.info).toBeCalledWith("Deployment started. Watch this deployment's progress in the Amazon ECS console: https://fake-region.console.aws.amazon.com/ecs/v2/clusters/cluster-789/services/service-456/deployments?region=fake-region");
194+
expect(core.info).toBeCalledWith("Deployment started. Watch this deployment's progress in the Amazon ECS console: https://fake-region.console.aws.amazon.com/ecs/v2/clusters/cluster-789/services/service-456/events?region=fake-region");
195195
});
196196

197197
test('registers the task definition contents and updates the service if deployment controller type is ECS', async () => {
@@ -225,15 +225,15 @@ describe('Deploy to ECS', () => {
225225
volumeConfigurations: []
226226
});
227227
expect(waitUntilServicesStable).toHaveBeenCalledTimes(0);
228-
expect(core.info).toBeCalledWith("Deployment started. Watch this deployment's progress in the Amazon ECS console: https://fake-region.console.aws.amazon.com/ecs/v2/clusters/cluster-789/services/service-456/deployments?region=fake-region");
228+
expect(core.info).toBeCalledWith("Deployment started. Watch this deployment's progress in the Amazon ECS console: https://fake-region.console.aws.amazon.com/ecs/v2/clusters/cluster-789/services/service-456/events?region=fake-region");
229229
});
230230

231231
test('prints Chinese console domain for cn regions', async () => {
232232
const originalRegion = config.region;
233233
config.region = () => Promise.resolve('cn-fake-region');
234234
await run();
235235

236-
expect(core.info).toBeCalledWith("Deployment started. Watch this deployment's progress in the Amazon ECS console: https://cn-fake-region.console.amazonaws.cn/ecs/v2/clusters/cluster-789/services/service-456/deployments?region=cn-fake-region");
236+
expect(core.info).toBeCalledWith("Deployment started. Watch this deployment's progress in the Amazon ECS console: https://cn-fake-region.console.amazonaws.cn/ecs/v2/clusters/cluster-789/services/service-456/events?region=cn-fake-region");
237237

238238
// reset
239239
config.region = originalRegion;

0 commit comments

Comments
 (0)