Skip to content

Commit 0289217

Browse files
author
Yashgiri Goswami
authored
Volumesfrom additional testcase (#180)
1 parent 5adbfc4 commit 0289217

File tree

3 files changed

+89
-0
lines changed

3 files changed

+89
-0
lines changed

sysdig/data_source_sysdig_fargate_ECS_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ var (
2828
"fargate_cmd_test",
2929
"fargate_linuxparameters_test",
3030
"fargate_combined_test",
31+
"fargate_volumesfrom_test",
3132
}
3233
)
3334

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[
2+
{
3+
"name": "test",
4+
"image": "test_image:latest",
5+
"entryPoint": [
6+
"/bin/test"
7+
],
8+
"command": [
9+
"test",
10+
"--test-arg",
11+
"test-arg-value"
12+
],
13+
"volumesFrom": [
14+
{
15+
"sourceContainer": "test_container",
16+
"readOnly": true
17+
}
18+
]
19+
}
20+
]
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
[
2+
{
3+
"name": "test",
4+
"Image": "test_image:latest",
5+
"EntryPoint": [
6+
"/opt/draios/bin/instrument"
7+
],
8+
"Command": [
9+
"/bin/test",
10+
"test",
11+
"--test-arg",
12+
"test-arg-value"
13+
],
14+
"Environment": [
15+
{
16+
"Name": "SYSDIG_ORCHESTRATOR_PORT",
17+
"Value": "orchestrator_port"
18+
},
19+
{
20+
"Name": "SYSDIG_COLLECTOR",
21+
"Value": "collector_host"
22+
},
23+
{
24+
"Name": "SYSDIG_COLLECTOR_PORT",
25+
"Value": "collector_port"
26+
},
27+
{
28+
"Name": "SYSDIG_ACCESS_KEY",
29+
"Value": "sysdig_access_key"
30+
},
31+
{
32+
"Name": "SYSDIG_LOGGING",
33+
"Value": ""
34+
},
35+
{
36+
"Name": "SYSDIG_ORCHESTRATOR",
37+
"Value": "orchestrator_host"
38+
}
39+
],
40+
"LinuxParameters": {
41+
"Capabilities": {
42+
"Add": [
43+
"SYS_PTRACE"
44+
]
45+
}
46+
},
47+
"VolumesFrom": [
48+
{
49+
"ReadOnly": true,
50+
"SourceContainer": "test_container"
51+
},
52+
{
53+
"ReadOnly": true,
54+
"SourceContainer": "SysdigInstrumentation"
55+
}
56+
]
57+
},
58+
{
59+
"EntryPoint": [
60+
"/opt/draios/bin/logwriter"
61+
],
62+
"Image": "workload_agent_image",
63+
"Name": "SysdigInstrumentation",
64+
"RepositoryCredentials": {
65+
"CredentialsParameter": "image_auth_secret"
66+
}
67+
}
68+
]

0 commit comments

Comments
 (0)