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

Add connected devices traffgen support to testing framework #2754

Merged
merged 3 commits into from Sep 20, 2019

Conversation

rtretyak
Copy link
Collaborator

@rtretyak rtretyak commented Sep 2, 2019

No description provided.

@rtretyak rtretyak changed the base branch from develop to connected September 2, 2019 12:26
@rtretyak rtretyak changed the title Functional/connected devices traffgen Add connected devices traffgen support to testing framework Sep 2, 2019
@rtretyak rtretyak force-pushed the functional/connected_devices_traffgen branch 2 times, most recently from 402b3c7 to 8a5a969 Compare September 2, 2019 15:20
@niksv niksv force-pushed the connected branch 6 times, most recently from 819409e to d44de56 Compare September 4, 2019 07:12
@rtretyak rtretyak force-pushed the functional/connected_devices_traffgen branch 3 times, most recently from 15db525 to e999e81 Compare September 5, 2019 11:39
@niksv niksv force-pushed the functional/connected_devices_traffgen branch from e999e81 to 33189ef Compare September 5, 2019 15:13
@rtretyak rtretyak force-pushed the functional/connected_devices_traffgen branch 3 times, most recently from ef058b7 to 385d3d9 Compare September 6, 2019 10:01
@rtretyak
Copy link
Collaborator Author

rtretyak commented Sep 6, 2019

Note the target branch. Merge before merging connected to develop or change the target to develop before merge

@rtretyak rtretyak force-pushed the functional/connected_devices_traffgen branch from 0d5d761 to 070c234 Compare September 10, 2019 14:38
@niksv niksv force-pushed the functional/connected_devices_traffgen branch from 070c234 to 4da8265 Compare September 16, 2019 09:04
@niksv niksv force-pushed the connected branch 2 times, most recently from 6cd5bba to ba7bd7f Compare September 16, 2019 10:18
@niksv niksv force-pushed the functional/connected_devices_traffgen branch from 4da8265 to f29db12 Compare September 16, 2019 10:21
@rtretyak rtretyak force-pushed the functional/connected_devices_traffgen branch from f29db12 to 83095bc Compare September 16, 2019 11:39
@niksv niksv force-pushed the functional/connected_devices_traffgen branch 2 times, most recently from 1ac3236 to ed9ce39 Compare September 17, 2019 08:48
@niksv niksv force-pushed the functional/connected_devices_traffgen branch from ed9ce39 to e47081d Compare September 17, 2019 18:03
involvedSwitches[1..-1].each { switchId ->
northbound.deleteSwitchRules(switchId, DeleteRulesAction.IGNORE_DEFAULTS)
when: "Synchronize the switch"
verifyAll(northbound.synchronizeSwitch(switchPair.src.dpId, false)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

northbound.synchronizeSwitch(switchPair.src.dpId, false).rules.installed == [egressCookie]

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done both

Copy link
Collaborator Author

@rtretyak rtretyak Sep 18, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a mistake. with and verifyAll are forcing the verification in 'when' block. So it was correct. Your option is missing an assert keyword

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All related comments are reverted to this style:

        when: "Synchronize the switch"
        with(northbound.synchronizeSwitch(switchPair.src.dpId, false)) {
            rules.installed == [egressCookie]
        }

@rtretyak rtretyak force-pushed the functional/connected_devices_traffgen branch 2 times, most recently from 8dc5687 to df8ff73 Compare September 18, 2019 14:02
@niksv niksv force-pushed the functional/connected_devices_traffgen branch from df8ff73 to 96f0b5c Compare September 19, 2019 13:53
@niksv niksv changed the base branch from connected to develop September 20, 2019 05:40
@niksv niksv merged commit d9f54fd into develop Sep 20, 2019
@niksv niksv deleted the functional/connected_devices_traffgen branch September 20, 2019 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants