Skip to content

Commit 84f066f

Browse files
committed
wip: add failing test
1 parent 374860c commit 84f066f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

integration/integration_test.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func TestLogs(t *testing.T) {
110110
"Dockerfile": fmt.Sprintf(`FROM %s`, testImageUbuntu),
111111
},
112112
})
113-
_, err := runEnvbuilder(t, runOpts{env: []string{
113+
ctrID, err := runEnvbuilder(t, runOpts{env: []string{
114114
envbuilderEnv("GIT_URL", srv.URL),
115115
"CODER_AGENT_URL=" + logSrv.URL,
116116
"CODER_AGENT_TOKEN=" + token,
@@ -123,6 +123,10 @@ func TestLogs(t *testing.T) {
123123
t.Fatal("timed out waiting for logs")
124124
case <-logsDone:
125125
}
126+
127+
// Ensure that CODER_AGENT_SUBSYSTEM is set correctly inside the container.
128+
output := execContainer(t, ctrID, "echo $CODER_AGENT_SUBSYSTEM")
129+
require.Equal(t, "envbuilder", strings.TrimSpace(output))
126130
}
127131

128132
func TestInitScriptInitCommand(t *testing.T) {

0 commit comments

Comments
 (0)