Skip to content

Commit acceaa3

Browse files
committed
update tests
1 parent 2caffcf commit acceaa3

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,17 @@ describe("iamRole", () => {
4949

5050
it("getIamRoleName", async () => {
5151
const role = new BDIamRole(roleParams);
52-
expect(role.iamRoleName).toEqual("bd-use1-notmpl-aac5c1d9a0a94855b8960f3998b2f16b");
52+
expect(role.iamRoleName).toEqual("bd-use1-notmpl-aac5c1d9a0a94855b8960f3998b2f16b-s3");
5353
});
5454

5555
it("getIamRoleName with own prefix", async () => {
5656
const role = new BDIamRole({ ...roleParams, roleNamePrefix: "my" });
57-
expect(role.iamRoleName).toEqual("my-use1-notmpl-aac5c1d9a0a94855b8960f3998b2f16b");
57+
expect(role.iamRoleName).toEqual("my-use1-notmpl-aac5c1d9a0a94855b8960f3998b2f16b-s3");
5858
});
5959

6060
it("getIamRoleName with own path and prefix", async () => {
6161
const role = new BDIamRole({ ...roleParams, roleNamePrefix: "my", path: "/bd-service/demo/" });
62-
expect(role.iamRoleName).toEqual("my-use1-notmpl-aac5c1d9a0a94855b8960f3998b2f16b");
62+
expect(role.iamRoleName).toEqual("my-use1-notmpl-aac5c1d9a0a94855b8960f3998b2f16b-s3");
6363
});
6464

6565
it("getRole", async () => {
@@ -74,8 +74,7 @@ describe("iamRole", () => {
7474
Policies: [
7575
{
7676
PolicyName: "bd-ue1-boilingdata-demo-isecurefi-dev-and-all-th-acff8dae429911f",
77-
Arn:
78-
"arn:aws:iam::123123123123:policy/" + "boilingdata/bd-use1-notmpl-aac5c1d9a0a94855b8960f3998b2f16b-policy",
77+
Arn: "arn:aws:iam::123123123123:policy/" + "boilingdata/bd-use1-notmpl-aac5c1d9a0a94855b8960f3998b2f16b-s3",
7978
Path: "/boilingdata/",
8079
DefaultVersionId: "v123",
8180
AttachmentCount: 1,
@@ -113,8 +112,7 @@ describe("iamRole", () => {
113112
Policies: [
114113
{
115114
PolicyName: "bd-ue1-boilingdata-demo-isecurefi-dev-and-all-th-acff8dae429911f",
116-
Arn:
117-
"arn:aws:iam::123123123123:policy/" + "boilingdata/bd-use1-notmpl-aac5c1d9a0a94855b8960f3998b2f16b-policy",
115+
Arn: "arn:aws:iam::123123123123:policy/" + "boilingdata/bd-use1-notmpl-aac5c1d9a0a94855b8960f3998b2f16b-s3",
118116
Path: "/boilingdata/",
119117
DefaultVersionId: "v100",
120118
AttachmentCount: 1,

0 commit comments

Comments
 (0)