openbmc-test-automation icon indicating copy to clipboard operation
openbmc-test-automation copied to clipboard

Settings Menu. Test Network Sub Menu

Open justin0309 opened this issue 1 year ago • 9 comments

1.Configure And Verify DNS Server Via GUI Regarding this test item, because our test environment uses a dhcp server, there will originally be /etc/udhcpc.d/50default: Adding DNS 168.95.1.1 in /etc/resolv.conf. But is it normal that this IP will not appear on the web page?

image

image

2.This test item will try to join an ip server of 10.10.10.10 and verify whether the deletion is successful. Testing can be done. But in the end, it will be verified whether resolv.conf is empty.

So the test will fail because the original dns server IP still exists. If I want the test to pass, is it reasonable to manually delete nameserver 168.95.1.1 before testing?

justin0309 avatar Jan 03 '24 07:01 justin0309

@prkatti1 can you respond to this ?

gkeishin avatar Jan 08 '24 03:01 gkeishin

@justin0309 This is file should be updated automatically and not meant for manual update in case on BMC. Static name servers configurations, deletion & modifications to be done via GUI or Redfish and not via writing to a file manually.

To test: Add DNS server/s via GUI/Redfish Delete DNS servers via GUI/Redfish

prkatti1 avatar Jan 08 '24 10:01 prkatti1

@prkatti1 Let me explain again, our test environment uses a dncp server, so when dncp assigns an IP, it will automatically add Nameserver 168.95.1.1 to /etc/resolv.conf. Nameserver 168.95.1.1 will not show up on the web page, so when executing the test, the final check to see if the nameserver is empty will fail. Or can you tell me if your test environment also uses dncp or static ip?

justin0309 avatar Jan 09 '24 05:01 justin0309

Yeah, code is designed in such a way that this should run in any kind of environment. There are 2 things: static nameservers- which are manually configured nameservers- which are not configured manually

nameservers that are not configured manually, can't be deleted/modified nameservers that are not configured manually, will be displayed only in redfish get output

can you elaborate a bit which one you are trying & what problem you are facing??

prkatti1 avatar Jan 09 '24 07:01 prkatti1

@prkatti1 udhcpc image cat /etc/resolv.conf image image I use dhcp. As I said, the robot test will eventually verify whether the nameserver is empty, but the original 168.95.1.1 still exists, so the test will fail.

justin0309 avatar Jan 09 '24 07:01 justin0309

Ahh OK, it is a GUI test code issue. @meghagn5 use the same logic that is used in non GUI tests.

prkatti1 avatar Jan 09 '24 08:01 prkatti1

Am working on it & will push the fix

meghagn5 avatar Jan 09 '24 09:01 meghagn5

@justin0309 @swe12345 Pls take a look & review https://gerrit.openbmc.org/c/openbmc/openbmc-test-automation/+/68669

prkatti1 avatar Jan 09 '24 11:01 prkatti1

@prkatti1 The test project Configure And verify DNS Server Via GUI looks normal, but I'm not sure if the IP runs away when others test it. Thanks.

justin0309 avatar Jan 12 '24 07:01 justin0309