From 80d6cf2f59b36b608b3359375e4cfa2884fb4c79 Mon Sep 17 00:00:00 2001 From: LaFeev Date: Tue, 2 Sep 2025 10:00:44 -0500 Subject: [PATCH] add URL tests for power_automate flag and native URL support of alternative Power Automate URL. --- tests/test_plugin_workflows.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/tests/test_plugin_workflows.py b/tests/test_plugin_workflows.py index 50f375e5..ea49b87b 100644 --- a/tests/test_plugin_workflows.py +++ b/tests/test_plugin_workflows.py @@ -135,6 +135,15 @@ apprise_url_tests = ( "privacy_url": "workflow://host:443/w...b/s...e/", }, ), + ( + "workflows://host:443/workflow1e/signature/?power_automate=yes", + { + # support power_automate flag + "instance": NotifyWorkflows, + # Our expected power_automate flag (defaults to False) + "self": {"power_automate": True}, + }, + ), # Support native URLs ( ( @@ -150,6 +159,22 @@ apprise_url_tests = ( "privacy_url": "workflow://server.azure.com:443/6...4/K...u/", }, ), + ( + ( + "https://server.azure.com:443/" + "powerautomate/automations/direct/" + "workflows/643e69f83c8944/" + "triggers/manual/paths/invoke?" + "api-version=2022-03-01-preview&sp=%2Ftriggers%2Fmanual%2Frun&" + "sv=1.0&sig=KODuebWbDGYFr0z0eu" + ), + { + # Power-Automate alternative URL - All tokens provided - we're good + "instance": NotifyWorkflows, + # Our expected power_automate flag (defaults to False) + "self": {"power_automate": True}, + }, + ), ( "workflow://host:443/workflow2/signature/", {