Skip to content

Commit b596c2c

Browse files
authored
Return tags in tag set data source (#89)
* Return the tags associated with a tag set. * Added tests for new tags collection.
1 parent 478adcf commit b596c2c

File tree

6 files changed

+206
-126
lines changed

6 files changed

+206
-126
lines changed

docs/data-sources/tag_sets.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,18 @@ Read-Only:
3838
- `name` (String) The name of this resource.
3939
- `sort_order` (Number) The sort order associated with this resource.
4040
- `space_id` (String) The space ID associated with this resource.
41+
- `tags` (Attributes List) The tags associated with this tag set. (see [below for nested schema](#nestedatt--tag_sets--tags))
42+
43+
<a id="nestedatt--tag_sets--tags"></a>
44+
### Nested Schema for `tag_sets.tags`
45+
46+
Read-Only:
47+
48+
- `canonical_tag_name` (String) The canonical name of this tag.
49+
- `color` (String) The color associated with this tag.
50+
- `description` (String) The description of this tag.
51+
- `id` (String) The unique ID for this tag.
52+
- `name` (String) The name of this tag.
53+
- `sort_order` (Number) The sort order associated with this tag.
4154

4255

go.mod

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ toolchain go1.24.5
66

77
require (
88
github.com/OctopusDeploy/go-octopusdeploy/v2 v2.80.2
9-
github.com/OctopusSolutionsEngineering/OctopusTerraformTestFramework v1.0.1
9+
github.com/OctopusSolutionsEngineering/OctopusTerraformTestFramework v1.0.2
1010
github.com/google/uuid v1.6.0
1111
github.com/hashicorp/go-cty v1.4.1-0.20200723130312-85980079f637
1212
github.com/hashicorp/terraform-plugin-docs v0.13.0
@@ -18,14 +18,14 @@ require (
1818
github.com/hashicorp/terraform-plugin-mux v0.16.0
1919
github.com/hashicorp/terraform-plugin-sdk/v2 v2.34.0
2020
github.com/hashicorp/terraform-plugin-testing v1.8.0
21-
github.com/stretchr/testify v1.10.0
22-
github.com/testcontainers/testcontainers-go v0.36.0
23-
golang.org/x/text v0.24.0
21+
github.com/stretchr/testify v1.11.1
22+
github.com/testcontainers/testcontainers-go v0.38.0
23+
golang.org/x/text v0.28.0
2424
software.sslmate.com/src/go-pkcs12 v0.4.0
2525
)
2626

2727
require (
28-
dario.cat/mergo v1.0.1 // indirect
28+
dario.cat/mergo v1.0.2 // indirect
2929
github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c // indirect
3030
github.com/Masterminds/goutils v1.1.1 // indirect
3131
github.com/Masterminds/semver/v3 v3.2.0 // indirect
@@ -36,36 +36,39 @@ require (
3636
github.com/agext/levenshtein v1.2.3 // indirect
3737
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
3838
github.com/armon/go-radix v1.0.0 // indirect
39-
github.com/avast/retry-go/v4 v4.6.0 // indirect
39+
github.com/avast/retry-go/v4 v4.6.1 // indirect
4040
github.com/bahlo/generic-list-go v0.2.0 // indirect
4141
github.com/bgentry/speakeasy v0.1.0 // indirect
4242
github.com/buger/jsonparser v1.1.1 // indirect
4343
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
4444
github.com/cloudflare/circl v1.3.7 // indirect
45+
github.com/containerd/errdefs v1.0.0 // indirect
46+
github.com/containerd/errdefs/pkg v0.3.0 // indirect
4547
github.com/containerd/log v0.1.0 // indirect
4648
github.com/containerd/platforms v0.2.1 // indirect
4749
github.com/cpuguy83/dockercfg v0.3.2 // indirect
4850
github.com/davecgh/go-spew v1.1.1 // indirect
49-
github.com/dghubble/sling v1.4.1 // indirect
51+
github.com/dghubble/sling v1.4.2 // indirect
5052
github.com/distribution/reference v0.6.0 // indirect
51-
github.com/docker/docker v28.1.1+incompatible // indirect
52-
github.com/docker/go-connections v0.5.0 // indirect
53+
github.com/docker/docker v28.3.3+incompatible // indirect
54+
github.com/docker/go-connections v0.6.0 // indirect
5355
github.com/docker/go-units v0.5.0 // indirect
54-
github.com/ebitengine/purego v0.8.2 // indirect
56+
github.com/ebitengine/purego v0.8.4 // indirect
5557
github.com/fatih/color v1.16.0 // indirect
5658
github.com/felixge/httpsnoop v1.0.4 // indirect
57-
github.com/gabriel-vasile/mimetype v1.4.8 // indirect
58-
github.com/go-logr/logr v1.4.2 // indirect
59+
github.com/gabriel-vasile/mimetype v1.4.9 // indirect
60+
github.com/go-logr/logr v1.4.3 // indirect
5961
github.com/go-logr/stdr v1.2.2 // indirect
6062
github.com/go-ole/go-ole v1.3.0 // indirect
6163
github.com/go-playground/locales v0.14.1 // indirect
6264
github.com/go-playground/universal-translator v0.18.1 // indirect
63-
github.com/go-playground/validator/v10 v10.25.0 // indirect
65+
github.com/go-playground/validator/v10 v10.27.0 // indirect
6466
github.com/go-test/deep v1.0.7 // indirect
6567
github.com/gogo/protobuf v1.3.2 // indirect
6668
github.com/golang/protobuf v1.5.4 // indirect
6769
github.com/google/go-cmp v0.7.0 // indirect
6870
github.com/google/go-querystring v1.1.0 // indirect
71+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect
6972
github.com/hashicorp/errwrap v1.1.0 // indirect
7073
github.com/hashicorp/go-checkpoint v0.5.0 // indirect
7174
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
@@ -86,9 +89,9 @@ require (
8689
github.com/imdario/mergo v0.3.15 // indirect
8790
github.com/klauspost/compress v1.18.0 // indirect
8891
github.com/leodido/go-urn v1.4.0 // indirect
89-
github.com/lufia/plan9stats v0.0.0-20250317134145-8bc96cf8fc35 // indirect
92+
github.com/lufia/plan9stats v0.0.0-20250827001030-24949be3fa54 // indirect
9093
github.com/magiconair/properties v1.8.10 // indirect
91-
github.com/mailru/easyjson v0.7.7 // indirect
94+
github.com/mailru/easyjson v0.9.0 // indirect
9295
github.com/mattn/go-colorable v0.1.13 // indirect
9396
github.com/mattn/go-isatty v0.0.20 // indirect
9497
github.com/mitchellh/cli v1.1.5 // indirect
@@ -100,7 +103,6 @@ require (
100103
github.com/moby/docker-image-spec v1.3.1 // indirect
101104
github.com/moby/go-archive v0.1.0 // indirect
102105
github.com/moby/patternmatcher v0.6.0 // indirect
103-
github.com/moby/sys/atomicwriter v0.1.0 // indirect
104106
github.com/moby/sys/sequential v0.6.0 // indirect
105107
github.com/moby/sys/user v0.4.0 // indirect
106108
github.com/moby/sys/userns v0.1.0 // indirect
@@ -109,13 +111,14 @@ require (
109111
github.com/oklog/run v1.1.0 // indirect
110112
github.com/opencontainers/go-digest v1.0.0 // indirect
111113
github.com/opencontainers/image-spec v1.1.1 // indirect
112-
github.com/otiai10/copy v1.14.0 // indirect
114+
github.com/otiai10/copy v1.14.1 // indirect
115+
github.com/otiai10/mint v1.6.3 // indirect
113116
github.com/pkg/errors v0.9.1 // indirect
114117
github.com/pmezard/go-difflib v1.0.0 // indirect
115118
github.com/posener/complete v1.2.3 // indirect
116119
github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect
117120
github.com/russross/blackfriday v1.6.0 // indirect
118-
github.com/shirou/gopsutil/v4 v4.25.3 // indirect
121+
github.com/shirou/gopsutil/v4 v4.25.7 // indirect
119122
github.com/shopspring/decimal v1.3.1 // indirect
120123
github.com/sirupsen/logrus v1.9.3 // indirect
121124
github.com/spf13/cast v1.5.0 // indirect
@@ -128,24 +131,21 @@ require (
128131
github.com/yusufpapurcu/wmi v1.2.4 // indirect
129132
github.com/zclconf/go-cty v1.14.4 // indirect
130133
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
131-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.60.0 // indirect
132-
go.opentelemetry.io/otel v1.35.0 // indirect
133-
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.19.0 // indirect
134-
go.opentelemetry.io/otel/metric v1.35.0 // indirect
135-
go.opentelemetry.io/otel/trace v1.35.0 // indirect
136-
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
137-
golang.org/x/crypto v0.37.0 // indirect
138-
golang.org/x/exp v0.0.0-20240707233637-46b078467d37 // indirect
139-
golang.org/x/mod v0.19.0 // indirect
140-
golang.org/x/net v0.34.0 // indirect
141-
golang.org/x/sync v0.13.0 // indirect
142-
golang.org/x/sys v0.32.0 // indirect
134+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.62.0 // indirect
135+
go.opentelemetry.io/otel v1.37.0 // indirect
136+
go.opentelemetry.io/otel/metric v1.37.0 // indirect
137+
go.opentelemetry.io/otel/trace v1.37.0 // indirect
138+
golang.org/x/crypto v0.41.0 // indirect
139+
golang.org/x/exp v0.0.0-20250711185948-6ae5c78190dc // indirect
140+
golang.org/x/mod v0.26.0 // indirect
141+
golang.org/x/net v0.42.0 // indirect
142+
golang.org/x/sync v0.16.0 // indirect
143+
golang.org/x/sys v0.35.0 // indirect
143144
golang.org/x/time v0.5.0 // indirect
144-
golang.org/x/tools v0.23.0 // indirect
145+
golang.org/x/tools v0.35.0 // indirect
145146
google.golang.org/appengine v1.6.8 // indirect
146-
google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237 // indirect
147-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237 // indirect
148-
google.golang.org/grpc v1.64.1 // indirect
149-
google.golang.org/protobuf v1.34.0 // indirect
147+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect
148+
google.golang.org/grpc v1.67.0 // indirect
149+
google.golang.org/protobuf v1.34.2 // indirect
150150
gopkg.in/yaml.v3 v3.0.1 // indirect
151151
)

0 commit comments

Comments
 (0)