mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
fix manifest
This commit is contained in:
11
manifest.yml
11
manifest.yml
@@ -36,6 +36,17 @@ applications:
|
||||
API_HOST_NAME: https://notify-api-((env)).apps.internal:61443
|
||||
|
||||
# Credentials variables
|
||||
|
||||
|
||||
|
||||
|
||||
# API_HOST_NAME: https://notify-api-staging.app.cloud.gov/
|
||||
# NOTIFY_ENVIRONMENT: e2etest
|
||||
NOTIFY_E2E_AUTH_STATE_PATH: (( NOTIFY_E2E_AUTH_STATE_PATH ))
|
||||
NOTIFY_E2E_TEST_EMAIL: (( NOTIFY_E2E_TEST_EMAIL ))
|
||||
NOTIFY_E2E_TEST_PASSWORD: (( NOTIFY_E2E_TEST_PASSWORD ))
|
||||
NOTIFY_E2E_TEST_URI: (( NOTIFY_E2E_TEST_URI ))
|
||||
|
||||
ADMIN_CLIENT_SECRET: ((ADMIN_CLIENT_SECRET))
|
||||
ADMIN_CLIENT_USERNAME: ((ADMIN_CLIENT_USERNAME))
|
||||
DANGEROUS_SALT: ((DANGEROUS_SALT))
|
||||
|
||||
@@ -63,7 +63,7 @@ def login_for_end_to_end_testing(browser):
|
||||
|
||||
# Save storage state into the file.
|
||||
auth_state_path = os.path.join(
|
||||
os.getenv("NOTIFY_E2E_AUTH_STATE_PATH"), "state.jso"
|
||||
os.getenv("NOTIFY_E2E_AUTH_STATE_PATH"), "state.json"
|
||||
)
|
||||
context.storage_state(path=auth_state_path)
|
||||
|
||||
|
||||
@@ -160,25 +160,6 @@ def create_new_template(page):
|
||||
def test_create_new_template(authenticated_page):
|
||||
page = authenticated_page
|
||||
|
||||
filename = "state.json"
|
||||
# Search in <search_path>
|
||||
search_path = "/"
|
||||
found_state_json = False
|
||||
wrong_paths = ['/var/lib/snapd/state.json']
|
||||
for root, dirs, files in os.walk(search_path):
|
||||
if filename in files:
|
||||
file_path = os.path.join(root, filename)
|
||||
if os.path.isfile(file_path) and file_path not in wrong_paths:
|
||||
found_state_json = True
|
||||
assert found_state_json is True
|
||||
assert file_path == 'foo'
|
||||
|
||||
|
||||
auth_state_path = os.path.join(
|
||||
os.getenv("NOTIFY_E2E_AUTH_STATE_PATH"), "state.json"
|
||||
)
|
||||
assert os.path.isfile(auth_state_path)
|
||||
|
||||
_setup(page)
|
||||
|
||||
create_new_template(page)
|
||||
|
||||
Reference in New Issue
Block a user