-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Active Directory 2019 tests, minor diag fix
- Loading branch information
Showing
14 changed files
with
1,974 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
101 changes: 101 additions & 0 deletions
101
...ng/conntest/src/test/java/com/evolveum/midpoint/testing/conntest/ad/TestAdLdapAd2019.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
/* | ||
* Copyright (c) 2015-2019 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
package com.evolveum.midpoint.testing.conntest.ad; | ||
|
||
import java.io.File; | ||
|
||
import org.springframework.test.annotation.DirtiesContext; | ||
import org.springframework.test.annotation.DirtiesContext.ClassMode; | ||
import org.springframework.test.context.ContextConfiguration; | ||
import org.testng.annotations.Listeners; | ||
|
||
import com.evolveum.midpoint.prism.PrismObject; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationStatusType; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType; | ||
|
||
/** | ||
* AD multi-domain test for AD 2109 hosted in Evolveum private cloud. | ||
* | ||
* This test is running on ad03/ad04 servers in ad2019.lab.evolveum.com domain. | ||
* | ||
* These servers do not have Exchange installed, therefore exchange-specific aspects are skipped. | ||
* | ||
* TODO: SSH | ||
* There is also a problem with CredSSP configuration on those servers. | ||
* Therefore "second-hop" CredSSP tests are skipped here. | ||
* There is still CreddSSP configured in ad01 server (top-level domain), therefore CredSSP is still tested in a way. | ||
* In case of need the old Chimera/Hydra environment is archived, therefore it can be restored and used for full CredSSP tests. | ||
* | ||
* @see AbstractAdLdapMultidomainTest | ||
* | ||
* @author Radovan Semancik | ||
*/ | ||
@ContextConfiguration(locations = {"classpath:ctx-conntest-test-main.xml"}) | ||
@Listeners({ com.evolveum.midpoint.tools.testng.AlphabeticalMethodInterceptor.class }) | ||
@DirtiesContext(classMode = ClassMode.AFTER_CLASS) | ||
public class TestAdLdapAd2019 extends AbstractAdLdapMultidomainTest { | ||
|
||
@Override | ||
protected File getResourceFile() { | ||
return new File(getBaseDir(), "resource-ad2019.xml"); | ||
} | ||
|
||
@Override | ||
protected String getLdapServerHost() { | ||
return "ad03.ad2019.lab.evolveum.com"; | ||
} | ||
|
||
@Override | ||
protected String getLdapSuffix() { | ||
return "DC=ad2019,DC=lab,DC=evolveum,DC=com"; | ||
} | ||
|
||
@Override | ||
protected String getLdapSubServerHost() { | ||
return "ad04.ad2019.lab.evolveum.com"; | ||
} | ||
|
||
@Override | ||
protected String getLdapSubSuffix() { | ||
return "DC=sub2019,DC=ad2019,DC=lab,DC=evolveum,DC=com"; | ||
} | ||
|
||
@Override | ||
protected File getReconciliationTaskFile() { | ||
return new File(getBaseDir(), "task-reconcile-ad2019-users.xml"); | ||
} | ||
|
||
@Override | ||
protected String getReconciliationTaskOid() { | ||
return "6dabfa58-d635-11ea-ae7a-5b48b3057a69"; | ||
} | ||
|
||
@Override | ||
protected void assertAccountDisabled(PrismObject<ShadowType> shadow) { | ||
assertAdministrativeStatus(shadow, ActivationStatusType.DISABLED); | ||
} | ||
|
||
@Override | ||
protected void assertAccountEnabled(PrismObject<ShadowType> shadow) { | ||
assertAdministrativeStatus(shadow, ActivationStatusType.ENABLED); | ||
} | ||
|
||
@Override | ||
protected String getAccountJackSid() { | ||
return "S-1-5-21-1010034557-3261374367-4224384715-1110"; | ||
} | ||
|
||
@Override | ||
protected int getNumberOfAllAccounts() { | ||
return 10; | ||
} | ||
|
||
@Override | ||
protected boolean hasExchange() { | ||
return false; | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...test/src/test/java/com/evolveum/midpoint/testing/conntest/ad/TestAdLdapAd2019Strange.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright (c) 2015-2019 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
package com.evolveum.midpoint.testing.conntest.ad; | ||
|
||
import java.io.File; | ||
|
||
import org.springframework.test.annotation.DirtiesContext; | ||
import org.springframework.test.annotation.DirtiesContext.ClassMode; | ||
import org.springframework.test.context.ContextConfiguration; | ||
import org.testng.annotations.Listeners; | ||
|
||
/** | ||
* AD multi-domain test for AD 2019 hosted in Evolveum private cloud. | ||
* This test has some strange configuration: | ||
* * SPR is used instead of VLV for paging. | ||
* | ||
* @author Radovan Semancik | ||
*/ | ||
@ContextConfiguration(locations = {"classpath:ctx-conntest-test-main.xml"}) | ||
@Listeners({ com.evolveum.midpoint.tools.testng.AlphabeticalMethodInterceptor.class }) | ||
@DirtiesContext(classMode = ClassMode.AFTER_CLASS) | ||
public class TestAdLdapAd2019Strange extends TestAdLdapAd2019 { | ||
|
||
@Override | ||
protected File getResourceFile() { | ||
return new File(getBaseDir(), "resource-ad2019-strange.xml"); | ||
} | ||
} |
Oops, something went wrong.