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

CiscoDevNet / terraform-provider-cml2 / 23256561356
84%

Build:
DEFAULT BRANCH: main
Ran 18 Mar 2026 05:09PM UTC
Jobs 2
Files 78
Run time 1min
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

18 Mar 2026 04:53PM UTC coverage: 85.055% (-0.7%) from 85.772%
23256561356

push

github

web-flow
refactor: CI/lint hardening + gocmlclient API migration + annotation/node_staging updates (#177)

* wip

* (ext) ext conn acceptance test

* like and named configs

* make lifecycle tests work

* fix(node): enhance config for drift avoidance and back-compat

- Ensure cmlclient.WithNodeExcludeConfigurations is always false
  to prevent drift between CML versions.
- Set CPUlimit to 100 in ModifyPlan for consistency with controller
  behavior; retain null for certain resource types.
- Introduce normalizeExtConnConfig for external connector back-compat:
  - Preserve legacy device names in Terraform state and warn on
    normalization to avoid unintended changes.

* feat(provider): add token cache and node priority handling

- Introduce optional token caching for improved convenience.
- Add 'priority' attribute to nodes to support operational needs.
- Enhance cpu_limit heuristic for better node definition handling.
- Aim to avoid drift and ensure consistent operational states.

* feat(cml2_annotation): add new resource for text annotations

- introduce cml2_annotation resource with text support
- add schema with required lab_id and type fields
- implement validation for text blocks, computed id
- cover create, read, update, and delete operations
- support import using format <lab_id>/<annotation_id> with Split2

* fix(config): simplify CACert handling and document token caching

- replace custom CA cert handling with gocmlclient option
- simplify imports related to tls/x509/http
- document token cache workflow in README
- add entries for token_cache in provider config and docs

* feat(annotation): expand annotation resource to support more shapes

- update documentation to reflect new supported types: text, rectangle, ellipse, line
- enhance AnnotationModel by adding rectangle, ellipse, and line types
- introduce new helper functions for block validation and payload building
- refactor create/update logic to accommodate new shapes and centralized validatio... (continued)

1613 of 1887 new or added lines in 65 files covered. (85.48%)

19 existing lines in 10 files now uncovered.

4718 of 5547 relevant lines covered (85.05%)

1341.41 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
99.67
internal/cmlschema/annotation.go
1
80.0
internal/common/errors.go
1
81.48
-4.73% internal/provider/resource/group/create.go
1
82.76
-4.34% internal/provider/resource/group/update.go
2
98.93
-0.48% internal/cmlschema/node.go
2
68.18
-1.05% internal/common/converge.go
2
88.68
-1.8% internal/provider/datasource/system/system.go
2
38.6
0.0% internal/provider/resource/lab/delete.go
2
90.91
internal/provider/resource/lab/node_staging.go
2
71.43
1.06% internal/provider/resource/lab/read.go
2
69.7
0.95% internal/provider/resource/lifecycle/create.go
2
60.0
internal/testing/acc.go
3
86.36
internal/provider/resource/annotation/meta.go
3
75.56
-0.63% internal/provider/resource/lifecycle/update.go
4
55.56
internal/common/strings.go
5
70.59
internal/provider/resource/annotation/delete.go
5
78.26
internal/provider/resource/annotation/read.go
5
90.78
0.92% internal/provider/resource/lifecycle/modify_plan.go
5
72.22
internal/provider/resource/node/extconn_normalize.go
6
94.33
-2.1% internal/provider/resource/node/create.go
7
75.0
-6.82% internal/provider/resource/lab/update.go
10
81.75
-1.14% internal/provider/resource/node/update.go
11
64.52
internal/provider/resource/annotation/create.go
11
65.63
internal/provider/resource/annotation/update.go
13
74.64
17.91% internal/provider/resource/node/modify_plan.go
16
77.46
internal/provider/resource/user/groups.go
17
63.24
-21.67% internal/provider/resource/user/create.go
17
71.26
-12.56% internal/provider/resource/user/update.go
30
59.38
-25.81% internal/provider/resource/lab/create.go
35
57.37
-2.34% internal/common/configure.go
51
86.86
internal/provider/resource/annotation/build.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
68.18
-1.05% internal/common/converge.go
1
88.16
-1.32% internal/provider/datasource/groups/groups.go
1
88.68
-1.8% internal/provider/datasource/system/system.go
1
81.48
-4.73% internal/provider/resource/group/create.go
1
82.76
-4.34% internal/provider/resource/group/update.go
1
59.38
-25.81% internal/provider/resource/lab/create.go
2
98.32
-1.68% internal/cmlschema/group.go
3
74.34
-1.97% internal/provider/resource/lifecycle/utilities.go
3
81.75
-1.14% internal/provider/resource/node/update.go
5
57.37
-2.34% internal/common/configure.go
Jobs
ID Job ID Ran Files Coverage
1 23256561356.1 18 Mar 2026 05:09PM UTC 78
85.05
GitHub Action Run
2 23256561356.2 18 Mar 2026 05:23PM UTC 78
85.05
GitHub Action Run
Source Files on build 23256561356
  • Tree
  • List 78
  • Changed 61
  • Source Changed 0
  • Coverage Changed 61
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 013ef5c2 on github
  • Prev Build on main (#17324617461)
  • Next Build on main (#23297774961)
  • Delete
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