Search in sources :

Example 11 with Artifact

use of org.jboss.pnc.model.Artifact in project pnc by project-ncl.

the class IndyRepositorySession method processDownloads.

/**
 * Promote all build dependencies NOT ALREADY CAPTURED to the hosted repository holding store for the shared imports
 * and return dependency artifacts meta data.
 *
 * @param report The tracking report that contains info about artifacts downloaded by the build
 * @param promote flag if collected dependencies should be promoted
 * @return List of dependency artifacts meta data
 * @throws RepositoryManagerException In case of a client API transport error or an error during promotion of
 *         artifacts
 * @throws PromotionValidationException when the promotion process results in an error due to validation failure
 */
private List<Artifact> processDownloads(final TrackedContentDTO report, final boolean promote) throws RepositoryManagerException, PromotionValidationException {
    List<Artifact> deps;
    logger.info("BEGIN: Process artifacts downloaded by build");
    userLog.info("Processing dependencies");
    StopWatch stopWatch = StopWatch.createStarted();
    Set<TrackedContentEntryDTO> downloads = report.getDownloads();
    if (CollectionUtils.isEmpty(downloads)) {
        deps = Collections.emptyList();
    } else {
        deps = collectDownloadedArtifacts(report);
        if (promote) {
            Map<StoreKey, Map<StoreKey, Set<String>>> depMap = collectDownloadsPromotionMap(downloads);
            promoteDownloads(depMap);
        }
    }
    logger.info("END: Process artifacts downloaded by build, took {} seconds", stopWatch.getTime(TimeUnit.SECONDS));
    return deps;
}
Also used : TrackedContentEntryDTO(org.commonjava.indy.folo.dto.TrackedContentEntryDTO) StoreKey(org.commonjava.indy.model.core.StoreKey) Map(java.util.Map) HashMap(java.util.HashMap) Artifact(org.jboss.pnc.model.Artifact) StopWatch(org.apache.commons.lang3.time.StopWatch)

Example 12 with Artifact

use of org.jboss.pnc.model.Artifact in project pnc by project-ncl.

the class IndyRepositorySession method extractBuildArtifacts.

/**
 * Retrieve tracking report from repository manager. Add each tracked download to the dependencies of the build
 * result. Add each tracked upload to the built artifacts of the build result. Promote uploaded artifacts to the
 * product-level storage. Finally delete the group associated with the completed build.
 *
 * @param liveBuild {@inheritDoc} - if true, the promotion of the collected artifacts and dependencies is done,
 *        tracking report is sealed and the build group is removed, if false it only reads the data without any
 *        actions
 */
@Override
public RepositoryManagerResult extractBuildArtifacts(final boolean liveBuild) throws RepositoryManagerException {
    TrackedContentDTO report = sealAndGetTrackingReport(liveBuild);
    Comparator<Artifact> comp = (one, two) -> one.getIdentifier().compareTo(two.getIdentifier());
    Uploads uploads = collectUploads(report);
    List<Artifact> uploadedArtifacts = uploads.getData();
    Collections.sort(uploadedArtifacts, comp);
    List<Artifact> downloadedArtifacts = null;
    String log = "";
    CompletionStatus status = CompletionStatus.SUCCESS;
    try {
        downloadedArtifacts = processDownloads(report, liveBuild);
        Collections.sort(downloadedArtifacts, comp);
    } catch (PromotionValidationException ex) {
        status = CompletionStatus.FAILED;
        log = ex.getMessage();
        logger.warn("Dependencies promotion failed. Error(s): {}", log);
        userLog.error("Dependencies promotion failed. Error(s): {}", log);
    }
    if (liveBuild) {
        deleteBuildGroup();
    }
    // if the promotion of dependencies succeeded...
    if (status == CompletionStatus.SUCCESS) {
        logger.info("Returning built artifacts / dependencies:\nUploads:\n  {}\n\nDownloads:\n  {}\n\n", StringUtils.join(uploads.getData(), "\n  "), StringUtils.join(downloadedArtifacts, "\n  "));
        if (liveBuild) {
            logger.info("BEGIN: promotion to build content set");
            StopWatch stopWatch = StopWatch.createStarted();
            try {
                promoteToBuildContentSet(uploads.getPromotion());
            } catch (PromotionValidationException ex) {
                status = CompletionStatus.FAILED;
                log = ex.getMessage();
                logger.warn("Built artifact promotion failed. Error(s): {}", log);
                userLog.error("Built artifact promotion failed. Error(s): {}", log);
            }
            logger.info("END: promotion to build content set, took: {} seconds", stopWatch.getTime(TimeUnit.SECONDS));
            stopWatch.reset();
        }
    }
    if (status == CompletionStatus.FAILED) {
        // prevent saving artifacts and dependencies to a failed build
        downloadedArtifacts = Collections.emptyList();
        uploadedArtifacts = Collections.emptyList();
    }
    return new IndyRepositoryManagerResult(uploadedArtifacts, downloadedArtifacts, buildContentId, log, status);
}
Also used : StringUtils(org.apache.commons.lang.StringUtils) Date(java.util.Date) ValidationResult(org.commonjava.indy.promote.model.ValidationResult) LoggerFactory(org.slf4j.LoggerFactory) AbstractPromoteResult(org.commonjava.indy.promote.model.AbstractPromoteResult) Map(java.util.Map) ConstraintViolation(javax.validation.ConstraintViolation) StoreKey(org.commonjava.indy.model.core.StoreKey) TargetRepository(org.jboss.pnc.model.TargetRepository) MAVEN_PKG_KEY(org.commonjava.indy.pkg.maven.model.MavenPackageTypeDescriptor.MAVEN_PKG_KEY) ArtifactPathInfo(org.commonjava.atlas.maven.ident.util.ArtifactPathInfo) PathsPromoteRequest(org.commonjava.indy.promote.model.PathsPromoteRequest) NpmPackageRef(org.commonjava.atlas.npm.ident.ref.NpmPackageRef) SimpleArtifactRef(org.commonjava.atlas.maven.ident.ref.SimpleArtifactRef) StringUtils.isEmpty(org.apache.commons.lang.StringUtils.isEmpty) RepositoryManagerException(org.jboss.pnc.spi.repositorymanager.RepositoryManagerException) TrackedContentDTO(org.commonjava.indy.folo.dto.TrackedContentDTO) Artifact(org.jboss.pnc.model.Artifact) StoreType(org.commonjava.indy.model.core.StoreType) Validator(javax.validation.Validator) Set(java.util.Set) StopWatch(org.apache.commons.lang3.time.StopWatch) Instant(java.time.Instant) IndyContentClientModule(org.commonjava.indy.client.core.module.IndyContentClientModule) IndyPromoteClientModule(org.commonjava.indy.promote.client.IndyPromoteClientModule) IOUtils(org.apache.commons.io.IOUtils) RepositoryConnectionInfo(org.jboss.pnc.spi.repositorymanager.model.RepositoryConnectionInfo) List(java.util.List) RepositorySession(org.jboss.pnc.spi.repositorymanager.model.RepositorySession) IndyFoloAdminClientModule(org.commonjava.indy.folo.client.IndyFoloAdminClientModule) ArtifactRef(org.commonjava.atlas.maven.ident.ref.ArtifactRef) IndyClientException(org.commonjava.indy.client.core.IndyClientException) TrackedContentEntryDTO(org.commonjava.indy.folo.dto.TrackedContentEntryDTO) NPM_PKG_KEY(org.commonjava.indy.pkg.npm.model.NPMPackageTypeDescriptor.NPM_PKG_KEY) PackageURL(com.github.packageurl.PackageURL) ArtifactQuality(org.jboss.pnc.enums.ArtifactQuality) ValidatorFactory(javax.validation.ValidatorFactory) HashMap(java.util.HashMap) SHARED_IMPORTS_ID(org.jboss.pnc.indyrepositorymanager.IndyRepositoryConstants.SHARED_IMPORTS_ID) ArrayList(java.util.ArrayList) HashSet(java.util.HashSet) ReposiotryIdentifier(org.jboss.pnc.constants.ReposiotryIdentifier) MalformedPackageURLException(com.github.packageurl.MalformedPackageURLException) CollectionUtils(org.apache.commons.collections.CollectionUtils) RepositoryType(org.jboss.pnc.enums.RepositoryType) Validation(javax.validation.Validation) CompletionStatus(org.jboss.pnc.spi.coordinator.CompletionStatus) GENERIC_PKG_KEY(org.commonjava.indy.model.core.GenericPackageTypeDescriptor.GENERIC_PKG_KEY) Logger(org.slf4j.Logger) Indy(org.commonjava.indy.client.core.Indy) PathsPromoteResult(org.commonjava.indy.promote.model.PathsPromoteResult) File(java.io.File) TimeUnit(java.util.concurrent.TimeUnit) HostedRepository(org.commonjava.indy.model.core.HostedRepository) RepositoryManagerResult(org.jboss.pnc.spi.repositorymanager.RepositoryManagerResult) PackageURLBuilder(com.github.packageurl.PackageURLBuilder) BuildCategory(org.jboss.pnc.enums.BuildCategory) Comparator(java.util.Comparator) NpmPackagePathInfo(org.commonjava.atlas.npm.ident.util.NpmPackagePathInfo) Collections(java.util.Collections) CompletionStatus(org.jboss.pnc.spi.coordinator.CompletionStatus) Artifact(org.jboss.pnc.model.Artifact) TrackedContentDTO(org.commonjava.indy.folo.dto.TrackedContentDTO) StopWatch(org.apache.commons.lang3.time.StopWatch)

Example 13 with Artifact

use of org.jboss.pnc.model.Artifact in project pnc by project-ncl.

the class TemporaryBuildsCleanerTest method shouldReturnOnlyTopLevelTemporaryBuilds.

@Test
public void shouldReturnOnlyTopLevelTemporaryBuilds() throws Exception {
    // with
    // top level BR1
    BuildRecord br1 = initBuildRecordBuilder().temporaryBuild(true).build();
    br1 = buildRecordRepository.save(br1);
    Artifact art1br1 = initArtifactBuilder().artifactQuality(ArtifactQuality.TEMPORARY).buildRecord(br1).build();
    Artifact art2br1 = initArtifactBuilder().artifactQuality(ArtifactQuality.TEMPORARY).buildRecord(br1).build();
    artifactRepository.save(art1br1);
    artifactRepository.save(art2br1);
    Set<Artifact> depArtBr2 = new HashSet<>();
    // independent BR2
    BuildRecord br2 = initBuildRecordBuilder().temporaryBuild(true).dependencies(depArtBr2).build();
    br2 = buildRecordRepository.save(br2);
    Artifact art1br2 = initArtifactBuilder().artifactQuality(ArtifactQuality.TEMPORARY).buildRecord(br2).build();
    Artifact art2br2 = initArtifactBuilder().artifactQuality(ArtifactQuality.TEMPORARY).buildRecord(br2).build();
    artifactRepository.save(art1br2);
    artifactRepository.save(art2br2);
    Set<Artifact> depArtBr3 = new HashSet<>();
    depArtBr3.add(art1br1);
    depArtBr3.add(art1br2);
    // create implicitly dependent BR3 (BR3 is dependent on BR1)
    BuildRecord br3 = initBuildRecordBuilder().temporaryBuild(true).dependencies(depArtBr3).build();
    br3 = buildRecordRepository.save(br3);
    Artifact art1br3 = initArtifactBuilder().artifactQuality(ArtifactQuality.TEMPORARY).buildRecord(br3).build();
    Artifact art2br3 = initArtifactBuilder().artifactQuality(ArtifactQuality.TEMPORARY).buildRecord(br3).build();
    artifactRepository.save(art1br3);
    artifactRepository.save(art2br3);
    Set<Artifact> depArtBr4 = new HashSet<>();
    depArtBr4.add(art2br2);
    depArtBr4.add(art1br3);
    // create implicitly dependent BR4 (BR4 is dependent on BR2 and BR3)
    BuildRecord br4 = initBuildRecordBuilder().temporaryBuild(true).dependencies(depArtBr4).build();
    br4 = buildRecordRepository.save(br4);
    Artifact art1br4 = initArtifactBuilder().artifactQuality(ArtifactQuality.TEMPORARY).buildRecord(br4).build();
    Artifact art2br4 = initArtifactBuilder().artifactQuality(ArtifactQuality.TEMPORARY).buildRecord(br4).build();
    artifactRepository.save(art1br4);
    artifactRepository.save(art2br4);
    BuildRecord finalBr1 = br1;
    Condition<Build> hasBr1 = new Condition<>((build -> build.getId().equals(BuildMapper.idMapper.toDto(finalBr1.getId()))), "Is Br1 with id " + BuildMapper.idMapper.toDto(finalBr1.getId()));
    BuildRecord finalBr2 = br2;
    Condition<Build> hasBr2 = new Condition<>((build -> build.getId().equals(BuildMapper.idMapper.toDto(finalBr2.getId()))), "Is Br2 with id " + BuildMapper.idMapper.toDto(finalBr2.getId()));
    BuildRecord finalBr3 = br3;
    Condition<Build> hasBr3 = new Condition<>((build -> build.getId().equals(BuildMapper.idMapper.toDto(finalBr3.getId()))), "Is Br3 with id " + BuildMapper.idMapper.toDto(finalBr3.getId()));
    BuildRecord finalBr4 = br4;
    Condition<Build> hasBr4 = new Condition<>((build -> build.getId().equals(BuildMapper.idMapper.toDto(finalBr4.getId()))), "Is Br4 with id " + BuildMapper.idMapper.toDto(finalBr4.getId()));
    // when #1
    Page<Build> builds = buildProvider.getAllIndependentTemporaryOlderThanTimestamp(0, 50, null, null, new Date().getTime());
    // then #1
    assertThat(builds.getContent()).doNotHave(hasBr1).doNotHave(hasBr2).doNotHave(hasBr3).haveExactly(1, hasBr4);
    // when #2
    temporaryBuildsCleaner.deleteTemporaryBuild(br4.getId(), "");
    builds = buildProvider.getAllIndependentTemporaryOlderThanTimestamp(0, 50, null, null, new Date().getTime());
    // then #2
    assertThat(builds.getContent()).doNotHave(hasBr1).doNotHave(hasBr2).haveExactly(1, hasBr3).doNotHave(hasBr4);
    // when #3
    temporaryBuildsCleaner.deleteTemporaryBuild(br3.getId(), "");
    builds = buildProvider.getAllIndependentTemporaryOlderThanTimestamp(0, 50, null, null, new Date().getTime());
    // then #3
    assertThat(builds.getContent()).haveExactly(1, hasBr1).haveExactly(1, hasBr2).doNotHave(hasBr3).doNotHave(hasBr4);
}
Also used : Condition(org.assertj.core.api.Condition) BuildConfiguration(org.jboss.pnc.model.BuildConfiguration) Arquillian(org.jboss.arquillian.junit.Arquillian) Date(java.util.Date) Assertions.assertThat(org.assertj.core.api.Assertions.assertThat) BuildConfigurationSetRepository(org.jboss.pnc.spi.datastore.repositories.BuildConfigurationSetRepository) LoggerFactory(org.slf4j.LoggerFactory) BuildConfigurationAuditedRepository(org.jboss.pnc.spi.datastore.repositories.BuildConfigurationAuditedRepository) ArtifactRepository(org.jboss.pnc.spi.datastore.repositories.ArtifactRepository) BuildConfigurationAudited(org.jboss.pnc.model.BuildConfigurationAudited) BuildConfigSetRecordRepository(org.jboss.pnc.spi.datastore.repositories.BuildConfigSetRecordRepository) Assert.fail(org.junit.Assert.fail) Deployments.addBuildExecutorMock(org.jboss.pnc.integration.setup.Deployments.addBuildExecutorMock) Deployments(org.jboss.pnc.integration.setup.Deployments) BuildConfigurationRepository(org.jboss.pnc.spi.datastore.repositories.BuildConfigurationRepository) TargetRepository(org.jboss.pnc.model.TargetRepository) User(org.jboss.pnc.model.User) HeuristicRollbackException(javax.transaction.HeuristicRollbackException) Artifact(org.jboss.pnc.model.Artifact) EnterpriseArchive(org.jboss.shrinkwrap.api.spec.EnterpriseArchive) MethodHandles(java.lang.invoke.MethodHandles) BuildProvider(org.jboss.pnc.facade.providers.api.BuildProvider) Datastore(org.jboss.pnc.spi.datastore.Datastore) Set(java.util.Set) UUID(java.util.UUID) Category(org.junit.experimental.categories.Category) Instant(java.time.Instant) BuildStatus(org.jboss.pnc.enums.BuildStatus) UserRepository(org.jboss.pnc.spi.datastore.repositories.UserRepository) List(java.util.List) RemoteBuildsCleanerMock(org.jboss.pnc.integration.mock.RemoteBuildsCleanerMock) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) PersistenceException(javax.persistence.PersistenceException) HeuristicMixedException(javax.transaction.HeuristicMixedException) TargetRepositoryRepository(org.jboss.pnc.spi.datastore.repositories.TargetRepositoryRepository) BuildConfigSetRecord(org.jboss.pnc.model.BuildConfigSetRecord) RunWith(org.junit.runner.RunWith) ArtifactQuality(org.jboss.pnc.enums.ArtifactQuality) BuildConfigurationSet(org.jboss.pnc.model.BuildConfigurationSet) BuildMapper(org.jboss.pnc.mapper.api.BuildMapper) BuildRecordRepository(org.jboss.pnc.spi.datastore.repositories.BuildRecordRepository) ContainerTest(org.jboss.pnc.test.category.ContainerTest) Inject(javax.inject.Inject) HashSet(java.util.HashSet) RollbackException(javax.transaction.RollbackException) ProductVersionRepository(org.jboss.pnc.spi.datastore.repositories.ProductVersionRepository) TemporaryBuildsCleaner(org.jboss.pnc.coordinator.maintenance.TemporaryBuildsCleaner) Before(org.junit.Before) ValidationException(org.jboss.pnc.spi.exception.ValidationException) Logger(org.slf4j.Logger) Assert.assertNotNull(org.junit.Assert.assertNotNull) UserTransaction(javax.transaction.UserTransaction) Test(org.junit.Test) BuildRecord(org.jboss.pnc.model.BuildRecord) EntityManager(javax.persistence.EntityManager) Page(org.jboss.pnc.dto.response.Page) NotSupportedException(javax.transaction.NotSupportedException) Build(org.jboss.pnc.dto.Build) ChronoUnit(java.time.temporal.ChronoUnit) Assert.assertNull(org.junit.Assert.assertNull) Deployment(org.jboss.arquillian.container.test.api.Deployment) SystemException(javax.transaction.SystemException) Condition(org.assertj.core.api.Condition) Sequence(org.jboss.pnc.common.concurrent.Sequence) Assert.assertEquals(org.junit.Assert.assertEquals) Build(org.jboss.pnc.dto.Build) BuildRecord(org.jboss.pnc.model.BuildRecord) Artifact(org.jboss.pnc.model.Artifact) Date(java.util.Date) HashSet(java.util.HashSet) ContainerTest(org.jboss.pnc.test.category.ContainerTest) Test(org.junit.Test)

Example 14 with Artifact

use of org.jboss.pnc.model.Artifact in project pnc by project-ncl.

the class TemporaryBuildsCleanerTest method shouldNotDeleteNonTemporaryArtifacts.

@Test
public void shouldNotDeleteNonTemporaryArtifacts() {
    // given
    Artifact artifact = initArtifactBuilder().artifactQuality(ArtifactQuality.NEW).build();
    artifactRepository.save(artifact);
    Set<Artifact> builtArtifacts = new HashSet<>();
    builtArtifacts.add(artifact);
    BuildRecord tempBr = initBuildRecordBuilder().temporaryBuild(true).build();
    BuildRecord savedTempBr = buildRecordRepository.save(tempBr);
    artifact.setBuildRecord(savedTempBr);
    artifactRepository.save(artifact);
    // when - then
    try {
        temporaryBuildsCleaner.deleteTemporaryBuild(tempBr.getId(), "");
    } catch (Exception ex) {
        logger.info("Received exception:", ex);
        if (ex.getCause().getClass().equals(PersistenceException.class)) {
            return;
        }
    }
    fail("Deletion of non-temporary artifacts should be prohibited");
}
Also used : PersistenceException(javax.persistence.PersistenceException) Artifact(org.jboss.pnc.model.Artifact) BuildRecord(org.jboss.pnc.model.BuildRecord) HeuristicRollbackException(javax.transaction.HeuristicRollbackException) PersistenceException(javax.persistence.PersistenceException) HeuristicMixedException(javax.transaction.HeuristicMixedException) RollbackException(javax.transaction.RollbackException) ValidationException(org.jboss.pnc.spi.exception.ValidationException) NotSupportedException(javax.transaction.NotSupportedException) SystemException(javax.transaction.SystemException) HashSet(java.util.HashSet) ContainerTest(org.jboss.pnc.test.category.ContainerTest) Test(org.junit.Test)

Example 15 with Artifact

use of org.jboss.pnc.model.Artifact in project pnc by project-ncl.

the class DownloadTwoThenVerifyExtractedArtifactsContainThemTest method extractBuildArtifacts_ContainsTwoDownloads.

@Test
public void extractBuildArtifacts_ContainsTwoDownloads() throws Exception {
    String pomPath = "org/commonjava/indy/indy-core/0.17.0/indy-core-0.17.0.pom";
    String jarPath = "org/commonjava/indy/indy-core/0.17.0/indy-core-0.17.0.jar";
    String pomContent = "This is a pom test " + System.currentTimeMillis();
    String jarContent = "This is a jar test " + System.currentTimeMillis();
    // setup the expectation that the remote repo pointing at this server will request this file...and define its
    // content.
    server.expect(server.formatUrl(STORE, pomPath), 200, pomContent);
    server.expect(server.formatUrl(STORE, jarPath), 200, jarContent);
    // create a dummy non-chained build execution and repo session based on it
    BuildExecution execution = new TestBuildExecution();
    RepositorySession rc = driver.createBuildRepository(execution, accessToken, accessToken, RepositoryType.MAVEN, Collections.emptyMap(), false);
    assertThat(rc, notNullValue());
    String baseUrl = rc.getConnectionInfo().getDependencyUrl();
    // download the two files via the repo session's dependency URL, which will proxy the test http server
    // using the expectations above
    assertThat(download(UrlUtils.buildUrl(baseUrl, pomPath)), equalTo(pomContent));
    assertThat(download(UrlUtils.buildUrl(baseUrl, jarPath)), equalTo(jarContent));
    // extract the build artifacts, which should contain the two imported deps.
    // This will also trigger promoting imported artifacts into the shared-imports hosted repo
    RepositoryManagerResult repositoryManagerResult = rc.extractBuildArtifacts(true);
    List<Artifact> deps = repositoryManagerResult.getDependencies();
    System.out.println(deps);
    assertThat(deps, notNullValue());
    assertThat("Expected 2 dependencies, got: " + deps, deps.size(), equalTo(2));
    ProjectVersionRef pvr = new SimpleProjectVersionRef("org.commonjava.indy", "indy-core", "0.17.0");
    Set<String> refs = new HashSet<>();
    refs.add(new SimpleArtifactRef(pvr, "pom", null).toString());
    refs.add(new SimpleArtifactRef(pvr, "jar", null).toString());
    // check that both files are in the dep artifacts list using getIdentifier() to match on GAVT[C]
    for (Artifact artifact : deps) {
        assertThat(artifact + " is not in the expected list of deps: " + refs, refs.contains(artifact.getIdentifier()), equalTo(true));
    }
    Indy indy = driver.getIndy(accessToken);
    // check that the new imports are available from shared-imports
    assertAvailableInSharedImports(indy, pomContent, pomPath);
    assertAvailableInSharedImports(indy, jarContent, jarPath);
}
Also used : TestBuildExecution(org.jboss.pnc.indyrepositorymanager.fixture.TestBuildExecution) RepositoryManagerResult(org.jboss.pnc.spi.repositorymanager.RepositoryManagerResult) TestBuildExecution(org.jboss.pnc.indyrepositorymanager.fixture.TestBuildExecution) BuildExecution(org.jboss.pnc.spi.repositorymanager.BuildExecution) SimpleArtifactRef(org.commonjava.atlas.maven.ident.ref.SimpleArtifactRef) SimpleProjectVersionRef(org.commonjava.atlas.maven.ident.ref.SimpleProjectVersionRef) RepositorySession(org.jboss.pnc.spi.repositorymanager.model.RepositorySession) Artifact(org.jboss.pnc.model.Artifact) ProjectVersionRef(org.commonjava.atlas.maven.ident.ref.ProjectVersionRef) SimpleProjectVersionRef(org.commonjava.atlas.maven.ident.ref.SimpleProjectVersionRef) Indy(org.commonjava.indy.client.core.Indy) HashSet(java.util.HashSet) ContainerTest(org.jboss.pnc.test.category.ContainerTest) Test(org.junit.Test)

Aggregations

Artifact (org.jboss.pnc.model.Artifact)36 Test (org.junit.Test)16 RepositoryManagerResult (org.jboss.pnc.spi.repositorymanager.RepositoryManagerResult)14 ContainerTest (org.jboss.pnc.test.category.ContainerTest)14 HashSet (java.util.HashSet)13 BuildRecord (org.jboss.pnc.model.BuildRecord)12 RepositorySession (org.jboss.pnc.spi.repositorymanager.model.RepositorySession)12 TestBuildExecution (org.jboss.pnc.indyrepositorymanager.fixture.TestBuildExecution)11 BuildExecution (org.jboss.pnc.spi.repositorymanager.BuildExecution)11 StoreKey (org.commonjava.indy.model.core.StoreKey)10 File (java.io.File)8 HashMap (java.util.HashMap)7 TargetRepository (org.jboss.pnc.model.TargetRepository)7 Map (java.util.Map)5 SimpleArtifactRef (org.commonjava.atlas.maven.ident.ref.SimpleArtifactRef)5 BuildConfigurationAudited (org.jboss.pnc.model.BuildConfigurationAudited)5 ByteArrayInputStream (java.io.ByteArrayInputStream)4 ArrayList (java.util.ArrayList)4 Date (java.util.Date)4 List (java.util.List)4