Skip to content

Commit

Permalink
Create a workaround for YANGTOOLS-1575
Browse files Browse the repository at this point in the history
Comment these tests out until YANGTOOLS-1575 is resolved.

JIRA: LIGHTY-303
Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit c1c5286)
  • Loading branch information
Tobianas authored and ihrasko committed May 29, 2024
1 parent 8a0beeb commit 1618117
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
Expand Down Expand Up @@ -47,6 +48,7 @@ public void topLevelElementTest() throws Exception {
assertUpdateEquals(prepared.getValue(), result);
}

@Disabled("Disabled until YANGTOOLS-1575 is resolved")
@Test
public void listEntryCase() throws Exception {
final Map.Entry<ImmutablePair<YangInstanceIdentifier, NormalizedNode>, Gnmi.Update> prepared =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import org.json.JSONException;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.skyscreamer.jsonassert.JSONAssert;
import org.slf4j.Logger;
Expand Down Expand Up @@ -638,7 +639,7 @@ public void crudComplexAugmentedValue() throws ExecutionException, InterruptedEx
assertThrows(ExecutionException.class, () -> sessionProvider.getGnmiSession().get(getRequest).get());
}


@Disabled("Disabled until YANGTOOLS-1575 is resolved")
@Test
public void getListEntryTest() throws ExecutionException, InterruptedException, IOException, JSONException {
final Gnmi.Path path = Gnmi.Path.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.skyscreamer.jsonassert.JSONAssert;
import org.slf4j.Logger;
Expand Down Expand Up @@ -162,6 +163,7 @@ public void getLeafIdentityRefTest() throws InterruptedException, IOException, J
assertEquals(OC_INTERFACE_ETH3_CONFIG_TYPE_EXPECTED, ocInterfaceEth3ConfigType);
}

@Disabled("Disabled until YANGTOOLS-1575 is resolved")
@Test
public void getListEntryTest() throws InterruptedException, IOException, JSONException {
//assert list entry in openconfig-interfaces - interface - eth3, and also if it is only one with that key
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.skyscreamer.jsonassert.JSONAssert;
import org.slf4j.Logger;
Expand Down Expand Up @@ -152,6 +153,7 @@ public void setContainerTest() throws InterruptedException, IOException, JSONExc
restoreDeviceToOriginalState();
}

@Disabled("Disabled until YANGTOOLS-1575 is resolved")
@Test
public void setAugmentedInterfaceListFromOuterModelTest() throws Exception {
final String payload = getAugmentedTestInterfaceBody();
Expand Down Expand Up @@ -269,6 +271,7 @@ public void deleteLeafTest() throws InterruptedException, IOException, JSONExcep
restoreDeviceToOriginalState();
}

@Disabled("Disabled until YANGTOOLS-1575 is resolved")
@Test
public void setSimpleListEntryTest() throws IOException, InterruptedException, JSONException {
// Set simple list with
Expand Down Expand Up @@ -355,6 +358,7 @@ public void setNestedListInWrongWayTest() throws IOException, InterruptedExcepti
assertEquals(HttpURLConnection.HTTP_INTERNAL_ERROR, nestedListResponse.statusCode());
}

@Disabled("Disabled until YANGTOOLS-1575 is resolved")
@Test
public void setNestedListTest() throws IOException, InterruptedException, JSONException {
// Create data in base list
Expand Down

0 comments on commit 1618117

Please sign in to comment.