Skip to content

Commit 88023c9

Browse files
committed
Fixed e2e tests for dnsconfig
Signed-off-by: Yuri Sa <[email protected]>
1 parent 417a33a commit 88023c9

File tree

3 files changed

+10
-21
lines changed

3 files changed

+10
-21
lines changed
+10-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
# skipping test, see https://github.com/open-telemetry/opentelemetry-operator/issues/1936
2-
apiVersion: v1
3-
kind: Pod
1+
apiVersion: apps/v1
2+
kind: Deployment
43
metadata:
54
name: poddnsconfig-collector
65
spec:
7-
containers:
8-
- name: otc-container
6+
template:
7+
spec:
8+
dnsConfig:
9+
nameservers:
10+
- 8.8.8.8
11+
searches:
12+
- my.dns.search.suffix
913
status:
10-
phase: Running
14+
readyReplicas: 1

tests/e2e/smoke-pod-dns-config/00-install.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ spec:
88
- 8.8.8.8
99
searches:
1010
- my.dns.search.suffix
11-
options:
12-
- name: ndots
13-
value: "2"
14-
- name: edns0
1511
config: |
1612
receivers:
1713
otlp:

tests/e2e/smoke-pod-dns-config/chainsaw-test.yaml

-11
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,3 @@ spec:
1212
file: 00-install.yaml
1313
- assert:
1414
file: 00-assert.yaml
15-
- name: step-01
16-
try:
17-
- script:
18-
content: kubectl exec -it poddnsconfig-collector -- cat /etc/resolv.conf | jq --raw-input . | jq --slurp
19-
outputs:
20-
- name: resolvconf
21-
value: (json_parse($stdout))
22-
- assert:
23-
resource:
24-
($resolvconf):
25-
nameserver: 8.8.8.8

0 commit comments

Comments
 (0)