def vcd_users():
    """Fixture to setup required users if they do not exist already.

    This fixture executes automatically for test session setup and teardown.
    User credentials are in 'system_test_framework/environment.py'

    Setup tasks:
    - create Organization Administrator if it doesn't exist
    - create vApp Author if it doesn't exist
    """
    env.create_user(env.ORG_ADMIN_NAME, env.ORG_ADMIN_PASSWORD,
                    env.ORG_ADMIN_ROLE_NAME)
    env.create_user(env.VAPP_AUTHOR_NAME, env.VAPP_AUTHOR_PASSWORD,
                    env.VAPP_AUTHOR_ROLE_NAME)
    yield
def vcd_users():
    """Fixture to setup required users if they do not exist already.

    This fixture executes automatically for test session setup and teardown.
    User credentials are in 'system_test_framework/environment.py'

    Setup tasks:
    - create Cluster admin user if it doesn't exist
    - create Cluster author user if it doesn't exist
    """
    # org_admin -> cluster_admin
    # k8_author -> cluster_author
    env.create_user(env.CLUSTER_ADMIN_NAME,
                    env.CLUSTER_ADMIN_PASSWORD,
                    env.CLUSTER_ADMIN_ROLE_NAME,
                    logger=pytest_logger.PYTEST_LOGGER)
    env.create_user(env.CLUSTER_AUTHOR_NAME,
                    env.CLUSTER_AUTHOR_PASSWORD,
                    env.CLUSTER_AUTHOR_ROLE_NAME,
                    logger=pytest_logger.PYTEST_LOGGER)