def test_bucket_availability(self): bucket_name = 'test_bucket_lifecycle' returned_empty_lifecycle = s3_listener.get_lifecycle(bucket_name) self.assertRegexpMatches(returned_empty_lifecycle._content, r'The bucket does not exist') response = s3_listener.get_replication(bucket_name) self.assertRegexpMatches(response._content, r'The bucket does not exist') response = s3_listener.get_encryption(bucket_name) self.assertRegexpMatches(response._content, r'The bucket does not exist') response = s3_listener.get_object_lock(bucket_name) self.assertRegexpMatches(response._content, r'The bucket does not exist')
def test_get_bucket_lifecycle(self): bucket_name = 'test-bucket' returned_empty_lifecycle = s3_listener.get_lifecycle(bucket_name) self.assertRegexpMatches(returned_empty_lifecycle._content, r'LifecycleConfiguration')
def test_get_bucket_lifecycle(self): bucket_name = 'test_bucket_lifecycle' returned_empty_lifecycle = s3_listener.get_lifecycle(bucket_name) self.assertRegexpMatches(returned_empty_lifecycle._content, r'The bucket does not exist')