mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
Merge pull request #920 from GSA/notify-admin-1157
E2E Test Improvement: leverage the live staging API instead of deploying a local instance in CI/CD
This commit is contained in:
@@ -721,8 +721,8 @@ def validate_mobile(ctx, param, value): # noqa
|
|||||||
@click.option("-s", "--state", default="active")
|
@click.option("-s", "--state", default="active")
|
||||||
@click.option("-d", "--admin", default=False, type=bool)
|
@click.option("-d", "--admin", default=False, type=bool)
|
||||||
def create_test_user(name, email, mobile_number, password, auth_type, state, admin):
|
def create_test_user(name, email, mobile_number, password, auth_type, state, admin):
|
||||||
if getenv("NOTIFY_ENVIRONMENT", "") not in ["development", "test"]:
|
if getenv("NOTIFY_ENVIRONMENT", "") not in ["development", "test", "staging"]:
|
||||||
current_app.logger.error("Can only be run in development")
|
current_app.logger.error("Can only be run in development, test, staging")
|
||||||
return
|
return
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
|
|||||||
Reference in New Issue
Block a user