[CONTROLLER-1208] Unit test failures in RestPutOperationTest Created: 14/Mar/15  Updated: 27/Oct/15  Resolved: 27/Oct/15

Status: Resolved
Project: controller
Component/s: restconf
Affects Version/s: Post-Helium
Fix Version/s: None

Type: Bug
Reporter: Tom Pantelis Assignee: Jakub Toth
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 2845

 Description   

There are various tests in RestPutOperationTest that are failing verify builds at least half the time. A couple examples:

java.lang.AssertionError: expected:<200> but was:<400>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:743)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:555)
at org.junit.Assert.assertEquals(Assert.java:542)
at org.opendaylight.controller.sal.restconf.impl.test.RestPutOperationTest.putConfigStatusCodes(RestPutOperationTest.java:103)

RestPutOperationTest.putWithOptimisticLockFailedException:177 expected:<200> but was:<400>

RestPutOperationTest.putDataMountPointIntoHighestElement:159 expected:<200> but was:<400>

It seems there's an issue with incorrect status codes.



 Comments   
Comment by Tom Pantelis [ 14/Mar/15 ]

I submitted and merged patch https://git.opendaylight.org/gerrit/#/c/16509/ to temporarily ignore RestPutOperationTest. Sorry for breaking the rule about merging your own patch but it's Fri nite and no one's available and I'm leaving for vacation soon and have several patches that I need verified.

Comment by Tony Tkacik [ 16/Mar/15 ]

Seems to same problem sometimes we were observing with Restconf - shared (leaky) state between tests due to mutable singleton nature.

Comment by Jakub Toth [ 17/Jul/15 ]

https://git.opendaylight.org/gerrit/#/c/23766/

Generated at Wed Feb 07 19:54:57 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.