Skip to content

Commit 6b639a9

Browse files
committed
Discarding the use of a DevContainer due to systemd
1 parent 61e502f commit 6b639a9

5 files changed

Lines changed: 16 additions & 68 deletions

File tree

.devcontainer/test/Dockerfile

Lines changed: 0 additions & 33 deletions
This file was deleted.

.devcontainer/test/devcontainer.json

Lines changed: 0 additions & 22 deletions
This file was deleted.

README.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -150,26 +150,29 @@ Those are generated using the `locale/build.sh` script.
150150

151151
### To run End-To-End tests
152152

153-
Use podman machine as the container runtime and set it as `rootful`:
154-
```bash
155-
podman machine stop
156-
podman machine set --rootful=true --memory=8192
157-
podman machine start
158-
export DOCKER_HOST="unix://$(podman info --format '{{.Host.RemoteSocket.Path}}')"
153+
To run the tests, first set up a virtual machine with a Linux system, such as Leap 15.6. Then, connect your IntelliJ to this VM and proceed to the next steps:
159154

155+
Install dependencies
156+
```bash
157+
zypper -n install curl git tar gzip make gcc podman
160158
```
161159

162-
Then, you can run the devcontainer commands to build and run the devcontainer for testing:
160+
Install Go and Ginkgo
163161
```bash
164-
devcontainer up --workspace-folder . --config .devcontainer/test/devcontainer.json
165-
devcontainer exec --workspace-folder . bash
162+
curl -LO https://go.dev/dl/go1.21.13.linux-amd64.tar.gz
163+
tar -C /root -xzf go1.21.13.linux-amd64.tar.gz
164+
export PATH="/root/go/bin:$PATH"
165+
go install github.com/onsi/ginkgo/v2/ginkgo@v2.20.1
166166
```
167167

168-
Once inside the devcontainer, you can run the tests with:
168+
Build the tools from the source code folder
169169
```bash
170-
cd /workspace
171170
go build -o bin/mgradm ./mgradm
172171
go build -o bin/mgrctl ./mgrctl
173172
go build -o bin/mgrpxy ./mgrpxy
173+
```
174+
175+
Run the tests
176+
```bash
174177
ginkgo ./tests/e2e
175178
```

tests/e2e/mgrctl_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ import (
1010
)
1111

1212
var _ = Describe("mgrctl tests", func() {
13-
13+
// TODO: Implement tests for mgrctl commands
1414
})

tests/e2e/mgrpxy_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ import (
1010
)
1111

1212
var _ = Describe("mgrpxy tests", func() {
13-
13+
// TODO: Implement tests for mgrctl commands
1414
})

0 commit comments

Comments
 (0)