-
Notifications
You must be signed in to change notification settings - Fork 539
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
Add test for IPv4/IPv6 tunnel creation #552
Conversation
|
||
tunnel_sai_obj = tunnels[0] | ||
|
||
status, fvs = tunnel_table.get(tunnel_sai_obj) |
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 probably need to assert status == true here
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
expected_dscp_mode = self.dscp_modes_map[dscp_mode] | ||
expected_ttl_mode = self.ttl_modes_map[ttl_mode] | ||
|
||
for field, value in fvs: |
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 need to access the len(fvs) since some attribute might be missing.
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.
Added assert len(fvs) == expected number of fields
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.
add more checks
Signed-off-by: stepanb <[email protected]>
8627c0e
to
f27d7f4
Compare
Retest this please |
1 similar comment
Retest this please |
Signed-off-by: stepanb [email protected]
What I did
I added VS test for IPv4/IPv6 tunnel creation
Why I did it
There was no VS test for tunnel creation, so I added it
How I verified it
Run VS tests