From fe7d60340c682f942d3efb3d989ee7647b821266 Mon Sep 17 00:00:00 2001
From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com>
Date: Wed, 15 Apr 2026 17:00:59 +0200
Subject: [PATCH] test: align event fixtures with context.ts
---
tests/fixtures/allowed-event.json | 61 ++++++++++++---------
tests/fixtures/blocked-event-real-user.json | 29 ----------
tests/fixtures/blocked-event.json | 61 ++++++++++++---------
3 files changed, 68 insertions(+), 83 deletions(-)
delete mode 100644 tests/fixtures/blocked-event-real-user.json
diff --git a/tests/fixtures/allowed-event.json b/tests/fixtures/allowed-event.json
index e2faad9..f64e004 100644
--- a/tests/fixtures/allowed-event.json
+++ b/tests/fixtures/allowed-event.json
@@ -1,29 +1,36 @@
{
- "action": "opened",
- "number": 8022,
- "pull_request": {
- "number": 8022,
- "title": "feat(service): upgrade formbricks to v4",
- "body": "### Changes\r\n\r\n- feat(service): upgrade formbricks to v4 with all the necessary changes\r\n\r\n### Issue \r\n\r\n- fixes https://github.com/coollabsio/coolify/issues/8015\r\n\r\n\r\n### Category\r\n\r\n- [x] Fixing or updating existing one click service\r\n\r\n\r\n### Screenshots or Video (if applicable) \r\n\r\nhttps://github.com/user-attachments/assets/b8d21ff3-4109-4807-8ec9-f0262631a91d\r\n\r\n\r\n### AI Usage\r\n\r\n- [x] AI is NOT used in the process of creating this PR\r\n\r\n\r\n### Steps to Test\r\n\r\n- Step 1 – Deploy formbricks using the compose in this PR\r\n- Step 2 – wait for 5mins (db migration and startup stuffs)\r\n- Step 3 – visit the service url\r\n\r\n\r\n### Notes\r\n\r\n> For the initial startup formbricks takes 5 minutes so during this time visiting the url will throw 404. I tried deploying it multiple times and this behavior is consistent all the time.\r\n\r\n
\r\n\r\n\r\n\r\n### Contributor Agreement\r\n\r\n> [!IMPORTANT]\r\n > - [x] I have read and understood the [contributor guidelines](https://github.com/coollabsio/coolify/blob/v4.x/CONTRIBUTING.md). If I have failed to follow any guideline, I understand that this PR may be closed without review.\r\n > - [x] I have tested the changes thoroughly and am confident that they will work as expected without issues when the maintainer tests them\r\n \r\n",
- "draft": false,
- "html_url": "https://github.com/coollabsio/coolify/pull/8022",
- "user": {
- "login": "ShadowArcanist"
- },
- "head": {
- "ref": "shadow/fix-formbricks",
- "sha": "893c7cc26987a58d6bb37f3b0b8e33f86e4cd5cf"
- },
- "base": {
- "ref": "next",
- "repo": {
- "html_url": "https://github.com/coollabsio/coolify",
- "default_branch": "v4.x"
- }
- },
- "labels": [],
- "milestone": null,
- "author_association": "NONE",
- "maintainer_can_modify": true
- }
+ "action": "opened",
+ "repository": {
+ "owner": {
+ "login": "coollabsio"
+ },
+ "name": "coolify"
+ },
+ "pull_request": {
+ "number": 8022,
+ "title": "feat(service): upgrade formbricks to v4",
+ "body": "### Changes\r\n\r\n- feat(service): upgrade formbricks to v4 with all the necessary changes\r\n\r\n### Issue \r\n\r\n- fixes https://github.com/coollabsio/coolify/issues/8015\r\n\r\n\r\n### Category\r\n\r\n- [x] Fixing or updating existing one click service\r\n\r\n\r\n### Screenshots or Video (if applicable) \r\n\r\nhttps://github.com/user-attachments/assets/b8d21ff3-4109-4807-8ec9-f0262631a91d\r\n\r\n\r\n### AI Usage\r\n\r\n- [x] AI is NOT used in the process of creating this PR\r\n\r\n\r\n### Steps to Test\r\n\r\n- Step 1 – Deploy formbricks using the compose in this PR\r\n- Step 2 – wait for 5mins (db migration and startup stuffs)\r\n- Step 3 – visit the service url\r\n\r\n\r\n### Notes\r\n\r\n> For the initial startup formbricks takes 5 minutes so during this time visiting the url will throw 404. I tried deploying it multiple times and this behavior is consistent all the time.\r\n\r\n
\r\n\r\n\r\n\r\n### Contributor Agreement\r\n\r\n> [!IMPORTANT]\r\n > - [x] I have read and understood the [contributor guidelines](https://github.com/coollabsio/coolify/blob/v4.x/CONTRIBUTING.md). If I have failed to follow any guideline, I understand that this PR may be closed without review.\r\n > - [x] I have tested the changes thoroughly and am confident that they will work as expected without issues when the maintainer tests them\r\n \r\n",
+ "base": {
+ "ref": "next",
+ "repo": {
+ "html_url": "https://github.com/coollabsio/coolify",
+ "default_branch": "v4.x"
+ }
+ },
+ "head": {
+ "ref": "shadow/fix-formbricks",
+ "sha": "893c7cc26987a58d6bb37f3b0b8e33f86e4cd5cf"
+ },
+ "user": {
+ "login": "ShadowArcanist"
+ },
+ "author_association": "NONE",
+ "labels": [],
+ "milestone": null,
+ "draft": false,
+ "maintainer_can_modify": true,
+ "changed_files": 3,
+ "additions": 50,
+ "deletions": 20
+ }
}
diff --git a/tests/fixtures/blocked-event-real-user.json b/tests/fixtures/blocked-event-real-user.json
deleted file mode 100644
index d7c49bb..0000000
--- a/tests/fixtures/blocked-event-real-user.json
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "action": "opened",
- "number": 8438,
- "pull_request": {
- "number": 8438,
- "title": "feat(server): add Debian 13 (Trixie) support for server validation",
- "body": "/claim #8154\r\n\r\n### Changes\r\n\r\n- **Server OS validation (`app/Models/Server.php`):** Added Debian 13 (Trixie) support by including `trixie` in the list of recognized Debian version codenames. When `/etc/os-release` has an empty or missing `ID` but `VERSION_CODENAME` is a known Debian codename (stretch, buster, bullseye, bookworm, trixie), `ID` is set to `debian` so the server is accepted. Tightened parsing of `/etc/os-release` (skip empty/invalid lines) and made `validateOS()` return the matching SUPPORTED_OS string consistently.\r\n- **InstallPrerequisites:** No change to Debian commands; existing apt flow works for Trixie. Added an explicit branch for Alpine Linux with a clear error message instead of the generic \"Unsupported OS type.\"\r\n- **InstallDocker:** Documented in `getDebianDockerInstallCommand()` that the fallback uses `VERSION_CODENAME` (e.g. trixie) for the Docker APT suite so all Debian versions, including 13, are supported.\r\n- **Tests:** Added `tests/Unit/ServerValidateOsSupportTest.php` asserting that SUPPORTED_OS includes the debian family and that the Debian codename list used in `validateOS()` includes `trixie` and `bookworm`.\r\n\r\n### Issues\r\n\r\n- Addresses the enhancement for additional server support for Debian 13.\r\n\r\n### Category\r\n- [ ] Bug fix\r\n- [x] New feature\r\n- [ ] Adding new one click service\r\n- [ ] Fixing or updating existing one click service\r\n\r\n### Screenshots or Video (if applicable)\r\n\r\nN/A – backend validation only. Optional: screen recording of adding a Debian 13 server and running \"Install Prerequisites\" / Docker install without \"Unsupported OS type\" error.\r\n\r\n### AI Usage\r\n- [ ] AI is used in the process of creating this PR\r\n- [x] AI is NOT used in the process of creating this PR\r\n\r\n### Steps to Test\r\n\r\n- **Step 1** – Run unit tests: `./vendor/bin/pest tests/Unit/ServerValidateOsSupportTest.php`. Expect 2 tests, 4 assertions, all passing.\r\n- **Step 2** – (Optional, requires a Debian 13 server.) Add a new server in Coolify with SSH access to a host running Debian 13 (Trixie). Confirm the server is detected (no \"Server OS type is not supported\" during validation).\r\n- **Step 3** – On that server, run **Install Prerequisites** from the server page. Expect success and \"Prerequisites installed successfully\" (no \"Unsupported OS type for prerequisites installation\").\r\n- **Step 4** – On that server, run Docker installation if not already installed. Expect Docker to install using the Debian path (e.g. `deb [arch=...] https://download.docker.com/linux/debian trixie stable`).\r\n\r\n### Contributor Agreement\r\n\r\n> [!IMPORTANT]\r\n>\r\n> - [x] I have read and understood the [contributor guidelines](https://github.com/coollabsio/coolify/blob/v4.x/CONTRIBUTING.md). If I have failed to follow any guideline, I understand that this PR may be closed without review.\r\n> - [x] I have tested the changes thoroughly and am confident that they will work as expected without issues when the maintainer tests them",
- "draft": false,
- "html_url": "https://github.com/coollabsio/coolify/pull/8438",
- "user": {
- "login": "matiasmagni"
- },
- "head": {
- "ref": "feature/8154-debian-13-support-clean",
- "sha": "6e4052f602ec6bf044338c680e591812db754b6d"
- },
- "base": {
- "ref": "v4.x",
- "repo": {
- "html_url": "https://github.com/coollabsio/coolify",
- "default_branch": "v4.x"
- }
- },
- "labels": [],
- "milestone": null,
- "author_association": "NONE",
- "maintainer_can_modify": false
- }
-}
diff --git a/tests/fixtures/blocked-event.json b/tests/fixtures/blocked-event.json
index 9cda4b6..86db939 100644
--- a/tests/fixtures/blocked-event.json
+++ b/tests/fixtures/blocked-event.json
@@ -1,29 +1,36 @@
{
- "action": "opened",
- "number": 8309,
- "pull_request": {
- "number": 8309,
- "title": "Update README and stuff",
- "body": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.\n\nDuis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\n\nGenerated with Claude Code 🤖✨\n\nCloses #123",
- "draft": false,
- "html_url": "https://github.com/coollabsio/coolify/pull/8309",
- "user": {
- "login": "nylyy0325"
- },
- "head": {
- "ref": "main",
- "sha": "bd36d0d1e2c8b2ee028fa81672e8fc79f01e414c"
- },
- "base": {
- "ref": "v4.x",
- "repo": {
- "html_url": "https://github.com/coollabsio/coolify",
- "default_branch": "v4.x"
- }
- },
- "labels": [],
- "milestone": null,
- "author_association": "NONE",
- "maintainer_can_modify": false
- }
+ "action": "opened",
+ "repository": {
+ "owner": {
+ "login": "coollabsio"
+ },
+ "name": "coolify"
+ },
+ "pull_request": {
+ "number": 8309,
+ "title": "Update README and stuff",
+ "body": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.\n\nDuis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\n\nGenerated with Claude Code\n\nCloses #123",
+ "base": {
+ "ref": "v4.x",
+ "repo": {
+ "html_url": "https://github.com/coollabsio/coolify",
+ "default_branch": "v4.x"
+ }
+ },
+ "head": {
+ "ref": "main",
+ "sha": "bd36d0d1e2c8b2ee028fa81672e8fc79f01e414c"
+ },
+ "user": {
+ "login": "nylyy0325"
+ },
+ "author_association": "NONE",
+ "labels": [],
+ "milestone": null,
+ "draft": false,
+ "maintainer_can_modify": false,
+ "changed_files": 100,
+ "additions": 500,
+ "deletions": 200
+ }
}