Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: some refactoring of the workflow code and names #232

Merged
merged 5 commits into from
Aug 22, 2024

Conversation

cardoe
Copy link
Contributor

@cardoe cardoe commented Aug 21, 2024

Refactored some of the workflow code to use a common nautobot url/token parser, with tests. Trimmed the name synchronize to sync. Created a common spot for shared fixtures.

Use the supplied logging level instead of hardcoding it to DEBUG.
Added a common helper to default nautobot args and test it.
Make all the scripts support the common nautobot args as input.
@cardoe cardoe requested a review from a team August 21, 2024 14:43
Copy link

github-actions bot commented Aug 21, 2024

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
821 281 34% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
python/understack-workflows/understack_workflows/helpers.py 68% 🟢
python/understack-workflows/understack_workflows/main/nautobot_update_cf.py 0% 🟢
python/understack-workflows/understack_workflows/main/sync_nautobot_interfaces.py 62% 🟢
python/understack-workflows/understack_workflows/main/undersync_device.py 0% 🟢
TOTAL 32% 🟢

updated for commit: 6f33a3d by action🐍

Shorten to use "sync" instead of "synchronize" since k8s cuts some
things off at 63 characters so this will make it less likely to hit that
limit. Cleaned up the naming across the board including the workflows
and the source code.
@cardoe cardoe merged commit 8026449 into main Aug 22, 2024
14 checks passed
@cardoe cardoe deleted the clean-up-workflows branch August 22, 2024 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants