Skip to content

Commit 6b0ad6e

Browse files
Comment out SHA1 tests until a fix is ready
1 parent 9cf736c commit 6b0ad6e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ 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";
3738
private static final String TEST_SHA256_CERTIFICATE =
3839
"AAAACCCCAAAACCCCAAAACCCCAAAACCCCAAAACCCCAAAACCCCAAAACCCCAAAACCCC";
3940
private static final Random random = new Random();
@@ -118,6 +119,30 @@ public void testAndroidSetDisplayNameAndGetMetadata() throws Exception {
118119
public void testAndroidCertificates() throws Exception {
119120
FirebaseProjectManagement projectManagement = FirebaseProjectManagement.getInstance();
120121
AndroidApp androidApp = projectManagement.getAndroidApp(testAndroidAppId);
122+
123+
/*
124+
// Use the Synchronous version of the API.
125+
{
126+
// Add SHA-1 certificate.
127+
androidApp.createShaCertificate(ShaCertificate.create(TEST_SHA1_CERTIFICATE));
128+
List<ShaCertificate> certificates = androidApp.getShaCertificates();
129+
ShaCertificate expectedCertificate = null;
130+
for (ShaCertificate certificate : certificates) {
131+
if (certificate.getShaHash().equals(TEST_SHA1_CERTIFICATE.toLowerCase())) {
132+
expectedCertificate = certificate;
133+
}
134+
}
135+
assertNotNull(expectedCertificate);
136+
assertEquals(expectedCertificate.getCertType(), ShaCertificateType.SHA_1);
137+
138+
// Delete SHA-1 certificate.
139+
androidApp.deleteShaCertificate(expectedCertificate);
140+
for (ShaCertificate certificate : androidApp.getShaCertificates()) {
141+
if (certificate.getShaHash().equals(TEST_SHA1_CERTIFICATE)) {
142+
fail("Test SHA-1 certificate is not deleted.");
143+
}
144+
}
145+
}*/
121146

122147
// Use the asynchronous version of the API.
123148
{

0 commit comments

Comments
 (0)