mkumatag / openbmc-automation

Test OpenBMC Distribution, moved to - https://github.com/openbmc/openbmc-test-automation
Apache License 2.0
5 stars 11 forks source link

PreTag Set IP address on valid Interface - FAILED #60

Closed gkeishin closed 8 years ago

gkeishin commented 8 years ago

Set IP address on valid Interface Failure.. This needs to be fix asap.. because of these 2 more test cases are failing .... ( "Persistency check for ip address" / Revert the last ip address change )

Full Name: Tests.Test Networkd.Set IP address on valid Interface Documentation: This test case sets the ip on the interface and validates that ip address has been set or not. Expectation is the ip address should get added. Tags: network_test Start / End / Elapsed: 20160530 23:16:18.693 / 20160530 23:16:18.705 / 00:00:00.012 Status: FAIL (critical) Message: Environment variable 'NEW_BMC_IP' does not exist.

As per README.md ..

Use Following Variables for networking test cases

$export NEW_BMC_IP=<openbmc machine ip address>
$export NEW_SUBNET_MASK=<openbmc new subnet mask>
$export NEW_GATEWAY=<openbmc new gateway>

But I don't see it exported any where in the setup.. So either this has to be automated or to be removed from the test case in full run... since it needs the setup prior to running the test,..

So this code tests/test_networkd.robot: ${NEW_IP}= Get Environment Variable NEW_BMC_IP

is bound to fail...

+++++++++++++++++++++++++

Since the above test case ""Set IP address on valid Interface" Failed.. this also failed...

And same with test case "Persistency check for ip address"

Revert the last ip address change

Full Name: Tests.Test Networkd.Revert the last ip address change Documentation:

This test case sets the ip on the interface and validates that ip address has been set or not. Expectation is the ip address should get added. Tags: network_test Start / End / Elapsed: 20160530 23:16:18.706 / 20160530 23:16:18.717 / 00:00:00.011 Status: FAIL (critical) Message: Variable '${OLD_IP}' not found.

mkumatag commented 8 years ago

@ratagupt can you please have a look. @rahulmah

ratagupt commented 8 years ago

Hi George,

You need to export this variables before running the test cases.

gkeishin commented 8 years ago

https://github.com/openbmc/openbmc-test-automation/issues/11