Skip to content

Commit

Permalink
Skip TestInternalCorrelationMedium on old repo
Browse files Browse the repository at this point in the history
Also, removed last traces of TemporaryUserType.
  • Loading branch information
mederly committed Aug 4, 2022
1 parent 72db30a commit d1a7e55
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1347,25 +1347,6 @@
<xsd:attribute name="id" type="xsd:long"/>
</xsd:complexType>

<xsd:complexType name="TemporaryUserType">
<xsd:annotation>
<xsd:documentation>
Temporary data structure just to continue the development of the smart correlation.
</xsd:documentation>
<xsd:appinfo>
<a:since>4.6</a:since>
<a:container>true</a:container>
<a:experimental>true</a:experimental>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element ref="tns:extension" minOccurs="0"/>
<xsd:element name="givenName" type="t:PolyStringType" minOccurs="0"/>
<xsd:element name="familyName" type="t:PolyStringType" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:long"/>
</xsd:complexType>

<xsd:complexType name="FocusIdentitySourceType">
<xsd:annotation>
<xsd:documentation>
Expand Down
18 changes: 0 additions & 18 deletions model/model-intest/src/test/resources/schema/enterprise.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,4 @@
</xsd:sequence>
</xsd:complexType>

<!-- FIXME TEMPORARY CODE -->
<xsd:complexType name="TemporaryUserTypeExtensionType">
<xsd:annotation>
<xsd:appinfo>
<a:extension ref="c:TemporaryUserType"/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="personalNumber" type="xsd:string">
<xsd:annotation>
<xsd:appinfo>
<a:indexed>true</a:indexed>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>

</xsd:schema>
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
import org.springframework.test.context.web.ServletTestExecutionListener;
import org.testng.Assert;
import org.testng.ITestResult;
import org.testng.SkipException;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.w3c.dom.Element;
Expand Down Expand Up @@ -4241,4 +4242,15 @@ protected void dumpResourceCapabilities(@NotNull ResourceType resource) throws S
System.out.println("Capability: " + CapabilityUtil.getCapabilityDisplayName(capability) + " : " + capability);
}
}

@SuppressWarnings("WeakerAccess")
protected boolean isNativeRepository() {
return repositoryService.isNative();
}

protected void skipIfNotNativeRepository() {
if (!isNativeRepository()) {
throw new SkipException("Not running on the native repository");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
import com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.IdentityItemsType;

import com.evolveum.midpoint.xml.ns._public.common.common_3.TemporaryUserType;

import org.jetbrains.annotations.NotNull;

import java.util.Collection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import java.io.File;

import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;

import com.evolveum.midpoint.prism.PrismObject;
Expand Down Expand Up @@ -68,6 +69,11 @@ public class TestInternalCorrelationMedium extends AbstractCorrelationTest {
private static final ItemPath PATH_DATE_OF_BIRTH = ItemPath.create(UserType.F_EXTENSION, "dateOfBirth"); // TODO NS URI
private static final ItemPath PATH_NATIONAL_ID = ItemPath.create(UserType.F_EXTENSION, "nationalId"); // TODO NS URI

@BeforeMethod
public void onNativeOnly() {
skipIfNotNativeRepository();
}

@Override
public void initSystem(Task initTask, OperationResult initResult) throws Exception {
super.initSystem(initTask, initResult);
Expand Down

0 comments on commit d1a7e55

Please sign in to comment.