mirror of
https://git.cloudron.io/cloudron/minio-app
synced 2025-09-04 00:05:18 +00:00
Compare commits
107 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
da1dca94e6 | ||
|
19dfab036d | ||
|
59fd4cbdc0 | ||
|
e84210ed1f | ||
|
1187abb63e | ||
|
2d44c616ca | ||
|
810f1c0b86 | ||
|
0a13ee10e8 | ||
|
e302797337 | ||
|
d08aae367c | ||
|
62f98aba04 | ||
|
7ddffa93d8 | ||
|
cb3a01ee8f | ||
|
bc9e1ffcb6 | ||
|
7cf2ff1d0d | ||
|
8a6828eb3f | ||
|
a85debccc3 | ||
|
eb89f698e6 | ||
|
d8d401f10d | ||
|
f371b93fe6 | ||
|
b3867320ec | ||
|
e0a98b52b0 | ||
|
518772c1f7 | ||
|
e76f60de33 | ||
|
426906c1e5 | ||
|
73fda2e600 | ||
|
5718cd2bac | ||
|
78f0581699 | ||
|
1eea55484e | ||
|
4e9c5923a8 | ||
|
cbe69b11a6 | ||
|
9c9f50c1f9 | ||
|
08e32cfdd1 | ||
|
562a426669 | ||
|
e9f66aef45 | ||
|
24cdeb2f54 | ||
|
8c72e02441 | ||
|
1e8b1625bb | ||
|
dfb59c0da4 | ||
|
6a7833c4c9 | ||
|
57baa92248 | ||
|
0a5726c0a4 | ||
|
60688bc607 | ||
|
3d67391028 | ||
|
7a43263a8a | ||
|
25d51f5028 | ||
|
355790459f | ||
|
2f9e85fb77 | ||
|
3743b6ec26 | ||
|
83f0f9d4fe | ||
|
2911ca0d8d | ||
|
509973ca24 | ||
|
30cd0a5a43 | ||
|
2798800724 | ||
|
86f50f214c | ||
|
ffe96dcb18 | ||
|
598ac82e1b | ||
|
08ee3d0f4e | ||
|
1ef9371276 | ||
|
69761bb664 | ||
|
134095ee7c | ||
|
5a3eb48466 | ||
|
51bc8a7d2a | ||
|
584f7179b4 | ||
|
28840130a7 | ||
|
987e335876 | ||
|
d1798f7964 | ||
|
8870033cd0 | ||
|
56e614e13b | ||
|
59fc621b5a | ||
|
b0b4c24662 | ||
|
179d2f84ab | ||
|
c7349e14a2 | ||
|
af1f659e06 | ||
|
61c69ecdc4 | ||
|
8b520893ea | ||
|
2190f8c5e8 | ||
|
f36229d1be | ||
|
826a6567f4 | ||
|
82e357117b | ||
|
4aed8551f6 | ||
|
4815ec97d2 | ||
|
87011ba428 | ||
|
fe319108a5 | ||
|
6bfe0bb79d | ||
|
75b29cd1a2 | ||
|
77b9ac57ff | ||
|
d5a565aa9c | ||
|
c9992474a7 | ||
|
24a8d0530d | ||
|
a05b2e9f29 | ||
|
8d5c6027c7 | ||
|
83631e75e7 | ||
|
9a18f50342 | ||
|
fc97bcedae | ||
|
a2f6725f98 | ||
|
1b03bf232f | ||
|
9d08c703e9 | ||
|
3b2df1b8a1 | ||
|
e4e84d7a26 | ||
|
3aa0241db8 | ||
|
4dc396041e | ||
|
1f1caec809 | ||
|
027524dbd3 | ||
|
4379518d6c | ||
|
89b872c1c8 | ||
|
d82a5dfef3 |
232
CHANGELOG
232
CHANGELOG
@@ -13,3 +13,235 @@
|
||||
|
||||
[0.2.2]
|
||||
* New base image 0.10.0
|
||||
|
||||
[0.2.3]
|
||||
* Updated to 2017-03-16T21-50-32Z
|
||||
|
||||
[0.2.4]
|
||||
* Updated to 2017-04-25T01-27-49Z
|
||||
|
||||
[0.2.5]
|
||||
* Updated to 2017-04-29T00-40-27Z
|
||||
|
||||
[0.2.6]
|
||||
* Updated to 2017-05-05T01-14-51Z
|
||||
|
||||
[0.2.7]
|
||||
* Updated to 2017-06-13T19-01-01Z
|
||||
|
||||
[0.3.0]
|
||||
* Update to 2017-07-24T18-27-35Z
|
||||
|
||||
[1.0.0]
|
||||
* Update to 2017-08-05T00-00-53Z
|
||||
|
||||
[1.1.0]
|
||||
* Update to 2017-09-29T19-16-56Z
|
||||
* This version requires at Cloudron v1.7.2
|
||||
|
||||
[1.2.0]
|
||||
* Update to 2017-10-27T18-59-02Z
|
||||
|
||||
[1.3.0]
|
||||
* Update to 2017-11-22T19-55-46Z
|
||||
|
||||
[1.4.0]
|
||||
* Update to 2017-12-28T01-21-00Z
|
||||
|
||||
[1.5.0]
|
||||
* Update minio to 2018-01-02T23-07-00Z
|
||||
* Important [security fix](https://blog.minio.io/minio-release-jan-2nd-2018-security-advisory-ef0342a4ddba)
|
||||
* fix timing oracle attack against signature V2/V4 verification (#5335) (17 hours ago)
|
||||
* Fix PostPolicy form tests without hardcoded dates (#5337) (2 days ago)
|
||||
* Integrate existing remove bucket functionality from newux to current UI (#5289) (4 days ago)
|
||||
* Update config.json guide with details of version 22 (#5328) (5 days ago)
|
||||
* fix: Better printing of XL config init error (#5284) (5 days ago)
|
||||
* Fix config.json parsing to fetch correct storage class (#5327) (6 days ago)
|
||||
* Update yaml files to lastest version RELEASE.2017-12-28T01-21-00Z (6 days ago)
|
||||
|
||||
[1.6.0]
|
||||
* Update minio to 2018-01-18T20-33-21Z
|
||||
* Critical [security fix](https://blog.minio.io/minio-release-jan-18-2018-security-advisory-4c64ca87721b)
|
||||
* Fix free and total space reported in startup banner (#5419) (25 hours ago)
|
||||
* replace all "crypto/sha256" with "github.com/minio/sha256-simd" (#5391) (26 hours ago)
|
||||
* gateway/manta: Bump manta dependencies (#5414) (26 hours ago)
|
||||
* fix authentication bypass against Admin-API (#5412) (26 hours ago)
|
||||
* Removes logrus package and refactors logging messages (#5293) (29 hours ago)
|
||||
* Document pre-existing data in fs mode (#5365) (30 hours ago)
|
||||
* Update storage class related documents (#5399) (35 hours ago)
|
||||
* Don't delete lock ops entry during state change (#5388) (2 days ago)
|
||||
* Remove upload healing related dead code (#5404) (3 days ago)
|
||||
* Fix multi-file dropzone upload issue causing bucket listing duplication (#5392) (5 days ago)
|
||||
|
||||
[1.7.0]
|
||||
* Update minio to 2018-02-09T22-40-05Z
|
||||
* Rolling Upgrade Support to Minio Server.
|
||||
* Breaking Changes:
|
||||
* Users using Minio Client mc with Minio Server will have to upgrade to the latest mc release
|
||||
* Admin API has changed
|
||||
* Deprecated and removed in-memory object caching.
|
||||
* Default bit-rot protection is now using HighwayHash
|
||||
* Move to go1.9.4 with recent security release (#5502)
|
||||
* Seek to offset 0 after Truncate() (#5375)
|
||||
* Bring semantic versioning to provide for rolling upgrades (#5495)
|
||||
* Document object name limitations on Windows (#5491)
|
||||
* Deprecate and remove in-memory object caching (#5481)
|
||||
* Make sure to convert the disk errors to object errors (#5480)
|
||||
* Reduce Minio access key minimum length to 3 (#5478) <A. Elleuch>
|
||||
* Quorum based listing for XL (#5475)
|
||||
* fs.json file should be closed in CompleteMultipartUpload (#5482)
|
||||
* simplify storage class validation (#5470)
|
||||
* Remove stale code from minio server (#5479)
|
||||
|
||||
[1.8.0]
|
||||
* Update minio to 2018-03-12T21-25-28Z
|
||||
* Added comprehensive support for Server Side Encryption (SSE-C).
|
||||
* Fix deadlock in in-place CopyObject decryption/encryption (#5637)
|
||||
* Remove madmin docs from top level docs directory (#5636)
|
||||
* Add healthcheck endpoints (#5543)
|
||||
* Return authHeaderMalformed for an incorrect region in signature (#5618)
|
||||
* Save ETag when updating metadata (#5626)
|
||||
* Cleanup orchestration documents (#5623)
|
||||
* Remove unwanted errorIf calls (#5621)
|
||||
* SSE-C: Add support in Bucket Post Policy (#5607)
|
||||
* Support SSE-C multipart source objects in CopyObject (#5603)
|
||||
* Handle incoming proxy requests ip, scheme (#5591)
|
||||
* Make sure to filter out internal metadata (#5601)
|
||||
* Use toAPIErrorCode in HeadObject handler when decrypting request fails (#5600)
|
||||
|
||||
[1.9.0]
|
||||
* Update minio to 2018-03-16T22-52-12Z
|
||||
* Fixes a regression in Heal() implementation due to lock contention.
|
||||
* Major cleanup of notification sub-system.
|
||||
|
||||
[1.9.0-1]
|
||||
* Update minio to 2018-03-19T19-22-06Z
|
||||
* This release fixes a critical migration issue when upgrading minio between certain versions. Please see issue for more details as described by community member (@kybi) here : #5667.
|
||||
* [refactor] simplify en/decrypted size computation (#5658)
|
||||
* Fix format migration regression (#5668)
|
||||
|
||||
[1.10.0]
|
||||
* Update minio to 2018-03-30T00-38-44Z
|
||||
* Fix backend format for disk-cache - not to use FS format.json (#5732) (03/29/18)
|
||||
* Fix help message to be uniform across env vars (#5735) (03/30/18)
|
||||
* Apply storageClass data while config migration (#5737) (03/30/18)
|
||||
* Fix PUT bucket notification deadlocks (#5734) (03/29/18)
|
||||
* Fix block id length upto 8bytes only for azure gateway. (#5731) (03/29/18)
|
||||
* Improve some wording in disk caching docs (#5730) (03/28/18)
|
||||
* Remove deadcode related to multipart cleanup for fs (#5716) (03/28/18)
|
||||
|
||||
[1.11.0]
|
||||
* Update minio to 2018-04-04T05-20-54Z
|
||||
|
||||
[1.12.0]
|
||||
* Update minio to 2018-04-12T23-41-09Z
|
||||
|
||||
[1.13.0]
|
||||
* Update minio to 2018-04-19T22-54-58Z
|
||||
|
||||
[1.14.0]
|
||||
* Update minio to 2018-04-27T23-33-52Z
|
||||
* Remove logging of redundant messages when running Minio server.
|
||||
* Upgrading to this release will automatically migrate any erroneous bucket policies to strict S3 compliant bucket policies. Please check all your bucket policies after upgrading to this release.
|
||||
* Fix s3 compatibility fixes for getBucketLocation,headBucket,deleteBucket (#5842) (04/23/18)
|
||||
* Disable "chunked" uploading by the GCS client for objects smaller than the chunk size. (#5835) (04/20/18)
|
||||
|
||||
[1.15.0]
|
||||
* Update minio to 2018-05-04T23-13-12Z
|
||||
* Fixes a [critical DDoS vulnerability](https://blog.minio.io/minio-release-may-5-2018-security-advisory-ceca2850d40)
|
||||
* Use defer style to stop tickers to avoid current/possible misuse (#5883) (05/04/18)
|
||||
* Do not use crypto.SHA3_256 as placeholder for HighwayHash256 (#5847) (05/04/18)
|
||||
* fs: fix logging by not logging common scenarios (#5882) (05/02/18)
|
||||
* Return NoSuchKey for anonReqs with s3:ListBucket policy (#5876) (05/01/18)
|
||||
* Remove s3:ListObjects policy action to be in sync with AWS-S3 (#5875) (05/01/18)
|
||||
* Copy an object without user-defined metadata for Azure gateway (#5872) (05/02/18)
|
||||
|
||||
[1.16.0]
|
||||
* Update minio to 2018-05-11T00-29-24Z
|
||||
|
||||
[1.17.0]
|
||||
* Update minio to 2018-05-16T23-35-33Z
|
||||
|
||||
[1.18.0]
|
||||
* Update minio to 2018-05-25T19-49-13Z
|
||||
|
||||
[1.19.0]
|
||||
* Update minio to 2018-06-08T03-49-38Z
|
||||
|
||||
[1.20.0]
|
||||
* Update minio to 2018-06-09T03-43-35Z
|
||||
|
||||
[1.21.0]
|
||||
* Update minio to 2018-06-22T23-48-46Z
|
||||
|
||||
[1.22.0]
|
||||
* Update minio to 2018-06-29T02-11-29Z
|
||||
|
||||
[1.23.0]
|
||||
* Update minio to 2018-07-13T00-09-07Z
|
||||
* Miscellaneous bug fixes in encryption/decryption, notification targets, signature validation
|
||||
and etcd federation targets.
|
||||
* Update federation target to etcd/clientv3 (#6119) (07/13/18)
|
||||
* fix size computation for en/decrypted objects (#6147) (07/12/18)
|
||||
* Support multiple values for x-amz-meta header (#6145) (07/12/18)
|
||||
* Fix decrypted object size and key derivation in CopyObjectPart (#6141) (07/12/18)
|
||||
* SignatureV4 validation with Metadata in the presignedUrl (#5894) (07/11/18)
|
||||
* Update distributed docs (#6123) (07/10/18)
|
||||
* Avoid startup abort when a notify target is down (#6126) (07/10/18)
|
||||
|
||||
[1.24.0]
|
||||
* Update minio to 2018-07-23T18-34-49Z
|
||||
* Improvements in logging and error message printing
|
||||
* Do not set Key and BucketName in ErrorResponse, if empty (#6174) (07/23/18)
|
||||
* Do not use parallel deletes to avoid random I/O (#6178) (07/20/18)
|
||||
* Log x-amz-request-id as log and XML error response (#6173) (07/20/18)
|
||||
* Remove ppc64le support from .travis.yml (#6180) (07/20/18)
|
||||
* Remove unused functions and constants (#6175) (07/20/18)
|
||||
* Do not trace HTTP body of PostPolicyBuckethandler (#6177) (07/20/18)
|
||||
|
||||
[1.25.0]
|
||||
* Update minio to 2018-07-31T02-11-47Z
|
||||
|
||||
[1.26.0]
|
||||
* Update minio to 2018-08-02T23-11-36Z
|
||||
|
||||
[1.27.0]
|
||||
* Update minio to 2018-08-21T00-37-20Z
|
||||
|
||||
[1.28.0]
|
||||
* Update minio to 2018-08-25T01-56-38Z
|
||||
|
||||
[1.29.0]
|
||||
* Update minio to 2018-09-01T00-38-25Z
|
||||
|
||||
[1.30.0]
|
||||
* Update minio to 2018-09-11T01-39-21Z
|
||||
|
||||
[1.31.0]
|
||||
* Update minio to 2018-09-12T18-49-56Z
|
||||
|
||||
[1.32.0]
|
||||
* Update minio to 2018-09-25T21-34-43Z
|
||||
|
||||
[1.33.0]
|
||||
* Update minio to 2018-10-05T01-03-03Z
|
||||
|
||||
[1.34.0]
|
||||
* Update minio to 2018-10-06T00-15-16Z
|
||||
* Use latest base image
|
||||
|
||||
[1.35.0]
|
||||
* Update minio to 2018-10-18T00-28-58Z
|
||||
|
||||
[1.36.0]
|
||||
* Update minio to 2018-10-25T01-27-03Z
|
||||
|
||||
[1.37.0]
|
||||
* Update minio to 2018-11-06T01-01-02Z
|
||||
|
||||
[1.38.0]
|
||||
* Update minio to 2018-11-17T01-23-48Z
|
||||
|
||||
[1.39.0]
|
||||
* Update minio to 2018-11-30T03-56-59Z
|
||||
|
||||
|
@@ -5,7 +5,7 @@
|
||||
"description": "file://DESCRIPTION.md",
|
||||
"changelog": "file://CHANGELOG",
|
||||
"tagline": "Distributed object storage",
|
||||
"version": "0.2.2",
|
||||
"version": "1.39.0",
|
||||
"healthCheckPath": "/minio/login",
|
||||
"httpPort": 8000,
|
||||
"addons": {
|
||||
@@ -13,10 +13,13 @@
|
||||
},
|
||||
"manifestVersion": 1,
|
||||
"website": "http://www.minio.io",
|
||||
"minBoxVersion": "1.8.1",
|
||||
"documentationUrl": "https://cloudron.io/documentation/apps/minio/",
|
||||
"contactEmail": "support@cloudron.io",
|
||||
"icon": "logo.png",
|
||||
"tags": [
|
||||
"storage"
|
||||
"storage",
|
||||
"hosting"
|
||||
],
|
||||
"mediaLinks": [
|
||||
"https://raw.githubusercontent.com/minio/minio/master/docs/screenshots/minio-browser.jpg"
|
||||
|
@@ -1,4 +1,4 @@
|
||||
This app packages Minio 2017-01-25T03-14-52Z.
|
||||
This app packages Minio <upstream>2018-11-30T03-56-59Z</upstream>.
|
||||
|
||||
Minio is a distributed object storage server built for cloud applications and devops.
|
||||
|
||||
|
@@ -1,12 +1,7 @@
|
||||
FROM cloudron/base:0.10.0
|
||||
MAINTAINER Minio Developers <support@cloudron.io>
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
ENV VERSION 2017-02-16T01-47-30Z
|
||||
FROM cloudron/base:1.0.0@sha256:147a648a068a2e746644746bbfb42eb7a50d682437cead3c67c933c546357617
|
||||
|
||||
RUN mkdir -p /app/code \
|
||||
&& wget https://dl.minio.io/server/minio/release/linux-amd64/archive/minio.RELEASE.${VERSION} -O /app/code/minio \
|
||||
&& wget https://dl.minio.io/server/minio/release/linux-amd64/minio.RELEASE.2018-11-30T03-56-59Z -O /app/code/minio \
|
||||
&& chmod +x /app/code/minio
|
||||
|
||||
WORKDIR /app/code
|
||||
|
@@ -5,4 +5,4 @@ Please use the following credentials to login:
|
||||
* AccessKey: `admin`
|
||||
* SecretKey: `secretkey`
|
||||
|
||||
Also make sure to generate new credentials under setting immediately.
|
||||
**Please change the credentials immediately**
|
||||
|
@@ -6,7 +6,7 @@ This repository contains the Cloudron app package source for [Minio](http://www.
|
||||
|
||||
[](https://cloudron.io/button.html?app=io.minio.cloudronapp)
|
||||
|
||||
or using the [Cloudron command line tooling](https://cloudron.io/references/cli.html)
|
||||
or using the [Cloudron command line tooling](https://git.cloudron.io/cloudron/cloudron-cli/)
|
||||
|
||||
```
|
||||
cloudron install --appstore-id io.minio.cloudronapp
|
||||
@@ -14,7 +14,7 @@ cloudron install --appstore-id io.minio.cloudronapp
|
||||
|
||||
## Building
|
||||
|
||||
The app package can be built using the [Cloudron command line tooling](https://cloudron.io/references/cli.html).
|
||||
The app package can be built using the [Cloudron command line tooling](https://git.cloudron.io/cloudron/cloudron-cli/).
|
||||
|
||||
```
|
||||
cd minio-app
|
||||
@@ -31,7 +31,6 @@ The e2e tests are located in the `test/` folder and require [nodejs](http://node
|
||||
cd minio-app/test
|
||||
|
||||
npm install
|
||||
export PATH=$PATH:node_modules/.bin
|
||||
mocha --bail test.js
|
||||
PATH=$PATH:node_modules/.bin mocha --bail test.js
|
||||
```
|
||||
|
||||
|
1044
test/package-lock.json
generated
Normal file
1044
test/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -9,6 +9,7 @@
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"chromedriver": "^2.36.0",
|
||||
"ejs": "^2.4.2",
|
||||
"expect.js": "^0.3.1",
|
||||
"mkdirp": "^0.5.1",
|
||||
@@ -16,7 +17,6 @@
|
||||
"rimraf": "^2.5.3",
|
||||
"selenium-server-standalone-jar": "^2.53.1",
|
||||
"selenium-webdriver": "^2.53.3",
|
||||
"superagent": "^1.4.0",
|
||||
"chromedriver": "^2.27.0"
|
||||
"superagent": "^1.4.0"
|
||||
}
|
||||
}
|
||||
|
165
test/test.js
165
test/test.js
@@ -2,6 +2,8 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
require('chromedriver');
|
||||
|
||||
var execSync = require('child_process').execSync,
|
||||
expect = require('expect.js'),
|
||||
path = require('path'),
|
||||
@@ -13,9 +15,7 @@ var by = webdriver.By,
|
||||
var accessKey = 'admin',
|
||||
secretKey = 'secretkey';
|
||||
|
||||
var bucket_prefix = 'bucket',
|
||||
bucket_id = 0,
|
||||
bucket;
|
||||
var bucket = 'cloudrontestbucket';
|
||||
|
||||
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
|
||||
|
||||
@@ -41,85 +41,105 @@ describe('Application life cycle test', function () {
|
||||
done();
|
||||
});
|
||||
|
||||
var LOCATION = 'minio-test';
|
||||
var LOCATION = 'test';
|
||||
var TEST_TIMEOUT = 10000;
|
||||
var app;
|
||||
|
||||
function pageLoaded(callback) {
|
||||
return browser.wait(until.elementLocated(by.className('page-load pl-0 pl-1')), TEST_TIMEOUT).then(function () {
|
||||
callback();
|
||||
});
|
||||
function pageLoaded() {
|
||||
return browser.wait(until.elementLocated(by.className('page-load pl-0 pl-1')), TEST_TIMEOUT);
|
||||
}
|
||||
|
||||
function visible(selector, callback) {
|
||||
function visible(selector) {
|
||||
return browser.wait(until.elementLocated(selector), TEST_TIMEOUT).then(function () {
|
||||
browser.wait(until.elementIsVisible(browser.findElement(selector)), TEST_TIMEOUT).then(function () {
|
||||
callback();
|
||||
});
|
||||
return browser.wait(until.elementIsVisible(browser.findElement(selector)), TEST_TIMEOUT);
|
||||
});
|
||||
}
|
||||
|
||||
function login(callback) {
|
||||
browser.manage().deleteAllCookies();
|
||||
browser.get('https://' + app.fqdn);
|
||||
|
||||
visible(by.id('accessKey'), function () {
|
||||
browser.findElement(by.id('accessKey')).sendKeys(accessKey);
|
||||
browser.findElement(by.id('secretKey')).sendKeys(secretKey);
|
||||
browser.findElement(by.className('lw-btn')).click();
|
||||
browser.wait(until.elementLocated(by.id('top-right-menu')), TEST_TIMEOUT).then(function () { callback(); });
|
||||
browser.get('https://' + app.fqdn).then(function () {
|
||||
return visible(by.id('accessKey'));
|
||||
}).then(function () {
|
||||
return browser.findElement(by.id('accessKey')).sendKeys(accessKey);
|
||||
}).then(function () {
|
||||
return browser.findElement(by.id('secretKey')).sendKeys(secretKey);
|
||||
}).then(function () {
|
||||
// return browser.findElement(by.className('lw-btn')).click();
|
||||
return browser.findElement(by.tagName('form')).submit();
|
||||
}).then(function () {
|
||||
return browser.wait(until.elementLocated(by.id('top-right-menu')), TEST_TIMEOUT);
|
||||
}).then(function () {
|
||||
callback();
|
||||
});
|
||||
}
|
||||
|
||||
function logout(callback) {
|
||||
browser.get('https://' + app.fqdn);
|
||||
|
||||
pageLoaded(function () {
|
||||
visible(by.id('top-right-menu'), function () {
|
||||
browser.findElement(by.id('top-right-menu')).click();
|
||||
visible(by.xpath('//*[text()="Sign Out "]'), function () {
|
||||
browser.findElement(by.xpath('//*[text()="Sign Out "]')).click();
|
||||
|
||||
browser.wait(until.elementLocated(by.id('accessKey')), TEST_TIMEOUT).then(function () { callback(); });
|
||||
});
|
||||
});
|
||||
pageLoaded().then(function () {
|
||||
return visible(by.id('top-right-menu'));
|
||||
}).then(function () {
|
||||
return browser.findElement(by.id('top-right-menu')).click();
|
||||
}).then(function () {
|
||||
return visible(by.xpath('//*[text()="Sign Out "]'));
|
||||
}).then(function () {
|
||||
return browser.findElement(by.xpath('//*[text()="Sign Out "]')).click();
|
||||
}).then(function () {
|
||||
return browser.wait(until.elementLocated(by.id('accessKey')), TEST_TIMEOUT);
|
||||
}).then(function () {
|
||||
callback();
|
||||
});
|
||||
}
|
||||
|
||||
function addBucket(callback) {
|
||||
bucket_id = bucket_id + 1;
|
||||
bucket = bucket_prefix + bucket_id;
|
||||
browser.get('https://' + app.fqdn);
|
||||
|
||||
pageLoaded(function () {
|
||||
visible(by.className('fa fa-plus'), function () {
|
||||
browser.findElement(by.className('fa fa-plus')).click();
|
||||
visible(by.className('fa fa-hdd-o'), function () {
|
||||
browser.findElement(by.className('fa fa-hdd-o')).click();
|
||||
visible(by.xpath('//*[@class="modal-body"]/form/div/input'), function() {
|
||||
browser.findElement(by.xpath('//*[@class="modal-body"]/form/div/input')).sendKeys(bucket);
|
||||
browser.findElement(by.xpath('//*[@class="modal-body"]/form')).submit();
|
||||
visible(by.xpath('//*[@class="main"]/a[text()="' + bucket + '"]'), function() {
|
||||
callback();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
pageLoaded().then(function () {
|
||||
return visible(by.className('fa fa-plus'));
|
||||
}).then(function () {
|
||||
return browser.findElement(by.className('fa fa-plus')).click();
|
||||
}).then(function () {
|
||||
return visible(by.className('fa fa-hdd-o'));
|
||||
}).then(function () {
|
||||
return browser.findElement(by.className('fa fa-hdd-o')).click();
|
||||
}).then(function () {
|
||||
return visible(by.xpath('//*[@class="modal-body"]/form/div/input'));
|
||||
}).then(function () {
|
||||
return browser.findElement(by.xpath('//*[@class="modal-body"]/form/div/input')).sendKeys(bucket);
|
||||
}).then(function () {
|
||||
return browser.findElement(by.xpath('//*[@class="modal-body"]/form')).submit();
|
||||
}).then(function () {
|
||||
return visible(by.xpath('//*[@class="main"]/a[text()="' + bucket + '"]'));
|
||||
}).then(function () {
|
||||
callback();
|
||||
});
|
||||
}
|
||||
|
||||
function checkBucket(callback) {
|
||||
browser.get('https://' + app.fqdn);
|
||||
|
||||
pageLoaded().then(function () {
|
||||
return browser.findElement(by.xpath(`//a[contains(text(), ${bucket})]`));
|
||||
}).then(function () {
|
||||
callback();
|
||||
});
|
||||
}
|
||||
|
||||
function openSettings(callback) {
|
||||
browser.get('https://' + app.fqdn);
|
||||
|
||||
pageLoaded(function () {
|
||||
visible(by.id('top-right-menu'), function () {
|
||||
browser.findElement(by.id('top-right-menu')).click();
|
||||
visible(by.xpath('//*[text()="Settings "]'), function () {
|
||||
browser.findElement(by.xpath('//*[text()="Settings "]')).click();
|
||||
|
||||
browser.wait(until.elementLocated(by.xpath('//*[text()="Generate"]')), TEST_TIMEOUT).then(function () { callback(); });
|
||||
});
|
||||
});
|
||||
pageLoaded().then(function () {
|
||||
return visible(by.id('top-right-menu'));
|
||||
}).then(function () {
|
||||
return browser.findElement(by.id('top-right-menu')).click();
|
||||
}).then(function () {
|
||||
return visible(by.xpath('//*[contains(text(), "Change Password")]'));
|
||||
}).then(function () {
|
||||
return browser.findElement(by.xpath('//*[contains(text(),"Change Password")]')).click();
|
||||
}).then(function () {
|
||||
return browser.wait(until.elementLocated(by.xpath('//*[contains(text(), "Change Password")]')), TEST_TIMEOUT);
|
||||
}).then(function () {
|
||||
callback();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -140,10 +160,19 @@ describe('Application life cycle test', function () {
|
||||
});
|
||||
|
||||
it('can login', login);
|
||||
it('can add buckets', addBucket);
|
||||
it('can add bucket', addBucket);
|
||||
it('can open settings', openSettings);
|
||||
it('can logout', logout);
|
||||
|
||||
it('can restart app', function (done) {
|
||||
execSync('cloudron restart --wait');
|
||||
done();
|
||||
});
|
||||
|
||||
it('can login', login);
|
||||
it('has bucket', checkBucket);
|
||||
it('can logout', logout);
|
||||
|
||||
it('backup app', function () {
|
||||
execSync('cloudron backup create --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||
});
|
||||
@@ -153,25 +182,45 @@ describe('Application life cycle test', function () {
|
||||
});
|
||||
|
||||
it('can login', login);
|
||||
it('can add buckets', addBucket);
|
||||
it('has bucket', checkBucket);
|
||||
it('can open settings', openSettings);
|
||||
it('can logout', logout);
|
||||
|
||||
it('move to different location', function () {
|
||||
browser.manage().deleteAllCookies();
|
||||
execSync('cloudron configure --location ' + LOCATION + '2', { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||
execSync('cloudron configure --wait --location ' + LOCATION + '2', { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||
var inspect = JSON.parse(execSync('cloudron inspect'));
|
||||
app = inspect.apps.filter(function (a) { return a.location === LOCATION + '2'; })[0];
|
||||
expect(app).to.be.an('object');
|
||||
});
|
||||
|
||||
it('can login', login);
|
||||
it('can add buckets', addBucket);
|
||||
it('can open settings', openSettings);
|
||||
it('has bucket', checkBucket);
|
||||
it('can logout', logout);
|
||||
|
||||
it('uninstall app', function () {
|
||||
execSync('cloudron uninstall --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||
});
|
||||
|
||||
// test update
|
||||
it('can install app', function () {
|
||||
execSync('cloudron install --new --wait --appstore-id io.minio.cloudronapp --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||
var inspect = JSON.parse(execSync('cloudron inspect'));
|
||||
app = inspect.apps.filter(function (a) { return a.location === LOCATION; })[0];
|
||||
expect(app).to.be.an('object');
|
||||
});
|
||||
|
||||
it('can login', login);
|
||||
it('can add buckets', addBucket);
|
||||
it('can logout', logout);
|
||||
it('can update', function () {
|
||||
execSync('cloudron install --wait --app ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||
});
|
||||
it('can login', login);
|
||||
it('has bucket', checkBucket);
|
||||
it('can logout', logout);
|
||||
it('uninstall app', function () {
|
||||
execSync('cloudron uninstall --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user