Skip to content

Commit 1163b80

Browse files
committed
fix: sets ServiceAccountTests in IAM package to Ignore
1 parent aca4795 commit 1163b80

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

iam/snippets/src/test/java/ServiceAccountTests.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import org.junit.Before;
3535
import org.junit.BeforeClass;
3636
import org.junit.FixMethodOrder;
37+
import org.junit.Ignore;
3738
import org.junit.Rule;
3839
import org.junit.Test;
3940
import org.junit.runner.RunWith;
@@ -77,6 +78,7 @@ public void tearDown() {
7778
bout.reset();
7879
}
7980

81+
@Ignore("issue #10041")
8082
@Test
8183
public void stage1_testServiceAccountCreate() throws IOException {
8284
ServiceAccount serviceAccount = CreateServiceAccount
@@ -88,6 +90,7 @@ public void stage1_testServiceAccountCreate() throws IOException {
8890

8991
}
9092

93+
@Ignore("issue #10041")
9194
@Test
9295
public void stage1_testServiceAccountsList() throws IOException {
9396
IAMClient.ListServiceAccountsPagedResponse response =
@@ -96,6 +99,7 @@ public void stage1_testServiceAccountsList() throws IOException {
9699
assertTrue(response.iterateAll().iterator().hasNext());
97100
}
98101

102+
@Ignore("issue #10041")
99103
@Test
100104
public void stage2_testServiceAccountRename() throws IOException {
101105
String renameTo = "your-new-display-name";
@@ -108,6 +112,7 @@ public void stage2_testServiceAccountRename() throws IOException {
108112
assertThat(renameTo, containsString(serviceAccount.getDisplayName()));
109113
}
110114

115+
@Ignore("issue #10041")
111116
@Test
112117
public void stage2_testServiceAccountGet() throws IOException {
113118
ServiceAccount account = GetServiceAccount.getServiceAccount(PROJECT_ID, SERVICE_ACCOUNT);
@@ -116,6 +121,7 @@ public void stage2_testServiceAccountGet() throws IOException {
116121
assertEquals(PROJECT_ID, account.getProjectId());
117122
}
118123

124+
@Ignore("issue #10041")
119125
@Test
120126
public void stage2_testServiceAccountKeyCreate() throws IOException {
121127
ServiceAccountKey key = CreateServiceAccountKey.createKey(PROJECT_ID, SERVICE_ACCOUNT);
@@ -126,6 +132,7 @@ public void stage2_testServiceAccountKeyCreate() throws IOException {
126132
assertNotNull(SERVICE_ACCOUNT_KEY_ID);
127133
}
128134

135+
@Ignore("issue #10041")
129136
@Test
130137
public void stage2_testServiceAccountKeyGet() throws IOException {
131138
ServiceAccountKey key = GetServiceAccountKey
@@ -136,6 +143,7 @@ public void stage2_testServiceAccountKeyGet() throws IOException {
136143
assertTrue(key.getName().contains(SERVICE_ACCOUNT));
137144
}
138145

146+
@Ignore("issue #10041")
139147
@Test
140148
public void stage2_testServiceAccountKeysList() throws IOException {
141149
List<ServiceAccountKey> keys = ListServiceAccountKeys.listKeys(PROJECT_ID, SERVICE_ACCOUNT);
@@ -146,6 +154,7 @@ public void stage2_testServiceAccountKeysList() throws IOException {
146154
.anyMatch(keyName -> keyName.contains(SERVICE_ACCOUNT_KEY_ID)));
147155
}
148156

157+
@Ignore("issue #10041")
149158
@Test
150159
public void stage2_testServiceAccountKeyDisable() throws IOException {
151160
DisableServiceAccountKey
@@ -157,6 +166,7 @@ public void stage2_testServiceAccountKeyDisable() throws IOException {
157166
assertTrue(key.getDisabled());
158167
}
159168

169+
@Ignore("issue #10041")
160170
@Test
161171
public void stage2_testServiceAccountKeyEnable() throws IOException {
162172
EnableServiceAccountKey
@@ -168,6 +178,7 @@ public void stage2_testServiceAccountKeyEnable() throws IOException {
168178
assertFalse(key.getDisabled());
169179
}
170180

181+
@Ignore("issue #10041")
171182
@Test
172183
public void stage3_testServiceAccountKeyDelete() throws IOException {
173184
DeleteServiceAccountKey.deleteKey(PROJECT_ID, SERVICE_ACCOUNT, SERVICE_ACCOUNT_KEY_ID);
@@ -180,6 +191,7 @@ public void stage3_testServiceAccountKeyDelete() throws IOException {
180191
assertThat(got, !containsString(SERVICE_ACCOUNT_KEY_ID).matches(got));
181192
}
182193

194+
@Ignore("issue #10041")
183195
@Test
184196
public void stage4_testDisableServiceAccount() throws IOException {
185197
DisableServiceAccount.disableServiceAccount(PROJECT_ID, SERVICE_ACCOUNT);
@@ -191,6 +203,7 @@ public void stage4_testDisableServiceAccount() throws IOException {
191203
assertTrue(SERVICE_ACCOUNT, serviceAccount.getDisabled());
192204
}
193205

206+
@Ignore("issue #10041")
194207
@Test
195208
public void stage5_testEnableServiceAccount() throws IOException {
196209
EnableServiceAccount.enableServiceAccount(PROJECT_ID, SERVICE_ACCOUNT);
@@ -202,6 +215,7 @@ public void stage5_testEnableServiceAccount() throws IOException {
202215
assertFalse(SERVICE_ACCOUNT, serviceAccount.getDisabled());
203216
}
204217

218+
@Ignore("issue #10041")
205219
@Test
206220
public void stage6_testServiceAccountDelete() throws IOException {
207221
DeleteServiceAccount.deleteServiceAccount(PROJECT_ID, SERVICE_ACCOUNT);

0 commit comments

Comments
 (0)