@@ -34,6 +34,8 @@ public class FirebaseProjectManagementIT {
34
34
"Created By Firebase AdminSDK Java Integration Testing" ;
35
35
private static final String TEST_APP_BUNDLE_ID = "com.firebase.adminsdk-java-integration-test" ;
36
36
private static final String TEST_APP_PACKAGE_NAME = "com.firebase.adminsdk_java_integration_test" ;
37
+ // Commenting out SHA1 tests until we have a fix for b/185268518
38
+ // private static final String TEST_SHA1_CERTIFICATE = "1111111111111111111111111111111111111111";
37
39
private static final String TEST_SHA256_CERTIFICATE =
38
40
"AAAACCCCAAAACCCCAAAACCCCAAAACCCCAAAACCCCAAAACCCCAAAACCCCAAAACCCC" ;
39
41
private static final Random random = new Random ();
@@ -119,6 +121,30 @@ public void testAndroidCertificates() throws Exception {
119
121
FirebaseProjectManagement projectManagement = FirebaseProjectManagement .getInstance ();
120
122
AndroidApp androidApp = projectManagement .getAndroidApp (testAndroidAppId );
121
123
124
+ // Commenting out SHA1 tests until we have a fix for b/185268518
125
+ // // Use the Synchronous version of the API.
126
+ // {
127
+ // // Add SHA-1 certificate.
128
+ // androidApp.createShaCertificate(ShaCertificate.create(TEST_SHA1_CERTIFICATE));
129
+ // List<ShaCertificate> certificates = androidApp.getShaCertificates();
130
+ // ShaCertificate expectedCertificate = null;
131
+ // for (ShaCertificate certificate : certificates) {
132
+ // if (certificate.getShaHash().equals(TEST_SHA1_CERTIFICATE.toLowerCase())) {
133
+ // expectedCertificate = certificate;
134
+ // }
135
+ // }
136
+ // assertNotNull(expectedCertificate);
137
+ // assertEquals(expectedCertificate.getCertType(), ShaCertificateType.SHA_1);
138
+ //
139
+ // // Delete SHA-1 certificate.
140
+ // androidApp.deleteShaCertificate(expectedCertificate);
141
+ // for (ShaCertificate certificate : androidApp.getShaCertificates()) {
142
+ // if (certificate.getShaHash().equals(TEST_SHA1_CERTIFICATE)) {
143
+ // fail("Test SHA-1 certificate is not deleted.");
144
+ // }
145
+ // }
146
+ // }
147
+
122
148
// Use the asynchronous version of the API.
123
149
{
124
150
// Add SHA-256 certificate.
0 commit comments