mirror of
https://git.cloudron.io/cloudron/minio-app
synced 2025-09-13 00:15:40 +00:00
Compare commits
40 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
17670769fa | ||
|
038ebcd485 | ||
|
69894610e9 | ||
|
38d81367d3 | ||
|
8bfac72b10 | ||
|
6e0cf2f9d8 | ||
|
fd48a26065 | ||
|
ef398fbdeb | ||
|
fb570b0256 | ||
|
e2a4a1b594 | ||
|
242ca7052b | ||
|
ecfd75afd1 | ||
|
6ac4576a7f | ||
|
635924b0e5 | ||
|
bcde4b30d6 | ||
|
e0a5ac3fe2 | ||
|
7ec1c63a02 | ||
|
9cefaa80be | ||
|
09e82cd3e3 | ||
|
f75118e15a | ||
|
4f5fadaa8a | ||
|
42ecaf8662 | ||
|
7fb6950cab | ||
|
d952670c20 | ||
|
8239fd8ade | ||
|
41644f3c54 | ||
|
31da17a3e1 | ||
|
9a9a8b0b13 | ||
|
ab05d0a834 | ||
|
e0db747a08 | ||
|
eb0b1f9e79 | ||
|
d556596770 | ||
|
d6654f7e72 | ||
|
9e5494c2f4 | ||
|
042424145e | ||
|
f20ff8beba | ||
|
46eca06f85 | ||
|
060c0d0b9e | ||
|
1d94015a6d | ||
|
6158eb4dfb |
5
.gitlab-ci.yml
Normal file
5
.gitlab-ci.yml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
include:
|
||||||
|
- project: devops/pipeline-components
|
||||||
|
ref: main
|
||||||
|
file: cloudron-app.gitlab-ci.yml
|
||||||
|
|
76
CHANGELOG
76
CHANGELOG
@@ -2642,3 +2642,79 @@ Improve replication performance. See (#12080, #12054, #12009) for more details.
|
|||||||
* Update minio to 2024-07-26T20-48-21Z
|
* Update minio to 2024-07-26T20-48-21Z
|
||||||
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2024-07-26T20-48-21Z)
|
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2024-07-26T20-48-21Z)
|
||||||
|
|
||||||
|
[3.13.32]
|
||||||
|
* Update minio to 2024-07-29T22-14-52Z
|
||||||
|
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2024-07-29T22-14-52Z)
|
||||||
|
|
||||||
|
[3.13.33]
|
||||||
|
* Update minio to 2024-07-31T05-46-26Z
|
||||||
|
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2024-07-31T05-46-26Z)
|
||||||
|
|
||||||
|
[3.13.34]
|
||||||
|
* Update minio to 2024-08-03T04-33-23Z
|
||||||
|
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2024-08-03T04-33-23Z)
|
||||||
|
|
||||||
|
[3.13.35]
|
||||||
|
* Update minio to 2024-08-17T01-24-54Z
|
||||||
|
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2024-08-17T01-24-54Z)
|
||||||
|
|
||||||
|
[3.13.36]
|
||||||
|
* Update minio to 2024-08-26T15-33-07Z
|
||||||
|
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2024-08-26T15-33-07Z)
|
||||||
|
|
||||||
|
[3.13.37]
|
||||||
|
* Update minio to 2024-08-29T01-40-52Z
|
||||||
|
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2024-08-29T01-40-52Z)
|
||||||
|
* fix: string format when log IAM refresh take over 5s by @jiuker in #20331
|
||||||
|
* when a drive is closed cancel the cleanupTrash goroutine by @harshavardhana in #20337
|
||||||
|
* add more details on the payload sent to webhook audit by @harshavardhana in #20335
|
||||||
|
* bucket-metadata: Reload events/repl-targets for all buckets by @vadmeste in #20334
|
||||||
|
|
||||||
|
[3.13.38]
|
||||||
|
* Update minio to 2024-09-09T16-59-28Z
|
||||||
|
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2024-09-09T16-59-28Z)
|
||||||
|
* Skip non existent ldap entities while import (#20352)
|
||||||
|
* Dont hard error for nonexisting LDAP entries instead of logging them
|
||||||
|
|
||||||
|
[3.13.39]
|
||||||
|
* Update minio to 2024-09-13T20-26-02Z
|
||||||
|
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2024-09-13T20-26-02Z)
|
||||||
|
* PutObject() for multi-pooled was holding large region locks, which was not necessary. This affects almost all slowpoke clients and lengthy uploads.
|
||||||
|
* Re-arrange locks for CompleteMultipart, PutObject to be close to rename()
|
||||||
|
|
||||||
|
[3.14.0]
|
||||||
|
* Update minio to 2024-09-22T00-33-43Z
|
||||||
|
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2024-09-22T00-33-43Z)
|
||||||
|
* Limit S3 Select JSON documents to 10MB by @klauspost in #20439
|
||||||
|
* remove windows CI/CD for now by @harshavardhana in #20441
|
||||||
|
* Fix behavior of AddServiceAccountLDAP for non-admin users by @taran-p in #20442
|
||||||
|
* Added iam import tests for openid by @shtripat in #20432
|
||||||
|
* batch: Set a default retry attempts and a prefix by @vadmeste in #20452
|
||||||
|
* Ensure proper stale_uploads_cleanup_interval is used at all times by @ramondeklein in #20451
|
||||||
|
|
||||||
|
[3.15.0]
|
||||||
|
* Update minio to 2024-10-02T17-50-41Z
|
||||||
|
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2024-10-02T17-50-41Z)
|
||||||
|
* Limit jstream parse depth by @klauspost in #20474
|
||||||
|
* remove the list from 'mc stat' from testing via '--no-list' by @harshavardhana in #20468
|
||||||
|
* cleanup existing part.N's before renamePart() by @harshavardhana in #20466
|
||||||
|
* hold on to batch job stats till cleanup by @poornas in #20480
|
||||||
|
* use absolute path for binary checksum verification by @harshavardhana in #20487
|
||||||
|
* Fix PPC cgroup memory limit by @klauspost in #20488
|
||||||
|
|
||||||
|
[3.15.1]
|
||||||
|
* Update minio to 2024-10-13T13-34-11Z
|
||||||
|
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2024-10-13T13-34-11Z)
|
||||||
|
|
||||||
|
[3.15.2]
|
||||||
|
* Update minio to 2024-10-29T16-01-48Z
|
||||||
|
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2024-10-29T16-01-48Z)
|
||||||
|
* Correct the date filter check for batch replication by @shtripat in https://github.com/minio/minio/pull/20569
|
||||||
|
* Clear omitted fields by @klauspost in https://github.com/minio/minio/pull/20575
|
||||||
|
* Trace ILM errors by @klauspost in https://github.com/minio/minio/pull/20576
|
||||||
|
* Fix ILM expire workers exiting by @klauspost in https://github.com/minio/minio/pull/20578
|
||||||
|
* fix: avoid useless expires value in listing meta by @donatello in https://github.com/minio/minio/pull/20584
|
||||||
|
* heal: Avoid deadline error with very large objects (#140) by @vadmeste in https://github.com/minio/minio/pull/20586
|
||||||
|
* heal: large objects fix and avoid .healing.bin corner case premature exit by @vadmeste in https://github.com/minio/minio/pull/20577
|
||||||
|
* run IAM purge routines deterministically every hr by @donatello in https://github.com/minio/minio/pull/20587
|
||||||
|
|
||||||
|
@@ -5,8 +5,8 @@
|
|||||||
"description": "file://DESCRIPTION.md",
|
"description": "file://DESCRIPTION.md",
|
||||||
"changelog": "file://CHANGELOG",
|
"changelog": "file://CHANGELOG",
|
||||||
"tagline": "Distributed object storage",
|
"tagline": "Distributed object storage",
|
||||||
"version": "3.13.31",
|
"version": "3.15.2",
|
||||||
"upstreamVersion": "2024-07-26T20-48-21Z",
|
"upstreamVersion": "RELEASE.2024-10-29T16-01-48Z",
|
||||||
"healthCheckPath": "/minio/login",
|
"healthCheckPath": "/minio/login",
|
||||||
"memoryLimit": 2147483648,
|
"memoryLimit": 2147483648,
|
||||||
"httpPort": 8000,
|
"httpPort": 8000,
|
||||||
@@ -20,7 +20,9 @@
|
|||||||
},
|
},
|
||||||
"addons": {
|
"addons": {
|
||||||
"localstorage": {},
|
"localstorage": {},
|
||||||
"oidc": { "loginRedirectUri": "/oauth_callback" }
|
"oidc": {
|
||||||
|
"loginRedirectUri": "/oauth_callback"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"optionalSso": true,
|
"optionalSso": true,
|
||||||
"manifestVersion": 2,
|
"manifestVersion": 2,
|
||||||
@@ -30,7 +32,12 @@
|
|||||||
"documentationUrl": "https://docs.cloudron.io/apps/minio/",
|
"documentationUrl": "https://docs.cloudron.io/apps/minio/",
|
||||||
"contactEmail": "support@cloudron.io",
|
"contactEmail": "support@cloudron.io",
|
||||||
"icon": "logo.png",
|
"icon": "logo.png",
|
||||||
"tags": [ "storage", "hosting", "s3", "objectstore" ],
|
"tags": [
|
||||||
|
"storage",
|
||||||
|
"hosting",
|
||||||
|
"s3",
|
||||||
|
"objectstore"
|
||||||
|
],
|
||||||
"mediaLinks": [
|
"mediaLinks": [
|
||||||
"https://screenshots.cloudron.io/io.minio.cloudronapp/pic1.png",
|
"https://screenshots.cloudron.io/io.minio.cloudronapp/pic1.png",
|
||||||
"https://screenshots.cloudron.io/io.minio.cloudronapp/pic2.png"
|
"https://screenshots.cloudron.io/io.minio.cloudronapp/pic2.png"
|
||||||
|
10
Dockerfile
10
Dockerfile
@@ -3,12 +3,12 @@ FROM cloudron/base:4.2.0@sha256:46da2fffb36353ef714f97ae8e962bd2c212ca091108d768
|
|||||||
RUN mkdir -p /app/code
|
RUN mkdir -p /app/code
|
||||||
WORKDIR /app/code
|
WORKDIR /app/code
|
||||||
|
|
||||||
ARG VERSION=RELEASE.2024-07-26T20-48-21Z
|
# renovate: datasource=github-releases depName=minio/minio versioning=regex:^RELEASE\.(?<major>\d{4})-(?<minor>\d{2})-(?<patch>\d{2})T(?<build>.+)
|
||||||
|
ARG MINIO_VERSION=RELEASE.2024-10-29T16-01-48Z
|
||||||
|
|
||||||
# sometimes here https://dl.min.io/server/minio/release/linux-amd64/archive/
|
RUN wget https://dl.min.io/server/minio/release/linux-amd64/archive/minio.${MINIO_VERSION} -O /app/code/minio && chmod +x /app/code/minio
|
||||||
# RUN wget https://dl.min.io/server/minio/release/linux-amd64/minio.${VERSION} -O /app/code/minio && chmod +x /app/code/minio
|
|
||||||
RUN wget https://dl.min.io/server/minio/release/linux-amd64/archive/minio.${VERSION} -O /app/code/minio && chmod +x /app/code/minio
|
# Latest CLI
|
||||||
# https://dl.min.io/client/mc/release/linux-amd64/
|
|
||||||
RUN wget https://dl.min.io/client/mc/release/linux-amd64/mc -O /app/code/mc && chmod +x /app/code/mc
|
RUN wget https://dl.min.io/client/mc/release/linux-amd64/mc -O /app/code/mc && chmod +x /app/code/mc
|
||||||
|
|
||||||
COPY env.sh.template start.sh /app/code/
|
COPY env.sh.template start.sh /app/code/
|
||||||
|
6
renovate.json
Normal file
6
renovate.json
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"extends": [
|
||||||
|
"local>devops/renovator//config/app/default.json5"
|
||||||
|
]
|
||||||
|
}
|
92
test/package-lock.json
generated
92
test/package-lock.json
generated
@@ -9,11 +9,11 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chromedriver": "^127.0.0",
|
"chromedriver": "^129.0.0",
|
||||||
"expect.js": "^0.3.1",
|
"expect.js": "^0.3.1",
|
||||||
"mocha": "^10.7.0",
|
"mocha": "^10.7.3",
|
||||||
"selenium-webdriver": "^4.23.0",
|
"selenium-webdriver": "^4.25.0",
|
||||||
"superagent": "^9.0.2"
|
"superagent": "^10.1.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@bazel/runfiles": {
|
"node_modules/@bazel/runfiles": {
|
||||||
@@ -118,11 +118,11 @@
|
|||||||
"integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
|
"integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
|
||||||
},
|
},
|
||||||
"node_modules/axios": {
|
"node_modules/axios": {
|
||||||
"version": "1.6.7",
|
"version": "1.7.4",
|
||||||
"resolved": "https://registry.npmjs.org/axios/-/axios-1.6.7.tgz",
|
"resolved": "https://registry.npmjs.org/axios/-/axios-1.7.4.tgz",
|
||||||
"integrity": "sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA==",
|
"integrity": "sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"follow-redirects": "^1.15.4",
|
"follow-redirects": "^1.15.6",
|
||||||
"form-data": "^4.0.0",
|
"form-data": "^4.0.0",
|
||||||
"proxy-from-env": "^1.1.0"
|
"proxy-from-env": "^1.1.0"
|
||||||
}
|
}
|
||||||
@@ -262,13 +262,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/chromedriver": {
|
"node_modules/chromedriver": {
|
||||||
"version": "127.0.0",
|
"version": "129.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-127.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-129.0.0.tgz",
|
||||||
"integrity": "sha512-/Jla24iL0ly/EI7i/q0ukANkpAWvAkSHbvC7FtBZXFJXe6klH0n/XT56VSBcBYB1iMgWM8kPwqF8pb9gdqN9UA==",
|
"integrity": "sha512-B1ccqD6hDjNrw94FeqdynIotn1ZV/TnFrkRz2Rync2kzSnq6D6IrSkN1w5Pnuvnc98QhN2xujxDXxkqEqy/PWg==",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@testim/chrome-version": "^1.1.4",
|
"@testim/chrome-version": "^1.1.4",
|
||||||
"axios": "^1.6.7",
|
"axios": "^1.7.4",
|
||||||
"compare-versions": "^6.1.0",
|
"compare-versions": "^6.1.0",
|
||||||
"extract-zip": "^2.0.1",
|
"extract-zip": "^2.0.1",
|
||||||
"proxy-agent": "^6.4.0",
|
"proxy-agent": "^6.4.0",
|
||||||
@@ -644,9 +644,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/follow-redirects": {
|
"node_modules/follow-redirects": {
|
||||||
"version": "1.15.5",
|
"version": "1.15.6",
|
||||||
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz",
|
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz",
|
||||||
"integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==",
|
"integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==",
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
"type": "individual",
|
"type": "individual",
|
||||||
@@ -1144,9 +1144,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/mocha": {
|
"node_modules/mocha": {
|
||||||
"version": "10.7.0",
|
"version": "10.7.3",
|
||||||
"resolved": "https://registry.npmjs.org/mocha/-/mocha-10.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/mocha/-/mocha-10.7.3.tgz",
|
||||||
"integrity": "sha512-v8/rBWr2VO5YkspYINnvu81inSz2y3ODJrhO175/Exzor1RcEZZkizgE2A+w/CAXXoESS8Kys5E62dOHGHzULA==",
|
"integrity": "sha512-uQWxAu44wwiACGqjbPYmjo7Lg8sFrS3dQe7PP2FQI+woptP4vZXSMcfMyFL/e1yFEeEpV4RtyTpZROOKmxis+A==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ansi-colors": "^4.1.3",
|
"ansi-colors": "^4.1.3",
|
||||||
"browser-stdout": "^1.3.1",
|
"browser-stdout": "^1.3.1",
|
||||||
@@ -1430,14 +1430,14 @@
|
|||||||
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
|
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
|
||||||
},
|
},
|
||||||
"node_modules/selenium-webdriver": {
|
"node_modules/selenium-webdriver": {
|
||||||
"version": "4.23.0",
|
"version": "4.25.0",
|
||||||
"resolved": "https://registry.npmjs.org/selenium-webdriver/-/selenium-webdriver-4.23.0.tgz",
|
"resolved": "https://registry.npmjs.org/selenium-webdriver/-/selenium-webdriver-4.25.0.tgz",
|
||||||
"integrity": "sha512-DdvtInpnMt95Td8VApvmAw7oSydBD9twIRXqoMyRoGMvL1dAnMFxdrwnW6L0d/pF/uoNTjbVUarwGZ9wIGNStA==",
|
"integrity": "sha512-zl9IX93caOT8wbcCpZzAkEtYa+hNgJ4C5GUN8uhpzggqRLvsg1asfKi0p1uNZC8buYVvsBZbx8S+9MjVAjs4oA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@bazel/runfiles": "^5.8.1",
|
"@bazel/runfiles": "^5.8.1",
|
||||||
"jszip": "^3.10.1",
|
"jszip": "^3.10.1",
|
||||||
"tmp": "^0.2.3",
|
"tmp": "^0.2.3",
|
||||||
"ws": "^8.17.1"
|
"ws": "^8.18.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 14.21.0"
|
"node": ">= 14.21.0"
|
||||||
@@ -1558,9 +1558,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/superagent": {
|
"node_modules/superagent": {
|
||||||
"version": "9.0.2",
|
"version": "10.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/superagent/-/superagent-9.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/superagent/-/superagent-10.1.0.tgz",
|
||||||
"integrity": "sha512-xuW7dzkUpcJq7QnhOsnNUgtYp3xRwpt2F7abdRYIpCsAt0hhUqia0EdxyXZQQpNmGtsCzYHryaKSV3q3GJnq7w==",
|
"integrity": "sha512-JMmik7PbnXGlq7g528Gi6apHbVbTz2vrE3du6fuG4kIPSb2PnLoSOPvfjKn8aQYuJcBWAKW6ZG90qPPsE5jZxQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"component-emitter": "^1.3.0",
|
"component-emitter": "^1.3.0",
|
||||||
"cookiejar": "^2.1.4",
|
"cookiejar": "^2.1.4",
|
||||||
@@ -1931,11 +1931,11 @@
|
|||||||
"integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
|
"integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
|
||||||
},
|
},
|
||||||
"axios": {
|
"axios": {
|
||||||
"version": "1.6.7",
|
"version": "1.7.4",
|
||||||
"resolved": "https://registry.npmjs.org/axios/-/axios-1.6.7.tgz",
|
"resolved": "https://registry.npmjs.org/axios/-/axios-1.7.4.tgz",
|
||||||
"integrity": "sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA==",
|
"integrity": "sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"follow-redirects": "^1.15.4",
|
"follow-redirects": "^1.15.6",
|
||||||
"form-data": "^4.0.0",
|
"form-data": "^4.0.0",
|
||||||
"proxy-from-env": "^1.1.0"
|
"proxy-from-env": "^1.1.0"
|
||||||
}
|
}
|
||||||
@@ -2033,12 +2033,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"chromedriver": {
|
"chromedriver": {
|
||||||
"version": "127.0.0",
|
"version": "129.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-127.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-129.0.0.tgz",
|
||||||
"integrity": "sha512-/Jla24iL0ly/EI7i/q0ukANkpAWvAkSHbvC7FtBZXFJXe6klH0n/XT56VSBcBYB1iMgWM8kPwqF8pb9gdqN9UA==",
|
"integrity": "sha512-B1ccqD6hDjNrw94FeqdynIotn1ZV/TnFrkRz2Rync2kzSnq6D6IrSkN1w5Pnuvnc98QhN2xujxDXxkqEqy/PWg==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@testim/chrome-version": "^1.1.4",
|
"@testim/chrome-version": "^1.1.4",
|
||||||
"axios": "^1.6.7",
|
"axios": "^1.7.4",
|
||||||
"compare-versions": "^6.1.0",
|
"compare-versions": "^6.1.0",
|
||||||
"extract-zip": "^2.0.1",
|
"extract-zip": "^2.0.1",
|
||||||
"proxy-agent": "^6.4.0",
|
"proxy-agent": "^6.4.0",
|
||||||
@@ -2303,9 +2303,9 @@
|
|||||||
"integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ=="
|
"integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ=="
|
||||||
},
|
},
|
||||||
"follow-redirects": {
|
"follow-redirects": {
|
||||||
"version": "1.15.5",
|
"version": "1.15.6",
|
||||||
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz",
|
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz",
|
||||||
"integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw=="
|
"integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA=="
|
||||||
},
|
},
|
||||||
"form-data": {
|
"form-data": {
|
||||||
"version": "4.0.0",
|
"version": "4.0.0",
|
||||||
@@ -2648,9 +2648,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mocha": {
|
"mocha": {
|
||||||
"version": "10.7.0",
|
"version": "10.7.3",
|
||||||
"resolved": "https://registry.npmjs.org/mocha/-/mocha-10.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/mocha/-/mocha-10.7.3.tgz",
|
||||||
"integrity": "sha512-v8/rBWr2VO5YkspYINnvu81inSz2y3ODJrhO175/Exzor1RcEZZkizgE2A+w/CAXXoESS8Kys5E62dOHGHzULA==",
|
"integrity": "sha512-uQWxAu44wwiACGqjbPYmjo7Lg8sFrS3dQe7PP2FQI+woptP4vZXSMcfMyFL/e1yFEeEpV4RtyTpZROOKmxis+A==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"ansi-colors": "^4.1.3",
|
"ansi-colors": "^4.1.3",
|
||||||
"browser-stdout": "^1.3.1",
|
"browser-stdout": "^1.3.1",
|
||||||
@@ -2871,14 +2871,14 @@
|
|||||||
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
|
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
|
||||||
},
|
},
|
||||||
"selenium-webdriver": {
|
"selenium-webdriver": {
|
||||||
"version": "4.23.0",
|
"version": "4.25.0",
|
||||||
"resolved": "https://registry.npmjs.org/selenium-webdriver/-/selenium-webdriver-4.23.0.tgz",
|
"resolved": "https://registry.npmjs.org/selenium-webdriver/-/selenium-webdriver-4.25.0.tgz",
|
||||||
"integrity": "sha512-DdvtInpnMt95Td8VApvmAw7oSydBD9twIRXqoMyRoGMvL1dAnMFxdrwnW6L0d/pF/uoNTjbVUarwGZ9wIGNStA==",
|
"integrity": "sha512-zl9IX93caOT8wbcCpZzAkEtYa+hNgJ4C5GUN8uhpzggqRLvsg1asfKi0p1uNZC8buYVvsBZbx8S+9MjVAjs4oA==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@bazel/runfiles": "^5.8.1",
|
"@bazel/runfiles": "^5.8.1",
|
||||||
"jszip": "^3.10.1",
|
"jszip": "^3.10.1",
|
||||||
"tmp": "^0.2.3",
|
"tmp": "^0.2.3",
|
||||||
"ws": "^8.17.1"
|
"ws": "^8.18.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"serialize-javascript": {
|
"serialize-javascript": {
|
||||||
@@ -2967,9 +2967,9 @@
|
|||||||
"integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig=="
|
"integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig=="
|
||||||
},
|
},
|
||||||
"superagent": {
|
"superagent": {
|
||||||
"version": "9.0.2",
|
"version": "10.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/superagent/-/superagent-9.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/superagent/-/superagent-10.1.0.tgz",
|
||||||
"integrity": "sha512-xuW7dzkUpcJq7QnhOsnNUgtYp3xRwpt2F7abdRYIpCsAt0hhUqia0EdxyXZQQpNmGtsCzYHryaKSV3q3GJnq7w==",
|
"integrity": "sha512-JMmik7PbnXGlq7g528Gi6apHbVbTz2vrE3du6fuG4kIPSb2PnLoSOPvfjKn8aQYuJcBWAKW6ZG90qPPsE5jZxQ==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"component-emitter": "^1.3.0",
|
"component-emitter": "^1.3.0",
|
||||||
"cookiejar": "^2.1.4",
|
"cookiejar": "^2.1.4",
|
||||||
|
@@ -9,10 +9,10 @@
|
|||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chromedriver": "^127.0.0",
|
"chromedriver": "^129.0.0",
|
||||||
"expect.js": "^0.3.1",
|
"expect.js": "^0.3.1",
|
||||||
"mocha": "^10.7.0",
|
"mocha": "^10.7.3",
|
||||||
"selenium-webdriver": "^4.23.0",
|
"selenium-webdriver": "^4.25.0",
|
||||||
"superagent": "^9.0.2"
|
"superagent": "^10.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
28
test/test.js
28
test/test.js
@@ -1,11 +1,7 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
/* jshint esversion: 8 */
|
/* jshint esversion: 8 */
|
||||||
/* global describe */
|
/* global it, xit, describe, before, after, afterEach */
|
||||||
/* global before */
|
|
||||||
/* global after */
|
|
||||||
/* global it */
|
|
||||||
/* global xit */
|
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
@@ -28,24 +24,38 @@ if (!process.env.USERNAME || !process.env.PASSWORD) {
|
|||||||
describe('Application life cycle test', function () {
|
describe('Application life cycle test', function () {
|
||||||
this.timeout(0);
|
this.timeout(0);
|
||||||
|
|
||||||
const LOCATION = 'test';
|
const LOCATION = process.env.LOCATION || 'test';
|
||||||
const TEST_TIMEOUT = parseInt(process.env.TIMEOUT, 10) || 30000;
|
const TEST_TIMEOUT = parseInt(process.env.TIMEOUT, 10) || 30000;
|
||||||
const BUCKET = 'cloudrontestbucket';
|
const BUCKET = 'cloudrontestbucket';
|
||||||
const EXEC_ARGS = { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' };
|
const EXEC_ARGS = { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' };
|
||||||
|
|
||||||
let browser, app;
|
let browser, app;
|
||||||
let athenticated_by_oidc = false, rootPassword;
|
let athenticated_by_oidc = false, rootPassword;
|
||||||
let username = process.env.USERNAME;
|
const username = process.env.USERNAME;
|
||||||
let password = process.env.PASSWORD;
|
const password = process.env.PASSWORD;
|
||||||
|
|
||||||
before(function () {
|
before(function () {
|
||||||
browser = new Builder().forBrowser('chrome').setChromeOptions(new Options().windowSize({ width: 1280, height: 1024 })).build();
|
const chromeOptions = new Options().windowSize({ width: 1280, height: 1024 });
|
||||||
|
if (process.env.CI) chromeOptions.addArguments('no-sandbox', 'disable-dev-shm-usage', 'headless');
|
||||||
|
browser = new Builder().forBrowser('chrome').setChromeOptions(chromeOptions).build();
|
||||||
|
if (!fs.existsSync('./screenshots')) fs.mkdirSync('./screenshots');
|
||||||
});
|
});
|
||||||
|
|
||||||
after(function () {
|
after(function () {
|
||||||
browser.quit();
|
browser.quit();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
afterEach(async function () {
|
||||||
|
if (!process.env.CI || !app) return;
|
||||||
|
|
||||||
|
const currentUrl = await browser.getCurrentUrl();
|
||||||
|
if (!currentUrl.includes(app.domain)) return;
|
||||||
|
expect(this.currentTest.title).to.be.a('string');
|
||||||
|
|
||||||
|
const screenshotData = await browser.takeScreenshot();
|
||||||
|
fs.writeFileSync(`./screenshots/${new Date().getTime()}-${this.currentTest.title.replaceAll(' ', '_')}.png`, screenshotData, 'base64');
|
||||||
|
});
|
||||||
|
|
||||||
async function waitForElement(elem) {
|
async function waitForElement(elem) {
|
||||||
await browser.wait(until.elementLocated(elem), TEST_TIMEOUT);
|
await browser.wait(until.elementLocated(elem), TEST_TIMEOUT);
|
||||||
await browser.wait(until.elementIsVisible(browser.findElement(elem)), TEST_TIMEOUT);
|
await browser.wait(until.elementIsVisible(browser.findElement(elem)), TEST_TIMEOUT);
|
||||||
|
Reference in New Issue
Block a user