Skip to content

Commit e26db61

Browse files
committed
Removing unnecessary tests from IamClientTest
1 parent eccf478 commit e26db61

File tree

1 file changed

+0
-85
lines changed

1 file changed

+0
-85
lines changed

iam/iam-client/src/test/java/com/salesforce/multicloudj/iam/client/IamClientTest.java

Lines changed: 0 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import static org.junit.jupiter.api.Assertions.assertNotNull;
88
import static org.junit.jupiter.api.Assertions.assertSame;
9-
import static org.junit.jupiter.api.Assertions.assertThrows;
109

1110
/**
1211
* Unit tests for IamClient builder pattern and basic functionality.
@@ -63,88 +62,4 @@ public void testIamClientBuildWithEndpoint() {
6362
assertNotNull(client);
6463
}
6564

66-
// TODO: Modify this test to verify actual createIdentity functionality
67-
// Expected behavior: Should return the unique identifier of the created identity
68-
@Test
69-
public void testCreateIdentity() {
70-
IamClient client = IamClient.builder("aws").build();
71-
72-
// Currently throws UnsupportedOperationException, will be implemented later
73-
assertThrows(UnsupportedOperationException.class, () -> {
74-
client.createIdentity("TestRole", "Test description", "123456789012", "us-west-2",
75-
java.util.Optional.empty(), java.util.Optional.empty());
76-
});
77-
}
78-
79-
// TODO: Modify this test to verify actual attachInlinePolicy functionality
80-
// Expected behavior: Should successfully attach policy without throwing exceptions
81-
@Test
82-
public void testAttachInlinePolicy() {
83-
IamClient client = IamClient.builder("aws").build();
84-
85-
// Currently throws UnsupportedOperationException, will be implemented later
86-
assertThrows(UnsupportedOperationException.class, () -> {
87-
client.attachInlinePolicy(null, "123456789012", "us-west-2", "test-resource");
88-
});
89-
}
90-
91-
// TODO: Modify this test to verify actual getInlinePolicyDetails functionality
92-
// Expected behavior: Should return the policy document details as a string
93-
@Test
94-
public void testGetInlinePolicyDetails() {
95-
IamClient client = IamClient.builder("aws").build();
96-
97-
// Currently throws UnsupportedOperationException, will be implemented later
98-
assertThrows(UnsupportedOperationException.class, () -> {
99-
client.getInlinePolicyDetails("TestRole", "TestPolicy", "123456789012", "us-west-2");
100-
});
101-
}
102-
103-
// TODO: Modify this test to verify actual getAttachedPolicies functionality
104-
// Expected behavior: Should return a list of policy names attached to the identity
105-
@Test
106-
public void testGetAttachedPolicies() {
107-
IamClient client = IamClient.builder("aws").build();
108-
109-
// Currently throws UnsupportedOperationException, will be implemented later
110-
assertThrows(UnsupportedOperationException.class, () -> {
111-
client.getAttachedPolicies("TestRole", "123456789012", "us-west-2");
112-
});
113-
}
114-
115-
// TODO: Modify this test to verify actual removePolicy functionality
116-
// Expected behavior: Should successfully remove policy without throwing exceptions
117-
@Test
118-
public void testRemovePolicy() {
119-
IamClient client = IamClient.builder("aws").build();
120-
121-
// Currently throws UnsupportedOperationException, will be implemented later
122-
assertThrows(UnsupportedOperationException.class, () -> {
123-
client.removePolicy("TestRole", "TestPolicy", "123456789012", "us-west-2");
124-
});
125-
}
126-
127-
// TODO: Modify this test to verify actual deleteIdentity functionality
128-
// Expected behavior: Should successfully delete identity without throwing exceptions
129-
@Test
130-
public void testDeleteIdentity() {
131-
IamClient client = IamClient.builder("aws").build();
132-
133-
// Currently throws UnsupportedOperationException, will be implemented later
134-
assertThrows(UnsupportedOperationException.class, () -> {
135-
client.deleteIdentity("TestRole", "123456789012", "us-west-2");
136-
});
137-
}
138-
139-
// TODO: Modify this test to verify actual getIdentity functionality
140-
// Expected behavior: Should return the unique identity identifier (ARN, email, or roleId)
141-
@Test
142-
public void testGetIdentity() {
143-
IamClient client = IamClient.builder("aws").build();
144-
145-
// Currently throws UnsupportedOperationException, will be implemented later
146-
assertThrows(UnsupportedOperationException.class, () -> {
147-
client.getIdentity("TestRole", "123456789012", "us-west-2");
148-
});
149-
}
15065
}

0 commit comments

Comments
 (0)