Skip to content

Commit

Permalink
Test: re-enable arm64 tests, add missed files for Arc testkube tests (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
gracewehner authored Sep 26, 2024
1 parent 74a753d commit d3bf1af
Show file tree
Hide file tree
Showing 3 changed files with 174 additions and 4 deletions.
2 changes: 1 addition & 1 deletion otelcollector/shared/proxy_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func copyCAAnchors() {
cmd := exec.Command("cp", match, "/etc/pki/ca-trust/source/anchors")
cmd.Stderr = os.Stderr
if err := cmd.Run(); err != nil {
log.Printf("Error copying %s: %v", match, err)
log.Printf("Warning copying %s: %v", match, err)
}
} else if os.IsNotExist(err) {
log.Printf("File %s does not exist", match)
Expand Down
170 changes: 170 additions & 0 deletions otelcollector/test/testkube/testkube-test-crs-arc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
apiVersion: tests.testkube.io/v3
kind: Test
metadata:
name: containerstatus
namespace: testkube
labels:
executor: ginkgo-executor
test-type: ginkgo-test
spec:
type: ginkgo/test
content:
type: git
repository:
type: git
uri: https://github.com/Azure/prometheus-collector
branch: main
path: otelcollector/test/ginkgo-e2e
executionRequest:
args:
- "--label-filter"
- "!(windows,arm64,linux-daemonset-custom-config)"
- "./containerstatus"
executePostRunScriptBeforeScraping: false
---
apiVersion: tests.testkube.io/v3
kind: Test
metadata:
name: livenessprobe
namespace: testkube
labels:
executor: ginkgo-executor
test-type: ginkgo-test
spec:
type: ginkgo/test
content:
type: git
repository:
type: git
uri: https://github.com/Azure/prometheus-collector
branch: main
path: otelcollector/test/ginkgo-e2e
executionRequest:
args:
- "--label-filter"
- "!(windows,arm64,linux-daemonset-custom-config)"
- "./livenessprobe"
executePostRunScriptBeforeScraping: false
---
apiVersion: tests.testkube.io/v3
kind: Test
metadata:
name: prometheusui
namespace: testkube
labels:
executor: ginkgo-executor
test-type: ginkgo-test
spec:
type: ginkgo/test
content:
type: git
repository:
type: git
uri: https://github.com/Azure/prometheus-collector
branch: main
path: otelcollector/test/ginkgo-e2e
executionRequest:
args:
- "--label-filter"
- "!(windows,arm64,linux-daemonset-custom-config)"
- "./prometheusui"
executePostRunScriptBeforeScraping: false
---
apiVersion: tests.testkube.io/v3
kind: Test
metadata:
name: operator
namespace: testkube
labels:
executor: ginkgo-executor
test-type: ginkgo-test
spec:
type: ginkgo/test
content:
type: git
repository:
type: git
uri: https://github.com/Azure/prometheus-collector
branch: main
path: otelcollector/test/ginkgo-e2e
executionRequest:
args:
- "--ldflags"
- "-s -X github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring.GroupName=azmonitoring.coreos.com"
- "./operator"
executePostRunScriptBeforeScraping: false
---
apiVersion: tests.testkube.io/v3
kind: Test
metadata:
name: querymetrics
namespace: testkube
labels:
executor: ginkgo-executor
test-type: ginkgo-test
spec:
type: ginkgo/test
content:
type: git
repository:
type: git
uri: https://github.com/Azure/prometheus-collector
branch: main
path: otelcollector/test/ginkgo-e2e
executionRequest:
variables:
AMW_QUERY_ENDPOINT:
name: AMW_QUERY_ENDPOINT
value: "$AMW_QUERY_ENDPOINT"
type: basic
AZURE_CLIENT_ID:
name: AZURE_CLIENT_ID
value: "$AZURE_CLIENT_ID"
type: basic
args:
- "--label-filter"
- "!(windows,arm64,linux-daemonset-custom-config)"
- "./querymetrics"
executePostRunScriptBeforeScraping: false
---
apiVersion: tests.testkube.io/v3
kind: TestSuite
metadata:
name: e2e-tests-nightly
namespace: testkube
spec:
steps:
- stopOnFailure: false
execute:
- test: containerstatus
- test: prometheusui
- test: operator
- stopOnFailure: false
execute:
- delay: 2m0s
- stopOnFailure: false
execute:
- test: querymetrics
- stopOnFailure: false
execute:
- test: livenessprobe
schedule: "0 7 * * *"
---
apiVersion: tests.testkube.io/v3
kind: TestSuite
metadata:
name: e2e-tests-merge
namespace: testkube
spec:
steps:
- stopOnFailure: false
execute:
- test: containerstatus
- test: prometheusui
- test: operator
- stopOnFailure: false
execute:
- delay: 2m0s
- stopOnFailure: false
execute:
- test: querymetrics
6 changes: 3 additions & 3 deletions otelcollector/test/testkube/testkube-test-crs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
executionRequest:
args:
- "--label-filter"
- "!(arc-extension,linux-daemonset-custom-config,arm64)"
- "!(arc-extension,linux-daemonset-custom-config)"
- "./containerstatus"
executePostRunScriptBeforeScraping: false
---
Expand All @@ -42,7 +42,7 @@ spec:
executionRequest:
args:
- "--label-filter"
- "!(arc-extension,linux-daemonset-custom-config,arm64)"
- "!(arc-extension,linux-daemonset-custom-config)"
- "./livenessprobe"
executePostRunScriptBeforeScraping: false
---
Expand All @@ -66,7 +66,7 @@ spec:
executionRequest:
args:
- "--label-filter"
- "!(arc-extension,linux-daemonset-custom-config,arm64)"
- "!(arc-extension,linux-daemonset-custom-config)"
- "./prometheusui"
executePostRunScriptBeforeScraping: false
---
Expand Down

0 comments on commit d3bf1af

Please sign in to comment.