Search in sources :

Example 1 with ConnectionResult

use of net.nemerosa.ontrack.model.support.ConnectionResult in project ontrack by nemerosa.

the class ConfigurationServiceIT method test_ok_on_new_configuration_with_blank_password.

/**
 * Regression test for #531
 */
@Test
public void test_ok_on_new_configuration_with_blank_password() throws Exception {
    TestConfiguration configuration = new TestConfiguration(uid("T"), "", "");
    ConnectionResult result = asUser().with(GlobalSettings.class).call(() -> configurationService.test(configuration));
    assertEquals(ConnectionResult.ConnectionResultType.OK, result.getType());
}
Also used : ConnectionResult(net.nemerosa.ontrack.model.support.ConnectionResult) TestConfiguration(net.nemerosa.ontrack.extension.api.support.TestConfiguration) GlobalSettings(net.nemerosa.ontrack.model.security.GlobalSettings) Test(org.junit.Test)

Aggregations

TestConfiguration (net.nemerosa.ontrack.extension.api.support.TestConfiguration)1 GlobalSettings (net.nemerosa.ontrack.model.security.GlobalSettings)1 ConnectionResult (net.nemerosa.ontrack.model.support.ConnectionResult)1 Test (org.junit.Test)1