1
0
mirror of https://git.cloudron.io/cloudron/minio-app synced 2025-09-03 15:55:18 +00:00

Compare commits

...

36 Commits

Author SHA1 Message Date
Girish Ramakrishnan
7a3ee2504f Version 3.6.1 2023-07-07 16:11:56 +05:30
Girish Ramakrishnan
c2388d2710 Update minio to 2023-07-07T07-13-57Z 2023-07-07 15:44:46 +05:30
Girish Ramakrishnan
81186e53f4 Version 3.6.0 2023-06-29 16:46:29 +05:30
Girish Ramakrishnan
f37fd6a660 Update minio to 2023-06-29T05-12-28Z 2023-06-29 16:29:10 +05:30
Girish Ramakrishnan
365254e971 Version 3.5.6 2023-06-25 15:14:58 +05:30
Girish Ramakrishnan
665851a84a Update minio to RELEASE.2023-06-23T20-26-00Z 2023-06-25 15:02:47 +05:30
Girish Ramakrishnan
a625014aeb Version 3.5.5 2023-06-20 12:18:30 +05:30
Girish Ramakrishnan
25ff8b66f6 Update minio to 2023-06-19T19-52-50Z 2023-06-20 11:27:41 +05:30
Girish Ramakrishnan
2fbefac3a9 Version 3.5.4 2023-06-16 17:29:29 +05:30
Girish Ramakrishnan
2bbf11f795 Fix test 2023-06-16 17:25:23 +05:30
Girish Ramakrishnan
ca3aebef4a Update minio to 2023-06-16T02-41-06Z 2023-06-16 16:34:49 +05:30
Girish Ramakrishnan
effb90c2ac Version 3.5.3 2023-06-10 12:07:15 +05:30
Girish Ramakrishnan
e8972242ca Update test packages 2023-06-10 12:05:56 +05:30
Girish Ramakrishnan
e84ef0cddf Update minio to RELEASE.2023-06-09T07-32-12Z 2023-06-10 12:00:09 +05:30
Girish Ramakrishnan
594b45051d Version 3.5.2 2023-06-03 10:26:25 +02:00
Girish Ramakrishnan
ed8e041180 Update tests 2023-06-03 10:26:21 +02:00
Girish Ramakrishnan
f9c0870c59 Update minio to 2023-06-02T23-17-26Z 2023-06-03 09:48:02 +02:00
Girish Ramakrishnan
550ea43e59 Version 3.5.1 2023-05-28 10:28:15 +02:00
Girish Ramakrishnan
832f1f26a8 Update minio to 2023-05-27T05-56-19Z 2023-05-28 10:17:13 +02:00
Girish Ramakrishnan
293beffadc Version 3.5.0 2023-05-21 07:18:24 +02:00
Girish Ramakrishnan
29f3101513 Update minio to 2023-05-18T00-05-36Z 2023-05-21 07:10:27 +02:00
Girish Ramakrishnan
ef6edee2a1 Version 3.4.20-1 2023-05-05 10:05:25 +02:00
Girish Ramakrishnan
e00e95eb94 Version 3.4.20 2023-05-05 10:00:10 +02:00
Girish Ramakrishnan
f6a78ee7cb Update minio to 2023-05-04T21-44-30Z 2023-05-05 09:35:46 +02:00
Girish Ramakrishnan
c32fc59b39 Version 3.4.19 2023-04-29 09:33:36 +02:00
Girish Ramakrishnan
78913a6f02 Update minio to 2023-04-28T18-11-17Z 2023-04-29 08:59:52 +02:00
Girish Ramakrishnan
9964fd0db8 Version 3.4.18 2023-04-21 18:21:52 +02:00
Girish Ramakrishnan
86ebec77eb Update minio to 2023-04-20T17-56-55Z 2023-04-21 18:16:25 +02:00
Girish Ramakrishnan
281ec626e3 Version 3.4.17 2023-04-13 10:47:28 +02:00
Girish Ramakrishnan
6f76e442fc Update test packages 2023-04-13 10:47:22 +02:00
Girish Ramakrishnan
c720de4dcf Update minio to RELEASE.2023-04-13T03-08-07Z 2023-04-13 10:20:12 +02:00
Girish Ramakrishnan
32a649b52a Version 3.4.16 2023-04-09 09:54:48 +02:00
Girish Ramakrishnan
08f1230582 Update test packages 2023-04-09 09:48:36 +02:00
Girish Ramakrishnan
eda4dd653f Update minio to 2023-04-07T05-28-58Z 2023-04-09 09:29:45 +02:00
Girish Ramakrishnan
d49de43f6b Version 3.4.15 2023-03-25 09:21:22 +01:00
Girish Ramakrishnan
d385379da8 Update minio to 2023-03-24T21-41-23Z 2023-03-25 09:10:35 +01:00
6 changed files with 231 additions and 87 deletions

162
CHANGELOG
View File

@@ -1723,3 +1723,165 @@ Improve replication performance. See (#12080, #12054, #12009) for more details.
* fix: tweak the maintenance=true to satisfy baremetal first by @harshavardhana in #16864
* fix: add deadline conns and dnsCache for remote transports by @harshavardhana in #16865
* Add lazy init of audit logger by @klauspost in #16842
[3.4.15]
* Update minio to 2023-03-24T21-41-23Z
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2023-03-24T21-41-23Z)
* return quorum error instead of insufficient storage error by @vadmeste in #16874
* add missing expiration information from 'sts info' by @harshavardhana in #16878
* Revert query parameter src from diag upload if callhome enabled by @shtripat in #16881
* Revert "Make localLocker lock attempts cancellable (#16510)" by @klauspost in #16884
[3.4.16]
* Update minio to 2023-04-07T05-28-58Z
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2023-04-07T05-28-58Z)
* Set Console global Root CAs early to trust provided certs by @vadmeste in #16890
* ignore operation timedout errors by @harshavardhana in #16891
* fix: Avoid multiple write responses by @jiuker in #16894
* fix: time.Parse RFC3339Nano by @jiuker in #16892
* update all our deps by @harshavardhana in #16899
* [testing] add mint runner test by @harshavardhana in #16868
* fix: avoid logging when object/version not found in replication by @allanrogerr in #16919
* fix: missing return after error response by @donatello in #16920
* fix: put *msgp.Reader back in pool by @jiuker in #16927
* fix: avoid out of slice index by @jiuker in #16925
* allow more workers for ILM expiration by @harshavardhana in #16924
[3.4.17]
* Update minio to 2023-04-13T03-08-07Z
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2023-04-13T03-08-07Z)
* add Err to Get getRemoteTargetClient. by @jiuker in #16982
* trace: Fix func name of requests rejected by max clients by @vadmeste in #16977
* chore: fix automatic issue handling from linter in ci by @ferhatelmas in #16969
* Add used inodes to disk info by @vadmeste in #16994
* Indicate RenameData is called by healObject by @krisis in #16997
[3.4.18]
* Update minio to 2023-04-20T17-56-55Z
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2023-04-20T17-56-55Z)
* build: support loong64 by @wojiushixiaobai in #17027
* fix: lambda function expiration when cred.Expiration is set by @klauspost in #17029
* heal: avoid logging version not found by @poornas in #17031
* Add part count to checksum by @klauspost in #17035
* commonParity should pick readable FileInfo by @krisis in #17032
* fix: Type of rejection for FIFO quota input by @jiuker in #17016
* fix: DeleteBucketThrottle must delete ARN by @jiuker in #17034
* implement support for FTP/SFTP server by @harshavardhana in #16952
* Reduce allocations in Walkdir by @klauspost in #17036
* Reformat helm chart templates by @dnskr in #16947
[3.4.19]
* Update minio to 2023-04-28T18-11-17Z
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2023-04-28T18-11-17Z)
* fix: delete DNS upon success, update failure message by @harshavardhana in #17059
* avoid attempting to migrate old configs by @harshavardhana in #17004
* server-info: Return initializing state properly by @vadmeste in #17070
* simplify sort.Sort by using sort.Slice by @harshavardhana in #17066
* heal: Pick maximally occuring modTime in quorum by @krisis in #17071
* fix: DeleteBucket for peers() must recreate bucket upon errors by @harshavardhana in #17079
* fix: initialize reverse proxy forwarder with right public certs by @harshavardhana in #17080
[3.4.20]
* Update minio to RELEASE.2023-05-04T21-44-30Z
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2023-05-04T21-44-30Z)
* allow root user to be disabled via config settings by @harshavardhana in #17089
* fix: remove active healing on .minio.sys/ during startup by @harshavardhana in #17072
* helm: align chart properties with naming convention by @dnskr in #17065
* optimization use small blocks up to 64KB by @klauspost in #17107
* Support systemd notify protocol by @WGH- in #17062
* fix: store notification events immediately for persistent queues by @Praveenrajmani in #17112
[3.5.0]
* Update minio to 2023-05-18T00-05-36Z
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2023-05-18T00-05-36Z)
* Signed trailers for signature v4 by @klauspost in #16484
* add etc-path to post-job.yaml in helm chart by @mstein11 in #17148
* helm: declare missing properties in values.yaml by @dnskr in #17153
* Validate if replication config being added is self referential by @poornas in #17142
* helm-chart: Use minio service account for post-deploy job if available by @LinAnt in #17077
* put *msgp.Reader back to pool by @jiuker in #17156
* add Err to BucketExists when NoSuchBucket by @jiuker in #17155
[3.5.1]
* Update minio to 2023-05-27T05-56-19Z
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2023-05-27T05-56-19Z)
* fix: leaking connections in JSON SQL with limited return by @klauspost in #17239
* before return make globalScannerMetrics.incTime call by @jiuker in #17230
* fix: return proper error if OIDC Discoverydoc fails to respond by @jiuker in #17242
* fix: increment counter when entry be skipped by @jiuker in #17237
* Freeze the s3 APIs until the notification sub-system initializes completely by @Praveenrajmani in #17182
* Add object parity in listing V2M and listing versions M by @vadmeste in #17238
* allow specification of path/virtual style bucket lookup in batch replication by @poornas in #17201
* fix: Avoid Income globalStats twice upon error by @jiuker in #17263
[3.5.2]
* Update minio to 2023-06-02T23-17-26Z
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2023-06-02T23-17-26Z)
* fix: on windows use FindClose close handler by @jiuker in #17306
* fix: cleanup empty multipart folders upon stale upload cleanup by @harshavardhana in #17312
* Revert s3 select simdjson reuse by @klauspost in #17310
* record err time when remote node is offline by @jiuker in #17262
* fix: proxy not set on subnet logger webhook sometimes by @anjalshireesh in #17320
* fix: time() returned function not being called as expected in globalSync() by @drivebyer in #17319
* fix: fail large content in DeleteMultipleObjects() early by @jiuker in #17321
[3.5.3]
* Update minio to 2023-06-09T07-32-12Z
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2023-06-09T07-32-12Z)
* fix: expMovingAvg is too small when startTime is zero by @jiuker in #17346
* log: Add a log when saving pool.bin fails by @vadmeste in #17338
* goroutines parser: Add --less flag to filter goroutines by @vadmeste in #17339
* only allow decryption of etag for only sse-s3 by @harshavardhana in #17335
* allow quota enforcement to rely on older values by @harshavardhana in #17351
[3.5.4]
* Update minio to 2023-06-16T02-41-06Z
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2023-06-16T02-41-06Z)
* return InvalidRequest when no parts are provided by @harshavardhana in #17395
* service accounts are allowed to have no expiration by @harshavardhana in #17397
* return 204 status code for DeleteBucketTagging by @harshavardhana in #17400
* listen: Only error out if not able to bind any interface by @vadmeste in #17353
* fix: protect ReplicationStats against concurrent map iteration and write crash by @klauspost in #17403
[3.5.5]
* Update minio to 2023-06-19T19-52-50Z
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2023-06-19T19-52-50Z)
* replication: Ensure metadata updates go to same pool where version ex… by @poornas in #17451
* upgrade pkg and dperf to latest packages by @harshavardhana in #17448
* fallback on etags if they match when mtime is not same by @harshavardhana in #17424
* event args list for fanOut notification must be sized same by @harshavardhana in #17450
* rebalance: Fix a integer divide by zero crash during state update by @vadmeste in #17455
[3.5.6]
* Update minio to 2023-06-23T20-26-00Z
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2023-06-23T20-26-00Z)
* Bump up madmin-go and pkg deps by @donatello in #17469
* safely ignore out of band deletions while decommissioning by @harshavardhana in #17473
* fix: replication check for duplicate endpoints detection with wrong route by @jiuker in #17474
* fix: do not crash rebalance code instead set the object layer by @harshavardhana in #17465
* skip onlineDisks with parity mismatch by @harshavardhana in #17478
* Add an option to make bucket notifications synchronous by @Praveenrajmani in #17406
* always look for expired versions v/s remaining versions by @harshavardhana in #17479
[3.6.0]
* Update minio to 2023-06-29T05-12-28Z
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2023-06-29T05-12-28Z)
* fix: do not listAndHeal() inline with PutObject() by @harshavardhana in #17499
* Print certain log messages once per error by @kaankabalak in #17484
* chore: pkg imported more than once by @testwill in #17444
* update all our deps by @harshavardhana in #17497
* Capture realtime metrics in health report by @anjalshireesh in #17516
* allow site-replication checks to work on non-distributed setups by @harshavardhana in #17524
* fix: bug in passing Versioned field set for getHealReplicationInfo() by @harshavardhana in #17498
[3.6.1]
* Update minio to 2023-07-07T07-13-57Z
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2023-07-07T07-13-57Z)
* fix: OpenID config initialization by @donatello in #17544
* fix: service account list for root user by @donatello in #17547
* fix: for FTP server driver allow implicit trust TLS by @harshavardhana in #17541
* s3: Fix a typo in per pool make/delete bucket errs calculation by @vadmeste in #17553
* fix: honor older scanner settings only if newer has not changed by @harshavardhana in #17564
* fix: upon DNS refresh() failure use previous values by @harshavardhana in #17561
* fix: create user without policy that is required by @jiuker in #17554
* fix: under FanOut API avoid repeated md5sum calculation by @harshavardhana in #17572

View File

@@ -5,8 +5,8 @@
"description": "file://DESCRIPTION.md",
"changelog": "file://CHANGELOG",
"tagline": "Distributed object storage",
"version": "3.4.14",
"upstreamVersion": "2023-03-22T06-36-24Z",
"version": "3.6.1",
"upstreamVersion": "2023-07-07T07-13-57Z",
"healthCheckPath": "/minio/login",
"memoryLimit": 805306368,
"httpPort": 8000,

View File

@@ -3,7 +3,7 @@ FROM cloudron/base:4.0.0@sha256:31b195ed0662bdb06a6e8a5ddbedb6f191ce92e8bee04c03
RUN mkdir -p /app/code
WORKDIR /app/code
ARG VERSION=RELEASE.2023-03-22T06-36-24Z
ARG VERSION=RELEASE.2023-07-07T07-13-57Z
# sometimes here https://dl.min.io/server/minio/release/linux-amd64/archive/
# RUN wget https://dl.min.io/server/minio/release/linux-amd64/minio.${VERSION} -O /app/code/minio && chmod +x /app/code/minio

127
test/package-lock.json generated
View File

@@ -9,11 +9,10 @@
"version": "1.0.0",
"license": "ISC",
"dependencies": {
"chromedriver": "^111.0.0",
"delay": "^5.0.0",
"chromedriver": "^114.0.2",
"expect.js": "^0.3.1",
"mocha": "^10.2.0",
"selenium-webdriver": "^4.8.1",
"selenium-webdriver": "^4.10.0",
"superagent": "^8.0.9"
}
},
@@ -98,9 +97,9 @@
"integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
},
"node_modules/axios": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.2.2.tgz",
"integrity": "sha512-bz/J4gS2S3I7mpN/YZfGFTqhXTYzRho8Ay38w2otuuDR322KzFIWm/4W2K6gIwvWaws5n+mnb7D1lN9uD+QH6Q==",
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.4.0.tgz",
"integrity": "sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA==",
"dependencies": {
"follow-redirects": "^1.15.0",
"form-data": "^4.0.0",
@@ -229,14 +228,14 @@
}
},
"node_modules/chromedriver": {
"version": "111.0.0",
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-111.0.0.tgz",
"integrity": "sha512-XavNYNBBfKIrT8Oi/ywJ0DoOOU+jHF5bQWTkqStFsAXvfCV9VzYN3J+TGAvZdrpXeoixqPRGUxQ2yZhD2iowdQ==",
"version": "114.0.2",
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-114.0.2.tgz",
"integrity": "sha512-v0qrXRBknbxqmtklG7RWOe3TJ/dLaHhtB0jVxE7BAdYERxUjEaNRyqBwoGgVfQDibHCB0swzvzsj158nnfPgZw==",
"hasInstallScript": true,
"dependencies": {
"@testim/chrome-version": "^1.1.3",
"axios": "^1.2.1",
"compare-versions": "^5.0.1",
"axios": "^1.4.0",
"compare-versions": "^5.0.3",
"extract-zip": "^2.0.1",
"https-proxy-agent": "^5.0.1",
"proxy-from-env": "^1.1.0",
@@ -246,7 +245,7 @@
"chromedriver": "bin/chromedriver"
},
"engines": {
"node": ">=14"
"node": ">=16"
}
},
"node_modules/cliui": {
@@ -327,9 +326,9 @@
}
},
"node_modules/compare-versions": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-5.0.1.tgz",
"integrity": "sha512-v8Au3l0b+Nwkp4G142JcgJFh1/TUhdxut7wzD1Nq1dyp5oa3tXaqb03EXOAB6jS4gMlalkjAUPZBMiAfKUixHQ=="
"version": "5.0.3",
"resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-5.0.3.tgz",
"integrity": "sha512-4UZlZP8Z99MGEY+Ovg/uJxJuvoXuN4M6B3hKaiackiHrgzQFEe3diJi1mf1PNHbFujM7FvLrK2bpgIaImbtZ1A=="
},
"node_modules/component-emitter": {
"version": "1.3.0",
@@ -383,17 +382,6 @@
"resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
"integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ=="
},
"node_modules/delay": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/delay/-/delay-5.0.0.tgz",
"integrity": "sha512-ReEBKkIfe4ya47wlPYf/gu5ib6yUG0/Aez0JQZQz94kiWtRQvZIQbTiehsnwHvLSWJnQdhVeqYue7Id1dKr0qw==",
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/delayed-stream": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
@@ -833,9 +821,9 @@
}
},
"node_modules/jszip": {
"version": "3.10.0",
"resolved": "https://registry.npmjs.org/jszip/-/jszip-3.10.0.tgz",
"integrity": "sha512-LDfVtOLtOxb9RXkYOwPyNBTQDL4eUbqahtoY6x07GiDJHwSYvn8sHHIw8wINImV3MqbMNve2gSuM1DDqEKk09Q==",
"version": "3.10.1",
"resolved": "https://registry.npmjs.org/jszip/-/jszip-3.10.1.tgz",
"integrity": "sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g==",
"dependencies": {
"lie": "~3.3.0",
"pako": "~1.0.2",
@@ -1150,9 +1138,9 @@
}
},
"node_modules/readable-stream": {
"version": "2.3.7",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz",
"integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==",
"version": "2.3.8",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz",
"integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==",
"dependencies": {
"core-util-is": "~1.0.0",
"inherits": "~2.0.3",
@@ -1202,13 +1190,13 @@
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
},
"node_modules/selenium-webdriver": {
"version": "4.8.1",
"resolved": "https://registry.npmjs.org/selenium-webdriver/-/selenium-webdriver-4.8.1.tgz",
"integrity": "sha512-p4MtfhCQdcV6xxkS7eI0tQN6+WNReRULLCAuT4RDGkrjfObBNXMJ3WT8XdK+aXTr5nnBKuh+PxIevM0EjJgkxA==",
"version": "4.10.0",
"resolved": "https://registry.npmjs.org/selenium-webdriver/-/selenium-webdriver-4.10.0.tgz",
"integrity": "sha512-hSQPw6jgc+ej/UEcdQPG/iBwwMeCEgZr9HByY/J8ToyXztEqXzU9aLsIyrlj1BywBcStO4JQK/zMUWWrV8+riA==",
"dependencies": {
"jszip": "^3.10.0",
"jszip": "^3.10.1",
"tmp": "^0.2.1",
"ws": ">=8.11.0"
"ws": ">=8.13.0"
},
"engines": {
"node": ">= 14.20.0"
@@ -1357,7 +1345,7 @@
"node_modules/util-deprecate": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
"integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
"integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
},
"node_modules/workerpool": {
"version": "6.2.1",
@@ -1426,9 +1414,9 @@
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
},
"node_modules/ws": {
"version": "8.12.0",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.12.0.tgz",
"integrity": "sha512-kU62emKIdKVeEIOIKVegvqpXMSTAMLJozpHZaJNDYqBjzlSYXQGviYwN1osDLJ9av68qHd4a2oSjd7yD4pacig==",
"version": "8.13.0",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz",
"integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==",
"engines": {
"node": ">=10.0.0"
},
@@ -1625,9 +1613,9 @@
"integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
},
"axios": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.2.2.tgz",
"integrity": "sha512-bz/J4gS2S3I7mpN/YZfGFTqhXTYzRho8Ay38w2otuuDR322KzFIWm/4W2K6gIwvWaws5n+mnb7D1lN9uD+QH6Q==",
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.4.0.tgz",
"integrity": "sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA==",
"requires": {
"follow-redirects": "^1.15.0",
"form-data": "^4.0.0",
@@ -1720,13 +1708,13 @@
}
},
"chromedriver": {
"version": "111.0.0",
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-111.0.0.tgz",
"integrity": "sha512-XavNYNBBfKIrT8Oi/ywJ0DoOOU+jHF5bQWTkqStFsAXvfCV9VzYN3J+TGAvZdrpXeoixqPRGUxQ2yZhD2iowdQ==",
"version": "114.0.2",
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-114.0.2.tgz",
"integrity": "sha512-v0qrXRBknbxqmtklG7RWOe3TJ/dLaHhtB0jVxE7BAdYERxUjEaNRyqBwoGgVfQDibHCB0swzvzsj158nnfPgZw==",
"requires": {
"@testim/chrome-version": "^1.1.3",
"axios": "^1.2.1",
"compare-versions": "^5.0.1",
"axios": "^1.4.0",
"compare-versions": "^5.0.3",
"extract-zip": "^2.0.1",
"https-proxy-agent": "^5.0.1",
"proxy-from-env": "^1.1.0",
@@ -1795,9 +1783,9 @@
}
},
"compare-versions": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-5.0.1.tgz",
"integrity": "sha512-v8Au3l0b+Nwkp4G142JcgJFh1/TUhdxut7wzD1Nq1dyp5oa3tXaqb03EXOAB6jS4gMlalkjAUPZBMiAfKUixHQ=="
"version": "5.0.3",
"resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-5.0.3.tgz",
"integrity": "sha512-4UZlZP8Z99MGEY+Ovg/uJxJuvoXuN4M6B3hKaiackiHrgzQFEe3diJi1mf1PNHbFujM7FvLrK2bpgIaImbtZ1A=="
},
"component-emitter": {
"version": "1.3.0",
@@ -1837,11 +1825,6 @@
"resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
"integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ=="
},
"delay": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/delay/-/delay-5.0.0.tgz",
"integrity": "sha512-ReEBKkIfe4ya47wlPYf/gu5ib6yUG0/Aez0JQZQz94kiWtRQvZIQbTiehsnwHvLSWJnQdhVeqYue7Id1dKr0qw=="
},
"delayed-stream": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
@@ -2147,9 +2130,9 @@
}
},
"jszip": {
"version": "3.10.0",
"resolved": "https://registry.npmjs.org/jszip/-/jszip-3.10.0.tgz",
"integrity": "sha512-LDfVtOLtOxb9RXkYOwPyNBTQDL4eUbqahtoY6x07GiDJHwSYvn8sHHIw8wINImV3MqbMNve2gSuM1DDqEKk09Q==",
"version": "3.10.1",
"resolved": "https://registry.npmjs.org/jszip/-/jszip-3.10.1.tgz",
"integrity": "sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g==",
"requires": {
"lie": "~3.3.0",
"pako": "~1.0.2",
@@ -2377,9 +2360,9 @@
}
},
"readable-stream": {
"version": "2.3.7",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz",
"integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==",
"version": "2.3.8",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz",
"integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==",
"requires": {
"core-util-is": "~1.0.0",
"inherits": "~2.0.3",
@@ -2417,13 +2400,13 @@
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
},
"selenium-webdriver": {
"version": "4.8.1",
"resolved": "https://registry.npmjs.org/selenium-webdriver/-/selenium-webdriver-4.8.1.tgz",
"integrity": "sha512-p4MtfhCQdcV6xxkS7eI0tQN6+WNReRULLCAuT4RDGkrjfObBNXMJ3WT8XdK+aXTr5nnBKuh+PxIevM0EjJgkxA==",
"version": "4.10.0",
"resolved": "https://registry.npmjs.org/selenium-webdriver/-/selenium-webdriver-4.10.0.tgz",
"integrity": "sha512-hSQPw6jgc+ej/UEcdQPG/iBwwMeCEgZr9HByY/J8ToyXztEqXzU9aLsIyrlj1BywBcStO4JQK/zMUWWrV8+riA==",
"requires": {
"jszip": "^3.10.0",
"jszip": "^3.10.1",
"tmp": "^0.2.1",
"ws": ">=8.11.0"
"ws": ">=8.13.0"
}
},
"semver": {
@@ -2533,7 +2516,7 @@
"util-deprecate": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
"integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
"integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
},
"workerpool": {
"version": "6.2.1",
@@ -2586,9 +2569,9 @@
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
},
"ws": {
"version": "8.12.0",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.12.0.tgz",
"integrity": "sha512-kU62emKIdKVeEIOIKVegvqpXMSTAMLJozpHZaJNDYqBjzlSYXQGviYwN1osDLJ9av68qHd4a2oSjd7yD4pacig==",
"version": "8.13.0",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz",
"integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==",
"requires": {}
},
"y18n": {

View File

@@ -9,11 +9,10 @@
"author": "",
"license": "ISC",
"dependencies": {
"chromedriver": "^111.0.0",
"delay": "^5.0.0",
"chromedriver": "^114.0.2",
"expect.js": "^0.3.1",
"mocha": "^10.2.0",
"selenium-webdriver": "^4.8.1",
"selenium-webdriver": "^4.10.0",
"superagent": "^8.0.9"
}
}

View File

@@ -11,12 +11,12 @@
require('chromedriver');
const delay = require('delay'),
execSync = require('child_process').execSync,
const execSync = require('child_process').execSync,
expect = require('expect.js'),
fs = require('fs'),
path = require('path'),
superagent = require('superagent'),
timers = require('timers/promises'),
{ Builder, By, until } = require('selenium-webdriver'),
{ Options } = require('selenium-webdriver/chrome');
@@ -56,13 +56,13 @@ describe('Application life cycle test', function () {
await browser.findElement(By.id('secretKey')).sendKeys(secretKey);
await browser.findElement(By.xpath('//button[@id="do-login"]')).click();
await waitForElement(By.xpath('//span[contains(text(), "Buckets")]'));
await delay(5000);
await timers.setTimeout(5000);
}
async function logout() {
await browser.get(`https://${app.fqdn}/`);
await waitForElement(By.xpath('//span[contains(text(), "Buckets")]'));
const button = await browser.findElement(By.xpath('//div/span[contains(text(), "Sign Out")]'));
const button = await browser.findElement(By.xpath('//button[@id="sign-out"]'));
await browser.executeScript('arguments[0].scrollIntoView(false)', button);
await button.click();
await waitForElement(By.id('accessKey'));
@@ -76,7 +76,7 @@ describe('Application life cycle test', function () {
await browser.findElement(By.xpath('//input[@id="bucket-name"]')).sendKeys(BUCKET);
await browser.findElement(By.xpath('//button[@id="create-bucket"]')).click();
await waitForElement(By.xpath(`//h1[contains(text(), "${BUCKET}")]`));
await delay(5000);
await timers.setTimeout(5000);
}
async function checkBucket() {
@@ -99,7 +99,7 @@ describe('Application life cycle test', function () {
xit('build app', function () { execSync('cloudron build', EXEC_ARGS); });
it('install app', async function () {
execSync(`cloudron install --location ${LOCATION} --secondary-domains API_SERVER_DOMAIN=${LOCATION}-api`, EXEC_ARGS);
await delay(10000);
await timers.setTimeout(10000);
});
it('can get app information', getAppInfo);
@@ -118,7 +118,7 @@ describe('Application life cycle test', function () {
fs.writeFileSync('/tmp/env.sh', data);
execSync(`cloudron push --app ${app.id} /tmp/env.sh /app/data/env.sh`, EXEC_ARGS);
execSync(`cloudron restart --app ${app.id}`, EXEC_ARGS);
await delay(10000);
await timers.setTimeout(10000);
});
it('can restart app', function () { execSync(`cloudron restart --app ${app.id}`, EXEC_ARGS); });
@@ -136,7 +136,7 @@ describe('Application life cycle test', function () {
execSync('cloudron install --location ' + LOCATION, EXEC_ARGS);
getAppInfo();
execSync(`cloudron restore --backup ${backups[0].id} --app ${app.id}`, EXEC_ARGS);
await delay(10000);
await timers.setTimeout(10000);
});
it('can login', login.bind(null, 'minioakey', 'minioskey'));
@@ -148,7 +148,7 @@ describe('Application life cycle test', function () {
it('move to different location', async function () {
browser.manage().deleteAllCookies();
execSync('cloudron configure --location ' + LOCATION + '2', EXEC_ARGS);
await delay(10000);
await timers.setTimeout(10000);
});
it('can get app information', getAppInfo);