Skip to content

Commit 9cf736c

Browse files
Remove SHA1 tests
1 parent 50ca4c5 commit 9cf736c

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

src/test/java/com/google/firebase/projectmanagement/FirebaseProjectManagementIT.java

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public class FirebaseProjectManagementIT {
3434
"Created By Firebase AdminSDK Java Integration Testing";
3535
private static final String TEST_APP_BUNDLE_ID = "com.firebase.adminsdk-java-integration-test";
3636
private static final String TEST_APP_PACKAGE_NAME = "com.firebase.adminsdk_java_integration_test";
37-
private static final String TEST_SHA1_CERTIFICATE = "1111111111111111111111111111111111111111";
3837
private static final String TEST_SHA256_CERTIFICATE =
3938
"AAAACCCCAAAACCCCAAAACCCCAAAACCCCAAAACCCCAAAACCCCAAAACCCCAAAACCCC";
4039
private static final Random random = new Random();
@@ -120,29 +119,6 @@ public void testAndroidCertificates() throws Exception {
120119
FirebaseProjectManagement projectManagement = FirebaseProjectManagement.getInstance();
121120
AndroidApp androidApp = projectManagement.getAndroidApp(testAndroidAppId);
122121

123-
// Use the Synchronous version of the API.
124-
{
125-
// Add SHA-1 certificate.
126-
androidApp.createShaCertificate(ShaCertificate.create(TEST_SHA1_CERTIFICATE));
127-
List<ShaCertificate> certificates = androidApp.getShaCertificates();
128-
ShaCertificate expectedCertificate = null;
129-
for (ShaCertificate certificate : certificates) {
130-
if (certificate.getShaHash().equals(TEST_SHA1_CERTIFICATE.toLowerCase())) {
131-
expectedCertificate = certificate;
132-
}
133-
}
134-
assertNotNull(expectedCertificate);
135-
assertEquals(expectedCertificate.getCertType(), ShaCertificateType.SHA_1);
136-
137-
// Delete SHA-1 certificate.
138-
androidApp.deleteShaCertificate(expectedCertificate);
139-
for (ShaCertificate certificate : androidApp.getShaCertificates()) {
140-
if (certificate.getShaHash().equals(TEST_SHA1_CERTIFICATE)) {
141-
fail("Test SHA-1 certificate is not deleted.");
142-
}
143-
}
144-
}
145-
146122
// Use the asynchronous version of the API.
147123
{
148124
// Add SHA-256 certificate.

0 commit comments

Comments
 (0)