-
Notifications
You must be signed in to change notification settings - Fork 61
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
Test: Adding integration tests for cv_device_v3 #621
Conversation
@@ -0,0 +1,17 @@ | |||
--- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove this file from this PR? It will be added by another PR, that will be merged in before this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
ansible_collections/arista/cvp/molecule/cv_device_v3/test_cv_device_v3.yaml
Outdated
Show resolved
Hide resolved
vars: | ||
CVP_DEVICES_MOVE_DEVICE: | ||
- fqdn: leaf1 | ||
parentContainerName: "Spine" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should move this to Leaf
container just to make things logical
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
|
||
CVP_DEVICES_PARENT_CONTAINER_SAME: | ||
- fqdn: leaf1 | ||
parentContainerName: "Spine" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to Leaf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
that: | ||
- "MOVE_DEVICE_RUN.devices_moved.changed == true" | ||
- "MOVE_DEVICE_RUN.devices_moved.devices_moved_count == 1" | ||
- "MOVE_DEVICE_RUN.devices_moved.devices_moved_list == ['leaf1_to_Spine']" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leaf1_to_Leaf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
arista.cvp.cv_device_v3: | ||
devices: '{{CVP_DEVICES_STATE_ABSENT}}' | ||
state: absent | ||
# ignore_errors: yes # ignoring errors so assertions can be done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove comment line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
c8f51ef
to
9981b74
Compare
ce7391c
to
efaf30a
Compare
…e_attached/bundle_detached
- serialNumber: JPE504a004ea054 | ||
parentContainerName: L2_Leaf | ||
configlets: | ||
- 'AVD_Ipmi3' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use a custom configlet and not what we assume to already be present on ATD?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
- serialNumber: JPE504a004ea054 | ||
parentContainerName: L2_Leaf | ||
configlets: | ||
- 'AVD_Ipmi3' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Please upload images, configlets etc and then use it in the test rather than using something that is assumed to be present on ATD. |
90d107f
to
a0a2540
Compare
Some minor fix Updated tests
c77d6a7
to
3bbb648
Compare
ansible_collections/arista/cvp/molecule/cv_device_v3/test_move_and_deploy_device.yml
Show resolved
Hide resolved
action: add | ||
bundle_name: "{{BUNDLE_NAME}}" | ||
image_list: | ||
- "{{IMAGE_NAME}}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need a Terminattr to be added to the bundle. Please add a terminattr to this bundle
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
e690b07
to
1019dcc
Compare
1019dcc
to
79b1a3f
Compare
regexp_filter: "{{DEVICE_NAME}}" | ||
register: CV_FACTS_V3_RESULT | ||
|
||
- name: "Push config" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we testing push configlet here rather than in test_apply_detach_configlets.yaml
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we are not testing it here, just uploading it to be used while attaching/detaching bundle
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested it without configlets, removing configlet part.
Thanks!
...ions/arista/cvp/molecule/cv_device_v3/test_decommission_factory_reset_provisioning_reset.yml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested successfully on dual DC ATD, lgtm!+1
Change Summary
Adding integration tests for cv_device_v3
Related Issue(s)
Fixes #
Component(s) name
arista.cvp.cv_device_v3
Proposed changes
How to test
Checklist
User Checklist
Repository Checklist