From 90032241591b7b19eed4522d41bf4440073ed8e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toni=20Viemero=CC=88?= Date: Mon, 19 May 2025 17:56:48 +0300 Subject: [PATCH 1/3] Fix Leia testing --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9369fb5..e168957 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "docs:preview": "vitepress preview docs", "lint": "eslint . --ext .js --ext .mjs ", "test:unit": "nyc --reporter=html --reporter=text mocha --timeout 5000 test/**/*.spec.js", - "test:leia": "npm run leia \"examples/**/README.md\" -c 'Destroy tests' --stdin", + "test:leia": "leia \"examples/**/README.md\" -c 'Destroy tests' --stdin", "test": "npm run lint && npm run test:unit" }, "dependencies": { From e09fa581600e0142c465a8ef633a49a65b34947c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toni=20Viemero=CC=88?= Date: Mon, 19 May 2025 17:57:34 +0300 Subject: [PATCH 2/3] Add Redis 8 --- builders/redis.js | 2 +- examples/8.x/.gitignore | 1 + examples/8.x/.lando.yml | 14 ++++++++++++ examples/8.x/README.md | 50 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 examples/8.x/.gitignore create mode 100644 examples/8.x/.lando.yml create mode 100644 examples/8.x/README.md diff --git a/builders/redis.js b/builders/redis.js index 4730f0e..b446c50 100644 --- a/builders/redis.js +++ b/builders/redis.js @@ -9,7 +9,7 @@ module.exports = { name: 'redis', config: { version: '5', - supported: ['7', '7.0', '6', '6.0', '5', '5.0', '4', '4.0', '2.8'], + supported: ['8', '8.0', '7', '7.0', '6', '6.0', '5', '5.0', '4', '4.0', '2.8'], patchesSupported: true, confSrc: path.join(__dirname, '..', 'config'), persist: false, diff --git a/examples/8.x/.gitignore b/examples/8.x/.gitignore new file mode 100644 index 0000000..397b4a7 --- /dev/null +++ b/examples/8.x/.gitignore @@ -0,0 +1 @@ +*.log diff --git a/examples/8.x/.lando.yml b/examples/8.x/.lando.yml new file mode 100644 index 0000000..63cad26 --- /dev/null +++ b/examples/8.x/.lando.yml @@ -0,0 +1,14 @@ +name: lando-redis-8 +services: + defaults: + type: redis:8 + patch: + type: redis:8.0.1 + password: + type: redis:8 + password: nerfherder + +# This is important because it lets lando know to test against the plugin in this repo +# DO NOT REMOVE THIS! +plugins: + "@lando/redis": ./../../ diff --git a/examples/8.x/README.md b/examples/8.x/README.md new file mode 100644 index 0000000..7bf197e --- /dev/null +++ b/examples/8.x/README.md @@ -0,0 +1,50 @@ +Redis Example +============= + +This example exists primarily to test the following documentation: + +* [Redis Service](https://docs.devwithlando.io/tutorials/redis.html) + +Start up tests +-------------- + +Run the following commands to get up and running with this example. + +```bash +# Should start up successfully +lando poweroff +lando start +``` + +Verification commands +--------------------- + +Run the following commands to validate things are rolling as they should. + +```bash +# Should use 8.x as the default version +lando ssh -s defaults -c "redis-server --version | grep v=8." + +# Should be able to connect to redis +lando ssh -s defaults -c "redis-cli CONFIG GET databases" + +# Should be able to connect to redis w/password +lando ssh -s password -c "redis-cli --pass nerfherder CONFIG GET databases" + +# Should use the user specifiec patch version if given +lando ssh -s patch -c "redis-server --version | grep v=8.0.1" + +# Should include the redis-cli +lando ssh -s defaults -c "redis-cli --version" +``` + +Destroy tests +------------- + +Run the following commands to trash this app like nothing ever happened. + +```bash +# Should be destroyed with success +lando destroy -y +lando poweroff +``` From 782496e6cdb6c7ff712d6d711c7b9b35e8c1fca5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toni=20Viemero=CC=88?= Date: Mon, 19 May 2025 17:57:44 +0300 Subject: [PATCH 3/3] Changelog entries --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 375cf57..6bf23ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }}) +* Added Redis 8 +* Fix Leia testing + ## v1.2.3 - [December 6, 2024](https://github.com/lando/redis/releases/tag/v1.2.3) * Updated the version index.md to get Docuverse page to build correctly.