-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'TASK-5663' of github.com:opencb/opencga into TASK-5663
- Loading branch information
Showing
5 changed files
with
32 additions
and
23 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
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 |
---|---|---|
|
@@ -31,6 +31,8 @@ | |
import org.opencb.opencga.core.models.family.Family; | ||
import org.opencb.opencga.core.models.file.File; | ||
import org.opencb.opencga.core.models.individual.Individual; | ||
import org.opencb.opencga.core.models.organizations.OrganizationCreateParams; | ||
import org.opencb.opencga.core.models.organizations.OrganizationUpdateParams; | ||
import org.opencb.opencga.core.models.sample.Sample; | ||
import org.opencb.opencga.core.models.study.Study; | ||
import org.opencb.opencga.core.testclassification.duration.MediumTests; | ||
|
@@ -64,7 +66,7 @@ public class AbstractClinicalManagerTest extends GenericTest { | |
public CatalogManagerExternalResource catalogManagerResource = new CatalogManagerExternalResource(); | ||
|
||
public CatalogManager catalogManager; | ||
protected String organizationId; | ||
protected final String organizationId = "test"; | ||
public String token; | ||
public String studyFqn; | ||
public Family family; | ||
|
@@ -81,8 +83,14 @@ public void setUp() throws IOException, CatalogException, URISyntaxException { | |
public void setUpCatalogManager() throws IOException, CatalogException, URISyntaxException { | ||
ClinicalAnalysis auxClinicalAnalysis; | ||
|
||
// Create new organization, owner and admins | ||
catalogManager.getOrganizationManager().create(new OrganizationCreateParams().setId(organizationId).setName("Test"), QueryOptions.empty(), catalogManagerResource.getAdminToken()); | ||
catalogManager.getUserManager().create("user", "User Name", "[email protected]", PASSWORD, organizationId, null, catalogManagerResource.getAdminToken()); | ||
|
||
catalogManager.getOrganizationManager().update(organizationId, | ||
new OrganizationUpdateParams().setOwner("user"), | ||
null, catalogManagerResource.getAdminToken()); | ||
|
||
token = catalogManager.getUserManager().login(organizationId, "user", PASSWORD).getToken(); | ||
|
||
catalogManager.getProjectManager().create("1000G", "Project about some genomes", "", "Homo sapiens", null, "GRCh38", | ||
|
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