Package org.sonatype.nexus.client.core.subsystem.repository

Examples of org.sonatype.nexus.client.core.subsystem.repository.GroupRepository


  @Test
  public void shouldRegenerateRepoAfterUpload()
      throws Exception
  {
    final GroupRepository groupRepo = givenAYumGroupRepoWith2RPMs();

    final String primaryXml = getPrimaryXmlOf(groupRepo);
    assertThat(primaryXml, containsString("test-artifact"));
    assertThat(primaryXml, containsString("test-rpm"));
  }
View Full Code Here


  @Test
  public void shouldRegenerateGroupRepoWhenMemberRepoIsRemoved()
      throws Exception
  {
    final GroupRepository groupRepo = givenAYumGroupRepoWith2RPMs();
    groupRepo.removeMember(repositoryIdForTest("2")).save();

    waitForNexusToSettleDown();

    final String primaryXml = getPrimaryXmlOf(groupRepo);
    assertThat(primaryXml, containsString("test-artifact"));
View Full Code Here

  @Test
  public void removeYumRepositoryWhenOnlyOneMember()
      throws Exception
  {
    final GroupRepository groupRepo = givenAYumGroupRepoWith2RPMs();
    groupRepo.removeMember(repositoryIdForTest("1")).save();
    groupRepo.removeMember(repositoryIdForTest("2")).save();

    waitForNexusToSettleDown();

    thrown.expect(NexusClientNotFoundException.class);
    getPrimaryXmlOf(groupRepo);
View Full Code Here

  @Test
  public void shouldRegenerateGroupRepoWhenMemberRepoIsAdded()
      throws Exception
  {
    final GroupRepository groupRepo = givenAYumGroupRepoWith2RPMs();

    final Repository repo3 = createYumEnabledRepository(repositoryIdForTest("3"));

    content().upload(
        repositoryLocation(repo3.id(), "a_group3/an_artifact3/3.0/an_artifact3-3.0.rpm"),
        testData().resolveFile("/rpms/foo-bar-5.1.2-1.noarch.rpm")
    );

    waitForNexusToSettleDown();

    groupRepo.addMember(repo3.id()).save();

    waitForNexusToSettleDown();

    final String primaryXml = getPrimaryXmlOf(groupRepo);
View Full Code Here

        .create(MavenProxyRepository.class, repositoryIdForTest("proxy"))
        .asProxyOf(repo1.contentUri())
        .withItemMaxAge(0)
        .save();

    final GroupRepository groupRepo = createYumEnabledGroupRepository(
        repositoryIdForTest(), repo2.id(), proxyRepo.id()
    );

    content().upload(
        repositoryLocation(repo1.id(), "a_group1/an_artifact1/1.0/an_artifact1-1.0.rpm"),
View Full Code Here

  @Test
  public void shouldGenerateGroupRepo()
      throws Exception
  {
    final GroupRepository groupRepo = givenAYumGroupRepoWith2RPMs();

    final String primaryXml = getPrimaryXmlOf(groupRepo);
    assertThat(primaryXml, containsString("test-artifact"));
    assertThat(primaryXml, containsString("test-rpm"));
  }
View Full Code Here

  {
    final Repository repo1 = createYumEnabledRepository(repositoryIdForTest("1"));
    final Repository repo2 = createYumEnabledRepository(repositoryIdForTest("2"));
    final Repository repoX = createYumEnabledRepository(repositoryIdForTest("X"));

    final GroupRepository groupRepo = createYumEnabledGroupRepository(
        repositoryIdForTest(), repo1.id(), repo2.id(), repoX.id()
    );

    content().upload(
        repositoryLocation(repo1.id(), "a_group1/an_artifact1/1.0/an_artifact1-1.0.rpm"),
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.client.core.subsystem.repository.GroupRepository

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.