6464var packagesConfig = []testPackageConfig {
6565 {name : "datadog-installer" , defaultVersion : fmt .Sprintf ("pipeline-%v" , os .Getenv ("CI_PIPELINE_ID" )), registry : "669783387624.dkr.ecr.us-east-1.amazonaws.com" , auth : "ecr" },
6666 {name : "datadog-agent" , defaultVersion : fmt .Sprintf ("pipeline-%v" , os .Getenv ("CI_PIPELINE_ID" )), registry : "669783387624.dkr.ecr.us-east-1.amazonaws.com" , auth : "ecr" },
67- {name : "datadog-apm-inject" , defaultVersion : "latest" , registry : "gcr.io/datadoghq" , auth : "docker" },
67+ {name : "datadog-apm-inject" , defaultVersion : "latest" },
6868 {name : "datadog-apm-library-java" , defaultVersion : "latest" },
6969 {name : "datadog-apm-library-ruby" , defaultVersion : "latest" },
7070 {name : "datadog-apm-library-js" , defaultVersion : "latest" },
@@ -145,7 +145,7 @@ func (s *packageBaseSuite) ProvisionerOptions() []awshost.ProvisionerOption {
145145
146146func (s * packageBaseSuite ) SetupSuite () {
147147 s .BaseSuite .SetupSuite ()
148- s .setupGlobalEnv ()
148+ s .setupFakeIntake ()
149149 s .host = host .New (s .T (), s .Env ().RemoteHost , s .os , s .arch )
150150}
151151
@@ -168,14 +168,10 @@ func (s *packageBaseSuite) Purge() {
168168 s .Env ().RemoteHost .MustExecute ("sudo apt-get remove -y --purge datadog-installer || sudo yum remove -y datadog-installer" )
169169}
170170
171- // setupGlobalEnv sets up the global environment variables for the agent processes
171+ // setupFakeIntake sets up the fake intake for the agent and trace agent.
172172// This is done with SystemD environment files overrides to avoid having to touch the agent configuration files
173173// and potentially interfere with the tests.
174- func (s * packageBaseSuite ) setupGlobalEnv () {
175- // FIXME: this should be done in the installer
176- s .Env ().RemoteHost .MustExecute ("sudo mkdir -p /etc/datadog-agent" )
177- s .Env ().RemoteHost .MustExecute (`echo "api_key: deadbeefdeadbeefdeadbeefdeadbeef" | sudo tee /etc/datadog-agent/datadog.yaml` )
178-
174+ func (s * packageBaseSuite ) setupFakeIntake () {
179175 var env []string
180176 if s .Env ().FakeIntake != nil {
181177 env = append (env , []string {
@@ -189,8 +185,8 @@ func (s *packageBaseSuite) setupGlobalEnv() {
189185 }
190186 s .Env ().RemoteHost .MustExecute ("sudo mkdir -p /etc/systemd/system/datadog-agent.service.d" )
191187 s .Env ().RemoteHost .MustExecute ("sudo mkdir -p /etc/systemd/system/datadog-agent-trace.service.d" )
192- s .Env ().RemoteHost .MustExecute (`printf "[Service]\nEnvironmentFile=-/etc/environment\n" | sudo tee /etc/systemd/system/datadog-agent-trace.service.d/inject .conf` )
193- s .Env ().RemoteHost .MustExecute (`printf "[Service]\nEnvironmentFile=-/etc/environment\n" | sudo tee /etc/systemd/system/datadog-agent-trace.service.d/inject .conf` )
188+ s .Env ().RemoteHost .MustExecute (`printf "[Service]\nEnvironmentFile=-/etc/environment\n" | sudo tee /etc/systemd/system/datadog-agent-trace.service.d/fake-intake .conf` )
189+ s .Env ().RemoteHost .MustExecute (`printf "[Service]\nEnvironmentFile=-/etc/environment\n" | sudo tee /etc/systemd/system/datadog-agent-trace.service.d/fake-intake .conf` )
194190 s .Env ().RemoteHost .MustExecute ("sudo systemctl daemon-reload" )
195191}
196192
0 commit comments