mirror of
https://git.cloudron.io/cloudron/minio-app
synced 2025-09-04 08:15:22 +00:00
Compare commits
66 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
352f9250d3 | ||
|
f92fc952af | ||
|
b3b18d1b18 | ||
|
ffedc9db25 | ||
|
d8064088ce | ||
|
695806c300 | ||
|
1a3a0f18b9 | ||
|
f8f48ee71c | ||
|
381c362e84 | ||
|
e064370467 | ||
|
88cf43708d | ||
|
e83c637e08 | ||
|
f48251e55c | ||
|
b0edebfba8 | ||
|
4f76314872 | ||
|
12c3b3ec2c | ||
|
7298aad053 | ||
|
3c4b7290db | ||
|
33803ec2d6 | ||
|
acbc45a26f | ||
|
78abd09c30 | ||
|
4898a75d5b | ||
|
251f8d18a5 | ||
|
4174832c63 | ||
|
c95b7ec69c | ||
|
765ac6c810 | ||
|
68e6b92c08 | ||
|
49190b074c | ||
|
7e29cf3ca6 | ||
|
3dc1454fd7 | ||
|
08ee194809 | ||
|
a95014bef5 | ||
|
6f8c2823a3 | ||
|
e0a95c19f3 | ||
|
add3c0728c | ||
|
ab082d612a | ||
|
b732aa9833 | ||
|
e68520b2cd | ||
|
83a9ffe9bd | ||
|
56e76c6098 | ||
|
4172a77c28 | ||
|
62b482f6de | ||
|
a3e521d243 | ||
|
7b5a6629b3 | ||
|
0b3787bb4c | ||
|
4485660f19 | ||
|
198a7ba2d8 | ||
|
694ea1a835 | ||
|
ae7b78e2d7 | ||
|
f5b85c7dfa | ||
|
6148966516 | ||
|
9967b12167 | ||
|
5574cc464a | ||
|
794538bbe9 | ||
|
a1e5589dca | ||
|
f7d9d69187 | ||
|
2762522066 | ||
|
4c6b99857c | ||
|
6c788ded2d | ||
|
542b8a4412 | ||
|
4b3b4b9d4d | ||
|
a0c9c76bd8 | ||
|
d23b35e1b8 | ||
|
32684767b6 | ||
|
ad93f49467 | ||
|
52b7e49b44 |
234
CHANGELOG
234
CHANGELOG
@@ -1171,3 +1171,237 @@ Improve replication performance. See (#12080, #12054, #12009) for more details.
|
||||
* Fix WalkDir fallback hot loop by @klauspost in #14961
|
||||
* fetch bucket replication stats across peers in single call by @harshavardhana in #14956
|
||||
|
||||
[2.5.3]
|
||||
* Update minio to 2022-05-26T05-48-41Z
|
||||
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2022-05-26T05-48-41Z)
|
||||
* replication healing: Fix typo when healing bucket quota info by @vadmeste in #14966
|
||||
* Do not use inline data size in xl.meta quorum calculation by @vadmeste in #14831
|
||||
* hash-set: Add file input for debug tool by @klauspost in #14965
|
||||
* site replication: Allow replication rule edit by @poornas in #14969
|
||||
* fix: copyObject on versioned bucket when updating metadata by @harshavardhana in #14971
|
||||
|
||||
[2.6.0]
|
||||
* Update minio to 2022-06-02T02-11-04Z
|
||||
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2022-06-02T02-11-04Z)
|
||||
* feat: Single drive XL implementation
|
||||
|
||||
[2.7.0]
|
||||
* Update minio to 2022-06-07T00-33-41Z
|
||||
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2022-06-07T00-33-41Z)
|
||||
|
||||
[2.7.1]
|
||||
* Update minio to 2022-06-07T00-33-41Z
|
||||
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2022-06-07T00-33-41Z)
|
||||
* do not print errors upon 'nil' err (06/06/22) (Minio Trusted)
|
||||
|
||||
[2.7.2]
|
||||
* Update minio to 2022-06-10T16-59-15Z
|
||||
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2022-06-10T16-59-15Z)
|
||||
* Include the entirety of vendor folder in .gitignore by @kaankabalak in #15046
|
||||
* relax O_DIRECT in single drive mode if unsupported by @harshavardhana in #15045
|
||||
* Bump Console v0.18.1 by @dvaldivia in #15051
|
||||
* healthcheck cluster endpoint should honor write/readQuorum per pool by @harshavardhana in #15053
|
||||
* fix: make metrics endpoint responsive by reducing the chatter by @harshavardhana in #15055
|
||||
|
||||
[2.7.3]
|
||||
* Update minio to 2022-06-11T19-55-32Z
|
||||
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2022-06-11T19-55-32Z)
|
||||
* debug: verify diff on latest objects on source and target buckets by @harshavardhana in #15069
|
||||
* fix: add missing minio_s3_requests_total by @harshavardhana in #15070
|
||||
* Update dperf to 0.4.1 by @vadmeste in #15071
|
||||
* sts: Avoid printing all STS errors by @vadmeste in #15065
|
||||
|
||||
[2.7.4]
|
||||
* Update minio to 2022-06-17T02-00-35Z
|
||||
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2022-06-17T02-00-35Z)
|
||||
* debug: Close object after check by @vadmeste in #15077
|
||||
* kms: initialize after cli parsing by @vadmeste in #15076
|
||||
* Support configuration of a session policy file by @rgcostea in #15078
|
||||
* erasure-sd: Evaluate versioning Prefix in multi-delete objects by @vadmeste in #15081
|
||||
* fix: simplify healthcheck code to freeze calls only once by @harshavardhana in #15082
|
||||
* add bucket level S3 received/sent bytes by @harshavardhana in #15084
|
||||
* fix: background local test also via channel by @harshavardhana in #15086
|
||||
* add dataErrs for healing debug log by @harshavardhana in #15092
|
||||
|
||||
[2.7.5]
|
||||
* Update minio to 2022-06-20T23-13-45Z
|
||||
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2022-06-20T23-13-45Z)
|
||||
* Update gopsutil to v3.22.5 by @danieljakots in #15098
|
||||
* fix: ignore printing io.EOF during WalkDir() on concurrently modified objects by @harshavardhana in #15100
|
||||
* Avoid CompleteMultipart freeze with unexpected network issue by @vadmeste in #15102
|
||||
* Add generic function to retrieve config value with metadata by @donatello in #15083
|
||||
* fix typo in site replication version healing by @poornas in #15103
|
||||
* Add import/export APIs to migrate bucket metadata by @poornas in #14929
|
||||
|
||||
[2.7.6]
|
||||
* Update minio to 2022-06-25T15-50-16Z
|
||||
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2022-06-25T15-50-16Z)
|
||||
* remove gateway banner and some other TODO loggers by @harshavardhana in #15125
|
||||
* s3-verify: Fix endpoint and missing comparison by @vadmeste in #15129
|
||||
* Parallelize new disks healing of different erasure sets by @vadmeste in #15112
|
||||
* fips: simplify TLS configuration by @aead in #15127
|
||||
* fix: cant parse comment without '=' in environment file by @anoworl in #15130
|
||||
* add go1.18 specific curve preferences by @harshavardhana in #15132
|
||||
|
||||
[2.7.7]
|
||||
* Update minio to 2022-06-30T20-58-09Z
|
||||
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2022-06-30T20-58-09Z)
|
||||
* Supports parity configuration of '0', '1' enabling support for 2,3 drive setups for erasure coding.
|
||||
* add license banner for GNU AGPLv3 by @harshavardhana in #15178
|
||||
* save MinIO version with each version (8-bytes extra) by @harshavardhana in #15170
|
||||
* Remove unnecessary code in WalkDir() by @vadmeste in #15168
|
||||
* perform object sweep after equeue the latest CopyObject() by @harshavardhana in #15183
|
||||
* Upgrade reedsolomon/compression packages by @klauspost in #15182
|
||||
* Revert proxying requests with precondition errors by @vadmeste in #15180
|
||||
* allow support for parity '0', '1' enabling support for 2,3 drive setups by @harshavardhana in #15171
|
||||
* handle missing funcNames for handlers by @harshavardhana in #15188
|
||||
* update banner to reflect the final agreed UI by @harshavardhana in #15192
|
||||
* site healing: Skip stale bucket metadata updates from peer by @poornas in #15186
|
||||
* de-couple caller context to avoid internal races by @harshavardhana in #15195
|
||||
* Save minio version in xl.meta while healing in outdated disks by @vadmeste in #15181
|
||||
* finalize startup-banner and remove unnecessary logs by @harshavardhana in #15202
|
||||
* Make ReqInfo concurrency safe by @klauspost in #15204
|
||||
* update banner with version+runtime by @harshavardhana in #15206
|
||||
|
||||
[2.8.0]
|
||||
* Update minio to 2022-07-04T21-02-54Z
|
||||
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2022-07-04T21-02-54Z)
|
||||
* Simplify Prometheus metrics gather by @harshavardhana in #15210
|
||||
* site healing: Skip stale iam asset updates from peer. by @poornas in #15203
|
||||
* return appropriate error under 'decom status' by @harshavardhana in #15213
|
||||
* do not print errFileNotFound in entries.resolve() by @harshavardhana in #15216
|
||||
* decom IAM, Bucket metadata properly by @harshavardhana in #15220
|
||||
|
||||
[2.8.1]
|
||||
* Update minio to 2022-07-06T20-29-49Z
|
||||
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2022-07-06T20-29-49Z)
|
||||
* Major scanner metrics overhaul now you can watch scanner metrics in realtime using mc admin top scanner #15161
|
||||
* Multiple external IDP management simplification #15152
|
||||
* Decommission now supports mutations such as delete, update of metadata on objects from an active decom pool.
|
||||
|
||||
[2.8.2]
|
||||
* Update minio to 2022-07-13T23-29-44Z
|
||||
* Update mc to 2022-07-11T16-16-12Z
|
||||
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2022-07-13T23-29-44Z)
|
||||
* Adding error check for jetstream connection by @rayjanoka in #15252
|
||||
* Fix Helm chart does not support special characters in access/secret key by @dormanze in #15243
|
||||
* do not recreate deprecated delete-journal.bin, only read it by @harshavardhana in #15185
|
||||
* remove auto-port warning for console-address by @harshavardhana in #15260
|
||||
* Allow compaction at bucket top level. by @klauspost in #15266
|
||||
* fix grammatic errors and minor rewrites by @daniel-bogusz95 in #15264
|
||||
* Purge the objects immediately when x-minio-force-delete header is passed in DeleteObject and DeleteBucket API by @Praveenrajmani in #15148
|
||||
* metric: add KMS-related metrics by @aead in #15258
|
||||
* site replication: Ignore missing targets/replication config during re… by @poornas in #15269
|
||||
* Add compressed file index by @klauspost in #15247
|
||||
* Add 4K minimum compressed size by @klauspost in #15273
|
||||
* Do not print erasure read log when a disk becomes offline by @vadmeste in #15277
|
||||
* allow custom speedtest bucket by @harshavardhana in #15271
|
||||
* fix: simplify passing auditLog eventType by @harshavardhana in #15278
|
||||
* Avoid listing buckets from a suspended pool by @vadmeste in #15283
|
||||
* preserve incoming query params in success_action_redirect by @harshavardhana in #15280
|
||||
* Upgrade compression package by @klauspost in #15284
|
||||
* Add padding to compressed+encrypted files by @klauspost in #15282
|
||||
* resync: Avoid concurrent access/write on map by @poornas in #15286
|
||||
* Add a github workflow test for root disk detection by @vadmeste in #15267
|
||||
* Fix tier-add help by @krisis in https://github.com/minio/mc/pull/4148
|
||||
* add mc ping command by @sinhaashish in https://github.com/minio/mc/pull/4074
|
||||
|
||||
[2.8.3]
|
||||
* Update minio to 2022-07-15T03-44-22Z
|
||||
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2022-07-15T03-44-22Z)
|
||||
* correct RefreshCall & UnlockCall of DefaultTimeouts by @shichanglin5 in #15288
|
||||
* listing: Expire object versions past expiry by @krisis in #15287
|
||||
* Updating minio-go by @cniackz in #15297
|
||||
* Fix site replication healing of missing buckets by @poornas in #15298
|
||||
|
||||
[2.8.4]
|
||||
* Update minio to 2022-07-17T15-43-14Z
|
||||
* Update mc to 2022-07-17T15-43-14Z
|
||||
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2022-07-17T15-43-14Z)
|
||||
* add reconnect duration allows for verifying disconnect intervals by @harshavardhana in #15306
|
||||
* copy query values before update to preserve the expected keys by @harshavardhana in #15310
|
||||
* support 'admin update' for hotfix versions by @harshavardhana in #15308
|
||||
* allow decommission to continue when healing by @harshavardhana in #15312
|
||||
* Allow topologySpreadConstraints configuration by @justusbunsi in #14684
|
||||
* Fix failure in createUser used by make-user-job helm chart by @lamida in #15293
|
||||
* add annotations to ServiceMonitor by @sathieu in #15020
|
||||
* Fix data race, which caused tests execution to fail by @shichanglin5 in #15313
|
||||
* Exclude upload-ids with incomplete part upload in multipart listing by @vadmeste in #15318
|
||||
* support encrypted/compressed objects properly during decommission by @harshavardhana in #15320
|
||||
* Add decommission compression+encryption enabled tests by @harshavardhana in #15322
|
||||
* Move mc admin top scanner -> mc admin scanner info (#4151)
|
||||
|
||||
[2.8.5]
|
||||
* Update minio to 2022-07-24T17-09-31Z
|
||||
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2022-07-24T17-09-31Z)
|
||||
* fix: fork os.MkdirAll to optimize cases where parent exists by @harshavardhana in #15379
|
||||
* Add compression scheme to header by @klauspost in #15395
|
||||
|
||||
[2.8.6]
|
||||
* Update minio to 2022-07-26T00-53-03Z
|
||||
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2022-07-26T00-53-03Z)
|
||||
|
||||
[2.8.7]
|
||||
* Update minio to 2022-07-30T05-21-40Z
|
||||
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2022-07-30T05-21-40Z)
|
||||
|
||||
[2.8.8]
|
||||
* Update minio to 2022-08-02T23-59-16Z
|
||||
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2022-08-02T23-59-16Z)
|
||||
* target: Set 20000 as maximum parallel target notif calls by @vadmeste in #15435
|
||||
* fix: resetting a config with a non default target name by @vadmeste in #15448
|
||||
* fix: allow P-384/P-512 constant time implementation by @harshavardhana in #15445
|
||||
* modify user secret volumes mount path name by @dormanze in #15443
|
||||
* fix: instrument os.OpenFile differently for Reads and Writes by @harshavardhana in #15449
|
||||
|
||||
[2.8.9]
|
||||
* Update minio to 2022-08-05T23-27-09Z
|
||||
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2022-08-05T23-27-09Z)
|
||||
|
||||
[2.8.10]
|
||||
* Update minio to 2022-08-08T18-34-09Z
|
||||
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2022-08-08T18-34-09Z)
|
||||
|
||||
[2.8.11]
|
||||
* Update minio to 2022-08-11T04-37-28Z
|
||||
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2022-08-11T04-37-28Z)
|
||||
|
||||
[2.8.12]
|
||||
* Update minio to 2022-08-13T21-54-44Z
|
||||
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2022-08-13T21-54-44Z)
|
||||
|
||||
[2.9.0]
|
||||
* Update minio to 2022-08-22T23-53-06Z
|
||||
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2022-08-22T23-53-06Z)
|
||||
* Versioning now supports Idempotent delete markers #15521
|
||||
* Disk IO statistics is now available as real-time monitoring via mc #15512
|
||||
* Replication now more accurately tracks failed replication events #15556
|
||||
|
||||
[2.9.1]
|
||||
* Update minio to 2022-08-25T07-17-05Z
|
||||
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2022-08-25T07-17-05Z)
|
||||
|
||||
[2.9.2]
|
||||
* Update minio to 2022-09-01T23-53-36Z
|
||||
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2022-09-01T23-53-36Z)
|
||||
* improve performance for inlined data by @harshavardhana in #15603
|
||||
* site replication: Avoid returning root svcacct info in sr metadata by @poornas in #15608
|
||||
* Add extended checksum by @klauspost in #15433
|
||||
* audit-log: Add time to get object from remote-tier by @krisis in #15602
|
||||
* Avoid messages from go test output by @vadmeste in #15601
|
||||
* chore: remove duplicate word in comments by @Abirdcfly in #15607
|
||||
* feat: Add healing trace by @klauspost in #15616
|
||||
* Encrypt checksums by @klauspost in #15620
|
||||
* fix: add healing metric type for heal tracing by @harshavardhana in #15631
|
||||
|
||||
[2.9.3]
|
||||
* Update minio to 2022-09-07T22-25-02Z
|
||||
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2022-09-07T22-25-02Z)
|
||||
* avoid printing io.ErrUnexpectedEOF for .metacache objects by @harshavardhana in #15642
|
||||
* do not print object not found errors in MRF healing by @harshavardhana in #15646
|
||||
* fis deadlock caused by unlocking a non-existing lock by @yudoutingle in #15635
|
||||
* fix: use optimized json.NewEncoder instead for metrics by @harshavardhana in #15648
|
||||
* Reuse madmin.ClusterRegistrationInfo by @anjalshireesh in #15654
|
||||
* verify RenameData() versions to be consistent by @harshavardhana in #15649
|
||||
* allow non-standards fallback for Expires header by @harshavardhana in #15655
|
||||
* allow non-standards fallback for all http.TimeFormats by @harshavardhana in #15662
|
||||
|
@@ -5,9 +5,10 @@
|
||||
"description": "file://DESCRIPTION.md",
|
||||
"changelog": "file://CHANGELOG",
|
||||
"tagline": "Distributed object storage",
|
||||
"version": "2.5.2",
|
||||
"upstreamVersion": "2022-05-23T18-45-11Z",
|
||||
"version": "2.9.3",
|
||||
"upstreamVersion": "2022-09-07T22-25-02Z",
|
||||
"healthCheckPath": "/minio/login",
|
||||
"memoryLimit": 805306368,
|
||||
"httpPort": 8000,
|
||||
"httpPorts": {
|
||||
"API_SERVER_DOMAIN": {
|
||||
|
@@ -3,8 +3,8 @@ FROM cloudron/base:3.2.0@sha256:ba1d566164a67c266782545ea9809dc611c4152e27686fd1
|
||||
RUN mkdir -p /app/code
|
||||
WORKDIR /app/code
|
||||
|
||||
ARG VERSION=RELEASE.2022-05-23T18-45-11Z
|
||||
ARG MC_VERSION=RELEASE.2022-05-09T04-08-26Z
|
||||
ARG VERSION=RELEASE.2022-09-07T22-25-02Z
|
||||
ARG MC_VERSION=RELEASE.2022-08-28T20-08-11Z
|
||||
|
||||
# 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
|
||||
|
2
start.sh
2
start.sh
@@ -8,7 +8,7 @@ mkdir -p /app/data/data /run/minio/config /run/minio/certs
|
||||
source /app/data/env.sh
|
||||
|
||||
# https://docs.min.io/minio/baremetal/reference/minio-server/minio-server.html#envvar.MINIO_SERVER_URL
|
||||
[[ -n "${API_SERVER_DOMAIN:-}" ]] && export MINIO_SERVER_URL="https://${API_SERVER_DOMAIN}"
|
||||
export MINIO_SERVER_URL="https://${API_SERVER_DOMAIN}"
|
||||
export MINIO_BROWSER_REDIRECT_URL="https://${CLOUDRON_APP_DOMAIN}"
|
||||
|
||||
if [[ ! -d /app/data/mc_config ]]; then
|
||||
|
160
test/package-lock.json
generated
160
test/package-lock.json
generated
@@ -9,11 +9,12 @@
|
||||
"version": "1.0.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"chromedriver": "^101.0.0",
|
||||
"chromedriver": "^104.0.0",
|
||||
"delay": "^5.0.0",
|
||||
"expect.js": "^0.3.1",
|
||||
"mocha": "^10.0.0",
|
||||
"selenium-webdriver": "^4.1.2",
|
||||
"superagent": "^7.1.3"
|
||||
"selenium-webdriver": "^4.4.0",
|
||||
"superagent": "^8.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@nodelib/fs.scandir": {
|
||||
@@ -154,11 +155,12 @@
|
||||
"integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
|
||||
},
|
||||
"node_modules/axios": {
|
||||
"version": "0.24.0",
|
||||
"resolved": "https://registry.npmjs.org/axios/-/axios-0.24.0.tgz",
|
||||
"integrity": "sha512-Q6cWsys88HoPgAaFAVUb0WpPk0O8iTeisR9IMqy9G8AbO4NlpVknrnQS03zzF9PGAWgO3cgletO3VjV/P7VztA==",
|
||||
"version": "0.27.2",
|
||||
"resolved": "https://registry.npmjs.org/axios/-/axios-0.27.2.tgz",
|
||||
"integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==",
|
||||
"dependencies": {
|
||||
"follow-redirects": "^1.14.4"
|
||||
"follow-redirects": "^1.14.9",
|
||||
"form-data": "^4.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/balanced-match": {
|
||||
@@ -283,13 +285,13 @@
|
||||
}
|
||||
},
|
||||
"node_modules/chromedriver": {
|
||||
"version": "101.0.0",
|
||||
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-101.0.0.tgz",
|
||||
"integrity": "sha512-LkkWxy6KM/0YdJS8qBeg5vfkTZTRamhBfOttb4oic4echDgWvCU1E8QcBbUBOHqZpSrYMyi7WMKmKMhXFUaZ+w==",
|
||||
"version": "104.0.0",
|
||||
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-104.0.0.tgz",
|
||||
"integrity": "sha512-zbHZutN2ATo19xA6nXwwLn+KueD/5w8ap5m4b6bCb8MIaRFnyDwMbFoy7oFAjlSMpCFL3KSaZRiWUwjj//N3yQ==",
|
||||
"hasInstallScript": true,
|
||||
"dependencies": {
|
||||
"@testim/chrome-version": "^1.1.2",
|
||||
"axios": "^0.24.0",
|
||||
"axios": "^0.27.2",
|
||||
"del": "^6.0.0",
|
||||
"extract-zip": "^2.0.1",
|
||||
"https-proxy-agent": "^5.0.0",
|
||||
@@ -461,6 +463,17 @@
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"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",
|
||||
@@ -624,9 +637,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/follow-redirects": {
|
||||
"version": "1.14.7",
|
||||
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.7.tgz",
|
||||
"integrity": "sha512-+hbxoLbFMbRKDwohX8GkTataGqO6Jb7jGwpAlwgy2bIz25XtRm7KEzJM76R1WiNT5SwZkX4Y75SwBolkpmE7iQ==",
|
||||
"version": "1.15.1",
|
||||
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.1.tgz",
|
||||
"integrity": "sha512-yLAMQs+k0b2m7cVxpS1VKJVvoz7SS9Td1zss3XRwXj+ZDH00RJgnuLx7E44wx02kQLrdM3aOOy+FpzS7+8OizA==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "individual",
|
||||
@@ -861,7 +874,7 @@
|
||||
"node_modules/immediate": {
|
||||
"version": "3.0.6",
|
||||
"resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz",
|
||||
"integrity": "sha1-nbHb0Pr43m++D13V5Wu2BigN5ps="
|
||||
"integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ=="
|
||||
},
|
||||
"node_modules/indent-string": {
|
||||
"version": "4.0.0",
|
||||
@@ -987,7 +1000,7 @@
|
||||
"node_modules/isarray": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
|
||||
"integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE="
|
||||
"integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ=="
|
||||
},
|
||||
"node_modules/js-yaml": {
|
||||
"version": "4.1.0",
|
||||
@@ -1001,14 +1014,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/jszip": {
|
||||
"version": "3.7.1",
|
||||
"resolved": "https://registry.npmjs.org/jszip/-/jszip-3.7.1.tgz",
|
||||
"integrity": "sha512-ghL0tz1XG9ZEmRMcEN2vt7xabrDdqHHeykgARpmZ0BiIctWxM47Vt63ZO2dnp4QYt/xJVLLy5Zv1l/xRdh2byg==",
|
||||
"version": "3.10.0",
|
||||
"resolved": "https://registry.npmjs.org/jszip/-/jszip-3.10.0.tgz",
|
||||
"integrity": "sha512-LDfVtOLtOxb9RXkYOwPyNBTQDL4eUbqahtoY6x07GiDJHwSYvn8sHHIw8wINImV3MqbMNve2gSuM1DDqEKk09Q==",
|
||||
"dependencies": {
|
||||
"lie": "~3.3.0",
|
||||
"pako": "~1.0.2",
|
||||
"readable-stream": "~2.3.6",
|
||||
"set-immediate-shim": "~1.0.1"
|
||||
"setimmediate": "^1.0.5"
|
||||
}
|
||||
},
|
||||
"node_modules/lie": {
|
||||
@@ -1463,13 +1476,13 @@
|
||||
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
|
||||
},
|
||||
"node_modules/selenium-webdriver": {
|
||||
"version": "4.1.2",
|
||||
"resolved": "https://registry.npmjs.org/selenium-webdriver/-/selenium-webdriver-4.1.2.tgz",
|
||||
"integrity": "sha512-e4Ap8vQvhipgBB8Ry9zBiKGkU6kHKyNnWiavGGLKkrdW81Zv7NVMtFOL/j3yX0G8QScM7XIXijKssNd4EUxSOw==",
|
||||
"version": "4.4.0",
|
||||
"resolved": "https://registry.npmjs.org/selenium-webdriver/-/selenium-webdriver-4.4.0.tgz",
|
||||
"integrity": "sha512-Du+/xfpvNi9zHAeYgXhOWN9yH0hph+cuX+hHDBr7d+SbtQVcfNJwBzLsbdHrB1Wh7MHXFuIkSG88A9TRRQUx3g==",
|
||||
"dependencies": {
|
||||
"jszip": "^3.6.0",
|
||||
"jszip": "^3.10.0",
|
||||
"tmp": "^0.2.1",
|
||||
"ws": ">=7.4.6"
|
||||
"ws": ">=8.7.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 10.15.0"
|
||||
@@ -1497,13 +1510,10 @@
|
||||
"randombytes": "^2.1.0"
|
||||
}
|
||||
},
|
||||
"node_modules/set-immediate-shim": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz",
|
||||
"integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
"node_modules/setimmediate": {
|
||||
"version": "1.0.5",
|
||||
"resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz",
|
||||
"integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA=="
|
||||
},
|
||||
"node_modules/side-channel": {
|
||||
"version": "1.0.4",
|
||||
@@ -1546,9 +1556,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/superagent": {
|
||||
"version": "7.1.3",
|
||||
"resolved": "https://registry.npmjs.org/superagent/-/superagent-7.1.3.tgz",
|
||||
"integrity": "sha512-WA6et4nAvgBCS73lJvv1D0ssI5uk5Gh+TGN/kNe+B608EtcVs/yzfl+OLXTzDs7tOBDIpvgh/WUs1K2OK1zTeQ==",
|
||||
"version": "8.0.0",
|
||||
"resolved": "https://registry.npmjs.org/superagent/-/superagent-8.0.0.tgz",
|
||||
"integrity": "sha512-iudipXEel+SzlP9y29UBWGDjB+Zzag+eeA1iLosaR2YHBRr1Q1kC29iBrF2zIVD9fqVbpZnXkN/VJmwFMVyNWg==",
|
||||
"dependencies": {
|
||||
"component-emitter": "^1.3.0",
|
||||
"cookiejar": "^2.1.3",
|
||||
@@ -1557,7 +1567,7 @@
|
||||
"form-data": "^4.0.0",
|
||||
"formidable": "^2.0.1",
|
||||
"methods": "^1.1.2",
|
||||
"mime": "^2.5.0",
|
||||
"mime": "2.6.0",
|
||||
"qs": "^6.10.3",
|
||||
"readable-stream": "^3.6.0",
|
||||
"semver": "^7.3.7"
|
||||
@@ -1712,9 +1722,9 @@
|
||||
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
|
||||
},
|
||||
"node_modules/ws": {
|
||||
"version": "8.4.2",
|
||||
"resolved": "https://registry.npmjs.org/ws/-/ws-8.4.2.tgz",
|
||||
"integrity": "sha512-Kbk4Nxyq7/ZWqr/tarI9yIt/+iNNFOjBXEWgTb4ydaNHBNGgvf2QHbS9fdfsndfjFlFwEd4Al+mw83YkaD10ZA==",
|
||||
"version": "8.8.0",
|
||||
"resolved": "https://registry.npmjs.org/ws/-/ws-8.8.0.tgz",
|
||||
"integrity": "sha512-JDAgSYQ1ksuwqfChJusw1LSJ8BizJ2e/vVu5Lxjq3YvNJNlROv1ui4i+c/kUUrPheBvQl4c5UbERhTwKa6QBJQ==",
|
||||
"engines": {
|
||||
"node": ">=10.0.0"
|
||||
},
|
||||
@@ -1953,11 +1963,12 @@
|
||||
"integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
|
||||
},
|
||||
"axios": {
|
||||
"version": "0.24.0",
|
||||
"resolved": "https://registry.npmjs.org/axios/-/axios-0.24.0.tgz",
|
||||
"integrity": "sha512-Q6cWsys88HoPgAaFAVUb0WpPk0O8iTeisR9IMqy9G8AbO4NlpVknrnQS03zzF9PGAWgO3cgletO3VjV/P7VztA==",
|
||||
"version": "0.27.2",
|
||||
"resolved": "https://registry.npmjs.org/axios/-/axios-0.27.2.tgz",
|
||||
"integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==",
|
||||
"requires": {
|
||||
"follow-redirects": "^1.14.4"
|
||||
"follow-redirects": "^1.14.9",
|
||||
"form-data": "^4.0.0"
|
||||
}
|
||||
},
|
||||
"balanced-match": {
|
||||
@@ -2046,12 +2057,12 @@
|
||||
}
|
||||
},
|
||||
"chromedriver": {
|
||||
"version": "101.0.0",
|
||||
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-101.0.0.tgz",
|
||||
"integrity": "sha512-LkkWxy6KM/0YdJS8qBeg5vfkTZTRamhBfOttb4oic4echDgWvCU1E8QcBbUBOHqZpSrYMyi7WMKmKMhXFUaZ+w==",
|
||||
"version": "104.0.0",
|
||||
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-104.0.0.tgz",
|
||||
"integrity": "sha512-zbHZutN2ATo19xA6nXwwLn+KueD/5w8ap5m4b6bCb8MIaRFnyDwMbFoy7oFAjlSMpCFL3KSaZRiWUwjj//N3yQ==",
|
||||
"requires": {
|
||||
"@testim/chrome-version": "^1.1.2",
|
||||
"axios": "^0.24.0",
|
||||
"axios": "^0.27.2",
|
||||
"del": "^6.0.0",
|
||||
"extract-zip": "^2.0.1",
|
||||
"https-proxy-agent": "^5.0.0",
|
||||
@@ -2178,6 +2189,11 @@
|
||||
"slash": "^3.0.0"
|
||||
}
|
||||
},
|
||||
"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",
|
||||
@@ -2300,9 +2316,9 @@
|
||||
"integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ=="
|
||||
},
|
||||
"follow-redirects": {
|
||||
"version": "1.14.7",
|
||||
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.7.tgz",
|
||||
"integrity": "sha512-+hbxoLbFMbRKDwohX8GkTataGqO6Jb7jGwpAlwgy2bIz25XtRm7KEzJM76R1WiNT5SwZkX4Y75SwBolkpmE7iQ=="
|
||||
"version": "1.15.1",
|
||||
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.1.tgz",
|
||||
"integrity": "sha512-yLAMQs+k0b2m7cVxpS1VKJVvoz7SS9Td1zss3XRwXj+ZDH00RJgnuLx7E44wx02kQLrdM3aOOy+FpzS7+8OizA=="
|
||||
},
|
||||
"form-data": {
|
||||
"version": "4.0.0",
|
||||
@@ -2455,7 +2471,7 @@
|
||||
"immediate": {
|
||||
"version": "3.0.6",
|
||||
"resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz",
|
||||
"integrity": "sha1-nbHb0Pr43m++D13V5Wu2BigN5ps="
|
||||
"integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ=="
|
||||
},
|
||||
"indent-string": {
|
||||
"version": "4.0.0",
|
||||
@@ -2545,7 +2561,7 @@
|
||||
"isarray": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
|
||||
"integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE="
|
||||
"integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ=="
|
||||
},
|
||||
"js-yaml": {
|
||||
"version": "4.1.0",
|
||||
@@ -2556,14 +2572,14 @@
|
||||
}
|
||||
},
|
||||
"jszip": {
|
||||
"version": "3.7.1",
|
||||
"resolved": "https://registry.npmjs.org/jszip/-/jszip-3.7.1.tgz",
|
||||
"integrity": "sha512-ghL0tz1XG9ZEmRMcEN2vt7xabrDdqHHeykgARpmZ0BiIctWxM47Vt63ZO2dnp4QYt/xJVLLy5Zv1l/xRdh2byg==",
|
||||
"version": "3.10.0",
|
||||
"resolved": "https://registry.npmjs.org/jszip/-/jszip-3.10.0.tgz",
|
||||
"integrity": "sha512-LDfVtOLtOxb9RXkYOwPyNBTQDL4eUbqahtoY6x07GiDJHwSYvn8sHHIw8wINImV3MqbMNve2gSuM1DDqEKk09Q==",
|
||||
"requires": {
|
||||
"lie": "~3.3.0",
|
||||
"pako": "~1.0.2",
|
||||
"readable-stream": "~2.3.6",
|
||||
"set-immediate-shim": "~1.0.1"
|
||||
"setimmediate": "^1.0.5"
|
||||
}
|
||||
},
|
||||
"lie": {
|
||||
@@ -2872,13 +2888,13 @@
|
||||
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
|
||||
},
|
||||
"selenium-webdriver": {
|
||||
"version": "4.1.2",
|
||||
"resolved": "https://registry.npmjs.org/selenium-webdriver/-/selenium-webdriver-4.1.2.tgz",
|
||||
"integrity": "sha512-e4Ap8vQvhipgBB8Ry9zBiKGkU6kHKyNnWiavGGLKkrdW81Zv7NVMtFOL/j3yX0G8QScM7XIXijKssNd4EUxSOw==",
|
||||
"version": "4.4.0",
|
||||
"resolved": "https://registry.npmjs.org/selenium-webdriver/-/selenium-webdriver-4.4.0.tgz",
|
||||
"integrity": "sha512-Du+/xfpvNi9zHAeYgXhOWN9yH0hph+cuX+hHDBr7d+SbtQVcfNJwBzLsbdHrB1Wh7MHXFuIkSG88A9TRRQUx3g==",
|
||||
"requires": {
|
||||
"jszip": "^3.6.0",
|
||||
"jszip": "^3.10.0",
|
||||
"tmp": "^0.2.1",
|
||||
"ws": ">=7.4.6"
|
||||
"ws": ">=8.7.0"
|
||||
}
|
||||
},
|
||||
"semver": {
|
||||
@@ -2897,10 +2913,10 @@
|
||||
"randombytes": "^2.1.0"
|
||||
}
|
||||
},
|
||||
"set-immediate-shim": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz",
|
||||
"integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E="
|
||||
"setimmediate": {
|
||||
"version": "1.0.5",
|
||||
"resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz",
|
||||
"integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA=="
|
||||
},
|
||||
"side-channel": {
|
||||
"version": "1.0.4",
|
||||
@@ -2931,9 +2947,9 @@
|
||||
"integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig=="
|
||||
},
|
||||
"superagent": {
|
||||
"version": "7.1.3",
|
||||
"resolved": "https://registry.npmjs.org/superagent/-/superagent-7.1.3.tgz",
|
||||
"integrity": "sha512-WA6et4nAvgBCS73lJvv1D0ssI5uk5Gh+TGN/kNe+B608EtcVs/yzfl+OLXTzDs7tOBDIpvgh/WUs1K2OK1zTeQ==",
|
||||
"version": "8.0.0",
|
||||
"resolved": "https://registry.npmjs.org/superagent/-/superagent-8.0.0.tgz",
|
||||
"integrity": "sha512-iudipXEel+SzlP9y29UBWGDjB+Zzag+eeA1iLosaR2YHBRr1Q1kC29iBrF2zIVD9fqVbpZnXkN/VJmwFMVyNWg==",
|
||||
"requires": {
|
||||
"component-emitter": "^1.3.0",
|
||||
"cookiejar": "^2.1.3",
|
||||
@@ -2942,7 +2958,7 @@
|
||||
"form-data": "^4.0.0",
|
||||
"formidable": "^2.0.1",
|
||||
"methods": "^1.1.2",
|
||||
"mime": "^2.5.0",
|
||||
"mime": "2.6.0",
|
||||
"qs": "^6.10.3",
|
||||
"readable-stream": "^3.6.0",
|
||||
"semver": "^7.3.7"
|
||||
@@ -3059,9 +3075,9 @@
|
||||
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
|
||||
},
|
||||
"ws": {
|
||||
"version": "8.4.2",
|
||||
"resolved": "https://registry.npmjs.org/ws/-/ws-8.4.2.tgz",
|
||||
"integrity": "sha512-Kbk4Nxyq7/ZWqr/tarI9yIt/+iNNFOjBXEWgTb4ydaNHBNGgvf2QHbS9fdfsndfjFlFwEd4Al+mw83YkaD10ZA==",
|
||||
"version": "8.8.0",
|
||||
"resolved": "https://registry.npmjs.org/ws/-/ws-8.8.0.tgz",
|
||||
"integrity": "sha512-JDAgSYQ1ksuwqfChJusw1LSJ8BizJ2e/vVu5Lxjq3YvNJNlROv1ui4i+c/kUUrPheBvQl4c5UbERhTwKa6QBJQ==",
|
||||
"requires": {}
|
||||
},
|
||||
"y18n": {
|
||||
|
@@ -9,10 +9,11 @@
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"chromedriver": "^101.0.0",
|
||||
"chromedriver": "^104.0.0",
|
||||
"delay": "^5.0.0",
|
||||
"expect.js": "^0.3.1",
|
||||
"mocha": "^10.0.0",
|
||||
"selenium-webdriver": "^4.1.2",
|
||||
"superagent": "^7.1.3"
|
||||
"selenium-webdriver": "^4.4.0",
|
||||
"superagent": "^8.0.0"
|
||||
}
|
||||
}
|
||||
|
21
test/test.js
21
test/test.js
@@ -11,7 +11,8 @@
|
||||
|
||||
require('chromedriver');
|
||||
|
||||
const execSync = require('child_process').execSync,
|
||||
const delay = require('delay'),
|
||||
execSync = require('child_process').execSync,
|
||||
expect = require('expect.js'),
|
||||
fs = require('fs'),
|
||||
path = require('path'),
|
||||
@@ -23,7 +24,7 @@ describe('Application life cycle test', function () {
|
||||
this.timeout(0);
|
||||
|
||||
const LOCATION = 'test';
|
||||
const TEST_TIMEOUT = 10000;
|
||||
const TEST_TIMEOUT = 30000;
|
||||
const BUCKET = 'cloudrontestbucket';
|
||||
const EXEC_ARGS = { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' };
|
||||
|
||||
@@ -55,6 +56,7 @@ describe('Application life cycle test', function () {
|
||||
await browser.findElement(By.id('secretKey')).sendKeys(secretKey);
|
||||
await browser.findElement(By.xpath('//button[contains(text(), "Login")]')).click();
|
||||
await waitForElement(By.xpath('//span[contains(text(), "Buckets")]'));
|
||||
await delay(5000);
|
||||
}
|
||||
|
||||
async function logout() {
|
||||
@@ -72,6 +74,7 @@ describe('Application life cycle test', function () {
|
||||
await browser.findElement(By.xpath('//input[@id="bucket-name"]')).sendKeys(BUCKET);
|
||||
await browser.findElement(By.xpath('//button[text()="Create Bucket"]')).click();
|
||||
await waitForElement(By.xpath(`//a[contains(text(), "${BUCKET}")]`));
|
||||
await delay(5000);
|
||||
}
|
||||
|
||||
async function checkBucket() {
|
||||
@@ -92,7 +95,10 @@ describe('Application life cycle test', function () {
|
||||
}
|
||||
|
||||
xit('build app', function () { execSync('cloudron build', EXEC_ARGS); });
|
||||
it('install app', function () { execSync(`cloudron install --location ${LOCATION} --secondary-domains API_SERVER_DOMAIN=${LOCATION}-api`, EXEC_ARGS); });
|
||||
it('install app', async function () {
|
||||
execSync(`cloudron install --location ${LOCATION} --secondary-domains API_SERVER_DOMAIN=${LOCATION}-api`, EXEC_ARGS);
|
||||
await delay(10000);
|
||||
});
|
||||
|
||||
it('can get app information', getAppInfo);
|
||||
|
||||
@@ -102,7 +108,7 @@ describe('Application life cycle test', function () {
|
||||
it('does redirect', checkRedirect);
|
||||
it('check api', checkApi);
|
||||
|
||||
it('can change credentials', function () {
|
||||
it('can change credentials', async function () {
|
||||
let data = fs.readFileSync(path.join(__dirname, '../env.sh'), 'utf8');
|
||||
data = data
|
||||
.replace(/MINIO_ROOT_USER=.*/, 'MINIO_ROOT_USER=minioakey')
|
||||
@@ -110,6 +116,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);
|
||||
});
|
||||
|
||||
it('can restart app', function () { execSync(`cloudron restart --app ${app.id}`, EXEC_ARGS); });
|
||||
@@ -121,12 +128,13 @@ describe('Application life cycle test', function () {
|
||||
it('check api', checkApi);
|
||||
|
||||
it('backup app', function () { execSync('cloudron backup create --app ' + app.id, EXEC_ARGS); });
|
||||
it('restore app', function () {
|
||||
it('restore app', async function () {
|
||||
const backups = JSON.parse(execSync(`cloudron backup list --raw --app ${app.id}`));
|
||||
execSync('cloudron uninstall --app ' + app.id, EXEC_ARGS);
|
||||
execSync('cloudron install --location ' + LOCATION, EXEC_ARGS);
|
||||
getAppInfo();
|
||||
execSync(`cloudron restore --backup ${backups[0].id} --app ${app.id}`, EXEC_ARGS);
|
||||
await delay(10000);
|
||||
});
|
||||
|
||||
it('can login', login.bind(null, 'minioakey', 'minioskey'));
|
||||
@@ -135,9 +143,10 @@ describe('Application life cycle test', function () {
|
||||
it('does redirect', checkRedirect);
|
||||
it('check api', checkApi);
|
||||
|
||||
it('move to different location', function () {
|
||||
it('move to different location', async function () {
|
||||
browser.manage().deleteAllCookies();
|
||||
execSync('cloudron configure --location ' + LOCATION + '2', EXEC_ARGS);
|
||||
await delay(10000);
|
||||
});
|
||||
it('can get app information', getAppInfo);
|
||||
|
||||
|
Reference in New Issue
Block a user