Skip to content

Commit

Permalink
add test for AWS::StepFunctions::StateMachine
Browse files Browse the repository at this point in the history
  • Loading branch information
fossamagna committed Jul 8, 2024
1 parent 133fb6a commit b841452
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/console-url-builder/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,18 @@ describe("Console URL Builder Test Suite", () => {
"https://ap-northeast-1.console.aws.amazon.com/dynamodbv2/home?region=ap-northeast-1#table?name=Todo-1234567890-NOE&tab=overview"
);
});

test("AWS::StepFunctions::StateMachine", () => {
const url = buildUrl({
ResourceType: "AWS::StepFunctions::StateMachine",
StackId:
"arn:aws:cloudformation:ap-northeast-1:123456789012:stack/myteststack/abc",
PhysicalResourceId:
"arn:aws:states:ap-northeast-1:123456789012:stateMachine:AmplifyTableWaiterStateMachine01234567-aBcDeFgHiJkLmNoPqRsT",
});
assert.strictEqual(
url,
"https://ap-northeast-1.console.aws.amazon.com/states/home?region=ap-northeast-1#/statemachines/view/arn:aws:states:ap-northeast-1:123456789012:stateMachine:AmplifyTableWaiterStateMachine01234567-aBcDeFgHiJkLmNoPqRsT"
);
});
});

0 comments on commit b841452

Please sign in to comment.