-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: merge UserInfo and UserWithNamespace (#362)
- Loading branch information
Showing
15 changed files
with
626 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,7 +63,7 @@ | |
from renku_data_services.users.db import UserRepo as KcUserRepo | ||
from renku_data_services.users.dummy_kc_api import DummyKeycloakAPI | ||
from renku_data_services.users.kc_api import IKeycloakAPI, KeycloakAPI | ||
from renku_data_services.users.models import UserInfo | ||
from renku_data_services.users.models import UnsavedUserInfo | ||
from renku_data_services.utils.core import merge_api_specs, oidc_discovery | ||
|
||
default_resource_pool = models.ResourcePool( | ||
|
@@ -436,8 +436,8 @@ def from_env(cls, prefix: str = "") -> "Config": | |
user_store = DummyUserStore(user_always_exists=user_always_exists) | ||
gitlab_client = DummyGitlabAPI() | ||
dummy_users = [ | ||
UserInfo("user1", "user1", "doe", "[email protected]"), | ||
UserInfo("user2", "user2", "doe", "[email protected]"), | ||
UnsavedUserInfo(id="user1", first_name="user1", last_name="doe", email="[email protected]"), | ||
UnsavedUserInfo(id="user2", first_name="user2", last_name="doe", email="[email protected]"), | ||
] | ||
kc_api = DummyKeycloakAPI(users=[i._to_keycloak_dict() for i in dummy_users]) | ||
redis = RedisConfig.fake() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.