Python Pytest examples
@pytest.mark.parametrize example Used to pass more than one case to a test. The next example is to test a funcion that validates the string conforms to the Juniper naming convention. We expect ...
@pytest.mark.parametrize example Used to pass more than one case to a test. The next example is to test a funcion that validates the string conforms to the Juniper naming convention. We expect ...
ThreadPoolExecutor The code creates a ThreadPoolExecutor as a Context Manager. It then uses .map() which takes a function and an iterable of things. .map() steps through an iterable of things, i...
NOTE: All configurations were taken from a lab environment. System This guide is based on Ubuntu 24.04 LTS ubuntu@ip-XXX-XX-XX-XXX:~$ cat /etc/*release* DISTRIB_ID=Ubuntu DISTRIB_RELEASE=24.04...
NOTE: All configurations were taken from a lab environment. Pre-requisites Have Docker installed on the Docker Manager Node and all Worker Nodes Refer to Install Docker Engine on ...
NOTE: All configurations were taken from a lab environment. Types of networks in Docker Bridge - This is the default network the Containerd are attached to. The default one is in the 172.17....
NOTE: All configurations were taken from a lab environment. Docker Filesystem /var/lib/docker containers image volumes ... ls -l /var/lib/docker ubuntu@ip-XXX-XX-XX-XXX:~$ sudo ls -...
NOTE: All configurations were taken from a lab environment. Containers are meant to run a specific process and terminate. Once the task is completed, the containers exits. The container only liv...
NOTE: All configurations were taken from a lab environment. Linux Process ID in Container is 1 which is the main Process. This same PID in the Docker Host is PID X. This is a fundamental part fo...
NOTE: Always proceed with caution. Add code to the last commit (not adding a new commit) git add . git commit --amend --no-edit Undo last commit The --soft flag makes sure that the changes in ...
This is absolutelly not recommended for obvious security purposes. Only a good idea in controlled lab environments, etc. Proceed with caution. This worked in an EC2 instance launched with Ubuntu 2...