Skip to content

Commit 7cbbc20

Browse files
committed
chore: push golden files
1 parent cde7d65 commit 7cbbc20

File tree

57 files changed

+3035
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+3035
-1
lines changed

provisioner/terraform/resources_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ func TestConvertStateGoldenFiles(t *testing.T) {
115115
if *updateGoldenFiles {
116116
gotBytes, err := json.MarshalIndent(expectedOutput, "", " ")
117117
require.NoError(t, err, "marshaling converted state to JSON")
118-
err = os.WriteFile(expPath, gotBytes, 0o600)
118+
// Newline at end of file for git purposes
119+
err = os.WriteFile(expPath, append(gotBytes, '\n'), 0o600)
119120
require.NoError(t, err)
120121
return
121122
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"Resources": [
3+
{
4+
"name": "a",
5+
"type": "coder_ai_task"
6+
}
7+
],
8+
"Parameters": [],
9+
"Presets": [],
10+
"ExternalAuthProviders": [],
11+
"AITasks": [
12+
{
13+
"sidebar_app": {
14+
"id": "5ece4674-dd35-4f16-88c8-82e40e72e2fd"
15+
},
16+
"app_id": "5ece4674-dd35-4f16-88c8-82e40e72e2fd"
17+
}
18+
],
19+
"HasAITasks": true,
20+
"HasExternalAgents": false
21+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"Resources": [
3+
{
4+
"name": "a",
5+
"type": "coder_ai_task"
6+
}
7+
],
8+
"Parameters": [],
9+
"Presets": [],
10+
"ExternalAuthProviders": [],
11+
"AITasks": [
12+
{
13+
"id": "c4f032b8-97e4-42b0-aa2f-30a9e698f8d4",
14+
"sidebar_app": {
15+
"id": "5ece4674-dd35-4f16-88c8-82e40e72e2fd"
16+
},
17+
"app_id": "5ece4674-dd35-4f16-88c8-82e40e72e2fd"
18+
}
19+
],
20+
"HasAITasks": true,
21+
"HasExternalAgents": false
22+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"Resources": [
3+
{
4+
"name": "a",
5+
"type": "coder_ai_task"
6+
},
7+
{
8+
"name": "b",
9+
"type": "coder_ai_task"
10+
}
11+
],
12+
"Parameters": [],
13+
"Presets": [],
14+
"ExternalAuthProviders": [],
15+
"AITasks": [
16+
{
17+
"sidebar_app": {
18+
"id": "5ece4674-dd35-4f16-88c8-82e40e72e2fd"
19+
},
20+
"app_id": "5ece4674-dd35-4f16-88c8-82e40e72e2fd"
21+
},
22+
{
23+
"sidebar_app": {
24+
"id": "5ece4674-dd35-4f16-88c8-82e40e72e2fd"
25+
},
26+
"app_id": "5ece4674-dd35-4f16-88c8-82e40e72e2fd"
27+
}
28+
],
29+
"HasAITasks": true,
30+
"HasExternalAgents": false
31+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"Resources": [
3+
{
4+
"name": "a",
5+
"type": "coder_ai_task"
6+
},
7+
{
8+
"name": "b",
9+
"type": "coder_ai_task"
10+
}
11+
],
12+
"Parameters": [],
13+
"Presets": [],
14+
"ExternalAuthProviders": [],
15+
"AITasks": [
16+
{
17+
"id": "89e6ab36-2e98-4d13-9b4c-69b7588b7e1d",
18+
"sidebar_app": {
19+
"id": "5ece4674-dd35-4f16-88c8-82e40e72e2fd"
20+
},
21+
"app_id": "5ece4674-dd35-4f16-88c8-82e40e72e2fd"
22+
},
23+
{
24+
"id": "5ece4674-dd35-4f16-88c8-82e40e72e2fd",
25+
"sidebar_app": {
26+
"id": "5ece4674-dd35-4f16-88c8-82e40e72e2fd"
27+
},
28+
"app_id": "5ece4674-dd35-4f16-88c8-82e40e72e2fd"
29+
}
30+
],
31+
"HasAITasks": true,
32+
"HasExternalAgents": false
33+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"Resources": [
3+
{
4+
"name": "a",
5+
"type": "coder_ai_task"
6+
}
7+
],
8+
"Parameters": [],
9+
"Presets": [],
10+
"ExternalAuthProviders": [],
11+
"AITasks": [
12+
{
13+
"sidebar_app": {
14+
"id": "5ece4674-dd35-4f16-88c8-82e40e72e2fd"
15+
},
16+
"app_id": "5ece4674-dd35-4f16-88c8-82e40e72e2fd"
17+
}
18+
],
19+
"HasAITasks": true,
20+
"HasExternalAgents": false
21+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"Resources": [
3+
{
4+
"name": "a",
5+
"type": "coder_ai_task"
6+
}
7+
],
8+
"Parameters": [],
9+
"Presets": [],
10+
"ExternalAuthProviders": [],
11+
"AITasks": [
12+
{
13+
"id": "89e6ab36-2e98-4d13-9b4c-69b7588b7e1d",
14+
"sidebar_app": {
15+
"id": "5ece4674-dd35-4f16-88c8-82e40e72e2fd"
16+
},
17+
"app_id": "5ece4674-dd35-4f16-88c8-82e40e72e2fd"
18+
}
19+
],
20+
"HasAITasks": true,
21+
"HasExternalAgents": false
22+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"Resources": [
3+
{
4+
"name": "example",
5+
"type": "null_resource",
6+
"agents": [
7+
{
8+
"name": "main",
9+
"operating_system": "linux",
10+
"architecture": "amd64",
11+
"Auth": {
12+
"Token": ""
13+
},
14+
"connection_timeout_seconds": 120,
15+
"display_apps": {
16+
"vscode": true,
17+
"web_terminal": true,
18+
"ssh_helper": true,
19+
"port_forwarding_helper": true
20+
},
21+
"resources_monitoring": {},
22+
"api_key_scope": "all"
23+
}
24+
],
25+
"module_path": "module.module"
26+
}
27+
],
28+
"Parameters": [],
29+
"Presets": [],
30+
"ExternalAuthProviders": [],
31+
"AITasks": [],
32+
"HasAITasks": false,
33+
"HasExternalAgents": false
34+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"Resources": [
3+
{
4+
"name": "example",
5+
"type": "null_resource",
6+
"agents": [
7+
{
8+
"id": "8cb7c83a-eddb-45e9-a78c-4b50d0f10e5e",
9+
"name": "main",
10+
"operating_system": "linux",
11+
"architecture": "amd64",
12+
"Auth": {
13+
"Token": "59bcf169-14fe-497d-9a97-709c1d837848"
14+
},
15+
"connection_timeout_seconds": 120,
16+
"display_apps": {
17+
"vscode": true,
18+
"web_terminal": true,
19+
"ssh_helper": true,
20+
"port_forwarding_helper": true
21+
},
22+
"resources_monitoring": {},
23+
"api_key_scope": "all"
24+
}
25+
],
26+
"module_path": "module.module"
27+
}
28+
],
29+
"Parameters": [],
30+
"Presets": [],
31+
"ExternalAuthProviders": [],
32+
"AITasks": [],
33+
"HasAITasks": false,
34+
"HasExternalAgents": false
35+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"Resources": [
3+
{
4+
"name": "a",
5+
"type": "null_resource"
6+
},
7+
{
8+
"name": "b",
9+
"type": "null_resource",
10+
"agents": [
11+
{
12+
"name": "main",
13+
"operating_system": "linux",
14+
"architecture": "amd64",
15+
"Auth": {
16+
"Token": ""
17+
},
18+
"connection_timeout_seconds": 120,
19+
"display_apps": {
20+
"vscode": true,
21+
"web_terminal": true,
22+
"ssh_helper": true,
23+
"port_forwarding_helper": true
24+
},
25+
"resources_monitoring": {},
26+
"api_key_scope": "all"
27+
}
28+
]
29+
}
30+
],
31+
"Parameters": [],
32+
"Presets": [],
33+
"ExternalAuthProviders": [],
34+
"AITasks": [],
35+
"HasAITasks": false,
36+
"HasExternalAgents": false
37+
}

0 commit comments

Comments
 (0)