Skip to content

lgirdk/boardfarm-docsis

Repository files navigation

Boardfarm DOCSIS

This is the repo that will contain DOCSIS specific tests and libraries for use for testing a docsis CM, CMTS, or other devices in a typical DOCSIS environment

To use this boardfarm plugin on Ubuntu, you must install:

# TCL for encoding of an MTA config file
sudo apt update
sudo apt install tcllib

# docsis for running docsis commands
sudo apt install automake libtool libsnmp-dev bison make gcc flex git libglib2.0-dev libfl-dev
git clone https://github.com/rlaager/docsis.git
cd docsis
./autogen.sh
./configure
make
sudo make install

Execute tests

Please see the the demo test suite that utilizes some of the use-cases from the boardfarm-docsis plugin.

.
└── tests
    ├── __init__.py
    ├── docsis
    │   ├── __init__.py
    │   └── test_demo_docsis_1.py
    ├── pytest.ini
    └── tr069
        ├── __init__.py
        └── test_demo_tr069_1.py

NOTE: In order to run these test you will have to install pytest-boardfarm.

pip install boardfarm3[docsis,pytest]

Sample run command:

pytest \
    --rootdir=. \
    --capture=tee-sys \
    --board-name <cpe-name> \
    --env-config <testbed_env.json>  \
    --junitxml ./results/pytest_run_report.xml \
    --ldap-credentials "username:password"  \
    --inventory-config <lab_devices.json> \
    --html=./results/pytest_run_report.html  \
    --self-contained-html  \
    --save-console-logs=./results  \
    ./boardfarm-docsis/tests/ \
    --skip-contingency-checks

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages