def test_aad_table_service_stats(self, tables_storage_account_name):
     tsc = TableServiceClient(self.account_url(tables_storage_account_name,
                                               "table"),
                              credential=self.get_token_credential())
     stats = tsc.get_service_stats(
         raw_response_hook=self.override_response_body_with_live_status)
     self._assert_stats_default(stats)
    def test_table_service_stats_f(self, resource_group, location, storage_account, storage_account_key):
        # Arrange
        tsc = TableServiceClient(self.account_url(storage_account, "table"), storage_account_key)

        # Act
        stats = tsc.get_service_stats(raw_response_hook=self.override_response_body_with_live_status)
        # Assert
        self._assert_stats_default(stats)
 def test_table_service_stats_f(self, tables_cosmos_account_name,
                                tables_primary_cosmos_account_key):
     tsc = TableServiceClient(self.account_url(tables_cosmos_account_name,
                                               "cosmos"),
                              credential=tables_primary_cosmos_account_key)
     stats = tsc.get_service_stats(
         raw_response_hook=self.override_response_body_with_live_status)
     self._assert_stats_default(stats)
Example #4
0
    def test_table_service_stats_f(self, tables_storage_account_name, tables_primary_storage_account_key):
        # Arrange
        tsc = TableServiceClient(self.account_url(tables_storage_account_name, "table"), tables_primary_storage_account_key)

        # Act
        stats = tsc.get_service_stats(raw_response_hook=self.override_response_body_with_live_status)
        # Assert
        self._assert_stats_default(stats)
Example #5
0
 def test_table_service_stats_when_unavailable(
         self, tables_cosmos_account_name,
         tables_primary_cosmos_account_key):
     tsc = TableServiceClient(
         self.account_url(tables_cosmos_account_name, "cosmos"),
         tables_primary_cosmos_account_key)
     stats = tsc.get_service_stats(
         raw_response_hook=self.
         override_response_body_with_unavailable_status)
     self._assert_stats_unavailable(stats)
Example #6
0
    def test_table_service_stats_f(self, resource_group, location, cosmos_account, cosmos_account_key):
        # Arrange
        tsc = TableServiceClient(self.account_url(cosmos_account, "cosmos"), cosmos_account_key)

        # Act
        stats = tsc.get_service_stats(raw_response_hook=self.override_response_body_with_live_status)
        # Assert
        self._assert_stats_default(stats)

        if self.is_live:
            sleep(SLEEP_DELAY)
Example #7
0
    def test_table_service_stats_when_unavailable(
            self, tables_storage_account_name,
            tables_primary_storage_account_key):
        # Arrange
        tsc = TableServiceClient(self.account_url(tables_storage_account_name,
                                                  "table"),
                                 credential=tables_primary_storage_account_key)

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

        # Assert
        self._assert_stats_unavailable(stats)
    def test_table_service_stats_f(self, tables_cosmos_account_name,
                                   tables_primary_cosmos_account_key):
        # Arrange
        tsc = TableServiceClient(
            self.account_url(tables_cosmos_account_name, "cosmos"),
            tables_primary_cosmos_account_key)

        # Act
        stats = tsc.get_service_stats(
            raw_response_hook=self.override_response_body_with_live_status)
        # Assert
        self._assert_stats_default(stats)

        if self.is_live:
            sleep(SLEEP_DELAY)