File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 28
28
TEST_APP_PACKAGE_NAME = 'com.firebase.adminsdk_python_integration_test'
29
29
TEST_APP_DISPLAY_NAME_PREFIX = 'Created By Firebase AdminSDK Python Integration Testing'
30
30
31
- SHA_1_HASH_1 = '123456789a123456789a123456789a123456789a'
32
- SHA_1_HASH_2 = 'aaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbb'
33
31
SHA_256_HASH_1 = '123456789a123456789a123456789a123456789a123456789a123456789a1234'
34
32
SHA_256_HASH_2 = 'cafef00dba5eba11b01dfaceacc01adeda7aba5eca55e77e0b57ac1e5ca1ab1e'
35
33
SHA_1 = project_management .SHACertificate .SHA_1
@@ -119,17 +117,13 @@ def test_android_sha_certificates(android_app):
119
117
for cert in android_app .get_sha_certificates ():
120
118
android_app .delete_sha_certificate (cert )
121
119
122
- # Add four different certs and assert that they have all been added successfully.
123
- android_app .add_sha_certificate (project_management .SHACertificate (SHA_1_HASH_1 ))
124
- android_app .add_sha_certificate (project_management .SHACertificate (SHA_1_HASH_2 ))
120
+ # Add two different certs and assert that they have all been added successfully.
125
121
android_app .add_sha_certificate (project_management .SHACertificate (SHA_256_HASH_1 ))
126
122
android_app .add_sha_certificate (project_management .SHACertificate (SHA_256_HASH_2 ))
127
123
128
124
cert_list = android_app .get_sha_certificates ()
129
125
130
- sha_1_hashes = set (cert .sha_hash for cert in cert_list if cert .cert_type == SHA_1 )
131
126
sha_256_hashes = set (cert .sha_hash for cert in cert_list if cert .cert_type == SHA_256 )
132
- assert sha_1_hashes == set ([SHA_1_HASH_1 , SHA_1_HASH_2 ])
133
127
assert sha_256_hashes == set ([SHA_256_HASH_1 , SHA_256_HASH_2 ])
134
128
for cert in cert_list :
135
129
assert cert .name
You can’t perform that action at this time.
0 commit comments