Search in sources :

Example 6 with DockerInspectorResults

use of com.synopsys.integration.detectable.detectables.docker.model.DockerInspectorResults in project synopsys-detect by blackducksoftware.

the class ImageIdentifierGeneratorTest method testMissingReturnedTag.

@Test
void testMissingReturnedTag() {
    DockerInspectorResults dockerInspectorResults = new DockerInspectorResults("returnedrepo", null, "success");
    assertEquals("suppliedrepo:suppliedtag", generator.generate(ImageIdentifierType.IMAGE_ID, "suppliedrepo:suppliedtag", dockerInspectorResults));
}
Also used : DockerInspectorResults(com.synopsys.integration.detectable.detectables.docker.model.DockerInspectorResults) Test(org.junit.jupiter.api.Test)

Aggregations

DockerInspectorResults (com.synopsys.integration.detectable.detectables.docker.model.DockerInspectorResults)6 Test (org.junit.jupiter.api.Test)4 Gson (com.google.gson.Gson)1 BdioTransformer (com.synopsys.integration.bdio.BdioTransformer)1 ExternalIdFactory (com.synopsys.integration.bdio.model.externalid.ExternalIdFactory)1 DockerExtractor (com.synopsys.integration.detectable.detectables.docker.DockerExtractor)1 ImageIdentifierGenerator (com.synopsys.integration.detectable.detectables.docker.ImageIdentifierGenerator)1 DockerInspectorResultsFileParser (com.synopsys.integration.detectable.detectables.docker.parser.DockerInspectorResultsFileParser)1 Extraction (com.synopsys.integration.detectable.extraction.Extraction)1 Executable (com.synopsys.integration.executable.Executable)1 File (java.io.File)1 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1