-
Notifications
You must be signed in to change notification settings - Fork 2.9k
fix: sets ServiceAccountTests in IAM package to Ignore #10042
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -34,6 +34,7 @@ | |||||||||||
import org.junit.Before; | ||||||||||||
import org.junit.BeforeClass; | ||||||||||||
import org.junit.FixMethodOrder; | ||||||||||||
import org.junit.Ignore; | ||||||||||||
import org.junit.Rule; | ||||||||||||
import org.junit.Test; | ||||||||||||
import org.junit.runner.RunWith; | ||||||||||||
|
@@ -77,6 +78,7 @@ public void tearDown() { | |||||||||||
bout.reset(); | ||||||||||||
} | ||||||||||||
|
||||||||||||
@Ignore("issue #10041") | ||||||||||||
@Test | ||||||||||||
public void stage1_testServiceAccountCreate() throws IOException { | ||||||||||||
ServiceAccount serviceAccount = CreateServiceAccount | ||||||||||||
|
@@ -88,6 +90,7 @@ public void stage1_testServiceAccountCreate() throws IOException { | |||||||||||
|
||||||||||||
} | ||||||||||||
|
||||||||||||
@Ignore("issue #10041") | ||||||||||||
@Test | ||||||||||||
public void stage1_testServiceAccountsList() throws IOException { | ||||||||||||
Comment on lines
+93
to
95
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider adding a brief comment explaining why these tests are being ignored, in addition to the issue number. This provides more context for future developers who might encounter this code. For example, you could state that the tests are temporarily disabled due to flakiness or incorrect behavior and will be re-enabled after refactoring.
Suggested change
|
||||||||||||
IAMClient.ListServiceAccountsPagedResponse response = | ||||||||||||
|
@@ -96,6 +99,7 @@ public void stage1_testServiceAccountsList() throws IOException { | |||||||||||
assertTrue(response.iterateAll().iterator().hasNext()); | ||||||||||||
} | ||||||||||||
|
||||||||||||
@Ignore("issue #10041") | ||||||||||||
@Test | ||||||||||||
public void stage2_testServiceAccountRename() throws IOException { | ||||||||||||
Comment on lines
+102
to
104
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider adding a brief comment explaining why these tests are being ignored, in addition to the issue number. This provides more context for future developers who might encounter this code. For example, you could state that the tests are temporarily disabled due to flakiness or incorrect behavior and will be re-enabled after refactoring.
Suggested change
|
||||||||||||
String renameTo = "your-new-display-name"; | ||||||||||||
|
@@ -108,6 +112,7 @@ public void stage2_testServiceAccountRename() throws IOException { | |||||||||||
assertThat(renameTo, containsString(serviceAccount.getDisplayName())); | ||||||||||||
} | ||||||||||||
|
||||||||||||
@Ignore("issue #10041") | ||||||||||||
@Test | ||||||||||||
public void stage2_testServiceAccountGet() throws IOException { | ||||||||||||
Comment on lines
+115
to
117
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider adding a brief comment explaining why these tests are being ignored, in addition to the issue number. This provides more context for future developers who might encounter this code. For example, you could state that the tests are temporarily disabled due to flakiness or incorrect behavior and will be re-enabled after refactoring.
Suggested change
|
||||||||||||
ServiceAccount account = GetServiceAccount.getServiceAccount(PROJECT_ID, SERVICE_ACCOUNT); | ||||||||||||
|
@@ -116,6 +121,7 @@ public void stage2_testServiceAccountGet() throws IOException { | |||||||||||
assertEquals(PROJECT_ID, account.getProjectId()); | ||||||||||||
} | ||||||||||||
|
||||||||||||
@Ignore("issue #10041") | ||||||||||||
@Test | ||||||||||||
public void stage2_testServiceAccountKeyCreate() throws IOException { | ||||||||||||
Comment on lines
+124
to
126
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider adding a brief comment explaining why these tests are being ignored, in addition to the issue number. This provides more context for future developers who might encounter this code. For example, you could state that the tests are temporarily disabled due to flakiness or incorrect behavior and will be re-enabled after refactoring.
Suggested change
|
||||||||||||
ServiceAccountKey key = CreateServiceAccountKey.createKey(PROJECT_ID, SERVICE_ACCOUNT); | ||||||||||||
|
@@ -126,6 +132,7 @@ public void stage2_testServiceAccountKeyCreate() throws IOException { | |||||||||||
assertNotNull(SERVICE_ACCOUNT_KEY_ID); | ||||||||||||
} | ||||||||||||
|
||||||||||||
@Ignore("issue #10041") | ||||||||||||
@Test | ||||||||||||
public void stage2_testServiceAccountKeyGet() throws IOException { | ||||||||||||
Comment on lines
+135
to
137
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider adding a brief comment explaining why these tests are being ignored, in addition to the issue number. This provides more context for future developers who might encounter this code. For example, you could state that the tests are temporarily disabled due to flakiness or incorrect behavior and will be re-enabled after refactoring.
Suggested change
|
||||||||||||
ServiceAccountKey key = GetServiceAccountKey | ||||||||||||
|
@@ -136,6 +143,7 @@ public void stage2_testServiceAccountKeyGet() throws IOException { | |||||||||||
assertTrue(key.getName().contains(SERVICE_ACCOUNT)); | ||||||||||||
} | ||||||||||||
|
||||||||||||
@Ignore("issue #10041") | ||||||||||||
@Test | ||||||||||||
public void stage2_testServiceAccountKeysList() throws IOException { | ||||||||||||
Comment on lines
+146
to
148
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider adding a brief comment explaining why these tests are being ignored, in addition to the issue number. This provides more context for future developers who might encounter this code. For example, you could state that the tests are temporarily disabled due to flakiness or incorrect behavior and will be re-enabled after refactoring.
Suggested change
|
||||||||||||
List<ServiceAccountKey> keys = ListServiceAccountKeys.listKeys(PROJECT_ID, SERVICE_ACCOUNT); | ||||||||||||
|
@@ -146,6 +154,7 @@ public void stage2_testServiceAccountKeysList() throws IOException { | |||||||||||
.anyMatch(keyName -> keyName.contains(SERVICE_ACCOUNT_KEY_ID))); | ||||||||||||
} | ||||||||||||
|
||||||||||||
@Ignore("issue #10041") | ||||||||||||
@Test | ||||||||||||
public void stage2_testServiceAccountKeyDisable() throws IOException { | ||||||||||||
Comment on lines
+157
to
159
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider adding a brief comment explaining why these tests are being ignored, in addition to the issue number. This provides more context for future developers who might encounter this code. For example, you could state that the tests are temporarily disabled due to flakiness or incorrect behavior and will be re-enabled after refactoring.
Suggested change
|
||||||||||||
DisableServiceAccountKey | ||||||||||||
|
@@ -157,6 +166,7 @@ public void stage2_testServiceAccountKeyDisable() throws IOException { | |||||||||||
assertTrue(key.getDisabled()); | ||||||||||||
} | ||||||||||||
|
||||||||||||
@Ignore("issue #10041") | ||||||||||||
@Test | ||||||||||||
public void stage2_testServiceAccountKeyEnable() throws IOException { | ||||||||||||
Comment on lines
+169
to
171
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider adding a brief comment explaining why these tests are being ignored, in addition to the issue number. This provides more context for future developers who might encounter this code. For example, you could state that the tests are temporarily disabled due to flakiness or incorrect behavior and will be re-enabled after refactoring.
Suggested change
|
||||||||||||
EnableServiceAccountKey | ||||||||||||
|
@@ -168,6 +178,7 @@ public void stage2_testServiceAccountKeyEnable() throws IOException { | |||||||||||
assertFalse(key.getDisabled()); | ||||||||||||
} | ||||||||||||
|
||||||||||||
@Ignore("issue #10041") | ||||||||||||
@Test | ||||||||||||
public void stage3_testServiceAccountKeyDelete() throws IOException { | ||||||||||||
Comment on lines
+181
to
183
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider adding a brief comment explaining why these tests are being ignored, in addition to the issue number. This provides more context for future developers who might encounter this code. For example, you could state that the tests are temporarily disabled due to flakiness or incorrect behavior and will be re-enabled after refactoring.
Suggested change
|
||||||||||||
DeleteServiceAccountKey.deleteKey(PROJECT_ID, SERVICE_ACCOUNT, SERVICE_ACCOUNT_KEY_ID); | ||||||||||||
|
@@ -180,6 +191,7 @@ public void stage3_testServiceAccountKeyDelete() throws IOException { | |||||||||||
assertThat(got, !containsString(SERVICE_ACCOUNT_KEY_ID).matches(got)); | ||||||||||||
} | ||||||||||||
|
||||||||||||
@Ignore("issue #10041") | ||||||||||||
@Test | ||||||||||||
public void stage4_testDisableServiceAccount() throws IOException { | ||||||||||||
Comment on lines
+194
to
196
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider adding a brief comment explaining why these tests are being ignored, in addition to the issue number. This provides more context for future developers who might encounter this code. For example, you could state that the tests are temporarily disabled due to flakiness or incorrect behavior and will be re-enabled after refactoring.
Suggested change
|
||||||||||||
DisableServiceAccount.disableServiceAccount(PROJECT_ID, SERVICE_ACCOUNT); | ||||||||||||
|
@@ -191,6 +203,7 @@ public void stage4_testDisableServiceAccount() throws IOException { | |||||||||||
assertTrue(SERVICE_ACCOUNT, serviceAccount.getDisabled()); | ||||||||||||
} | ||||||||||||
|
||||||||||||
@Ignore("issue #10041") | ||||||||||||
@Test | ||||||||||||
public void stage5_testEnableServiceAccount() throws IOException { | ||||||||||||
Comment on lines
+206
to
208
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider adding a brief comment explaining why these tests are being ignored, in addition to the issue number. This provides more context for future developers who might encounter this code. For example, you could state that the tests are temporarily disabled due to flakiness or incorrect behavior and will be re-enabled after refactoring.
Suggested change
|
||||||||||||
EnableServiceAccount.enableServiceAccount(PROJECT_ID, SERVICE_ACCOUNT); | ||||||||||||
|
@@ -202,6 +215,7 @@ public void stage5_testEnableServiceAccount() throws IOException { | |||||||||||
assertFalse(SERVICE_ACCOUNT, serviceAccount.getDisabled()); | ||||||||||||
} | ||||||||||||
|
||||||||||||
@Ignore("issue #10041") | ||||||||||||
@Test | ||||||||||||
public void stage6_testServiceAccountDelete() throws IOException { | ||||||||||||
Comment on lines
+218
to
220
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider adding a brief comment explaining why these tests are being ignored, in addition to the issue number. This provides more context for future developers who might encounter this code. For example, you could state that the tests are temporarily disabled due to flakiness or incorrect behavior and will be re-enabled after refactoring.
Suggested change
|
||||||||||||
DeleteServiceAccount.deleteServiceAccount(PROJECT_ID, SERVICE_ACCOUNT); | ||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding a brief comment explaining why these tests are being ignored, in addition to the issue number. This provides more context for future developers who might encounter this code. For example, you could state that the tests are temporarily disabled due to flakiness or incorrect behavior and will be re-enabled after refactoring.