Examples of MavenProxyRepository


Examples of org.sonatype.nexus.client.core.subsystem.repository.maven.MavenProxyRepository

   */
  @Test
  public void repositoryBlocked() {
    final String rId = repositoryIdForTest();

    final MavenProxyRepository repository = repositories().create(MavenProxyRepository.class, rId)
        .asProxyOf(repositories().get("releases").contentUri())
        .save()
        .block();

    Capability capability = capabilities().create("[repositoryIsNotBlocked]")
        .withProperty("repository", rId)
        .save();
    MatcherAssert.assertThat(capability.isActive(), is(false));

    logRemote("Unblock repository '{}'", rId);
    repository.unblock();
    capability.refresh();
    MatcherAssert.assertThat(capability.isActive(), is(true));
  }
View Full Code Here

Examples of org.sonatype.nexus.client.core.subsystem.repository.maven.MavenProxyRepository

  }

  @Test
  public void statusProxy() {
    final String id = repositoryIdForTest();
    final MavenProxyRepository repository = repositories().create(MavenProxyRepository.class, id)
        .asProxyOf("http://localhost:8080");
    assertThat(repository.status().isInService(), is(false));
    repository.save();
    assertThat(repository.status().isInService(), is(true));
    assertThat(repository.putOutOfService().status().isInService(), is(false));
    assertThat(repository.putInService().status().isInService(), is(true));
  }
View Full Code Here

Examples of org.sonatype.nexus.client.core.subsystem.repository.maven.MavenProxyRepository

  }

  @Test
  public void proxyMode() {
    final String id = repositoryIdForTest();
    final MavenProxyRepository repository = repositories().create(MavenProxyRepository.class, id)
        .asProxyOf("http://localhost:8080")
        .doNotAutoBlock();
    assertThat(repository.status().isBlocked(), is(false));
    assertThat(repository.status().isAutoBlocked(), is(false));
    repository.save();
    assertThat(repository.status().isBlocked(), is(false));
    assertThat(repository.status().isAutoBlocked(), is(false));
    repository.block();
    assertThat(repository.status().isBlocked(), is(true));
    assertThat(repository.status().isAutoBlocked(), is(false));
    repository.unblock();
    assertThat(repository.status().isBlocked(), is(false));
    assertThat(repository.status().isAutoBlocked(), is(false));
  }
View Full Code Here

Examples of org.sonatype.nexus.client.core.subsystem.repository.maven.MavenProxyRepository

  public void httpUrl()
      throws Exception
  {
    disableGlobalHttpProxy();
    disableGlobalHttpsProxy();
    final MavenProxyRepository repository = createMavenProxyRepository(httpRemoteServer);
    downloadArtifact(repository.id());
  }
View Full Code Here

Examples of org.sonatype.nexus.client.core.subsystem.repository.maven.MavenProxyRepository

  public void httpsUrl()
      throws Exception
  {
    disableGlobalHttpProxy();
    disableGlobalHttpsProxy();
    final MavenProxyRepository repository = createMavenProxyRepository(httpsRemoteServer);
    downloadArtifact(repository.id());
  }
View Full Code Here

Examples of org.sonatype.nexus.client.core.subsystem.repository.maven.MavenProxyRepository

      throws Exception
  {
    globalHttpProxy.start();
    enableGlobalHttpProxy();
    disableGlobalHttpsProxy();
    final MavenProxyRepository repository = createMavenProxyRepository(httpRemoteServer);
    downloadArtifact(repository.id());
    assertRemoteServerAccessViaProxy(httpRemoteServer, globalHttpProxy);
  }
View Full Code Here

Examples of org.sonatype.nexus.client.core.subsystem.repository.maven.MavenProxyRepository

      throws Exception
  {
    globalHttpProxy.start();
    enableGlobalHttpProxy();
    disableGlobalHttpsProxy();
    final MavenProxyRepository repository = createMavenProxyRepository(httpsRemoteServer);
    downloadArtifact(repository.id());
    assertRemoteServerAccessViaProxy(httpsRemoteServer, globalHttpProxy);
  }
View Full Code Here

Examples of org.sonatype.nexus.client.core.subsystem.repository.maven.MavenProxyRepository

      throws Exception
  {
    globalHttpProxy.start();
    enableGlobalHttpProxy();
    enableGlobalHttpsProxy();
    final MavenProxyRepository repository = createMavenProxyRepository(httpRemoteServer);
    downloadArtifact(repository.id());
    assertRemoteServerAccessViaProxy(httpRemoteServer, globalHttpProxy);
  }
View Full Code Here

Examples of org.sonatype.nexus.client.core.subsystem.repository.maven.MavenProxyRepository

      throws Exception
  {
    globalHttpsProxy.start();
    enableGlobalHttpProxy();
    enableGlobalHttpsProxy();
    final MavenProxyRepository repository = createMavenProxyRepository(httpsRemoteServer);
    downloadArtifact(repository.id());
    assertRemoteServerAccessViaProxy(httpsRemoteServer, globalHttpsProxy);
  }
View Full Code Here

Examples of org.sonatype.nexus.client.core.subsystem.repository.maven.MavenProxyRepository

   */
  @Test
  public void downloadFromRemoteRequiringMutualTrust()
      throws Exception
  {
    final MavenProxyRepository repository = createMavenProxyRepository(httpsRemoteServer);
    downloadArtifact(repository.id());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.