-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move creation of inboud repo and distro to Namespace model manager. (#…
…586) (#601) - Creation of inbound repo and distro moved to Namespace model manager - Logic for deletion also moved to namespace manager - Unit tests added Issue: AAH-139 (cherry picked from commit 8c5f3f9) Co-authored-by: Bruno Rocha <[email protected]>
- Loading branch information
1 parent
e172cfe
commit 1ab65c0
Showing
7 changed files
with
87 additions
and
40 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
Inbound repo and distro creation moved to Namespace model manager. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,7 @@ | |
from galaxy_ng.app.models import auth as auth_models | ||
from galaxy_ng.app.models import Namespace | ||
from galaxy_ng.app.api.v3.serializers import NamespaceSerializer | ||
from galaxy_ng.app.api.v3.viewsets.namespace import INBOUND_REPO_NAME_FORMAT | ||
from galaxy_ng.app.constants import DeploymentMode | ||
from galaxy_ng.app.constants import DeploymentMode, INBOUND_REPO_NAME_FORMAT | ||
|
||
from .base import BaseTestCase | ||
|
||
|
@@ -204,8 +203,14 @@ def test_conflict_error_if_already_exists(self): | |
"company": "A company name", | ||
"email": "[email protected]", | ||
"description": "A testing namespace", | ||
"groups": [{"name": "system:partner-engineers"}], | ||
"object_permissions": ["change_namespace", "upload_to_namespace"] | ||
"groups": [ | ||
{ | ||
"id": self.pe_group.id, | ||
"name": self.pe_group.name, | ||
"object_permissions": ["change_namespace", "upload_to_namespace"] | ||
} | ||
] | ||
} | ||
response = self.client.post(ns_list_url, post_data, format='json') | ||
log.debug('namespace response: %s', response.data) | ||
self.assertEqual(response.status_code, status.HTTP_409_CONFLICT) |
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