Skip to content

Commit a4bbb6e

Browse files
committed
regenerate testdata
1 parent ca8177f commit a4bbb6e

21 files changed

+524
-343
lines changed

provisioner/terraform/resources.go

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ import (
1414
"github.com/coder/coder/provisionersdk/proto"
1515
)
1616

17+
type agentMetadata struct {
18+
Key string `mapstructure:"key"`
19+
DisplayName string `mapstructure:"display_name"`
20+
Cmd string `mapstructure:"cmd"`
21+
Interval string `mapstructure:"interval"`
22+
}
23+
1724
// A mapping of attributes on the "coder_agent" resource.
1825
type agentAttributes struct {
1926
Auth string `mapstructure:"auth"`
@@ -31,6 +38,7 @@ type agentAttributes struct {
3138
StartupScriptTimeoutSeconds int32 `mapstructure:"startup_script_timeout"`
3239
ShutdownScript string `mapstructure:"shutdown_script"`
3340
ShutdownScriptTimeoutSeconds int32 `mapstructure:"shutdown_script_timeout"`
41+
Metadata []agentMetadata `mapstructure:"metadata"`
3442
}
3543

3644
// A mapping of attributes on the "coder_app" resource.
@@ -59,15 +67,15 @@ type appHealthcheckAttributes struct {
5967
}
6068

6169
// A mapping of attributes on the "coder_metadata" resource.
62-
type metadataAttributes struct {
63-
ResourceID string `mapstructure:"resource_id"`
64-
Hide bool `mapstructure:"hide"`
65-
Icon string `mapstructure:"icon"`
66-
DailyCost int32 `mapstructure:"daily_cost"`
67-
Items []metadataItem `mapstructure:"item"`
70+
type resourceMetadataAttributes struct {
71+
ResourceID string `mapstructure:"resource_id"`
72+
Hide bool `mapstructure:"hide"`
73+
Icon string `mapstructure:"icon"`
74+
DailyCost int32 `mapstructure:"daily_cost"`
75+
Items []resourceMetadataItem `mapstructure:"item"`
6876
}
6977

70-
type metadataItem struct {
78+
type resourceMetadataItem struct {
7179
Key string `mapstructure:"key"`
7280
Value string `mapstructure:"value"`
7381
Sensitive bool `mapstructure:"sensitive"`
@@ -348,7 +356,7 @@ func ConvertState(modules []*tfjson.StateModule, rawGraph string) (*State, error
348356
continue
349357
}
350358

351-
var attrs metadataAttributes
359+
var attrs resourceMetadataAttributes
352360
err = mapstructure.Decode(resource.AttributeValues, &attrs)
353361
if err != nil {
354362
return nil, xerrors.Errorf("decode metadata attributes: %w", err)

provisioner/terraform/testdata/calling-module/calling-module.tfplan.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

provisioner/terraform/testdata/calling-module/calling-module.tfstate.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

provisioner/terraform/testdata/chaining-resources/chaining-resources.tfplan.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

provisioner/terraform/testdata/chaining-resources/chaining-resources.tfstate.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

provisioner/terraform/testdata/conflicting-resources/conflicting-resources.tfplan.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

provisioner/terraform/testdata/conflicting-resources/conflicting-resources.tfstate.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

provisioner/terraform/testdata/git-auth-providers/git-auth-providers.tfstate.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

provisioner/terraform/testdata/instance-id/instance-id.tfplan.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

provisioner/terraform/testdata/instance-id/instance-id.tfstate.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

provisioner/terraform/testdata/mapped-apps/mapped-apps.tfstate.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

provisioner/terraform/testdata/multiple-agents/multiple-agents.tfstate.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

provisioner/terraform/testdata/multiple-apps/multiple-apps.tfplan.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)