def ensure_service_account():
    """Method creates a MoM-EE service account. It relies on the global `install_enterprise_cli`
       fixture to install the enterprise-cli-package.
    """
    if common.has_service_account(MOM_EE_SERVICE_ACCOUNT):
        common.delete_service_account(MOM_EE_SERVICE_ACCOUNT)
    common.create_service_account(MOM_EE_SERVICE_ACCOUNT, PRIVATE_KEY_FILE, PUBLIC_KEY_FILE)
    assert common.has_service_account(MOM_EE_SERVICE_ACCOUNT)
def ensure_service_account():
    """Method creates a MoM-EE service account. It relies on the global `install_enterprise_cli`
       fixture to install the enterprise-cli-package.
    """
    if common.has_service_account(MOM_EE_SERVICE_ACCOUNT):
        common.delete_service_account(MOM_EE_SERVICE_ACCOUNT)
    common.create_service_account(MOM_EE_SERVICE_ACCOUNT, PRIVATE_KEY_FILE,
                                  PUBLIC_KEY_FILE)
    assert common.has_service_account(MOM_EE_SERVICE_ACCOUNT)
def ensure_service_account():
    if common.has_service_account(MOM_EE_SERVICE_ACCOUNT):
        common.delete_service_account(MOM_EE_SERVICE_ACCOUNT)
    common.create_service_account(MOM_EE_SERVICE_ACCOUNT, PRIVATE_KEY_FILE,
                                  PUBLIC_KEY_FILE)
    assert common.has_service_account(MOM_EE_SERVICE_ACCOUNT)