From 530281450533ec20feca19e64a3acc413c664f03 Mon Sep 17 00:00:00 2001 From: Soufiane <13897436+soufianerafik@users.noreply.github.com> Date: Thu, 16 Jan 2025 13:57:02 -0800 Subject: [PATCH] [GH-167] - Update PWS_HOST with new value from REQ7051889 (#168) * fix(config): Update PWS_HOST with new value from REQ7051889 * chore(backend): Update old comment to replace it-wseval1 with wseval --- husky_directory/models/enum.py | 2 +- husky_directory/models/pws.py | 2 +- husky_directory/services/pws.py | 2 +- husky_directory/settings/base.dotenv | 2 +- husky_directory/settings/compose-with-redis.dotenv | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/husky_directory/models/enum.py b/husky_directory/models/enum.py index e5b606fa..f53b8177 100644 --- a/husky_directory/models/enum.py +++ b/husky_directory/models/enum.py @@ -7,7 +7,7 @@ class AffiliationState(Enum): """ These are defined by PWS but only enumerated in their test UI: - https://it-wseval1.s.uw.edu/identity/v2/person + https://wseval.s.uw.edu/identity/v2/person """ current = "current" diff --git a/husky_directory/models/pws.py b/husky_directory/models/pws.py index 9f7a457e..32903628 100644 --- a/husky_directory/models/pws.py +++ b/husky_directory/models/pws.py @@ -1,6 +1,6 @@ """ Models for PWS inputs and outputs. These act as declarative, typed abstractions over -the PWS API definitions at https://it-wseval1.s.uw.edu/identity/swagger/index.html#/ +the PWS API definitions at https://wseval.s.uw.edu/identity/swagger/index.html#/ These are not 1:1 models of that API; only fields we care about are declared here. """ diff --git a/husky_directory/services/pws.py b/husky_directory/services/pws.py index 3a9c2332..ab79484d 100644 --- a/husky_directory/services/pws.py +++ b/husky_directory/services/pws.py @@ -231,7 +231,7 @@ def list_persons( """ Given an input request, queries PWS and returns the output. For more information on this request, - see https://it-wseval1.s.uw.edu/identity/swagger/index.html#/PersonV2/PersonSearch + see https://wseval.s.uw.edu/identity/swagger/index.html#/PersonV2/PersonSearch """ payload = request_input.payload constraints = self.global_constraints + request_input.constraints diff --git a/husky_directory/settings/base.dotenv b/husky_directory/settings/base.dotenv index 5b504e66..148f8bfb 100644 --- a/husky_directory/settings/base.dotenv +++ b/husky_directory/settings/base.dotenv @@ -1,7 +1,7 @@ FLASK_ENV=development UWCA_CERT_NAME=uwca UWCA_CERT_PATH=/app/certificates -PWS_HOST=https://it-wseval1.s.uw.edu +PWS_HOST=https://wseval.s.uw.edu PWS_DEFAULT_PATH=/identity/v2 HOST=directory.iamdev.s.uw.edu SAML_ENTITY_ID=https://${HOST}/saml diff --git a/husky_directory/settings/compose-with-redis.dotenv b/husky_directory/settings/compose-with-redis.dotenv index a5d358b0..83b792f4 100644 --- a/husky_directory/settings/compose-with-redis.dotenv +++ b/husky_directory/settings/compose-with-redis.dotenv @@ -1,6 +1,6 @@ UWCA_CERT_NAME=uwca UWCA_CERT_PATH=/app/certificates -PWS_HOST=https://it-wseval1.s.uw.edu +PWS_HOST=https://wseval.s.uw.edu PWS_DEFAULT_PATH=/identity/v2 HOST=uw-directory.iamdev.s.uw.edu SAML_ENTITY_ID=https://${HOST}/saml