Verified Commit 2a48849f authored by Martin Abbrent's avatar Martin Abbrent 💬
Browse files

Add testscript and teststage in CI for a first integration test

- Fix service command
- Handle emtpy client response
parent db8c538a
Pipeline #50910 passed with stage
in 43 seconds
......@@ -12,6 +12,11 @@ integration-test:
services:
- name: minio/minio
alias: minio
command:
- "server"
- "/vol0"
- "--console-address"
- ":9001"
script:
- pip install minio
- curl https://dl.min.io/client/mc/release/linux-amd64/mc > /usr/local/bin/mc
......
......@@ -77,7 +77,7 @@ class Mc:
if not confidential:
self.logger.info(ret.stdout)
return json.loads(ret.stdout)
return json.loads(ret.stdout or 'null')
def user_add(self, access_key: str, secret_key: str):
ret = self._command(
......
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