Support validation of TR181 data model via different mechanisms other than WebPA.
Activity progress is tracked via
This includes updating APIs that uses WebPA GET, SET, WebPA Table ADD, UPDATE and DELETE.
Code Review: - https://code.rdkcentral.com/r/c/rdk/tools/automatics/automatics-core/+/73652
Automatics-Core version - v2.7.0
Details of WebPA operations addressed:
WebPA Operations | Refactor Status | Merged to CMF |
---|---|---|
GET | Completed | Yes |
SET | Completed | Yes |
Table data POST | In Progress | No |
Table data PUT | In Progress | No |
Table data DELETE | In Progress | No |
Following APIs in AutomaticsTapAPI.java are refactored/to be refactored for TR181 Validation support.
WebPA Operation Type | WebPa API | Refactored |
WebPa GET | public boolean getWebPaAttributeValues(Dut dut, String[] parameters) | Yes |
public List<WebPaParameter> executeWebPaGetCommand(Dut dut, String... parameters) | Yes | |
public Map<String, String> executeMultipleWebPaGetCommands(Dut dut, String[] parameters) | Yes | |
public String executeWebPaCommand(Dut dut, String parameter) { | Yes | |
public List<String> executeWebPaCommands(Dut dut, String[] parameterArray) | Yes | |
public List<String> getTR69ParameterValuesUsingWebPA(Dut dut, String[] parameter) | Yes | |
public WebPaServerResponse getTR69ParameterValuesUsingWebPA(Dut dut, String parameter) | Yes | |
WebPa SET | public boolean setWebPaAttributeValues(Dut dut, List<WebPaParameter> webPaParameters) | Yes |
public Map<String, String> executeMultipleWebPaSetCommands(Dut dut, List<WebPaParameter> webPaParameters) | Yes | |
public WebPaServerResponse setWebPaParameterValues(Dut dut, List<WebPaParameter> webPaParameters) | Yes | |
public List<WebPaParameter> setWebPaParams(Dut dut, String parameter, String value, int dataType) | Yes | |
WebPa PUT | public WebPaServerResponse putWebpaTableParamUsingRestApi(Dut dut, String tableName, | No |
WebPa POST | public WebPaServerResponse postWebpaTableParamUsingRestApi(Dut dut, String tableName, | No |
WebPa DELETE | public WebPaServerResponse deleteTableRowUsingRestApi(Dut dut, String tableNameWithRow) | No |
Automatics-Core identifies TR181 access method to be used via property ‘DEFAULT_TR181_ACCESS_METHOD’ in Automatics Properties.
To test tr181 via DMCLI, either set DEFAULT_TR181_ACCESS_METHOD=DMCLI or just remove this property, since default access mechanism will always be DMCLI only.