Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

PyPI - Python Version PyPI GitHub Documentation Status

Xena OpenAutomation Test Config Converter

Xena OpenAutomation (XOA) Test Configuration Converter is a supporting tool for users to quickly migrate their Valkyrie test suite configurations into XOA.

Introduction

The XOA Test Config Converter is an open-source tool hosted on Xena Networks' GitHub repository. It is designed to help users migrate their existing Valkyrie test suite configurations into the XOA format, enabling a seamless transition to the XOA ecosystem for network automation and testing.

Key features of the XOA Test Config Converter include:

  1. Conversion support: The tool supports conversion of Valkyrie test suite configuration files to XOA-compatible format, facilitating the integration of existing test cases into the XOA framework.

  2. Ease of use: The XOA Test Config Converter is designed to be user-friendly, with a straightforward process for converting test suite configuration files.

  3. Compatibility: The converter ensures that the migrated test suite configurations are compatible with XOA Core and can be executed within the XOA ecosystem.

The purpose of XOA Converter is ONLY to convert Xena Valkyrie test suit applications' configuration files into XOA's configuration files. Thus only four test suite types are supported by XOA Converter as the source config files.

Documentation

The user documentation is hosted: Xena OpenAutomation Test Config Converter Documentation

Installation

Install Using pip

Make sure Python pip is installed on you system. If you are using virtualenv, then pip is already installed into environments created by virtualenv, and using sudo is not needed. If you do not have pip installed, download this file: https://bootstrap.pypa.io/get-pip.py and run python get-pip.py.

To install the latest, use pip to install from pypi:

~/> pip install xoa-converter

To upgrade to the latest, use pip to upgrade from pypi:

~/> pip install xoa-converter --upgrade

Install From Source Code

Make sure these packages are installed wheel, setuptools on your system.

Install setuptools using pip:

~/> pip install wheel setuptools

To install source of python packages:

/xoa_driver> python setup.py install

To build .whl file for distribution:

/xoa_driver> python setup.py bdist_wheel

Quick Start

  • Get Python pip if not already installed (Download https://bootstrap.pypa.io/get-pip.py): python get-pip.py

  • Install the latest xoa-driver: pip install xoa-converter -U

  • Code example to convert .v2544 into XOA 2544 test configuration:

    import asyncio
    import json
    from xoa_core import controller
    from xoa_converter.entry import converter
    from xoa_converter.types import TestSuiteType
    
    async def start():
        SOURCE_CONFIG_FILE = "my_old2544_config.v2544" # source config file to be converted
    
        core_ctrl = await controller.MainController() # create an instance of xoa core controller
        info = core_ctrl.get_test_suite_info("RFC-2544") # get 2544 test suite information from the core's registration
        target_schema = json.load(info['schema']) # get the target json schema
    
        with open(SOURCE_CONFIG_FILE, 'r') as source_data_file:
            target_config = converter(
                test_suite_type=TestSuiteType.RFC2544, 
                source_config=source_data_file.read(), 
                target_schema=target_schema
            )
            
            print(target_config)
    
    
    if __name__ == '__main__':
        loop = asyncio.get_event_loop()
        loop.create_task(start())
        loop.run_forever()
    

FOR TESTING BEYOND THE STANDARD.

Metadata

Release files for xoa-converter 2.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xoa-converter 2.0.7
File Size Uploaded Provenance Actions
xoa_converter-2.0.7.tar.gz 43.6 kB Without provenance Details for xoa_converter-2.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xoa-converter 2.0.7
File Interpreter ABI Platform Actions
xoa_converter-2.0.7-py3-none-any.whl Python 3 none any Details for xoa_converter-2.0.7-py3-none-any.whl

Total release size: 107.7 kB

Release files / xoa_converter-2.0.7.tar.gz

Download URL xoa_converter-2.0.7.tar.gz
Size 43.6 kB
Tags Source
SHA-256 checksum
How to use checksums
894374c044c715b9fcaf6a3d6ca4e1c27b6255efccb785b5fc0cef198c6f4009
BLAKE2b-256 checksum
How to use checksums
f60a28d8a8b7295ec63094ce56411eab47d26341e7787c0bd512e4423f571a99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.21

Release files / xoa_converter-2.0.7-py3-none-any.whl

Download URL xoa_converter-2.0.7-py3-none-any.whl
Size 64.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5175b3777f590e4b4a89228614ca618ac8215fd30235d4f84d6c284aa03bf762
BLAKE2b-256 checksum
How to use checksums
e762d4d6150c692649b8d701d9dc386f1fa241505aa0cb11ed930b831ab77846
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.21

Security for xoa-converter 2.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page