use of com.synopsys.integration.detect.configuration.connection.BlackDuckConnectionDetails in project synopsys-detect by blackducksoftware.
the class ProductBootFactory method createBlackDuckServerConfig.
public BlackDuckServerConfig createBlackDuckServerConfig() throws DetectUserFriendlyException {
BlackDuckConnectionDetails connectionDetails = detectConfigurationFactory.createBlackDuckConnectionDetails();
BlackDuckConfigFactory blackDuckConfigFactory = new BlackDuckConfigFactory(detectInfo, connectionDetails);
return blackDuckConfigFactory.createServerConfig(new SilentIntLogger());
}
use of com.synopsys.integration.detect.configuration.connection.BlackDuckConnectionDetails in project synopsys-detect by blackducksoftware.
the class ProductDeciderTest method shouldRunBlackduckRapidModeAndBDIO2Enabled.
@Test
public void shouldRunBlackduckRapidModeAndBDIO2Enabled() {
BlackDuckConnectionDetails blackDuckConnectionDetails = blackDuckConnectionDetails(false, VALID_URL);
BlackDuckSignatureScannerOptions blackDuckSignatureScannerOptions = blackDuckSignatureScannerOptions(null, null);
BlackDuckDecision productDecision = new ProductDecider().decideBlackDuck(blackDuckConnectionDetails, blackDuckSignatureScannerOptions, BlackduckScanMode.RAPID, createBdioOptions(true, true));
Assertions.assertTrue(productDecision.shouldRun());
}
use of com.synopsys.integration.detect.configuration.connection.BlackDuckConnectionDetails in project synopsys-detect by blackducksoftware.
the class ProductDeciderTest method shouldRunBlackDuckOfflineWhenInstallUrl.
@Test
public void shouldRunBlackDuckOfflineWhenInstallUrl() {
BlackDuckConnectionDetails blackDuckConnectionDetails = blackDuckConnectionDetails(true, null);
BlackDuckSignatureScannerOptions blackDuckSignatureScannerOptions = blackDuckSignatureScannerOptions(null, VALID_URL);
BlackDuckDecision productDecision = new ProductDecider().decideBlackDuck(blackDuckConnectionDetails, blackDuckSignatureScannerOptions, BlackduckScanMode.INTELLIGENT, createBdioOptions(false, true));
Assertions.assertTrue(productDecision.shouldRun());
Assertions.assertTrue(productDecision.isOffline());
}
use of com.synopsys.integration.detect.configuration.connection.BlackDuckConnectionDetails in project synopsys-detect by blackducksoftware.
the class ProductDeciderTest method shouldNotRunBlackduckURLMissing.
@Test
public void shouldNotRunBlackduckURLMissing() {
BlackDuckConnectionDetails blackDuckConnectionDetails = blackDuckConnectionDetails(false, null);
BlackDuckSignatureScannerOptions blackDuckSignatureScannerOptions = blackDuckSignatureScannerOptions(null, null);
BlackDuckDecision productDecision = new ProductDecider().decideBlackDuck(blackDuckConnectionDetails, blackDuckSignatureScannerOptions, BlackduckScanMode.RAPID, createBdioOptions(true, true));
Assertions.assertFalse(productDecision.shouldRun());
}
use of com.synopsys.integration.detect.configuration.connection.BlackDuckConnectionDetails in project synopsys-detect by blackducksoftware.
the class ProductDeciderTest method shouldRunBlackduckLegacyEnabledAndIntelligentModeAndBDIO2Disabled.
@Test
public void shouldRunBlackduckLegacyEnabledAndIntelligentModeAndBDIO2Disabled() {
BlackDuckConnectionDetails blackDuckConnectionDetails = blackDuckConnectionDetails(false, VALID_URL);
BlackDuckSignatureScannerOptions blackDuckSignatureScannerOptions = blackDuckSignatureScannerOptions(null, null);
BlackDuckDecision productDecision = new ProductDecider().decideBlackDuck(blackDuckConnectionDetails, blackDuckSignatureScannerOptions, BlackduckScanMode.INTELLIGENT, createBdioOptions(false, true));
Assertions.assertTrue(productDecision.shouldRun());
}
Aggregations