@pytest.mark.live_test_only
@GlobalStorageAccountPreparer()
@AsyncStorageTestCase.await_prepared_test
async def test_upload_to_url_text_with_credential(self, resource_group, location, storage_account, storage_account_key):
    (await self._setup(storage_account.name, storage_account_key))
    data = (('12345678' * 1024) * 1024)
    blob_name = self._get_blob_reference()
    blob = self.bsc.get_blob_client(self.container_name, blob_name)
    uploaded = (await upload_blob_to_url(blob.url, data, credential=storage_account_key))
    self.assertIsNotNone(uploaded)
    stream = (await blob.download_blob(encoding='UTF-8'))
    content = (await stream.readall())
    self.assertEqual(data, content)
@pytest.mark.live_test_only
@GlobalStorageAccountPreparer()
@AsyncStorageTestCase.await_prepared_test
async def test_upload_to_url_text_with_credential(self, resource_group, location, storage_account, storage_account_key):
    (await self._setup(storage_account.name, storage_account_key))
    data = (('12345678' * 1024) * 1024)
    blob_name = self._get_blob_reference()
    blob = self.bsc.get_blob_client(self.container_name, blob_name)
    uploaded = (await upload_blob_to_url(blob.url, data, credential=storage_account_key))
    self.assertIsNotNone(uploaded)
    stream = (await blob.download_blob(encoding='UTF-8'))
    content = (await stream.readall())
    self.assertEqual(data, content)