From 335a46e8133f590441795b4e9245ef4b74e0fb80 Mon Sep 17 00:00:00 2001
From: Daniel <d.hornung@indiscale.com>
Date: Fri, 22 Nov 2024 16:00:46 +0100
Subject: [PATCH] WIP: Pipeline should fail with current code.

---
 test/docker/Dockerfile                        |  4 +--
 .../ext_file_download/test_zip_files.py       | 33 +++++++++++++++++++
 .../ext_table_preview/requirements.txt        |  2 +-
 3 files changed, 36 insertions(+), 3 deletions(-)
 create mode 100644 test/server_side_scripting/ext_file_download/test_zip_files.py

diff --git a/test/docker/Dockerfile b/test/docker/Dockerfile
index 6a14c502..8ac2ec78 100644
--- a/test/docker/Dockerfile
+++ b/test/docker/Dockerfile
@@ -15,10 +15,10 @@ RUN  apt-get update \
 RUN pip3 install pylint pytest
 # TODO rename to linkahead
 # RUN pip3 install caosdb>=0.7.4
-RUN pip3 install git+https://gitlab.com/caosdb/caosdb-pylib.git@f-linkahead-rename
+RUN pip3 install git+https://gitlab.com/caosdb/caosdb-pylib.git@dev
 RUN pip3 install pandas
 # TODO rename to linkahead
-RUN pip3 install git+https://gitlab.com/caosdb/caosdb-advanced-user-tools.git@f-linkahead-rename
+RUN pip3 install git+https://gitlab.com/caosdb/caosdb-advanced-user-tools.git@dev
 # For automatic documentation
 # RUN npm install -g jsdoc
 # RUN npm install -g jsdoc-sphinx
diff --git a/test/server_side_scripting/ext_file_download/test_zip_files.py b/test/server_side_scripting/ext_file_download/test_zip_files.py
new file mode 100644
index 00000000..d42b49b0
--- /dev/null
+++ b/test/server_side_scripting/ext_file_download/test_zip_files.py
@@ -0,0 +1,33 @@
+#!/usr/bin/env python3
+# encoding: utf-8
+#
+# This file is a part of the LinkAhead Project.
+#
+# Copyright (C) 2024 IndiScale GmbH <info@indiscale.com>
+# Copyright (C) 2024 Daniel Hornung <d.hornung@indiscale.com>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <https://www.gnu.org/licenses/>.
+#
+
+import os
+import unittest
+
+import linkahead as db
+from linkahead.common.models import _parse_single_xml_element
+from lxml import etree
+from zip_files import (collect_files_in_zip)
+
+
+class ZipTest(unittest.TestCase):
+    pass
diff --git a/test/server_side_scripting/ext_table_preview/requirements.txt b/test/server_side_scripting/ext_table_preview/requirements.txt
index 828669fd..d52075bb 100644
--- a/test/server_side_scripting/ext_table_preview/requirements.txt
+++ b/test/server_side_scripting/ext_table_preview/requirements.txt
@@ -1,4 +1,4 @@
+linkahead
 # TODO rename to linkahead
-caosdb
 caosadvancedtools
 pandas
-- 
GitLab