Skip to content

Commit

Permalink
remove the internal test_user functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
npalaska committed Feb 16, 2023
1 parent 9f70672 commit b725ee7
Showing 3 changed files with 4 additions and 222 deletions.
8 changes: 2 additions & 6 deletions lib/pbench/client/oidc_admin.py
Original file line number Diff line number Diff line change
@@ -63,9 +63,7 @@ def create_new_user(
"""
admin_token = self.get_admin_token().get("access_token")
url_path = f"/admin/realms/{self.OIDC_REALM}/users"
headers = {
"Authorization": f"Bearer {admin_token}",
}
headers = {"Authorization": f"Bearer {admin_token}"}
data = {
"username": username,
"email": email,
@@ -135,9 +133,7 @@ def get_user(self, username: str, token: str) -> dict:
"""
response = self.get(
f"admin/realms/{self.OIDC_REALM}/users",
headers={
"Authorization": f"Bearer {token}",
},
headers={"Authorization": f"Bearer {token}"},
username=username,
)
if response.status_code == HTTPStatus.OK:
4 changes: 2 additions & 2 deletions lib/pbench/server/auth/__init__.py
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
from dataclasses import dataclass
from http import HTTPStatus
import logging
from typing import Any, Dict, Optional
from typing import Any, Optional
from urllib.parse import urljoin

import jwt
@@ -332,7 +332,7 @@ def __init__(
client_id: str,
realm_name: str,
verify: bool = True,
headers: Optional[Dict[str, str]] = None,
headers: Optional[dict[str, str]] = None,
):
"""Initialize an OpenID Connect Client object.
214 changes: 0 additions & 214 deletions lib/pbench/test/functional/server/test_user.py

This file was deleted.

0 comments on commit b725ee7

Please sign in to comment.