mirror of
https://git.cloudron.io/cloudron/minio-app
synced 2025-09-05 08:45:08 +00:00
Compare commits
38 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
1302e71321 | ||
|
c3195428df | ||
|
99f10e9b3e | ||
|
136f41b004 | ||
|
541185cfa6 | ||
|
8b6fd80d74 | ||
|
c6f0bdc5ef | ||
|
63747ef487 | ||
|
8272354a77 | ||
|
5e15088198 | ||
|
0535814733 | ||
|
7cb935a0c4 | ||
|
e263bde545 | ||
|
5f31e7fd2f | ||
|
582fda2720 | ||
|
ea2898c1b2 | ||
|
b6acac345b | ||
|
91c29432e3 | ||
|
5e83c9cf88 | ||
|
9834ec1c8e | ||
|
7ed03bef1b | ||
|
d6958e05db | ||
|
588125b5f4 | ||
|
891169e87b | ||
|
38f24649fe | ||
|
7f8ae63c00 | ||
|
4ee1e0e8ad | ||
|
02b00f4476 | ||
|
b524016d72 | ||
|
e8ee533d1f | ||
|
ed0250199a | ||
|
7a3c6f9efd | ||
|
e0ce87b291 | ||
|
f28d63d0b9 | ||
|
af0e17d5b0 | ||
|
c662d0caab | ||
|
1f76bbfd77 | ||
|
f7c784c228 |
45
CHANGELOG
45
CHANGELOG
@@ -399,3 +399,48 @@
|
||||
[1.86.0]
|
||||
* Update minio to 2019-12-19T22-52-26Z
|
||||
|
||||
[1.87.0]
|
||||
* Update minio to 2019-12-30T05-45-39Z
|
||||
|
||||
[1.88.0]
|
||||
* Update minio to 2020-01-03T19-12-21Z
|
||||
|
||||
[1.89.0]
|
||||
* Update minio to 2020-01-16T03-05-44Z
|
||||
|
||||
[1.90.0]
|
||||
* Update minio to 2020-01-16T22-40-29Z
|
||||
|
||||
[1.91.0]
|
||||
* Update minio to 2020-01-25T02-50-51Z
|
||||
|
||||
[1.92.0]
|
||||
* Update minio to 2020-02-07T23-28-16Z
|
||||
|
||||
[1.93.0]
|
||||
* Update minio to 2020-02-20T22-51-23Z
|
||||
|
||||
[1.94.0]
|
||||
* Update minio to 2020-02-27T00-23-05Z
|
||||
|
||||
[1.95.0]
|
||||
* Update minio to 2020-03-06T22-23-56Z
|
||||
|
||||
[1.96.0]
|
||||
* Update minio to 2020-03-09T18-26-53Z
|
||||
|
||||
[1.97.0]
|
||||
* Update minio to 2020-03-14T02-21-58Z
|
||||
|
||||
[1.98.0]
|
||||
* Update minio to 2020-03-19T21-49-00Z
|
||||
|
||||
[1.99.0]
|
||||
* Update minio to 2020-03-25T07-03-04Z
|
||||
|
||||
[1.100.0]
|
||||
* Update minio to 2020-04-02T21-34-49Z
|
||||
|
||||
[1.101.0]
|
||||
* Update minio to 2020-04-04T05-39-31Z
|
||||
|
||||
|
@@ -5,7 +5,7 @@
|
||||
"description": "file://DESCRIPTION.md",
|
||||
"changelog": "file://CHANGELOG",
|
||||
"tagline": "Distributed object storage",
|
||||
"version": "1.86.0",
|
||||
"version": "1.101.0",
|
||||
"healthCheckPath": "/minio/login",
|
||||
"httpPort": 8000,
|
||||
"addons": {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
This app packages Minio <upstream>2019-12-19T22-52-26Z</upstream>.
|
||||
This app packages Minio <upstream>2020-04-04T05-39-31Z</upstream>.
|
||||
|
||||
Minio is a distributed object storage server built for cloud applications and devops.
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
FROM cloudron/base:1.0.0@sha256:147a648a068a2e746644746bbfb42eb7a50d682437cead3c67c933c546357617
|
||||
|
||||
ARG VERSION=RELEASE.2019-12-19T22-52-26Z
|
||||
ARG VERSION=RELEASE.2020-04-10T03-34-42Z
|
||||
|
||||
RUN mkdir -p /app/code \
|
||||
&& wget https://dl.minio.io/server/minio/release/linux-amd64/minio.${VERSION} -O /app/code/minio \
|
||||
@@ -8,7 +8,7 @@ RUN mkdir -p /app/code \
|
||||
|
||||
WORKDIR /app/code
|
||||
|
||||
ADD config.json /app/code/config.json
|
||||
ADD start.sh /app/code/start.sh
|
||||
ADD minio-credentials /app/code/minio-credentials
|
||||
|
||||
CMD [ "/app/code/start.sh" ]
|
||||
|
@@ -2,7 +2,7 @@ This application does not integrate with Cloudron authentication.
|
||||
|
||||
Please use the following credentials to login:
|
||||
|
||||
* AccessKey: `admin`
|
||||
* SecretKey: `secretkey`
|
||||
* AccessKey: `minioadmin`
|
||||
* SecretKey: `minioadmin`
|
||||
|
||||
**Please change the credentials immediately**
|
||||
**Please change the credentials immediately following the docs**
|
||||
|
14
config.json
14
config.json
@@ -1,14 +0,0 @@
|
||||
{
|
||||
"version": "33",
|
||||
"credential": {
|
||||
"accessKey": "admin",
|
||||
"secretKey": "secretkey"
|
||||
},
|
||||
"region": "us-east-1",
|
||||
"logger": {
|
||||
"console": {
|
||||
"enable": true,
|
||||
"level": "error"
|
||||
}
|
||||
}
|
||||
}
|
41
minio-credentials
Executable file
41
minio-credentials
Executable file
@@ -0,0 +1,41 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
'use strict';
|
||||
|
||||
const fs = require('fs');
|
||||
|
||||
const MINIO_CONFIG = '/app/data/data/.minio.sys/config/config.json';
|
||||
|
||||
function usage() {
|
||||
console.log('Usage:\n');
|
||||
console.log('\tminio-credentials get');
|
||||
console.log('\tminio-credentials set <access key> <secret key>');
|
||||
console.log();
|
||||
}
|
||||
|
||||
let config = JSON.parse(fs.readFileSync(MINIO_CONFIG, 'utf8'));
|
||||
let adminCredentials = config['credentials']['_'];
|
||||
let accessKey = adminCredentials.filter(kv => kv.key === 'access_key')[0];
|
||||
let secretKey = adminCredentials.filter(kv => kv.key === 'secret_key')[0];
|
||||
|
||||
if (process.argv[2] === 'get') {
|
||||
console.log('Access Key:', accessKey.value);
|
||||
console.log('Secret Key:', secretKey.value);
|
||||
} else if (process.argv[2] === 'set') {
|
||||
if (process.argv.length !== 5) return usage();
|
||||
|
||||
// https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateAccessKey.html
|
||||
if (process.argv[4].length < 5) return console.log('secret key must be atleast 5 characters');
|
||||
if (!/^[\w+=,.@-]+$/.test(process.argv[3])) return console.log('access key has invalid characters');
|
||||
|
||||
accessKey.value = process.argv[3];
|
||||
if (process.argv[4].length < 8) return console.log('secret key must be atleast 8 characters');
|
||||
|
||||
secretKey.value = process.argv[4];
|
||||
|
||||
fs.writeFileSync(MINIO_CONFIG, JSON.stringify(config), 'utf8');
|
||||
console.log('Credentials updated. Restart minio app for new credentials to take effect.\n');
|
||||
} else {
|
||||
usage();
|
||||
}
|
||||
|
13
start.sh
13
start.sh
@@ -2,16 +2,13 @@
|
||||
|
||||
set -eu
|
||||
|
||||
mkdir -p /app/data/data /app/data/certs /app/data/config
|
||||
mkdir -p /app/data/data /run/minio/config /run/minio/certs
|
||||
|
||||
if ! [ -f /app/data/config/config.json ]; then
|
||||
cp /app/code/config.json /app/data/config/config.json
|
||||
fi
|
||||
|
||||
echo "Changing ownership"
|
||||
echo "==> Changing ownership"
|
||||
chown -R cloudron:cloudron /app/data
|
||||
|
||||
echo "Starting minio"
|
||||
exec /usr/local/bin/gosu cloudron:cloudron /app/code/minio server --config-dir /app/data/config --certs-dir /app/data/certs --address :8000 /app/data/data
|
||||
# the --config-dir is deprecated and not used. but without it, minio will try to create $HOME/.minio :/ same for --certs-dir
|
||||
echo "==> Starting minio"
|
||||
exec /usr/local/bin/gosu cloudron:cloudron /app/code/minio --certs-dir /run/minio/certs --config-dir /run/minio/config --quiet server --address :8000 /app/data/data
|
||||
|
||||
|
||||
|
152
test/package-lock.json
generated
152
test/package-lock.json
generated
@@ -58,6 +58,15 @@
|
||||
"color-convert": "^1.9.0"
|
||||
}
|
||||
},
|
||||
"anymatch": {
|
||||
"version": "3.1.1",
|
||||
"resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz",
|
||||
"integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==",
|
||||
"requires": {
|
||||
"normalize-path": "^3.0.0",
|
||||
"picomatch": "^2.0.4"
|
||||
}
|
||||
},
|
||||
"argparse": {
|
||||
"version": "1.0.10",
|
||||
"resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
|
||||
@@ -120,6 +129,11 @@
|
||||
"tweetnacl": "^0.14.3"
|
||||
}
|
||||
},
|
||||
"binary-extensions": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.0.0.tgz",
|
||||
"integrity": "sha512-Phlt0plgpIIBOGTT/ehfFnbNlfsDEiqmzE2KRXoX1bLIlir4X/MR+zSyBEkL05ffWgnRSf/DXv+WrUAVr93/ow=="
|
||||
},
|
||||
"brace-expansion": {
|
||||
"version": "1.1.11",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
|
||||
@@ -129,6 +143,14 @@
|
||||
"concat-map": "0.0.1"
|
||||
}
|
||||
},
|
||||
"braces": {
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
|
||||
"integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
|
||||
"requires": {
|
||||
"fill-range": "^7.0.1"
|
||||
}
|
||||
},
|
||||
"browser-stdout": {
|
||||
"version": "1.3.1",
|
||||
"resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz",
|
||||
@@ -169,6 +191,21 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"chokidar": {
|
||||
"version": "3.3.0",
|
||||
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.3.0.tgz",
|
||||
"integrity": "sha512-dGmKLDdT3Gdl7fBUe8XK+gAtGmzy5Fn0XkkWQuYxGIgWVPPse2CxFA5mtrlD0TOHaHjEUqkWNyP1XdHoJES/4A==",
|
||||
"requires": {
|
||||
"anymatch": "~3.1.1",
|
||||
"braces": "~3.0.2",
|
||||
"fsevents": "~2.1.1",
|
||||
"glob-parent": "~5.1.0",
|
||||
"is-binary-path": "~2.1.0",
|
||||
"is-glob": "~4.0.1",
|
||||
"normalize-path": "~3.0.0",
|
||||
"readdirp": "~3.2.0"
|
||||
}
|
||||
},
|
||||
"chromedriver": {
|
||||
"version": "79.0.0",
|
||||
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-79.0.0.tgz",
|
||||
@@ -356,21 +393,21 @@
|
||||
"integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA=="
|
||||
},
|
||||
"es-abstract": {
|
||||
"version": "1.17.0-next.1",
|
||||
"resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.0-next.1.tgz",
|
||||
"integrity": "sha512-7MmGr03N7Rnuid6+wyhD9sHNE2n4tFSwExnU2lQl3lIo2ShXWGePY80zYaoMOmILWv57H0amMjZGHNzzGG70Rw==",
|
||||
"version": "1.17.2",
|
||||
"resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.2.tgz",
|
||||
"integrity": "sha512-YoKuru3Lyoy7yVTBSH2j7UxTqe/je3dWAruC0sHvZX1GNd5zX8SSLvQqEgO9b3Ex8IW+goFI9arEEsFIbulhOw==",
|
||||
"requires": {
|
||||
"es-to-primitive": "^1.2.1",
|
||||
"function-bind": "^1.1.1",
|
||||
"has": "^1.0.3",
|
||||
"has-symbols": "^1.0.1",
|
||||
"is-callable": "^1.1.4",
|
||||
"is-regex": "^1.0.4",
|
||||
"is-callable": "^1.1.5",
|
||||
"is-regex": "^1.0.5",
|
||||
"object-inspect": "^1.7.0",
|
||||
"object-keys": "^1.1.1",
|
||||
"object.assign": "^4.1.0",
|
||||
"string.prototype.trimleft": "^2.1.0",
|
||||
"string.prototype.trimright": "^2.1.0"
|
||||
"string.prototype.trimleft": "^2.1.1",
|
||||
"string.prototype.trimright": "^2.1.1"
|
||||
}
|
||||
},
|
||||
"es-to-primitive": {
|
||||
@@ -442,6 +479,14 @@
|
||||
"pend": "~1.2.0"
|
||||
}
|
||||
},
|
||||
"fill-range": {
|
||||
"version": "7.0.1",
|
||||
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
|
||||
"integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
|
||||
"requires": {
|
||||
"to-regex-range": "^5.0.1"
|
||||
}
|
||||
},
|
||||
"find-up": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz",
|
||||
@@ -483,6 +528,12 @@
|
||||
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
||||
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8="
|
||||
},
|
||||
"fsevents": {
|
||||
"version": "2.1.2",
|
||||
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.2.tgz",
|
||||
"integrity": "sha512-R4wDiBwZ0KzpgOWetKDug1FZcYhqYnUYKtfZYt4mD5SBz76q0KR4Q9o7GIPamsVPGmW3EYPPJ0dOOjvx32ldZA==",
|
||||
"optional": true
|
||||
},
|
||||
"function-bind": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
|
||||
@@ -514,6 +565,14 @@
|
||||
"path-is-absolute": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"glob-parent": {
|
||||
"version": "5.1.0",
|
||||
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.0.tgz",
|
||||
"integrity": "sha512-qjtRgnIVmOfnKUE3NJAQEdk+lKrxfw8t5ke7SXtfMTHcjsBfOfWXCQfdb30zfDoZQ2IRSIiidmjtbHZPZ++Ihw==",
|
||||
"requires": {
|
||||
"is-glob": "^4.0.1"
|
||||
}
|
||||
},
|
||||
"globby": {
|
||||
"version": "6.1.0",
|
||||
"resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz",
|
||||
@@ -609,6 +668,14 @@
|
||||
"resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-2.1.0.tgz",
|
||||
"integrity": "sha1-+ni/XS5pE8kRzp+BnuUUa7bYROk="
|
||||
},
|
||||
"is-binary-path": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
|
||||
"integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
|
||||
"requires": {
|
||||
"binary-extensions": "^2.0.0"
|
||||
}
|
||||
},
|
||||
"is-buffer": {
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.4.tgz",
|
||||
@@ -624,11 +691,29 @@
|
||||
"resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.2.tgz",
|
||||
"integrity": "sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g=="
|
||||
},
|
||||
"is-extglob": {
|
||||
"version": "2.1.1",
|
||||
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
|
||||
"integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI="
|
||||
},
|
||||
"is-fullwidth-code-point": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
|
||||
"integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8="
|
||||
},
|
||||
"is-glob": {
|
||||
"version": "4.0.1",
|
||||
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz",
|
||||
"integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==",
|
||||
"requires": {
|
||||
"is-extglob": "^2.1.1"
|
||||
}
|
||||
},
|
||||
"is-number": {
|
||||
"version": "7.0.0",
|
||||
"resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
|
||||
"integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng=="
|
||||
},
|
||||
"is-path-cwd": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz",
|
||||
@@ -827,12 +912,13 @@
|
||||
}
|
||||
},
|
||||
"mocha": {
|
||||
"version": "6.2.2",
|
||||
"resolved": "https://registry.npmjs.org/mocha/-/mocha-6.2.2.tgz",
|
||||
"integrity": "sha512-FgDS9Re79yU1xz5d+C4rv1G7QagNGHZ+iXF81hO8zY35YZZcLEsJVfFolfsqKFWunATEvNzMK0r/CwWd/szO9A==",
|
||||
"version": "7.0.0",
|
||||
"resolved": "https://registry.npmjs.org/mocha/-/mocha-7.0.0.tgz",
|
||||
"integrity": "sha512-CirsOPbO3jU86YKjjMzFLcXIb5YiGLUrjrXFHoJ3e2z9vWiaZVCZQ2+gtRGMPWF+nFhN6AWwLM/juzAQ6KRkbA==",
|
||||
"requires": {
|
||||
"ansi-colors": "3.2.3",
|
||||
"browser-stdout": "1.3.1",
|
||||
"chokidar": "3.3.0",
|
||||
"debug": "3.2.6",
|
||||
"diff": "3.5.0",
|
||||
"escape-string-regexp": "1.0.5",
|
||||
@@ -845,7 +931,7 @@
|
||||
"minimatch": "3.0.4",
|
||||
"mkdirp": "0.5.1",
|
||||
"ms": "2.1.1",
|
||||
"node-environment-flags": "1.0.5",
|
||||
"node-environment-flags": "1.0.6",
|
||||
"object.assign": "4.1.0",
|
||||
"strip-json-comments": "2.0.1",
|
||||
"supports-color": "6.0.0",
|
||||
@@ -890,14 +976,19 @@
|
||||
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
|
||||
},
|
||||
"node-environment-flags": {
|
||||
"version": "1.0.5",
|
||||
"resolved": "https://registry.npmjs.org/node-environment-flags/-/node-environment-flags-1.0.5.tgz",
|
||||
"integrity": "sha512-VNYPRfGfmZLx0Ye20jWzHUjyTW/c+6Wq+iLhDzUI4XmhrDd9l/FozXV3F2xOaXjvp0co0+v1YSR3CMP6g+VvLQ==",
|
||||
"version": "1.0.6",
|
||||
"resolved": "https://registry.npmjs.org/node-environment-flags/-/node-environment-flags-1.0.6.tgz",
|
||||
"integrity": "sha512-5Evy2epuL+6TM0lCQGpFIj6KwiEsGh1SrHUhTbNX+sLbBtjidPZFAnVK9y5yU1+h//RitLbRHTIMyxQPtxMdHw==",
|
||||
"requires": {
|
||||
"object.getownpropertydescriptors": "^2.0.3",
|
||||
"semver": "^5.7.0"
|
||||
}
|
||||
},
|
||||
"normalize-path": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
|
||||
"integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA=="
|
||||
},
|
||||
"oauth-sign": {
|
||||
"version": "0.9.0",
|
||||
"resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz",
|
||||
@@ -952,9 +1043,9 @@
|
||||
"integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ="
|
||||
},
|
||||
"p-limit": {
|
||||
"version": "2.2.1",
|
||||
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.1.tgz",
|
||||
"integrity": "sha512-85Tk+90UCVWvbDavCLKPOLC9vvY8OwEX/RtKF+/1OADJMVlFfEHOiMTPVyxg7mk/dKa+ipdHm0OUkTvCpMTuwg==",
|
||||
"version": "2.2.2",
|
||||
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.2.tgz",
|
||||
"integrity": "sha512-WGR+xHecKTr7EbUEhyLSh5Dube9JtdiG78ufaeLxTgpudf/20KqyMioIUZJAezlTIi6evxuoUs9YXc11cU+yzQ==",
|
||||
"requires": {
|
||||
"p-try": "^2.0.0"
|
||||
}
|
||||
@@ -1007,6 +1098,11 @@
|
||||
"resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
|
||||
"integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns="
|
||||
},
|
||||
"picomatch": {
|
||||
"version": "2.2.1",
|
||||
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.1.tgz",
|
||||
"integrity": "sha512-ISBaA8xQNmwELC7eOjqFKMESB2VIqt4PPDD0nsS95b/9dZXvVKOlz9keMSnoGGKcOHXfTvDD6WMaRoSc9UuhRA=="
|
||||
},
|
||||
"pify": {
|
||||
"version": "4.0.1",
|
||||
"resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz",
|
||||
@@ -1059,6 +1155,14 @@
|
||||
"util-deprecate": "~1.0.1"
|
||||
}
|
||||
},
|
||||
"readdirp": {
|
||||
"version": "3.2.0",
|
||||
"resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.2.0.tgz",
|
||||
"integrity": "sha512-crk4Qu3pmXwgxdSgGhgA/eXiJAPQiX4GMOZZMXnqKxHX7TaoL+3gQVo/WeuAiogr07DpnfjIMpXXa+PAIvwPGQ==",
|
||||
"requires": {
|
||||
"picomatch": "^2.0.4"
|
||||
}
|
||||
},
|
||||
"request": {
|
||||
"version": "2.88.0",
|
||||
"resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz",
|
||||
@@ -1230,9 +1334,9 @@
|
||||
"integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo="
|
||||
},
|
||||
"superagent": {
|
||||
"version": "5.1.3",
|
||||
"resolved": "https://registry.npmjs.org/superagent/-/superagent-5.1.3.tgz",
|
||||
"integrity": "sha512-2bno1Nb4uvZPECTJ7NDYlae6Q8LLQoZZZ9Vumd346jU1UGVkNC/lQI42jHwtrqVoepyt0QxNKFty01IRKgD4CA==",
|
||||
"version": "5.2.1",
|
||||
"resolved": "https://registry.npmjs.org/superagent/-/superagent-5.2.1.tgz",
|
||||
"integrity": "sha512-46b4Lkwnlz7Ebdv2FBbfuqb3kVkG1jV/SK3EW6NnwL9a3T4h5hHtegNEQfbXvTFbDoUZXId4W3dMgap2f6ic1g==",
|
||||
"requires": {
|
||||
"component-emitter": "^1.3.0",
|
||||
"cookiejar": "^2.1.2",
|
||||
@@ -1332,6 +1436,14 @@
|
||||
"os-tmpdir": "~1.0.1"
|
||||
}
|
||||
},
|
||||
"to-regex-range": {
|
||||
"version": "5.0.1",
|
||||
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
|
||||
"integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
|
||||
"requires": {
|
||||
"is-number": "^7.0.0"
|
||||
}
|
||||
},
|
||||
"tough-cookie": {
|
||||
"version": "2.4.3",
|
||||
"resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz",
|
||||
|
@@ -13,10 +13,10 @@
|
||||
"ejs": "^3.0.1",
|
||||
"expect.js": "^0.3.1",
|
||||
"mkdirp": "^0.5.1",
|
||||
"mocha": "^6.2.2",
|
||||
"mocha": "^7.0.0",
|
||||
"rimraf": "^3.0.0",
|
||||
"selenium-server-standalone-jar": "^3.141.59",
|
||||
"selenium-webdriver": "^3.6.0",
|
||||
"superagent": "^5.1.3"
|
||||
"superagent": "^5.2.1"
|
||||
}
|
||||
}
|
||||
|
22
test/test.js
22
test/test.js
@@ -14,14 +14,10 @@ var by = require('selenium-webdriver').By,
|
||||
Key = require('selenium-webdriver').Key,
|
||||
Builder = require('selenium-webdriver').Builder;
|
||||
|
||||
var accessKey = 'admin',
|
||||
secretKey = 'secretkey';
|
||||
|
||||
var bucket = 'cloudrontestbucket';
|
||||
|
||||
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
|
||||
|
||||
|
||||
describe('Application life cycle test', function () {
|
||||
this.timeout(0);
|
||||
|
||||
@@ -56,7 +52,7 @@ describe('Application life cycle test', function () {
|
||||
});
|
||||
}
|
||||
|
||||
function login(callback) {
|
||||
function login(accessKey, secretKey, callback) {
|
||||
browser.manage().deleteAllCookies();
|
||||
browser.get('https://' + app.fqdn).then(function () {
|
||||
return visible(by.id('accessKey'));
|
||||
@@ -162,17 +158,21 @@ describe('Application life cycle test', function () {
|
||||
expect(app).to.be.an('object');
|
||||
});
|
||||
|
||||
it('can login', login);
|
||||
it('can login', login.bind(null, 'minioadmin', 'minioadmin'));
|
||||
it('can add bucket', addBucket);
|
||||
it('can open settings', openSettings);
|
||||
it('can logout', logout);
|
||||
|
||||
it('can change credentials', function () {
|
||||
execSync('cloudron exec --app ' + app.id + ' -- /app/code/minio-credentials set minioakey minioskey', { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||
});
|
||||
|
||||
it('can restart app', function (done) {
|
||||
execSync('cloudron restart');
|
||||
done();
|
||||
});
|
||||
|
||||
it('can login', login);
|
||||
it('can login', login.bind(null, 'minioakey', 'minioskey'));
|
||||
it('has bucket', checkBucket);
|
||||
it('can logout', logout);
|
||||
|
||||
@@ -184,7 +184,7 @@ describe('Application life cycle test', function () {
|
||||
execSync('cloudron restore --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||
});
|
||||
|
||||
it('can login', login);
|
||||
it('can login', login.bind(null, 'minioakey', 'minioskey'));
|
||||
it('has bucket', checkBucket);
|
||||
it('can open settings', openSettings);
|
||||
it('can logout', logout);
|
||||
@@ -197,7 +197,7 @@ describe('Application life cycle test', function () {
|
||||
expect(app).to.be.an('object');
|
||||
});
|
||||
|
||||
it('can login', login);
|
||||
it('can login', login.bind(null, 'minioakey', 'minioskey'));
|
||||
it('has bucket', checkBucket);
|
||||
it('can logout', logout);
|
||||
|
||||
@@ -213,13 +213,13 @@ describe('Application life cycle test', function () {
|
||||
expect(app).to.be.an('object');
|
||||
});
|
||||
|
||||
it('can login', login);
|
||||
it('can login', login.bind(null, 'minioadmin', 'minioadmin'));
|
||||
it('can add buckets', addBucket);
|
||||
it('can logout', logout);
|
||||
it('can update', function () {
|
||||
execSync('cloudron update --app ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||
});
|
||||
it('can login', login);
|
||||
it('can login', login.bind(null, 'minioadmin', 'minioadmin'));
|
||||
it('has bucket', checkBucket);
|
||||
it('can logout', logout);
|
||||
it('uninstall app', function () {
|
||||
|
Reference in New Issue
Block a user