[NETCONF-798] Fix scale-util for RFC 8040 Created: 29/Jul/21  Updated: 22/Feb/22  Resolved: 02/Feb/22

Status: Resolved
Project: netconf
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0.13

Type: Bug Priority: High
Reporter: Ivan Hrasko Assignee: Oleksandr Zharov
Resolution: Done Votes: 0
Labels: pt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
split from NETCONF-758 Fix functionality of the test tool Resolved
Epic Link: Remove old RESTCONF

 Description   

The tool has multiple issues. It cannot correctly stop and start Karaf container.
In addition it is still using draft-bierman-netconf-restconf-02 noauth feature.
To update to RFC 8040 feature a proper authorization needs to be implemented in the tool.

 

Required things to do:

1. (ScaleUtil.java) change installed RESTCONF feature to "odl-restconf-nb-rfc8040"
2. (ScaleUtil.java) update requests paths according to: RFC 8040 version
3. (ScaleUtil.java) use credentials for request auth (avoid 401)

4. verify scale util works:

java -jar scale-util-2.0.12-SNAPSHOT-scale-util.jar --distribution-folder ../../../../karaf/target/assembly/ --controller-auth-username admin --controller-auth-password admin

5. verify default auth for the requests works

Try to make to work this command:

java -jar scale-util-2.0.12-SNAPSHOT-scale-util.jar --distribution-folder ../../../../karaf/target/assembly/

It means that admin:admin is the default username and password in parameters.

6. do clean-up

Remove ScaleUtilParameters.java class


Generated at Wed Feb 07 20:15:56 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.