Skip to content

Commit

Permalink
TestUcfOpenDj partially adapted to new LDAP connector.
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Feb 27, 2015
1 parent 0ac3c1e commit 28fb328
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Expand Up @@ -104,6 +104,7 @@ public class TestUcfOpenDj extends AbstractTestNGSpringContextTests {
private static final String FILENAME_RESOURCE_OPENDJ = "src/test/resources/object/resource-opendj.xml";
private static final String FILENAME_RESOURCE_OPENDJ_BAD = "src/test/resources/object/resource-opendj-bad.xml";
private static final String FILENAME_CONNECTOR_LDAP = "src/test/resources/ucf/connector-ldap.xml";
private static final String OBJECT_CLASS_INETORGPERSON_NAME = "inetOrgPerson";

private ResourceType resourceType;
private ResourceType badResourceType;
Expand Down Expand Up @@ -235,7 +236,7 @@ private Collection<ResourceAttribute<?>> addSampleResourceObject(String name, St
ObjectAlreadyExistsException, ConfigurationException {
OperationResult result = new OperationResult(this.getClass().getName() + ".testAdd");

QName objectClassQname = new QName(ResourceTypeUtil.getResourceNamespace(resourceType), "AccountObjectClass");
QName objectClassQname = new QName(ResourceTypeUtil.getResourceNamespace(resourceType), OBJECT_CLASS_INETORGPERSON_NAME);
ObjectClassComplexTypeDefinition accountDefinition = resourceSchema.findObjectClassDefinition(objectClassQname);
assertNotNull("No object class definition "+objectClassQname, accountDefinition);
ResourceAttributeContainer resourceObject = accountDefinition.instantiate(ShadowType.F_ATTRIBUTES);
Expand Down Expand Up @@ -296,8 +297,8 @@ public void testAddDeleteObject() throws Exception {
assertNotNull(uid);
}
}

ObjectClassComplexTypeDefinition accountDefinition = resourceSchema.findDefaultObjectClassDefinition(ShadowKindType.ACCOUNT);
ObjectClassComplexTypeDefinition accountDefinition = resourceSchema.findObjectClassDefinition(OBJECT_CLASS_INETORGPERSON_NAME);

cc.deleteObject(accountDefinition, null, identifiers, result);

Expand Down
Expand Up @@ -23,7 +23,7 @@
<name>ICF com.evolveum.polygon.connector.ldap.LdapConnector</name>
<framework>http://midpoint.evolveum.com/xml/ns/public/connector/icf-1</framework>
<connectorType>com.evolveum.polygon.connector.ldap.LdapConnector</connectorType>
<connectorVersion>1.4.0.49</connectorVersion>
<connectorVersion>1.4.1.0-SNAPSHOT</connectorVersion>
<connectorBundle>com.evolveum.polygon.connector-ldap</connectorBundle>
<namespace>http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/bundle/com.evolveum.polygon.connector-ldap/com.evolveum.polygon.connector.ldap.LdapConnector</namespace>
<schema>
Expand Down

0 comments on commit 28fb328

Please sign in to comment.