Skip to content

Commit 4a1d4cc

Browse files
committed
Add CI tests for datadog_manage_config=false
1 parent 946564e commit 4a1d4cc

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

.circleci/config.yml

+39-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,17 @@ commands:
3131
- run: ansible-playbook -i ./ci_test/inventory/ci.ini "./ci_test/install_agent_<<parameters.version>>.yaml" -e 'ansible_python_interpreter=/usr/bin/<<parameters.python>>'
3232
- run: datadog-agent version
3333

34+
test_install_no_manage_config:
35+
parameters:
36+
version:
37+
type: string
38+
python:
39+
type: string
40+
steps:
41+
- run: ansible-playbook -i ./ci_test/inventory/ci.ini "./ci_test/install_agent_<<parameters.version>>.yaml" -e 'ansible_python_interpreter=/usr/bin/<<parameters.python>> datadog_manage_config=false'
42+
- run: ps aux | grep -v grep | grep datadog-agent
43+
- run: bash -c '[ ! -f /etc/datadog-agent/datadog.yaml ] && [ ! -f /etc/datadog-agent/system-probe.yaml ] && [ ! -f /etc/datadog-agent/security-agent.yaml ] && [ ! -f /etc/dd-agent/datadog.conf ]'
44+
3445
downgrade_agent_5_23_0:
3546
parameters:
3647
python:
@@ -121,6 +132,24 @@ jobs:
121132
version: "<<parameters.agent_version>>"
122133
python: "<<parameters.python>>"
123134

135+
test_install_no_manage_config:
136+
parameters:
137+
ansible_version:
138+
type: string
139+
agent_version:
140+
type: string
141+
os:
142+
type: string
143+
python:
144+
type: string
145+
docker:
146+
- image: datadog/docker-library:ansible_<<parameters.os>>_<<parameters.ansible_version>>
147+
steps:
148+
- checkout
149+
- test_install_no_manage_config:
150+
version: "<<parameters.agent_version>>"
151+
python: "<<parameters.python>>"
152+
124153
workflows:
125154
version: 2
126155
test_datadog_role:
@@ -142,7 +171,16 @@ workflows:
142171
agent_version: ["5", "6", "7"]
143172
os: ["debian"]
144173
python: ["python3"]
145-
174+
175+
# Newer debian images only have Pythpn 3 installed
176+
- test_install_no_manage_config:
177+
matrix:
178+
parameters:
179+
ansible_version: ["2_10"]
180+
agent_version: ["5", "7"]
181+
os: ["debian"]
182+
python: ["python3"]
183+
146184
# centos = CentOS 7. CentOS <= 7 + Python3 is not supported,
147185
# as the yum module is Python2-only.
148186
- test_install_downgrade:

0 commit comments

Comments
 (0)