Network Topology Framework using NML, with support for pytest.
Project description
Network Topology Framework using NML, with support for pytest.
Documentation
Changelog
1.4.0
Changes
The shell used to execute a command will now be logged.
New
New low level shell API that allows to define a common behavior for all low level shell manipulation. This API is implemented by the topology.platforms.shell module.
Two new high level API methods for accesing the low level shell API:
myshell = mynode.get_shell('python') response = myshel.execute('1 + 1')
Or using a context manager:
with mynode.use_shell('python') as python: # This context manager sets the default shell to 'python' mynode('from os import getcwd') cwd = mynode('print(getcwd())') # Access to the low-level shell API python.send_command('foo = (', matches=['... '])
1.3.0
Changes
Attribute injection will now try to match files on any subfolder of the search paths and not only on the search paths themselves.
Fixes
Fixed critical bug in injection attribute not considering matches in some cases.
1.2.0
New
Added new API for the topology nodes that allow to set the default shell. For example, you may now use mynode.default_shell = 'bash'.
Documentation for the Attribute Injection feature was added.
Improvements for file matching in attribute injection files. Now, if using pytest, all test folders passed as arguments will be used as search paths for relative files specified in the attribute injection file. With this, it is no longer required to use an absolute path, and this practice becomes deprecated.
Fixes
Fixed a bug in attribute injection when using attribute=value as node identifier that caused all nodes with the attribute to use that value.
1.1.0
New
Added a common stateprovider decorator to topology.libraries.utils that allows to easily inject state to an enode in a Communication library.
Added a common NodeLoader class to topology.platforms.utils that allows a Platform Engine to find a load nodes for it’s platform.
1.0.1
Fixes
Fixed fatal bug when running a single node topology without ports.
Fixed new PEP8 checks on the codebase.
1.0.0
Initial public release.
License
Copyright (C) 2015-2016 Hewlett Packard Enterprise Development LP Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.