Skip to content

Commit

Permalink
cleanup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wildum committed Nov 28, 2023
1 parent 30ba513 commit f5b9b20
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 23 deletions.
4 changes: 1 addition & 3 deletions .drone/drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,6 @@ platform:
os: linux
steps:
- commands:
- docker run --rm -v /drone/src/integration-tests/configs/mimir/mimir.yaml:/mimir.yaml
alpine ls -la /mimir.yaml
- make integration-test
image: grafana/agent-build-image:0.30.4
name: Run integration tests
Expand Down Expand Up @@ -1451,6 +1449,6 @@ kind: secret
name: updater_private_key
---
kind: signature
hmac: 2b5c3faa029d8d0327a8b7072491eb0425e07e2400d34a45e04cbe1099a28c6c
hmac: b2804fac3a22d71112243d8736f990aec7cdabec5cf2df35bd33dfbfd0e9724e

...
1 change: 0 additions & 1 deletion .drone/pipelines/test.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ local pipelines = import '../util/pipelines.jsonnet';
path: '/var/run/docker.sock',
}],
commands: [
'docker run --rm -v /drone/src/integration-tests/configs/mimir/mimir.yaml:/mimir.yaml alpine ls -la /mimir.yaml',
'make integration-test',
],
}],
Expand Down
19 changes: 0 additions & 19 deletions integration-tests/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,26 +44,7 @@ func executeCommand(command string, args []string, taskDescription string) {
}
}

func visit(path string, f os.FileInfo, err error) error {
if err != nil {
fmt.Printf("Error accessing path %s: %v\n", path, err)
return err
}
fmt.Println(path)
return nil
}

func setupContainers(ctx context.Context) {
dir, err := os.Getwd()
if err != nil {
fmt.Println("Error:", err)
return
}
fmt.Println("Current working directory:", dir)
err = filepath.Walk(".", visit)
if err != nil {
fmt.Printf("Error walking through directory %s: %v\n", ".", err)
}
executeCommand("make", []string{"-C", "..", "AGENT_IMAGE=" + agentImage, "agent-image"}, "Building agent")
buildDockerImage("./configs/prom-gen/Dockerfile", "../", prometheusMetricGeneratorImage)
buildDockerImage("./configs/otel-gen/Dockerfile", "../", otelMetricsGeneratorImage)
Expand Down

0 comments on commit f5b9b20

Please sign in to comment.