mirror of
https://github.com/vmware/vsphere-automation-sdk-python.git
synced 2024-11-21 17:29:59 -05:00
Merge pull request #124 from tianhao64/master
Update vmc client bindings
This commit is contained in:
commit
fed93e6627
@ -1 +0,0 @@
|
||||
<a href='vapi_vmc_client-2.10.2-py2.py3-none-any.whl'>vapi_vmc_client-2.10.2-py2.py3-none-any.whl</a><br />
|
Binary file not shown.
@ -1 +1 @@
|
||||
<a href='vmc_client_bindings-1.3.0-py2.py3-none-any.whl'>vmc_client_bindings-1.3.0-py2.py3-none-any.whl</a><br />
|
||||
<a href='vmc_client_bindings-1.3.1-py2.py3-none-any.whl'>vmc_client_bindings-1.3.1-py2.py3-none-any.whl</a><br />
|
||||
|
Binary file not shown.
Binary file not shown.
@ -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
|
||||
|
74
tests/test_vmc_client.py
Normal file
74
tests/test_vmc_client.py
Normal file
@ -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')
|
Loading…
Reference in New Issue
Block a user