惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Martin Fowler
Martin Fowler
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
A
About on SuperTechFans
Apple Machine Learning Research
Apple Machine Learning Research
The Register - Security
The Register - Security
Vercel News
Vercel News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
人人都是产品经理
人人都是产品经理
MyScale Blog
MyScale Blog
云风的 BLOG
云风的 BLOG
博客园_首页
U
Unit 42
T
Tailwind CSS Blog
G
GRAHAM CLULEY
F
Full Disclosure
V
Vulnerabilities – Threatpost
T
Tenable Blog
月光博客
月光博客
P
Privacy & Cybersecurity Law Blog
P
Privacy International News Feed
K
Kaspersky official blog
Scott Helme
Scott Helme
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
N
News and Events Feed by Topic
T
The Exploit Database - CXSecurity.com
N
News and Events Feed by Topic
有赞技术团队
有赞技术团队
Recent Commits to openclaw:main
Recent Commits to openclaw:main
L
LINUX DO - 最新话题
Recorded Future
Recorded Future
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Help Net Security
Help Net Security
The GitHub Blog
The GitHub Blog
Cisco Talos Blog
Cisco Talos Blog
SecWiki News
SecWiki News
P
Proofpoint News Feed
Security Latest
Security Latest
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
罗磊的独立博客
S
Security Affairs
M
MIT News - Artificial intelligence
L
LINUX DO - 热门话题
美团技术团队
Simon Willison's Weblog
Simon Willison's Weblog
T
Threat Research - Cisco Blogs
Stack Overflow Blog
Stack Overflow Blog
Forbes - Security
Forbes - Security
Hugging Face - Blog
Hugging Face - Blog
博客园 - Franky
V
Visual Studio Blog

NetworkManager

NetworkManager 1.58 NetworkManager 1.54 NetworkManager 1.52 Protect your VPN from TunnelVision attacks NetworkManager 1.50 Addressing hostname assignment in NetworkManager 1.40 Help NetworkManager project to triage issues NetworkManager 1.48 NetworkManager 1.46 NetworkManager 1.44 NetworkManager 1.42 Using Python and NetworkManager to control the network [link] Notes on D-Bus NetworkManager 1.40 NetworkManager 1.38 From ifcfg to keyfiles [link] NetworkManager 1.36 NetworkManager 1.34 NetworkManager 1.32 NetworkManager 1.30 Initscripts’ ifcfg-rh Format in NetworkManager and its Future [link] How to set up your NetworkManager environment [link] NetworkManager 1.28 [link] Looking forward to Linux network configuration in the initial ramdisk (initrd) [link] NetworkManager 1.26 [link] Internet connection sharing with NetworkManager [link] Why NetworkManager? [link] Please welcome: NetworkManager 1.20 [link] Becoming friends with NetworkManager [link] WireGuard in NetworkManager [link] MAC Address Spoofing in NetworkManager 1.4.0 [link] NetworkManager for administrators Resources for developers man pages Video tutorials VPN support RFKill
Set up NMCI on Fedora Linux VM
Vojtech Bubela · 2022-12-05 · via NetworkManager

In this article I will show you how to set up NetworkManager CI tests on Fedora Linux virtual machine.

What is NMCI

NMCI stands for NetworkManager countinuous integration. It is project on gitlab that provides tests for NetworkManager. The test are written in python behave enviroment. Every test is written in a way acceptance criteria would be written. You can find out more on the NMCI project gitlab page.

Why VM?

Sometimes it can be useful to have quick access to NetworkManager’s CI tests. Maybe when you want to edit a test or run a smaller scale test multiple times. It is not recommended to run NMCI on your own system because it does system-wise changes (adds users, install packages, enable services, etc. ).

Set up Fedora Linux VM

You can use any VM software. Make sure that your VM will be able to connect to the internet. You can check that by typing nmcli in the terminal. You should see atleast one device with active connection. If there is none you will need to create one. After that clone NMCI gitlab repository.

Set up NetworkManager CI

From the root folder of the NMCI project run test_run.sh script. This script needs to be run with a test name from mapper.yaml as a argument to pass. When run, for example like this

test_run.sh bond_config_file

for the first time after clonning the repo it will install any missing dependecies NMCI needs.

Running the tests

Every test belongs to one of the features (bond, bridge, ipv6, etc.). To see all tests of a feature go to features/scenarios/*.feature. To run all tests a feature has can be one by running

runfeature.sh <feature-name>

script in run/ directory. There is also an option to run only part of these tests. That can be done by running

runtest.sh <test-name>

in run/ directory. Name of different test can be either found directly in /feature/scenario/*.feature file or in mapper.yaml file.

Things to look out for

Sometimes a device will not automatically connect when restarting VM or when running test_run.sh for first time. If that happens you will need to manually connect it by using

nmcli device connect <name-of-device>