diff --git a/lib/vapi-vmc-client/index.html b/lib/vapi-vmc-client/index.html deleted file mode 100644 index 2e12d80a..00000000 --- a/lib/vapi-vmc-client/index.html +++ /dev/null @@ -1 +0,0 @@ -vapi_vmc_client-2.10.2-py2.py3-none-any.whl
diff --git a/lib/vapi-vmc-client/vapi_vmc_client-2.10.2-py2.py3-none-any.whl b/lib/vapi-vmc-client/vapi_vmc_client-2.10.2-py2.py3-none-any.whl deleted file mode 100644 index 05fcc9f3..00000000 Binary files a/lib/vapi-vmc-client/vapi_vmc_client-2.10.2-py2.py3-none-any.whl and /dev/null differ diff --git a/lib/vmc-client-bindings/index.html b/lib/vmc-client-bindings/index.html index 337fb6ee..2ca12543 100644 --- a/lib/vmc-client-bindings/index.html +++ b/lib/vmc-client-bindings/index.html @@ -1 +1 @@ -vmc_client_bindings-1.3.0-py2.py3-none-any.whl
\ No newline at end of file +vmc_client_bindings-1.3.1-py2.py3-none-any.whl
diff --git a/lib/vmc-client-bindings/vmc_client_bindings-1.3.0-py2.py3-none-any.whl b/lib/vmc-client-bindings/vmc_client_bindings-1.3.0-py2.py3-none-any.whl deleted file mode 100644 index f59e0e30..00000000 Binary files a/lib/vmc-client-bindings/vmc_client_bindings-1.3.0-py2.py3-none-any.whl and /dev/null differ diff --git a/lib/vmc-client-bindings/vmc_client_bindings-1.3.1-py2.py3-none-any.whl b/lib/vmc-client-bindings/vmc_client_bindings-1.3.1-py2.py3-none-any.whl new file mode 100644 index 00000000..d49e0b2b Binary files /dev/null and b/lib/vmc-client-bindings/vmc_client_bindings-1.3.1-py2.py3-none-any.whl differ diff --git a/requirements.txt b/requirements.txt index 91c44f5b..43792a12 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,6 +3,5 @@ suds ; python_version < '3' suds-jurko ; python_version >= '3.0' vapi-client-bindings == 1.5.0 vmc-client-bindings -vapi-vmc-client nsx-policy-python-sdk vmc-app-python-sdk diff --git a/tests/test_vmc_client.py b/tests/test_vmc_client.py new file mode 100644 index 00000000..3a92100a --- /dev/null +++ b/tests/test_vmc_client.py @@ -0,0 +1,74 @@ +#!/usr/bin/env python +""" +* ******************************************************* +* Copyright (c) VMware, Inc. 2019. All Rights Reserved. +* SPDX-License-Identifier: MIT +* ******************************************************* +* +* DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +* WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +* EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +* WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. +""" + +__author__ = 'VMware, Inc.' + +from vmware.vapi.vmc.client import create_vmc_client +from vmware.vapi.bindings.stub import ApiClient, StubFactoryBase + +client = create_vmc_client('1234') + + +def test_orgs_client(): + assert hasattr(client, 'Orgs') + + +def test_locale_client(): + assert hasattr(client, 'Locale') + + +def test_account_link_client(): + assert hasattr(client.orgs, 'AccountLink') + assert hasattr(client.orgs, 'account_link') + assert isinstance(client.orgs.account_link, StubFactoryBase) + + +def test_providers_client(): + assert hasattr(client.orgs, 'Providers') + + +def test_reservations_client(): + assert hasattr(client.orgs, 'Reservations') + assert hasattr(client.orgs, 'reservations') + assert isinstance(client.orgs.reservations, StubFactoryBase) + + +def test_sddcs_client(): + assert hasattr(client.orgs, 'Sddcs') + assert hasattr(client.orgs, 'sddcs') + assert isinstance(client.orgs.sddcs, StubFactoryBase) + + +def test_sddcTemplates_client(): + assert hasattr(client.orgs, 'SddcTemplates') + + +def test_storage_client(): + assert hasattr(client.orgs, 'storage') + assert isinstance(client.orgs.storage, StubFactoryBase) + + +def test_subscriptions_client(): + assert hasattr(client.orgs, 'Subscriptions') + assert hasattr(client.orgs, 'subscriptions') + assert isinstance(client.orgs.subscriptions, StubFactoryBase) + + +def test_tbrs_client(): + assert hasattr(client.orgs, 'tbrs') + assert isinstance(client.orgs.tbrs, StubFactoryBase) + + +def test_tasks_client(): + assert hasattr(client.orgs, 'Tasks')