Class BatchDeletionOfNPMPackagesTest


  • public class BatchDeletionOfNPMPackagesTest
    extends org.commonjava.indy.ftest.core.AbstractContentManagementTest
    GIVEN:
    • HostedRepository and the NPM packages with two versions

    WHEN:
    • Store the package with version 1.5.1 through the FOLO id into the repository
    • Store the package with version 1.6.2 without FOLO id into the repository
    • Seal the record
    • Specifying the FOLO id to batch delete the artifacts from the repository

    THEN:
    • The package with version 1.5.1 does not exist in the repository
    • The package with version 1.6.2 still exists in the repository
    • Field Summary

      • Fields inherited from class org.commonjava.indy.ftest.core.AbstractContentManagementTest

        CENTRAL, NFS_BASE, PUBLIC, server, STORE
      • Fields inherited from class org.commonjava.indy.ftest.core.AbstractIndyFunctionalTest

        cacheProvider, client, dataDir, DEFAULT_TEST_TIMEOUT, etcDir, fixture, logger, name, storageDir, timeout, TIMEOUT_ENV_FACTOR_SYSPROP
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected Collection<org.commonjava.indy.client.core.IndyClientModule> getAdditionalClientModules()  
      void test()  
      • Methods inherited from class org.commonjava.indy.ftest.core.AbstractContentManagementTest

        assertContent, assertExistence, assertMetadataContent, assertNullContent, before, createStandardTestStructures, deployContent, getPhysicalStorageFile, getRealLastUpdated, newThread
      • Methods inherited from class org.commonjava.indy.ftest.core.AbstractIndyFunctionalTest

        copyToConfigFile, copyToDataFile, createIndyClient, getAdditionalMapperModules, getTemp, getTestEnvironmentTimeoutMultiplier, getTestTimeoutMultiplier, getTestTimeoutSeconds, initBaseTestConfig, initTestConfig, initTestData, isEmpty, isPathMappedStorageEnabled, isSchedulerEnabled, lookup, newName, newServerFixture, newUrl, readTestResource, readTestResourceAsStream, sleepAndRunFileGC, start, stop, waitForEventPropagation, waitForEventPropagationWithMultiplier, writeConfigFile, writeDataFile
    • Constructor Detail

      • BatchDeletionOfNPMPackagesTest

        public BatchDeletionOfNPMPackagesTest()
    • Method Detail

      • getAdditionalClientModules

        protected Collection<org.commonjava.indy.client.core.IndyClientModule> getAdditionalClientModules()
        Overrides:
        getAdditionalClientModules in class org.commonjava.indy.ftest.core.AbstractIndyFunctionalTest