Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 20
Keep test results in memory#82
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
Merged
Uh oh!
There was an error while loading. Please reload this page.
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -90,11 +90,30 @@ def start(self): | ||
| def check_config(self): | ||
| if not util.interface_exists(self._session.get_internet_interface()) or not util.interface_exists( | ||
| self._session.get_device_interface()): | ||
| LOGGER.error('Configured interfaces are not ready for use. ' + | ||
| 'Ensure both interfaces are connected.') | ||
| return False | ||
| device_interface_ready = util.interface_exists( | ||
| self._session.get_device_interface()) | ||
| internet_interface_ready = util.interface_exists( | ||
| self._session.get_internet_interface()) | ||
jboddey marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| if 'single_intf' in self._session.get_runtime_params(): | ||
| # Check for device interface only | ||
| if not device_interface_ready: | ||
| LOGGER.error('Device interface is not ready for use. ' + | ||
| 'Ensure device interface is connected.') | ||
| return False | ||
| else: | ||
| if not device_interface_ready and not internet_interface_ready: | ||
| LOGGER.error('Both device and internet interfaces are not ready for use. ' + | ||
| 'Ensure both interfaces are connected.') | ||
| return False | ||
| elif not device_interface_ready: | ||
| LOGGER.error('Device interface is not ready for use. ' + | ||
| 'Ensure device interface is connected.') | ||
| return False | ||
| elif not internet_interface_ready: | ||
| LOGGER.error('Internet interface is not ready for use. ' + | ||
| 'Ensure internet interface is connected.') | ||
| return False | ||
| return True | ||
| def start_network(self): | ||
| @@ -310,20 +329,19 @@ def _ci_post_network_create(self): | ||
| def create_net(self): | ||
| LOGGER.info('Creating baseline network') | ||
| if self._single_intf: | ||
| self._ci_pre_network_create() | ||
| # Remove IP from internet adapter | ||
| util.run_command('ifconfig ' + self._session.get_internet_interface() + ' 0.0.0.0') | ||
| # TODO: This is not just for CI | ||
| #if self._single_intf: | ||
| #self._ci_pre_network_create() | ||
| # Setup the virtual network | ||
| if not self._ovs.create_baseline_net(verify=True): | ||
| LOGGER.error('Baseline network validation failed.') | ||
| self.stop() | ||
| sys.exit(1) | ||
| if self._single_intf: | ||
| self._ci_post_network_create() | ||
| # TODO: This is not just for CI | ||
| #if self._single_intf: | ||
| #self._ci_post_network_create() | ||
| self._create_private_net() | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.