Verified Commit 49c01878 authored by Martin Abbrent's avatar Martin Abbrent 💬
Browse files

Add testscript and teststage in CI for a first integration test

parent 1bc6183e
Pipeline #50901 failed with stage
in 48 seconds
......@@ -6,6 +6,14 @@ stages:
- test
- release
integration-test:
stage: test
image: python:latest
services:
- minio/minio
script:
- pip install minio
- python tests.py
build-package:
stage: release
......
from tests import integration_test
if __name__ == '__main__':
integration_test
import argparse
from minio_cli_wrapper.mc import Mc
parser = argparse.ArgumentParser()
parser.add_argument('--url', default='minio:9000')
args = parser.parse_args()
m = Mc(args.url, secure=False, access_key='minioadmin', secret_key='minioadmin')
ret = m._command(['ls', m.ALIAS])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment