@@ -57,7 +57,7 @@ func FakeSideProjectProviders(ctx context.Context, tt *TestTools, project *accou
5757// CreateFakeIAMManager creates a temporary project with a temporary IAM application and policy manager.
5858//
5959// The returned function is a cleanup function that should be called when to delete the project.
60- func CreateFakeIAMManager (tt * TestTools ) (* account.Project , * iam.APIKey , FakeSideProjectTerminateFunc , error ) {
60+ func CreateFakeIAMManager (tt * TestTools ) (* account.Project , * iam.APIKey , * iam. Policy , FakeSideProjectTerminateFunc , error ) {
6161 terminateFunctions := []FakeSideProjectTerminateFunc {}
6262 terminate := func () error {
6363 for i := len (terminateFunctions ) - 1 ; i >= 0 ; i -- {
@@ -81,10 +81,10 @@ func CreateFakeIAMManager(tt *TestTools) (*account.Project, *iam.APIKey, FakeSid
8181 })
8282 if err != nil {
8383 if err := terminate (); err != nil {
84- return nil , nil , nil , err
84+ return nil , nil , nil , nil , err
8585 }
8686
87- return nil , nil , nil , err
87+ return nil , nil , nil , nil , err
8888 }
8989
9090 terminateFunctions = append (terminateFunctions , func () error {
@@ -100,10 +100,10 @@ func CreateFakeIAMManager(tt *TestTools) (*account.Project, *iam.APIKey, FakeSid
100100 })
101101 if err != nil {
102102 if err := terminate (); err != nil {
103- return nil , nil , nil , err
103+ return nil , nil , nil , nil , err
104104 }
105105
106- return nil , nil , nil , err
106+ return nil , nil , nil , nil , err
107107 }
108108
109109 terminateFunctions = append (terminateFunctions , func () error {
@@ -124,10 +124,10 @@ func CreateFakeIAMManager(tt *TestTools) (*account.Project, *iam.APIKey, FakeSid
124124 })
125125 if err != nil {
126126 if err := terminate (); err != nil {
127- return nil , nil , nil , err
127+ return nil , nil , nil , nil , err
128128 }
129129
130- return nil , nil , nil , err
130+ return nil , nil , nil , nil , err
131131 }
132132
133133 terminateFunctions = append (terminateFunctions , func () error {
@@ -142,10 +142,10 @@ func CreateFakeIAMManager(tt *TestTools) (*account.Project, *iam.APIKey, FakeSid
142142 })
143143 if err != nil {
144144 if err := terminate (); err != nil {
145- return nil , nil , nil , err
145+ return nil , nil , nil , nil , err
146146 }
147147
148- return nil , nil , nil , err
148+ return nil , nil , nil , nil , err
149149 }
150150
151151 terminateFunctions = append (terminateFunctions , func () error {
@@ -154,7 +154,7 @@ func CreateFakeIAMManager(tt *TestTools) (*account.Project, *iam.APIKey, FakeSid
154154 })
155155 })
156156
157- return project , iamAPIKey , terminate , nil
157+ return project , iamAPIKey , iamPolicy , terminate , nil
158158}
159159
160160type FakeSideProjectTerminateFunc func () error
0 commit comments