Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
npalaska committed May 10, 2023
1 parent a97a29b commit 03f7feb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/pbench/cli/server/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ def run_gunicorn(server_config: PbenchServerConfig, logger: Logger) -> int:
notifier.notify("STOPPING=1")
notifier.notify("STATUS=OPENID broker not configured")
return 1
except [
except (
OpenIDClient.ServerConnectionError,
OpenIDClient.ServerConnectionTimedOut,
] as exc:
) as exc:
logger.warning("OpenID Connect client not reachable, {}", exc)
notifier.notify("STOPPING=1")
notifier.notify("STATUS=OPENID broker not responding")
Expand Down
4 changes: 2 additions & 2 deletions lib/pbench/test/unit/server/auth/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ class TestOpenIDClient:

@responses.activate
def test_wait_for_oidc_server_fail(self, make_logger):
"""Verfiy .wait_for_oidc_server() failure mode"""
"""Verify .wait_for_oidc_server() failure mode"""
# Start with an empty configuration, no openid section
config = configparser.ConfigParser()
with pytest.raises(OpenIDClient.NotConfigured):
Expand Down Expand Up @@ -329,7 +329,7 @@ def test_wait_for_oidc_server_fail(self, make_logger):

@responses.activate
def test_wait_for_oidc_server_succ(self, make_logger):
"""Verfiy .wait_for_oidc_server() success mode"""
"""Verify .wait_for_oidc_server() success mode"""

config = configparser.ConfigParser()
section = {"server_url": "https://example.com"}
Expand Down

0 comments on commit 03f7feb

Please sign in to comment.