mellanox/netop-tools/testing-netop-configs

Claude Code and agent skill by mellanox/netop-tools

Trust tier 3
  • community
  • ext:[{"type":"config","description":"Configuration overrides"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Run and create tests for netop-tools configuration generation. Use when running unitest.sh, validating YAML generation, creating new test cases, checking test baselines, debugging test failures, or verifying config changes don't break existing tests.

Install

npx vskill@latest install mellanox/netop-tools/testing-netop-configs

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as mellanox/netop-tools/testing-netop-configs.

Testing netop-tools Configurations

Tests validate YAML generation by diffing output against baseline files.

Running Tests

bash
source NETOP_ROOT_DIR.sh
# Run all tests
./tests/unitest.sh
# Run a specific test
./tests/unitest.sh tests/sriovnet_rdma/1/config

How Tests Work

  1. Sets CREATE_CONFIG_ONLY=1 (generate YAML, don't deploy)
  2. Sources test's config file as GLOBAL_OPS_USER
  3. Runs install/ins-network-operator.sh to generate YAML
  4. Runs diff -ruN between generated YAML and baseline *.yaml files
  5. Non-zero exit if any diffs found

Available Test Scenarios

DirectoryScenarios
tests/sriovnet_rdma/1/, 2/, combined/, rdmaMode/
tests/sriovibnet_rdma/basic/, combined/
tests/hostdev/basic/, combined/
tests/macvlan_rdma_shared_device/1/, combined/
tests/25_10/sriovnet_rdma/1/, sriovibnet_rdma/1/

Creating a New Test

bash
# 1. Create test directory
mkdir -p tests/my_test
# 2. Create config file with overrides
cat > tests/my_test/config << 'EOF'
export NETOP_VERSION="26.1.0"
export USECASE="sriovnet_rdma"
export NETOP_NETLIST=( a,,,0000:08:00.0 b,,,0000:86:00.1 )
export DEVICE_TYPES=( "connectx-7" )
export NUM_VFS=8
# ... other overrides
EOF
# 3. Generate baseline YAML
export CREATE_CONFIG_ONLY=1
export GLOBAL_OPS_USER=$(pwd)/tests/my_test/config
source ${GLOBAL_OPS_USER}
${NETOP_ROOT_DIR}/install/ins-network-operator.sh
# 4. Copy generated YAML as baselines
cp usecase/${USECASE}/*.yaml tests/my_test/
# 5. Verify test passes
./tests/unitest.sh tests/my_test/config

Test Directory Structure

tests/my_test/
config # Sourced as GLOBAL_OPS_USER (required)
netop.cfg # Optional use-case overrides
NicClusterPolicy.yaml # Baseline YAML files
values.yaml
network.yaml
ippool-*.yaml
...

Debugging Test Failures

When a test fails, unitest.sh shows the diff. Common causes:

SymptomCauseFix
All tests failChanged default in global_ops.cfgRegenerate all baselines
One test failsConfig override missingAdd missing variable to test's config
New YAML file not comparedTest dir missing baselineCopy generated file to test dir
Version-specific failuresNETOP_VERSION changed behaviorCreate version-specific test under tests/

CI Integration

GitHub Actions (.github/workflows/main.yml) runs tests/unitest.sh on ubuntu-22.04 on every push. Tests are discovered automatically by finding config files via find.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Extension points

  • configConfiguration overrides

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/mellanox/netop-tools/testing-netop-configs/badge)](https://verified-skill.com/skills/mellanox/netop-tools/testing-netop-configs)

Something wrong with this skill or its page? Tell us.