Test paths with single module vs all modules 81/107381/2
authorŠimon Ukuš <simon.ukus@pantheon.tech>
Fri, 21 Jul 2023 09:48:04 +0000 (11:48 +0200)
committerSimon Ukus <simon.ukus@pantheon.tech>
Thu, 10 Aug 2023 10:41:33 +0000 (10:41 +0000)
commit0f91af9e964e19c23a7a09ae46cd6779144b003a
tree24921c28163ce24a89bd756c56ec622d1253ffbf
parent376bdeadc1673e4cc52eb5eb1ca68fd3953d37de
Test paths with single module vs all modules

There are differences between path nodes that are constructed
when building OpenApiObject for single module of a mounted
device "/mounts/{instance}/{module}({revision})" vs
when requesting it for all modules of the device "/mounts/{instance}".
The differences are are in summary value and tags value, where
the deviceName was missing when building OpenApiObject for single
module.

These differences were removed in previous patch.
Tests are provided to check whether the summary is created as expected
and also to verify that there is no difference in the paths field
of the OpenApiObject between the two ways of requesting it (single
module vs all modules).

JIRA: NETCONF-1090
Change-Id: I577629e91a58383a38c73bd27847f5dadd27e115
Signed-off-by: Šimon Ukuš <simon.ukus@pantheon.tech>
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
(cherry picked from commit 30f60a4569137fdded6f8db54b14501d098b435b)
restconf/sal-rest-docgen/src/test/java/org/opendaylight/netconf/sal/rest/doc/impl/MountPointSwaggerTest.java