Notification test is working but fail when it's for real

At this stage you have 0 decisions for the incoming alert and since this is the first profile if your template relies on Alert.Decisions to generate text (if you copied it from the docs then yes it relies on it) then since there is none it will be empty hence why gotify is returning a non 200 status.

The test command, generates an alert with a single decision so that is why test works and the actual pipeline wont, best to remove this profile and enable notifications on both default_ip_remediation and default_range_remediation if applicable.

if you want to keep that notifications are defined in a single profile, then you would need to flip the logic EG: this profile is last and you remove the break statements from the others so when the alerts get to the last profile then it will already have decisions generate by the previous. However, this is not recommend depending if you decide to make a more complex profiles as you may get lost in the filter logic and which breaks where.