From 4e30d0746c9c5e9bb56fb78022fa2624ba117304 Mon Sep 17 00:00:00 2001
From: Maciej Szymanski <maciej.szymanski@cern.ch>
Date: Mon, 30 May 2022 10:48:21 +0200
Subject: [PATCH] Remove zip suffix from the artifacts filename

---
 tests/test_trigger_deployment.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/test_trigger_deployment.py b/tests/test_trigger_deployment.py
index 19c0fc2..2cf62b9 100644
--- a/tests/test_trigger_deployment.py
+++ b/tests/test_trigger_deployment.py
@@ -44,7 +44,7 @@ def test_trigger_deployment(mock_req, mock_conf, tmp_path):
     mock_req.assert_called_with(
         "http://my-hook/install/nightlies/MyProject/HEAD/",
         params={
-            "url": "http://my-artifacts.repo/checkout/MyProject/2d/2df4f6746f6bc50e61c81b787bce2922ccbdee28bb52c10ae0489080575dd2fe.zip"
+            "url": "http://my-artifacts.repo/checkout/MyProject/2d/2df4f6746f6bc50e61c81b787bce2922ccbdee28bb52c10ae0489080575dd2fe"
         },
         headers={"Authorization": "Bearer asdf"},
     )
@@ -54,10 +54,10 @@ def test_trigger_deployment(mock_req, mock_conf, tmp_path):
     # artifact_name has to be specified for triggering binaries
     with raises(ValueError):
         target.trigger_deployment()
-    target.trigger_deployment("artifact_name.zip")
+    target.trigger_deployment("artifact_name")
     mock_req.assert_called_with(
         "http://my-hook/install/nightlies/MyProject/HEAD/InstallArea/x86_64_v2-centos7-gcc11-opt/",
-        params={"url": "http://my-artifacts.repo/artifact_name.zip"},
+        params={"url": "http://my-artifacts.repo/artifact_name"},
         headers={"Authorization": "Bearer asdf"},
     )
     slot = Slot("test-my-slot", projects=[project])
@@ -77,7 +77,7 @@ def test_trigger_deployment(mock_req, mock_conf, tmp_path):
     mock_req.assert_called_with(
         "http://my-hook/install/nightlies/DBASE/Group/APackage/",
         params={
-            "url": "http://my-artifacts.repo/checkout/Group/APackage/2d/2d3e8058ebe13fb64fa78ccf9f253284a6c651ef7fc613a242f302ffc643d266.zip"
+            "url": "http://my-artifacts.repo/checkout/Group/APackage/2d/2d3e8058ebe13fb64fa78ccf9f253284a6c651ef7fc613a242f302ffc643d266"
         },
         headers={"Authorization": "Bearer asdf"},
     )
-- 
GitLab