11import { Template } from "aws-cdk-lib/assertions" ;
22import { simpleGuStackForTesting } from "../../../utils/test" ;
3- import { GuDeveloperPolicy } from "./developer -policy" ;
3+ import { GuWorkloadPolicy } from "./workload -policy" ;
44
55describe ( "GuDeveloperPolicy" , ( ) => {
66 test ( "if a single action is provided, the resulting Developer Policy resource's statement will have a single item" , ( ) => {
77 const stack = simpleGuStackForTesting ( ) ;
8- new GuDeveloperPolicy ( stack , "AllowS3GetObject" , {
8+ new GuWorkloadPolicy ( stack , "AllowS3GetObject" , {
99 allow : [
1010 {
1111 actions : [ "s3:GetObject" ] ,
@@ -16,7 +16,7 @@ describe("GuDeveloperPolicy", () => {
1616 } ) ;
1717
1818 Template . fromStack ( stack ) . hasResourceProperties ( "AWS::IAM::ManagedPolicy" , {
19- Path : "/developer -policy/test123/" ,
19+ Path : "/workload -policy/test123/" ,
2020 PolicyDocument : {
2121 Version : "2012-10-17" ,
2222 Statement : [
@@ -31,7 +31,7 @@ describe("GuDeveloperPolicy", () => {
3131 } ) ;
3232 test ( "if multiple actions are provided, the resulting Managed Policy resource's action will container all items" , ( ) => {
3333 const stack = simpleGuStackForTesting ( ) ;
34- new GuDeveloperPolicy ( stack , "AllowS3GetObject" , {
34+ new GuWorkloadPolicy ( stack , "AllowS3GetObject" , {
3535 allow : [
3636 {
3737 actions : [ "s3:GetObject" ] ,
@@ -54,7 +54,7 @@ describe("GuDeveloperPolicy", () => {
5454
5555 Template . fromStack ( stack ) . hasResourceProperties ( "AWS::IAM::ManagedPolicy" , {
5656 Description : "testtesttest" ,
57- Path : "/developer -policy/test321/" ,
57+ Path : "/workload -policy/test321/" ,
5858 PolicyDocument : {
5959 Version : "2012-10-17" ,
6060 Statement : [
0 commit comments