Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OpenPower] test_openbmctool_network: Valid Data Type mismatch while check #2222

Open
tom-ky-wu opened this issue Oct 27, 2023 · 4 comments
Open

Comments

@tom-ky-wu
Copy link

tom-ky-wu commented Oct 27, 2023

Hi, as described, when I ran the test cases for 'Verify GetDomainName' and 'Verify GetNTP,' I encountered the following error.
DN_001
NTP002

After modifying the robot code, it became valid. The modifications are as follows:

 Verify GetNTP
      # Get NTP server details via REDFISH.
      ${eth0}=  Redfish.Get Properties  ${REDFISH_NW_PROTOCOL_URI}
      ${tool_ntp}=  Network  getNTP  I=eth0
-     Valid Value  eth0['NTP']['NTPServers'][0]  ['${tool_ntp}']
+     Valid Value  eth0['NTP']['NTPServers'][0]  ${tool_ntp}
Verify GetDomainName
      [Tags]  Verify_GetDomainName
 
      Network  setDomainName  I=eth0  D=${domain_name}
      ${eth0}=  Redfish.Get Properties  ${REDFISH_NW_ETH0_URI}
      ${eth0_domain_name}=  Strip String  ${eth0['FQDN']}
      ...  characters=${eth0['HostName']}.  mode=left
      ${tool_domain_name}=  Network  getDomainName  I=eth0
-     Valid Value  eth0_domain_name  ['${tool_domain_name}']
+     Valid Value  eth0_domain_name  ${tool_domain_name}

I would like to ask if this modification is an improvement for the current code, or if you could please provide some advice. Thanks

@gkeishin
Copy link
Member

gkeishin commented Nov 8, 2023

@prkatti1 @swe12345 can u respond to this ?

@swe12345
Copy link
Contributor

swe12345 commented Nov 9, 2023

You can go ahead and make these changes and push and the code Tom.

@gkeishin
Copy link
Member

Maybe @swe12345 if it is quick you can push up the commit.

@gkeishin
Copy link
Member

gkeishin commented Dec 8, 2023

we are no longer supporting openbmctool at the latest master code.
If needed use the branch v4.0-stable for it ..

Please take a look at the above mailing list note https://lists.ozlabs.org/pipermail/openbmc/2023-December/034575.html . Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants