openconfig / featureprofiles

Feature Profiles are groups of OpenConfig paths and tests which verify their behavior
Apache License 2.0
51 stars 147 forks source link

Configuration cleanup/teardown after script execution #611

Closed trathod1 closed 2 years ago

trathod1 commented 2 years ago

Is there a way to have configuration clean-up/teardown done after the test execution in the script ?

After execution of script feature/gribi/ate_tests/get_rpc_test/get_rpc_test.go, it is observed that static-route configurations are left on the DUT for route 198.51.100.192/26.

Due to this old static-route, test is failing in feature/gribi/ate_tests/ipv4_entry_test/ipv4_entry_test.go.

dplore commented 2 years ago

We expect that the device configuration is cleaned up / reset to a default state inbetween each test. Our expectation is your binding or CI system would perform the configuration reset after completion of a test.

trathod1 commented 1 year ago

Thanks. Able to use config option in binding file to reset config.