Test JSON representations of responses in OpenApi 91/107391/29
authorŠimon Ukuš <simon.ukus@pantheon.tech>
Fri, 11 Aug 2023 12:48:15 +0000 (14:48 +0200)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Wed, 4 Oct 2023 14:19:15 +0000 (14:19 +0000)
commit229fab4397f058e04eab57533f33e254c3b1db0f
treecad45ac7525151a886949034783866ab3b471e5b
parent2c5dcb4dc7498acb0c172ec32ba908d265d2baa8
Test JSON representations of responses in OpenApi

We did not have any tests that would provide a higher overview
of the responses sent back to clients. Such view gives us an idea
about the generated output.

These tests verify the full response of each endpoint by comparing
the results to prepared JSONs.

JIRA: NETCONF-1131
Change-Id: I008f01e3c11593f5a2d0f53843bc4d5639abda1a
Signed-off-by: Šimon Ukuš <simon.ukus@pantheon.tech>
Signed-off-by: Samuel Schneider <samuel.schneider@pantheon.tech>
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
restconf/restconf-openapi/pom.xml
restconf/restconf-openapi/src/test/java/org/opendaylight/restconf/openapi/impl/SwaggerDocumentTest.java [new file with mode: 0644]
restconf/restconf-openapi/src/test/resources/openapi-document/controller-all.json [new file with mode: 0644]
restconf/restconf-openapi/src/test/resources/openapi-document/controller-toaster.json [new file with mode: 0644]
restconf/restconf-openapi/src/test/resources/openapi-document/device-all.json [new file with mode: 0644]
restconf/restconf-openapi/src/test/resources/openapi-document/device-toaster.json [new file with mode: 0644]
restconf/restconf-openapi/src/test/resources/openapi-document/toaster.yang [new file with mode: 0644]