Skip to content

Commit 6817c5e

Browse files
migrate mint tests to latest versions (minio#9424)
1 parent 4cd6ca0 commit 6817c5e

File tree

29 files changed

+56
-145
lines changed

29 files changed

+56
-145
lines changed

Dockerfile.mint

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
1-
FROM ubuntu:16.04
1+
FROM ubuntu:18.04
22

33
ENV DEBIAN_FRONTEND noninteractive
4-
54
ENV LANG C.UTF-8
6-
75
ENV GOROOT /usr/local/go
8-
9-
ENV GOPATH /usr/local
10-
6+
ENV GOPATH /usr/local/gopath
117
ENV PATH $GOPATH/bin:$GOROOT/bin:$PATH
12-
138
ENV MINT_ROOT_DIR /mint
14-
159
COPY mint /mint
1610

1711
RUN apt-get --yes update && apt-get --yes upgrade && \

Dockerfile.simpleci

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ RUN yarn test
5757
#-------------------------------------------------------------
5858
# Stage 3: Run Gateway Tests
5959
#-------------------------------------------------------------
60-
FROM ubuntu:16.04
60+
FROM ubuntu:18.04
6161

6262
COPY --from=0 /go/src/github.com/minio/minio/minio /usr/bin/minio
6363
COPY buildscripts/gateway-tests.sh /usr/bin/gateway-tests.sh
@@ -66,7 +66,7 @@ COPY mint /mint
6666
ENV DEBIAN_FRONTEND noninteractive
6767
ENV LANG C.UTF-8
6868
ENV GOROOT /usr/local/go
69-
ENV GOPATH /usr/local
69+
ENV GOPATH /usr/local/gopath
7070
ENV PATH $GOPATH/bin:$GOROOT/bin:$PATH
7171
ENV SIMPLE_CI 1
7272
ENV MINT_ROOT_DIR /mint

buildscripts/gateway-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function main()
4848
SERVER_ENDPOINT=127.0.0.1:24240 ENABLE_HTTPS=0 ACCESS_KEY=minio \
4949
SECRET_KEY=minio123 MINT_MODE="full" /mint/entrypoint.sh \
5050
aws-sdk-go aws-sdk-java aws-sdk-php aws-sdk-ruby awscli \
51-
healthcheck mc minio-dotnet minio-java minio-js \
51+
healthcheck mc minio-dotnet minio-js \
5252
minio-py s3cmd s3select security
5353
rv=$?
5454

mint/Dockerfile.dev

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

mint/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ All test logs are stored in `/mint/log/log.json` as multiple JSON document. Bel
8282
After making changes to Mint source code a local docker image can be built/run by
8383

8484
```sh
85-
$ docker build -t minio/mint . -f Dockerfile.dev
85+
$ docker build -t minio/mint . -f Dockerfile.mint
8686
$ docker run -e SERVER_ENDPOINT=play.minio.io:9000 -e ACCESS_KEY=Q3AM3UQ867SPQQA43P2F \
8787
-e SECRET_KEY=zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG \
8888
-e ENABLE_HTTPS=1 -e MINT_MODE=full minio/mint:latest

mint/build/aws-sdk-ruby/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash -e
22
#
3-
# Mint (C) 2017 Minio, Inc.
3+
# Mint (C) 20172-2020 Minio, Inc.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -15,4 +15,4 @@
1515
# limitations under the License.
1616
#
1717

18-
gem install --no-rdoc --no-ri aws-sdk-resources:3.56.0 aws-sdk multipart_body
18+
gem install --no-rdoc --no-ri aws-sdk-resources aws-sdk multipart_body

mint/build/awscli/install.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash -e
22
#
3-
# Mint (C) 2017 Minio, Inc.
3+
# Mint (C) 2017-2020 Minio, Inc.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -15,6 +15,4 @@
1515
# limitations under the License.
1616
#
1717

18-
AWS_CLI_VERSION="1.16.309"
19-
20-
python -m pip install awscli==$AWS_CLI_VERSION
18+
pip3 install awscli --upgrade

mint/build/minio-dotnet/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
#
3-
# Mint (C) 2017 Minio, Inc.
3+
# Mint (C) 2017-2020 Minio, Inc.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -39,4 +39,4 @@ rm -fr "${temp_dir}"
3939

4040
cd "$MINIO_DOTNET_SDK_PATH"
4141
dotnet restore /p:Configuration=Mint
42-
dotnet publish --runtime ubuntu.16.04-x64 --output out /p:Configuration=Mint
42+
dotnet publish --runtime ubuntu.18.04-x64 --output out /p:Configuration=Mint

mint/build/minio-py/install.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash -e
22
#
3-
# Mint (C) 2017 Minio, Inc.
3+
# Mint (C) 2017-2020 Minio, Inc.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -22,8 +22,6 @@ if [ -z "$MINIO_PY_VERSION" ]; then
2222
fi
2323

2424
test_run_dir="$MINT_RUN_CORE_DIR/minio-py"
25-
# FIX https://github.com/pypa/pip/issues/5221
26-
python -m pip install --upgrade pip
27-
python -m pip install --user faker
28-
python -m pip install minio=="$MINIO_PY_VERSION"
25+
pip3 install --user faker
26+
pip3 install minio=="$MINIO_PY_VERSION"
2927
$WGET --output-document="$test_run_dir/tests.py" "https://raw.githubusercontent.com/minio/minio-py/${MINIO_PY_VERSION}/tests/functional/tests.py"

mint/install-packages.list

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
git
22
python3-pip
33
nodejs
4+
openjdk-8-jdk
5+
openjdk-8-jre
6+
dirmngr
7+
apt-transport-https
8+
dotnet-sdk-2.1
9+
ca-certificates-mono
10+
nuget
11+
libunwind8
412
ruby
513
ruby-dev
614
ruby-bundler
715
php
8-
php7.0-curl
16+
php-curl
917
php-xml
10-
default-jre
11-
default-jdk
1218
ant
13-
dirmngr
14-
dotnet-sdk-2.1
15-
ca-certificates-mono
16-
nuget
17-
libunwind8

0 commit comments

Comments
 (0)