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 cleanup(): if is_mom_ee_deployed(): remove_mom_ee() if common.has_service_account(MOM_EE_SERVICE_ACCOUNT): common.delete_service_account(MOM_EE_SERVICE_ACCOUNT) if common.has_secret(MOM_EE_SECRET_NAME): common.delete_secret(MOM_EE_SECRET_NAME)
def cleanup(): if is_mom_ee_deployed(): remove_mom_ee() if common.has_service_account(MOM_EE_SERVICE_ACCOUNT): common.delete_service_account(MOM_EE_SERVICE_ACCOUNT) if common.has_secret(MOM_EE_SERVICE_ACCOUNT_SECRET_NAME): common.delete_secret(MOM_EE_SERVICE_ACCOUNT_SECRET_NAME) if common.has_secret(MOM_EE_DOCKER_CONFIG_SECRET_NAME): common.delete_secret(MOM_EE_DOCKER_CONFIG_SECRET_NAME)
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)