cloud-init: T9172: add userdata command regression tests - #116
Open
jeleel-muibi wants to merge 1 commit into
Open
cloud-init: T9172: add userdata command regression tests#116jeleel-muibi wants to merge 1 commit into
jeleel-muibi wants to merge 1 commit into
Conversation
Add focused regression coverage for the VyOS-specific vyos_config_commands handler. Exercise template discovery, supported set/delete parsing, ordinary, multi, and nested tag-node updates, both delete paths, and malformed-command skipping. Use temporary template trees and a mocked ConfigTree interface so the tests run without a VyOS image or installed template hierarchy.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited), Organization UI (inherited) Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🔗 Linked repositories identifiedCodeRabbit considers these linked repositories for cross-repo context during reviews:
📜 Recent review details⏰ Context from checks skipped due to timeout. (2)
🧰 Additional context used📓 Path-based instructions (1)**/*.py📄 CodeRabbit inference engine (AGENTS.md)
Files:
🔍 Remote MCP vyos.devRelevant context
🔇 Additional comments (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughChangesVyOS userdata tests
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed Commit Message
Additional Context
Related task: T9172
This is a test-only change. It does not alter cloud-init runtime behavior,
dependencies, or configuration. The cases include the trailing multi-node
metadata behavior fixed in T3735 and the nested
tag-node preservation behavior fixed in T4895.
Test Steps
Validated with Python 3.10.20 and the repository-pinned tool versions:
The three host-dependent tests were deselected because they read
/etc/cloud/cloud.cfg.d/99-installer.cfg, which is not readable in the localenvironment. An unfiltered run has only those three
PermissionErrorfailures; none involves this test module.
Checklist: