@@ -34,6 +34,7 @@ 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
+ // private static final String TEST_SHA1_CERTIFICATE = "1111111111111111111111111111111111111111";
37
38
private static final String TEST_SHA256_CERTIFICATE =
38
39
"AAAACCCCAAAACCCCAAAACCCCAAAACCCCAAAACCCCAAAACCCCAAAACCCCAAAACCCC" ;
39
40
private static final Random random = new Random ();
@@ -118,6 +119,30 @@ public void testAndroidSetDisplayNameAndGetMetadata() throws Exception {
118
119
public void testAndroidCertificates () throws Exception {
119
120
FirebaseProjectManagement projectManagement = FirebaseProjectManagement .getInstance ();
120
121
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
+ }*/
121
146
122
147
// Use the asynchronous version of the API.
123
148
{
0 commit comments