Cisco DevNet Certifications - DevNet Specialist
1 Introduction to Cisco DevNet
2 Cisco DevNet Certifications Overview
1 DevNet Associate
2 DevNet Professional
3 DevNet Specialist
3 DevNet Specialist Certification Path
1 Core Competencies
2 Specialization Tracks
4 DevNet Specialist - Enterprise Automation and Programmability
1 Introduction to Enterprise Automation
2 Network Programmability Concepts
3 Cisco DNA Center APIs
4 Cisco IOS XE Programmability
5 Cisco ACI Programmability
6 Cisco SD-WAN Programmability
7 Cisco UCS Programmability
8 Automation Tools and Frameworks
9 Python for Network Engineers
10 RESTful APIs and HTTP Methods
11 JSON and XML Data Formats
12 YANG Data Modeling
13 NETCONF and RESTCONF
14 Ansible for Network Automation
15 Puppet for Network Automation
16 Git and Version Control
17 CICD Pipelines for Network Automation
18 Troubleshooting Automation Issues
5 DevNet Specialist - Network Programmability and Automation
1 Introduction to Network Programmability
2 Network Automation Concepts
3 Cisco NX-API and NX-OS Programmability
4 Cisco IOS XR Programmability
5 Cisco Meraki Programmability
6 Cisco Catalyst 9000 Series Programmability
7 Cisco SD-Access Programmability
8 Network Automation Tools and Frameworks
9 Python for Network Engineers
10 RESTful APIs and HTTP Methods
11 JSON and XML Data Formats
12 YANG Data Modeling
13 NETCONF and RESTCONF
14 Ansible for Network Automation
15 Puppet for Network Automation
16 Git and Version Control
17 CICD Pipelines for Network Automation
18 Troubleshooting Automation Issues
6 DevNet Specialist - Software Development and Design
1 Introduction to Software Development
2 Software Design Principles
3 Object-Oriented Programming (OOP)
4 Python Programming Language
5 RESTful API Design
6 Microservices Architecture
7 Containerization with Docker
8 Orchestration with Kubernetes
9 CICD Pipelines for Software Development
10 Test-Driven Development (TDD)
11 Version Control with Git
12 Agile Development Methodologies
13 DevOps Practices
14 Troubleshooting Software Development Issues
7 DevNet Specialist - Cloud Automation and Programmability
1 Introduction to Cloud Automation
2 Cloud Programmability Concepts
3 Cisco CloudCenter Suite
4 Cisco Intersight Programmability
5 Cisco Hybrid Cloud Manager
6 Cisco Application Policy Infrastructure Controller (APIC)
7 Cisco Container Platform
8 Cloud Automation Tools and Frameworks
9 Python for Cloud Engineers
10 RESTful APIs and HTTP Methods
11 JSON and XML Data Formats
12 YANG Data Modeling
13 NETCONF and RESTCONF
14 Ansible for Cloud Automation
15 Puppet for Cloud Automation
16 Git and Version Control
17 CICD Pipelines for Cloud Automation
18 Troubleshooting Cloud Automation Issues
8 DevNet Specialist - Collaboration Programmability
1 Introduction to Collaboration Programmability
2 Cisco Webex Programmability
3 Cisco Unified Communications Manager (CUCM) Programmability
4 Cisco Contact Center Enterprise (CCE) Programmability
5 Collaboration Programmability Tools and Frameworks
6 Python for Collaboration Engineers
7 RESTful APIs and HTTP Methods
8 JSON and XML Data Formats
9 YANG Data Modeling
10 NETCONF and RESTCONF
11 Ansible for Collaboration Automation
12 Puppet for Collaboration Automation
13 Git and Version Control
14 CICD Pipelines for Collaboration Automation
15 Troubleshooting Collaboration Programmability Issues
9 DevNet Specialist - Security Programmability
1 Introduction to Security Programmability
2 Cisco Firepower Management Center (FMC) Programmability
3 Cisco Identity Services Engine (ISE) Programmability
4 Cisco Stealthwatch Programmability
5 Cisco Secure Network Analytics (SNA) Programmability
6 Security Programmability Tools and Frameworks
7 Python for Security Engineers
8 RESTful APIs and HTTP Methods
9 JSON and XML Data Formats
10 YANG Data Modeling
11 NETCONF and RESTCONF
12 Ansible for Security Automation
13 Puppet for Security Automation
14 Git and Version Control
15 CICD Pipelines for Security Automation
16 Troubleshooting Security Programmability Issues
10 DevNet Specialist - Data Center Programmability
1 Introduction to Data Center Programmability
2 Cisco Application Centric Infrastructure (ACI) Programmability
3 Cisco Nexus Programmability
4 Cisco UCS Programmability
5 Data Center Programmability Tools and Frameworks
6 Python for Data Center Engineers
7 RESTful APIs and HTTP Methods
8 JSON and XML Data Formats
9 YANG Data Modeling
10 NETCONF and RESTCONF
11 Ansible for Data Center Automation
12 Puppet for Data Center Automation
13 Git and Version Control
14 CICD Pipelines for Data Center Automation
15 Troubleshooting Data Center Programmability Issues
11 DevNet Specialist - IoT Programmability
1 Introduction to IoT Programmability
2 Cisco IoT Field Network Director (FND) Programmability
3 Cisco Kinetic for Cities Programmability
4 Cisco IoT Operations Dashboard Programmability
5 IoT Programmability Tools and Frameworks
6 Python for IoT Engineers
7 RESTful APIs and HTTP Methods
8 JSON and XML Data Formats
9 YANG Data Modeling
10 NETCONF and RESTCONF
11 Ansible for IoT Automation
12 Puppet for IoT Automation
13 Git and Version Control
14 CICD Pipelines for IoT Automation
15 Troubleshooting IoT Programmability Issues
12 DevNet Specialist - Service Provider Programmability
1 Introduction to Service Provider Programmability
2 Cisco Network Services Orchestrator (NSO) Programmability
3 Cisco IOS XR Programmability
4 Cisco ASR 9000 Series Programmability
5 Service Provider Programmability Tools and Frameworks
6 Python for Service Provider Engineers
7 RESTful APIs and HTTP Methods
8 JSON and XML Data Formats
9 YANG Data Modeling
10 NETCONF and RESTCONF
11 Ansible for Service Provider Automation
12 Puppet for Service Provider Automation
13 Git and Version Control
14 CICD Pipelines for Service Provider Automation
15 Troubleshooting Service Provider Programmability Issues
13 DevNet Specialist - Wireless Programmability
1 Introduction to Wireless Programmability
2 Cisco Wireless LAN Controller (WLC) Programmability
3 Cisco DNA Center Wireless Programmability
4 Cisco Mobility Services Engine (MSE) Programmability
5 Wireless Programmability Tools and Frameworks
6 Python for Wireless Engineers
7 RESTful APIs and HTTP Methods
8 JSON and XML Data Formats
9 YANG Data Modeling
10 NETCONF and RESTCONF
11 Ansible for Wireless Automation
12 Puppet for Wireless Automation
13 Git and Version Control
14 CICD Pipelines for Wireless Automation
15 Troubleshooting Wireless Programmability Issues
14 DevNet Specialist - DevOps and Automation
1 Introduction to DevOps and Automation
2 Continuous Integration (CI)
3 Continuous Deployment (CD)
4 Infrastructure as Code (IaC)
5 Configuration Management Tools
6 Monitoring and Logging
7 Containerization and Orchestration
8 CICD Pipelines
9 Version Control with Git
10 Agile Development Methodologies
11 DevOps Practices
12 Troubleshooting DevOps Issues
15 DevNet Specialist - Automation and Programmability Best Practices
1 Best Practices for Network Automation
2 Best Practices for Software Development
3 Best Practices for Cloud Automation
4 Best Practices for Security Programmability
5 Best Practices for Data Center Programmability
6 Best Practices for IoT Programmability
7 Best Practices for Service Provider Programmability
8 Best Practices for Wireless Programmability
9 Best Practices for Collaboration Programmability
10 Best Practices for DevOps and Automation
16 DevNet Specialist - Certification Exam Preparation
1 Exam Objectives and Domains
2 Study Resources and Materials
3 Practice Exams and Simulations
4 Exam Registration and Scheduling
5 Test-Taking Strategies
6 Post-Exam Actions and Certification Maintenance
10 Test-Driven Development (TDD) Explained

10 Test-Driven Development (TDD) Explained

1. Red-Green-Refactor Cycle

The Red-Green-Refactor cycle is the core of TDD. It consists of three steps: writing a failing test (Red), making the test pass (Green), and then refactoring the code to improve its design (Refactor). This cycle ensures that code is always tested and maintainable.

Example: Start by writing a test for a function that adds two numbers. The test will initially fail (Red). Next, write the simplest code to make the test pass (Green). Finally, refactor the code to improve readability and efficiency (Refactor).

2. Unit Tests

Unit tests are small, isolated tests that verify the functionality of individual components (units) of code. They are quick to write and run, ensuring that each part of the codebase works as expected.

Example: Write a unit test for a function that checks if a network device is online. The test should verify that the function returns True when the device is reachable and False otherwise.

3. Test Coverage

Test coverage measures the percentage of code that is executed by tests. High test coverage ensures that most of the codebase is tested, reducing the likelihood of bugs.

Example: Use a tool like Coverage.py to measure the test coverage of a network automation script. Aim for at least 80% coverage to ensure comprehensive testing.

4. Mocking

Mocking involves creating fake objects or functions to simulate dependencies in tests. This allows for isolated testing of individual components without relying on external systems.

Example: In a test for a network configuration script, mock the network device API to simulate different responses without actually interacting with the device.

5. Test Doubles

Test doubles are objects that replace real objects in tests. They include mocks, stubs, fakes, and spies. Test doubles help in isolating the code under test and controlling the test environment.

Example: Use a stub to simulate a network device's response to a configuration request. The stub returns predefined data, allowing the test to run without actual network interaction.

6. Assertions

Assertions are statements that check if a condition is true. They are used in tests to verify that the code behaves as expected. Assertions help in identifying failures early in the development process.

Example: In a test for a network device status function, use assertions to check if the function returns the correct status (online or offline) based on the input.

7. Test Fixtures

Test fixtures are setup and teardown procedures that prepare the test environment before running tests and clean up afterward. They ensure that each test runs in a consistent environment.

Example: Use a test fixture to set up a virtual network environment before running network automation tests. After the tests, the fixture cleans up the environment to avoid interference with other tests.

8. Continuous Integration (CI)

Continuous Integration is a practice where code changes are automatically built and tested as soon as they are committed. CI ensures that tests are run frequently, catching issues early and maintaining code quality.

Example: Set up a CI pipeline using Jenkins to automatically run unit tests on a network automation script whenever changes are pushed to the repository.

9. Test-First Approach

The Test-First Approach involves writing tests before writing the actual code. This ensures that the code is designed with testing in mind and helps in identifying requirements early in the development process.

Example: Before writing a function to configure a network device, write a test that defines the expected behavior. The function is then implemented to pass this test.

10. Refactoring

Refactoring is the process of improving the design of existing code without changing its external behavior. In TDD, refactoring is done after the code passes the tests, ensuring that the code remains clean and maintainable.

Example: After a network automation script passes all tests, refactor the code to remove duplication, improve readability, and optimize performance. Run the tests again to ensure that the refactoring did not introduce new issues.