mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 07:46:23 -04:00
Ok, looks like I can access the api finally.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
This commit is contained in:
@@ -183,6 +183,16 @@ class E2ETest(Staging):
|
|||||||
"notify-admin-logo-upload-bucket-staging"
|
"notify-admin-logo-upload-bucket-staging"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
API_HOST_NAME = "http://localhost:6011" # nosec B105 - only used in development
|
||||||
|
# credential overrides
|
||||||
|
DANGEROUS_SALT = "development-notify-salt"
|
||||||
|
SECRET_KEY = "dev-notify-secret-key" # nosec B105 - only used in development
|
||||||
|
# ADMIN_CLIENT_USER_NAME is called ADMIN_CLIENT_ID in api repo, they should match
|
||||||
|
ADMIN_CLIENT_USER_NAME = "notify-admin"
|
||||||
|
ADMIN_CLIENT_SECRET = (
|
||||||
|
"dev-notify-secret-key" # nosec B105 - only used in development
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class Demo(Staging):
|
class Demo(Staging):
|
||||||
HEADER_COLOUR = "#6F72AF" # $mauve
|
HEADER_COLOUR = "#6F72AF" # $mauve
|
||||||
|
|||||||
@@ -1,15 +1,14 @@
|
|||||||
import datetime
|
import datetime
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
|
|
||||||
from flask import Flask
|
|
||||||
import pytest
|
import pytest
|
||||||
from axe_core_python.sync_playwright import Axe
|
from axe_core_python.sync_playwright import Axe
|
||||||
|
from flask import Flask, current_app
|
||||||
|
|
||||||
from app import create_app
|
from app import create_app
|
||||||
from app.notify_client.user_api_client import user_api_client
|
|
||||||
from app.notify_client.service_api_client import service_api_client
|
from app.notify_client.service_api_client import service_api_client
|
||||||
|
from app.notify_client.user_api_client import user_api_client
|
||||||
|
|
||||||
E2E_TEST_URI = os.getenv("NOTIFY_E2E_TEST_URI")
|
E2E_TEST_URI = os.getenv("NOTIFY_E2E_TEST_URI")
|
||||||
|
|
||||||
@@ -45,12 +44,14 @@ def check_axe_report(page):
|
|||||||
"moderate",
|
"moderate",
|
||||||
], f"Accessibility violation: {violation}"
|
], f"Accessibility violation: {violation}"
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def notify_admin_e2e():
|
def notify_admin_e2e():
|
||||||
os.environ["NOTIFY_ENVIRONMENT"] = "e2etest"
|
os.environ["NOTIFY_ENVIRONMENT"] = "e2etest"
|
||||||
|
|
||||||
application = Flask("app")
|
application = Flask("app")
|
||||||
create_app(application)
|
create_app(application)
|
||||||
|
|
||||||
return application
|
return application
|
||||||
|
|
||||||
|
|
||||||
@@ -69,10 +70,10 @@ def default_service(browser, notify_admin_e2e):
|
|||||||
service = service_api_client.create_service(
|
service = service_api_client.create_service(
|
||||||
service_name,
|
service_name,
|
||||||
"federal",
|
"federal",
|
||||||
os.environ["DEFAULT_SERVICE_LIMIT"],
|
current_app.config["DEFAULT_SERVICE_LIMIT"],
|
||||||
True,
|
True,
|
||||||
default_user.id,
|
default_user["id"],
|
||||||
default_user.email_address,
|
default_user["email_address"],
|
||||||
)
|
)
|
||||||
|
|
||||||
print("OK I GOT HERE LETS GO!!!")
|
print("OK I GOT HERE LETS GO!!!")
|
||||||
|
|||||||
Reference in New Issue
Block a user