Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests.integration.modules.test_nsxt_manager : test_nsxt_manager_get_and_set_manager_config #168

Open
Tracked by #178
waynew opened this issue Dec 1, 2021 · 0 comments

Comments

@waynew
Copy link
Contributor

waynew commented Dec 1, 2021

fresh vmc_config file

    def test_nsxt_manager_get_and_set_manager_config(nsxt_config, salt_call_cli):
        """
        nsxt_manager.get_manager_config
        nsxt_manager.set_manager_config
        """
        hostname = nsxt_config["hostname"]
        username = nsxt_config["username"]
        password = nsxt_config["password"]
>       response_json = _get_manager_config_from_nsxt_api(hostname, username, password)

...

    def _get_manager_config_from_nsxt_api(hostname, username, password):
        response_json = nsxt_request.call_api(
            method="GET",
            url=BASE_URL.format(hostname),
            username=username,
            password=password,
            verify_ssl=False,
        )
    
>       assert "error" not in response_json
E       AssertionError: assert 'error' not in {'error': 'Error occurred while calling NSX-T API https://nsxt-hostname/ip/api/v1/configs/management. Please check logs for more details.'}


hostname   = 'nsxt-hostname/ip'
password   = 'nsxt-password'
response_json = {'error': 'Error occurred while calling NSX-T API https://nsxt-hostname/ip/api/v1/configs/management. Please check logs for more details.'}
username   = 'nsxt-username'
@waynew waynew mentioned this issue Dec 1, 2021
40 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant