Skip to Main Content
Mastering Python Networking - Second Edition
book

Mastering Python Networking - Second Edition

by Eric Chou
August 2018
Intermediate to advanced content levelIntermediate to advanced
466 pages
10h 23m
English
Packt Publishing
Content preview from Mastering Python Networking - Second Edition

Jenkins integration

Before we can insert the test cases into our continuous integration, let's install some of the plugins that can help us visualize the operation. The two plugins we will install are build-name-setter and Test Result Analyzer:

Jenkins plugin installation

The test we will run will reach out to the NXOS device and retrieve the operating system version number. This will ensure that we have API reachability to the Nexus device. The full script content can be read in chapter13_9_pytest_4.py the relevant pytest portion and result are as follows:

def test_transaction():     assert nxos_version != False## Test Output$ pytest chapter13_9_pytest_4.py ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Python Networking

Mastering Python Networking

Eric Chou
Learning Python Networking - Second Edition

Learning Python Networking - Second Edition

José Manuel Ortega, Dr. M. O. Faruque Sarker, Sam Washington

Publisher Resources

ISBN: 9781789135992Supplemental Content