예제 #1
0
파일: s3_test.py 프로젝트: bryson/salt
 def test_head(self):
     '''
     Test for return the metadata for a bucket, or an object in a bucket.
     '''
     with patch.object(s3, '_get_key',
                       return_value=('key', 'keyid', 'service_url',
                                     'verify_ssl', 'kms_keyid', 'location',
                                     'role_arn')):
         self.assertEqual(s3.head('bucket'), 'A')
예제 #2
0
파일: test_s3.py 프로젝트: MalloZup/salt-2
 def test_head(self):
     '''
     Test for return the metadata for a bucket, or an object in a bucket.
     '''
     with patch.object(s3, '_get_key',
                       return_value=('key', 'keyid', 'service_url',
                                     'verify_ssl', 'kms_keyid', 'location',
                                     'role_arn', 'path_style', 'https_enable')):
         self.assertEqual(s3.head('bucket'), 'A')
예제 #3
0
 def test_head(self):
     """
     Test for return the metadata for a bucket, or an object in a bucket.
     """
     with patch.object(
         s3,
         "_get_key",
         return_value=(
             "key",
             "keyid",
             "service_url",
             "verify_ssl",
             "kms_keyid",
             "location",
             "role_arn",
             "path_style",
             "https_enable",
         ),
     ):
         self.assertEqual(s3.head("bucket"), "A")