Search in sources :

Example 6 with RemoteArtifactManager

use of co.cask.cdap.test.remote.RemoteArtifactManager in project cdap by caskdata.

the class IntegrationTestManager method addPluginArtifact.

@Override
public ArtifactManager addPluginArtifact(ArtifactId artifactId, ArtifactId parent, @Nullable Set<PluginClass> additionalPlugins, Class<?> pluginClass, Class<?>... pluginClasses) throws Exception {
    Set<ArtifactRange> parents = new HashSet<>();
    parents.add(new ArtifactRange(parent.getParent().getNamespace(), parent.getArtifact(), new ArtifactVersion(parent.getVersion()), true, new ArtifactVersion(parent.getVersion()), true));
    addPluginArtifact(artifactId, parents, additionalPlugins, pluginClass, pluginClasses);
    return new RemoteArtifactManager(clientConfig, restClient, artifactId);
}
Also used : ArtifactVersion(co.cask.cdap.api.artifact.ArtifactVersion) RemoteArtifactManager(co.cask.cdap.test.remote.RemoteArtifactManager) ArtifactRange(co.cask.cdap.api.artifact.ArtifactRange) HashSet(java.util.HashSet)

Aggregations

RemoteArtifactManager (co.cask.cdap.test.remote.RemoteArtifactManager)6 FileInputStream (java.io.FileInputStream)3 IOException (java.io.IOException)3 InputStream (java.io.InputStream)3 Manifest (java.util.jar.Manifest)3 Location (org.apache.twill.filesystem.Location)3 ArtifactRange (co.cask.cdap.api.artifact.ArtifactRange)2 ArtifactVersion (co.cask.cdap.api.artifact.ArtifactVersion)2 HashSet (java.util.HashSet)2