• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

CiscoDevNet / terraform-provider-cml2
84%

Build:
DEFAULT BRANCH: main
Repo Added 26 Oct 2022 05:38PM UTC
Token Kisg4aKLCmrjfptQDKn7XVlXsAV9RoSCc regen
Build 288 Last
Files 83
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH main
branch: main
CHANGE BRANCH
x
Reset
Sync Branches
  • main
  • 26version
  • dependabot/github_actions/actions/checkout-4
  • dependabot/github_actions/actions/checkout-5
  • dependabot/github_actions/actions/checkout-6
  • dependabot/github_actions/actions/checkout-7
  • dependabot/github_actions/actions/github-script-7
  • dependabot/github_actions/actions/github-script-8
  • dependabot/github_actions/actions/setup-go-4
  • dependabot/github_actions/actions/setup-go-5
  • dependabot/github_actions/actions/setup-go-6
  • dependabot/github_actions/crazy-max/ghaction-import-gpg-5.2.0
  • dependabot/github_actions/crazy-max/ghaction-import-gpg-5.3.0
  • dependabot/github_actions/crazy-max/ghaction-import-gpg-6.1.0
  • dependabot/github_actions/crazy-max/ghaction-import-gpg-6.2.0
  • dependabot/github_actions/dorny/paths-filter-4
  • dependabot/github_actions/github/codeql-action-3
  • dependabot/github_actions/github/codeql-action-4
  • dependabot/github_actions/golangci/golangci-lint-action-9
  • dependabot/github_actions/goreleaser/goreleaser-action-3
  • dependabot/github_actions/goreleaser/goreleaser-action-4
  • dependabot/github_actions/goreleaser/goreleaser-action-5
  • dependabot/github_actions/goreleaser/goreleaser-action-6
  • dependabot/github_actions/hashicorp/setup-terraform-3
  • dependabot/github_actions/hashicorp/setup-terraform-4
  • dependabot/go_modules/github.com/google/go-cmp-0.7.0
  • dependabot/go_modules/github.com/google/uuid-1.5.0
  • dependabot/go_modules/github.com/google/uuid-1.6.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-docs-0.14.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-docs-0.14.1
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-docs-0.15.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-docs-0.16.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-docs-0.17.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-docs-0.18.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-docs-0.19.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-docs-0.19.1
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-docs-0.19.2
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-docs-0.19.3
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-docs-0.19.4
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-docs-0.20.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-docs-0.20.1
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-docs-0.21.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-docs-0.22.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-docs-0.23.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-docs-0.24.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-docs-0.25.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-framework-0.16.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-framework-0.17.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-framework-1.1.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-framework-1.10.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-framework-1.11.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-framework-1.12.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-framework-1.13.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-framework-1.14.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-framework-1.14.1
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-framework-1.16.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-framework-1.16.1
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-framework-1.17.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-framework-1.2.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-framework-1.3.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-framework-1.3.1
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-framework-1.3.2
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-framework-1.3.3
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-framework-1.3.4
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-framework-1.5.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-framework-1.8.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-framework-1.9.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-go-0.14.1
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-go-0.14.2
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-go-0.14.3
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-go-0.15.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-go-0.16.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-go-0.17.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-go-0.18.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-go-0.21.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-go-0.22.2
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-go-0.23.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-go-0.24.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-go-0.25.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-go-0.26.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-go-0.29.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-log-0.10.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-log-0.8.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-log-0.9.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-sdk/v2-2.24.1
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-sdk/v2-2.25.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-sdk/v2-2.26.1
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-sdk/v2-2.32.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-sdk/v2-2.33.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-testing-1.10.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-testing-1.11.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-testing-1.12.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-testing-1.14.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-testing-1.16.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-testing-1.8.0
  • dependabot/go_modules/github.com/hashicorp/terraform-plugin-testing-1.9.0
  • dependabot/go_modules/github.com/rschmied/gocmlclient-0.0.20
  • dependabot/go_modules/github.com/rschmied/gocmlclient-0.0.22
  • dependabot/go_modules/github.com/rschmied/gocmlclient-0.0.23
  • dependabot/go_modules/github.com/rschmied/gocmlclient-0.2.4
  • dependabot/go_modules/github.com/rschmied/gocmlclient-0.2.5
  • dependabot/go_modules/github.com/stretchr/testify-1.10.0
  • dependabot/go_modules/github.com/stretchr/testify-1.11.1
  • dependabot/go_modules/github.com/stretchr/testify-1.8.2
  • dependabot/go_modules/github.com/stretchr/testify-1.8.3
  • dependabot/go_modules/github.com/stretchr/testify-1.8.4
  • dependabot/go_modules/github.com/stretchr/testify-1.9.0
  • dependabot/go_modules/golang.org/x/crypto-0.2.0
  • dependabot/go_modules/golang.org/x/crypto-0.3.0
  • dev
  • provider-env-vars

02 Jul 2026 02:33PM UTC coverage: 84.063% (+0.5%) from 83.533%
28598157132

push

github

web-flow
small fixes, test and doc update (#198)

* (chore) update deps, changelog, go.work.example

* Fix Terraform state drift for externally deleted nodes

- Treat gocmlclient not-found errors during Node Read as “resource gone” by removing it from Terraform state
- Make Node Delete idempotent when the node is already gone (HTTP 404 / element not found)
- Add acceptance test covering external node deletion and verifying Terraform recreates it on re-plan
- Run gofumpt on touched files

* feat: handle external state drift for more resources

- Add internal/common/not_found.go with IsNotFound(err) helper for CML 404-class errors
- Replace ad-hoc errors.Is checks with common.IsNotFound across provider resources (node, link, lab, group, annotation, user, lifecycle) to treat externally-deleted resources as gone
- Remove/adjust imports and error handling where centralized helper is used
- Add numerous acceptance tests to verify resources are recreated or lifecycle reconciled when deleted/stopped externally (annotation, group, lab, link, node, user, lifecycle)
- Make test configs generate unique names/suffixes to avoid collisions and update test helpers/signatures
- Add internal/testing/gocmlclient_env.go to build gocml client from TF_VAR_* env vars for tests

* fix(lint): golangcilint complaints

* single test only

* Revert "single test only"

This reverts commit b2aac6f75.

* reduce user name length

* (chore) update changelog

* feat(lifecycle): detect and correct dependency drift

- Detect node/link "dependency drift" during plan by inspecting prior node state
- Modify ModifyPlan to read prior nodes and set changeNeeded when drift found
- Add labHasDrift(...) utility to centralize drift detection logic
- Refactor Update to fetch lab once, use labHasDrift or explicit state change to decide actions, and simplify start/stop/wipe + convergence handling
- Add acceptance test to simulate external node/link stop and verify lifecycle cor... (continued)

56 of 65 new or added lines in 4 files covered. (86.15%)

5243 of 6237 relevant lines covered (84.06%)

1975.92 hits per line

Relevant lines Covered
Build:
Build:
6237 RELEVANT LINES 5243 COVERED LINES
1975.92 HITS PER LINE
Source Files on main
  • Tree
  • List 83
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
28598157132 main small fixes, test and doc update (#198) * (chore) update deps, changelog, go.work.example * Fix Terraform state drift for externally deleted nodes - Treat gocmlclient not-found errors during Node Read as “resource gone” by removing it from Terr... push 02 Jul 2026 02:52PM UTC web-flow github
84.06
28218919552 main Add environment variable support for provider attributes (#195) push 26 Jun 2026 05:51AM UTC web-flow github
83.53
28195316227 main Handle External State Drift and Idempotent Deletes for Multiple Resources (#194) * (chore) update deps, changelog, go.work.example * Fix Terraform state drift for externally deleted nodes - Treat gocmlclient not-found errors during Node Read as... push 25 Jun 2026 08:03PM UTC web-flow github
83.55
26451185553 main fix(node): make extconn normalization robust (#192) - switch extconn_normalize.go to concrete *ProviderConfig type; nil check is now reliable (no typed-nil ambiguity) - add nil guards for cfg, cfg.Client(), and cli.ExtConn with descriptive er... push 26 May 2026 01:46PM UTC web-flow github
84.32
25813570128 main fix(node): keep explicit named configs, avoid collapsing (#190) * (ci) improve release.yml flow * (test) add test extconn config transition drift * fix(node): keep explicit named configs, avoid collapsing - internal/cmlschema: NewNamedConfigs ... push 13 May 2026 05:24PM UTC web-flow github
84.25
25421910616 main (chore) update deps and key (#189) push 06 May 2026 07:38AM UTC web-flow github
84.22
23816948578 main feat(provider): add injected request headers and finalize 0.9.0 release notes (#184) * feat(provider): support injected request headers * docs(changelog): align 0.9.0 release notes * (lint) fix lint error * feat(lab/group): adapt permissions f... push 31 Mar 2026 08:20PM UTC web-flow github
84.26
23314551344 main Bump hashicorp/setup-terraform from 3 to 4 (#182) Bumps [hashicorp/setup-terraform](https://github.com/hashicorp/setup-terraform) from 3 to 4. - [Release notes](https://github.com/hashicorp/setup-terraform/releases) - [Changelog](https://github.c... push 19 Mar 2026 08:38PM UTC web-flow github
84.46
23314710680 main Bump golangci/golangci-lint-action from 8 to 9 (#181) Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 8 to 9. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](ht... push 19 Mar 2026 08:26PM UTC web-flow github
84.46
23314349456 main Bump dorny/paths-filter from 3 to 4 (#179) Bumps [dorny/paths-filter](https://github.com/dorny/paths-filter) from 3 to 4. - [Release notes](https://github.com/dorny/paths-filter/releases) - [Changelog](https://github.com/dorny/paths-filter/blob/m... push 19 Mar 2026 08:15PM UTC web-flow github
84.46
See All Builds (288)
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc