Remove "Generex" dependency 73/104973/26
authorYaroslav Lastivka <yaroslav.lastivka@pantheon.tech>
Tue, 21 Mar 2023 12:39:19 +0000 (14:39 +0200)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Fri, 19 May 2023 13:40:57 +0000 (15:40 +0200)
commitaca80000839cbaf76f5021b08c5e29e30ad08056
tree53063c290348d363bf2e4bb721c6df47a81aa18b
parentbbf9edb4e55520a8df99cc883d2ad6c6d6679164
Remove "Generex" dependency

Removed "Generex" and replaced with direct usage of "Automaton"
to generate random strings as "Genegex" seems to be no longer
actively developed project.

In fact the previous logic to generate example strings was broken.
We have fixed it by using RegularExpressionString instead of
JavaPatternString.

Now we have the same examples generated every run which helps us
to write better tests with assertions.

JIRA: NETCONF-980
Change-Id: I52e6d9d1a0f0cf43eb17b99309d9101c32d75a42
Signed-off-by: Yaroslav Lastivka <yaroslav.lastivka@pantheon.tech>
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
restconf/restconf-openapi/pom.xml
restconf/restconf-openapi/src/main/java/org/opendaylight/restconf/openapi/impl/DefinitionGenerator.java
restconf/restconf-openapi/src/test/java/org/opendaylight/restconf/openapi/impl/DefinitionGeneratorTest.java
restconf/restconf-openapi/src/test/java/org/opendaylight/restconf/openapi/mountpoints/MountPointOpenApiTest.java
restconf/restconf-openapi/src/test/resources/yang/strings-from-regex.yang [new file with mode: 0644]