File: smoke_test_async.py

package info (click to toggle)
python-azure 20230112%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 749,544 kB
  • sloc: python: 6,815,827; javascript: 287; makefile: 195; xml: 109; sh: 105
file content (27 lines) | stat: -rw-r--r-- 917 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
import asyncio
from key_vault_certificates_async import KeyVaultCertificates
from key_vault_keys_async import KeyVaultKeys
from key_vault_secrets_async import KeyVaultSecrets
from event_hubs_async import EventHubAsync
from storage_blob_async import StorageBlobAsync


def execute_async_smoke_tests():
    print("")
    print("==========================================")
    print("   AZURE TRACK 2 SDKs SMOKE TEST ASYNC")
    print("==========================================")

    async def main():
        await KeyVaultCertificates().run()
        await KeyVaultKeys().run()
        await KeyVaultSecrets().run()
        await EventHubAsync().run()
        await StorageBlobAsync().run()

    loop = asyncio.get_event_loop()
    loop.run_until_complete(main())