File tree Expand file tree Collapse file tree
doc-snippets/extensions-minimal/oats
javaagent-declarative-configuration/oats
logging-k8s-stdout-otlp-json
spring-declarative-configuration/oats Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,4 @@ set -euo pipefail
1010 :opentelemetry-examples-logging-k8s-stdout-otlp-json:assemble \
1111 :opentelemetry-examples-spring-declarative-configuration:bootJar
1212
13- oats -timeout 5m doc-snippets/extensions-minimal/oats/
14- oats -timeout 5m javaagent-declarative-configuration/oats/
15- oats -timeout 5m logging-k8s-stdout-otlp-json/
16- oats -timeout 5m spring-declarative-configuration/oats/
13+ oats --no-cache --timeout=10m .
Original file line number Diff line number Diff line change 1+ name : extensions minimal traces custom processor attribute
2+ fixture :
3+ compose :
4+ template : lgtm
5+ file : ./docker-compose.yml
6+ interval : 5s
7+ seed :
8+ type : app
9+ input :
10+ - path : /hello
11+ expected :
12+ traces :
13+ - traceql : ' { span.http.route = "/hello" }'
14+ match_spans :
15+ - name : GET /hello
16+ attributes :
17+ - key : http.request.method
18+ value : GET
19+ - key : http.route
20+ value : /hello
21+ - key : custom.processor
22+ value : active
Load diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : javaagent declarative config excludes actuator health traces
2+ fixture :
3+ compose :
4+ template : lgtm
5+ file : ./docker-compose.yml
6+ seed :
7+ type : app
8+ input :
9+ - path : /api/example
10+ - path : /actuator/health
11+ - path : /api/remote
12+ expected :
13+ traces :
14+ - traceql : ' { span.http.route = "/api/example" }'
15+ match_spans :
16+ - name : GET /api/example
17+ attributes :
18+ - key : http.request.method
19+ value : GET
20+ - key : http.route
21+ value : /api/example
22+ - traceql : ' { span.http.route = "/actuator/health" }'
23+ absent : true
24+ - traceql : ' { span.peer.service = "example-backend" }'
25+ count : ' >= 1'
Load diff This file was deleted.
Original file line number Diff line number Diff line change 3030 protocol : TCP
3131 port : 3200
3232 targetPort : 3200
33+ - name : pyroscope # needed for automated tests
34+ protocol : TCP
35+ port : 4040
36+ targetPort : 4040
3337---
3438apiVersion : apps/v1
3539kind : Deployment
5559 - containerPort : 9090 # needed for automated tests
5660 - containerPort : 3100 # needed for automated tests
5761 - containerPort : 3200 # needed for automated tests
62+ - containerPort : 4040 # needed for automated tests
5863 readinessProbe :
5964 exec :
6065 command :
Original file line number Diff line number Diff line change 1+ name : logging k8s stdout otlp json emits structured logs
2+ fixture :
3+ k3d :
4+ k8s_dir : k8s
5+ app_service : dice
6+ app_docker_file : Dockerfile
7+ app_docker_tag : dice:1.1-SNAPSHOT
8+ app_port : 8080
9+ input :
10+ - path : /rolldice
11+ expected :
12+ logs :
13+ - logql : ' {service_name="dice"} |~ `.*Anonymous player is rolling the dice:.*`'
14+ regex : ' Anonymous player is rolling the dice: [0-9]+'
15+ count : ' >= 1'
16+ - logql : ' {service_name="dice"} |~ `.*simulating an error.*`'
17+ contains :
18+ - ' Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: java.lang.RuntimeException: simulating an error] with root cause'
19+ - ' java.lang.RuntimeException: simulating an error'
20+ count : ' >= 1'
Load diff This file was deleted.
Original file line number Diff line number Diff line change 11[tools ]
2- "aqua:grafana/oats" = " 0.7.0"
2+ "aqua:grafana/gcx" = " v0.5.0"
3+ "aqua:grafana/oats" = " 0.8.0"
34k3d = " 5.8.3"
45kubectl = " 1.36.3"
56
Original file line number Diff line number Diff line change 1+ meta :
2+ version : 3
3+
4+ cases :
5+ - doc-snippets/extensions-minimal/oats/oats-case.yaml
6+ - javaagent-declarative-configuration/oats/oats-case.yaml
7+ - spring-declarative-configuration/oats/oats-case.yaml
8+ - logging-k8s-stdout-otlp-json/oats-case.yaml
You can’t perform that action at this time.
0 commit comments