@@ -86,7 +86,10 @@ def test_key_hook(self):
8686 url = '/v2/hooks/keys/{}' .format (app_id )
8787 response = self .client .get (url , HTTP_X_DEIS_BUILDER_AUTH = settings .BUILDER_KEY )
8888 self .assertEqual (response .status_code , 200 )
89- self .assertEqual (response .data , {"autotest" : [public , public2 ]})
89+ self .assertEqual (response .data , {"autotest" : [
90+ {'key' : public , 'fingerprint' : '54:6d:da:1f:91:b5:2b:6f:a2:83:90:c4:f9:73:76:f5' },
91+ {'key' : public2 , 'fingerprint' : '43:fd:22:bc:dc:ca:6a:28:ba:71:4c:18:41:1d:d1:e2' }
92+ ]})
9093
9194 # Test against an app that exist but user does not
9295 url = '/v2/hooks/keys/{}/foooooo' .format (app_id )
@@ -97,7 +100,10 @@ def test_key_hook(self):
97100 url = '/v2/hooks/keys/{}/{}' .format (app_id , str (self .user ))
98101 response = self .client .get (url , HTTP_X_DEIS_BUILDER_AUTH = settings .BUILDER_KEY )
99102 self .assertEqual (response .status_code , 200 )
100- self .assertEqual (response .data , {"autotest" : [public , public2 ]})
103+ self .assertEqual (response .data , {"autotest" : [
104+ {'key' : public , 'fingerprint' : '54:6d:da:1f:91:b5:2b:6f:a2:83:90:c4:f9:73:76:f5' },
105+ {'key' : public2 , 'fingerprint' : '43:fd:22:bc:dc:ca:6a:28:ba:71:4c:18:41:1d:d1:e2' }
106+ ]})
101107
102108 def test_push_hook (self ):
103109 """Test creating a Push via the API"""
0 commit comments