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

Set up before test execution #12

Open
j-suarezp opened this issue Aug 13, 2020 · 3 comments
Open

Set up before test execution #12

j-suarezp opened this issue Aug 13, 2020 · 3 comments
Assignees
Labels
Medium Priority to do.

Comments

@j-suarezp
Copy link
Contributor

Implement a dicard changes y cancel commit before the execution of each test

@oscargdd
Copy link
Collaborator

Discard changes is implemented. Still missing the cancel commit.

@oscargdd
Copy link
Collaborator

discard changes must be a feature of the test and not "hardcoded" as part of the test.

@crcampos612
Copy link
Collaborator

crcampos612 commented Feb 11, 2021

Date: 15/02/2021

Username: Carlos Rodriguez

Issue: Device ( clean ) setup before each test execution

As a:

For devices where candidate datastore is not supported, but only running, tests don't work because netconf discard-changes operation can't be executed as candidate datastore doesn't exist. That operation discard-changes discards any uncommitted changes by resetting the candidate configuration with the content of the running configuration.

An enhancement would be read the device capability when netconf session is started ( netconf hello message ) and in case it isn't supported then skip discard-changes operation at the beginning of test flow.

I want:

1.- After opening a netconf session with the device, seek for this line announcing candidate support capability "urn:ietf:params:netconf:capability:candidate:1.0" within in the netconf hello message received. If not found, then automatically discard-changes operation should be is skipped.

2.- Also modification of YML file for the set of test affected so as to replace target and commit variables in that way:

target: running
commit: false

So that:

Test for those vendors like Infinera that don't support candidate datastore can be performed without any change in the testing process.

Accept Criteria:

Testing tool.

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

No branches or pull requests

6 participants