-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
catalog: create Organization db adaptor, #TASK-4389
- Loading branch information
Showing
40 changed files
with
1,414 additions
and
192 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 |
---|---|---|
|
@@ -38,7 +38,9 @@ | |
import org.opencb.opencga.core.models.alignment.AlignmentGeneCoverageStatsParams; | ||
import org.opencb.opencga.core.models.file.File; | ||
import org.opencb.opencga.core.models.file.FileLinkParams; | ||
import org.opencb.opencga.core.models.user.Account; | ||
import org.opencb.opencga.core.models.organizations.OrganizationCreateParams; | ||
import org.opencb.opencga.core.models.organizations.OrganizationUpdateParams; | ||
import org.opencb.opencga.core.models.user.User; | ||
import org.opencb.opencga.core.testclassification.duration.MediumTests; | ||
import org.opencb.opencga.storage.core.StorageEngineFactory; | ||
import org.opencb.opencga.storage.core.variant.VariantStorageEngine; | ||
|
@@ -218,8 +220,11 @@ public static void afterClass() { | |
opencga.after(); | ||
} | ||
|
||
public void setUpCatalogManager() throws IOException, CatalogException { | ||
catalogManager.getUserManager().create(USER, "User Name", "[email protected]", PASSWORD, "", null, Account.AccountType.FULL, opencga.getAdminToken()); | ||
public void setUpCatalogManager() throws CatalogException { | ||
catalogManager.getOrganizationManager().create(new OrganizationCreateParams().setId("test"), null, opencga.getAdminToken()); | ||
catalogManager.getUserManager().create("test", new User().setId(USER).setName("User Name").setEmail("[email protected]"), PASSWORD, opencga.getAdminToken()); | ||
catalogManager.getOrganizationManager().update("test", new OrganizationUpdateParams().setOwner(USER), null, opencga.getAdminToken()); | ||
|
||
token = catalogManager.getUserManager().login("user", PASSWORD).getToken(); | ||
|
||
String projectId = catalogManager.getProjectManager().create(PROJECT, "Project about some genomes", "", "Homo sapiens", | ||
|
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
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.