File: smoke_test_async.py

package info (click to toggle)
python-azure 20201208%2Bgit-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,437,920 kB
  • sloc: python: 4,287,452; javascript: 269; makefile: 198; sh: 187; xml: 106
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())