test: initial rests tests, run/assert, docker cleanup

This commit is contained in:
Luke McCrone
2024-09-11 15:13:13 -03:00
parent 7127cdeee5
commit 4ed54d9bd9
29 changed files with 1011 additions and 268 deletions
+1 -1
View File
@@ -25,4 +25,4 @@ jobs:
run: sudo apt-get install -y docker-compose
- name: Run Docker Container
run: docker-compose -f docker-compose-bats.yml up posix_backend
run: docker-compose -f docker-compose-bats.yml up --exit-code-from posix_backend posix_backend
+15
View File
@@ -85,6 +85,17 @@ jobs:
RECREATE_BUCKETS: "true"
PORT: 7076
BACKEND: "s3"
- set: 8
LOCAL_FOLDER: /tmp/gw8
BUCKET_ONE_NAME: versity-gwtest-bucket-one-7
BUCKET_TWO_NAME: versity-gwtest-bucket-two-7
IAM_TYPE: folder
USERS_FOLDER: /tmp/iam8
AWS_ENDPOINT_URL: https://127.0.0.1:7077
RUN_SET: "rest"
RECREATE_BUCKETS: "true"
PORT: 7077
BACKEND: "posix"
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
@@ -115,6 +126,10 @@ jobs:
curl https://dl.min.io/client/mc/release/linux-amd64/mc --create-dirs -o /usr/local/bin/mc
chmod 755 /usr/local/bin/mc
- name: Install xmllint (for rest)
run: |
sudo apt-get install libxml2-utils
- name: Build and run, posix backend
env:
LOCAL_FOLDER: ${{ matrix.LOCAL_FOLDER }}