def test_blob_service_stats(self, storage_account_name, storage_account_key):
        # Arrange
        url = self.account_url(storage_account_name, "blob")
        bs = BlobServiceClient(url, credential=storage_account_key)
        # Act
        stats = bs.get_service_stats(raw_response_hook=self.override_response_body_with_live_status)

        # Assert
        self._assert_stats_default(stats)
예제 #2
0
    def test_blob_service_stats_when_unavailable(self, resource_group, location, storage_account, storage_account_key):
        # Arrange
        url = self._account_url(storage_account.name)
        bs = BlobServiceClient(url, credential=storage_account_key)

        # Act
        stats = bs.get_service_stats(raw_response_hook=self.override_response_body_with_unavailable_status)

        # Assert
        self._assert_stats_unavailable(stats)