From 4901cf78ad11ee22ace63f94da3bf8c700978964 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Sat, 4 May 2019 09:47:33 +0300 Subject: [PATCH] tests reorganized --- testenv/tests/apps/cleanup/__init__.py | 20 +++++++++++++++++++ .../{test_cleanup.py => cleanup/test_main.py} | 0 testenv/tests/apps/htpasswd/__init__.py | 20 +++++++++++++++++++ .../test_main.py} | 0 .../kvmd/test_auth.py} | 0 testenv/tests/plugins/__init__.py | 20 +++++++++++++++++++ testenv/tests/{ => plugins}/auth/__init__.py | 0 .../auth/test_htpasswd.py} | 0 .../auth/test_http.py} | 0 9 files changed, 60 insertions(+) create mode 100644 testenv/tests/apps/cleanup/__init__.py rename testenv/tests/apps/{test_cleanup.py => cleanup/test_main.py} (100%) create mode 100644 testenv/tests/apps/htpasswd/__init__.py rename testenv/tests/apps/{test_htpasswd.py => htpasswd/test_main.py} (100%) rename testenv/tests/{auth/test_manager.py => apps/kvmd/test_auth.py} (100%) create mode 100644 testenv/tests/plugins/__init__.py rename testenv/tests/{ => plugins}/auth/__init__.py (100%) rename testenv/tests/{auth/test_service_htpasswd.py => plugins/auth/test_htpasswd.py} (100%) rename testenv/tests/{auth/test_service_http.py => plugins/auth/test_http.py} (100%) diff --git a/testenv/tests/apps/cleanup/__init__.py b/testenv/tests/apps/cleanup/__init__.py new file mode 100644 index 00000000..1e91f7fa --- /dev/null +++ b/testenv/tests/apps/cleanup/__init__.py @@ -0,0 +1,20 @@ +# ========================================================================== # +# # +# KVMD - The main Pi-KVM daemon. # +# # +# Copyright (C) 2018 Maxim Devaev # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU 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 General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +# ========================================================================== # diff --git a/testenv/tests/apps/test_cleanup.py b/testenv/tests/apps/cleanup/test_main.py similarity index 100% rename from testenv/tests/apps/test_cleanup.py rename to testenv/tests/apps/cleanup/test_main.py diff --git a/testenv/tests/apps/htpasswd/__init__.py b/testenv/tests/apps/htpasswd/__init__.py new file mode 100644 index 00000000..1e91f7fa --- /dev/null +++ b/testenv/tests/apps/htpasswd/__init__.py @@ -0,0 +1,20 @@ +# ========================================================================== # +# # +# KVMD - The main Pi-KVM daemon. # +# # +# Copyright (C) 2018 Maxim Devaev # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU 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 General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +# ========================================================================== # diff --git a/testenv/tests/apps/test_htpasswd.py b/testenv/tests/apps/htpasswd/test_main.py similarity index 100% rename from testenv/tests/apps/test_htpasswd.py rename to testenv/tests/apps/htpasswd/test_main.py diff --git a/testenv/tests/auth/test_manager.py b/testenv/tests/apps/kvmd/test_auth.py similarity index 100% rename from testenv/tests/auth/test_manager.py rename to testenv/tests/apps/kvmd/test_auth.py diff --git a/testenv/tests/plugins/__init__.py b/testenv/tests/plugins/__init__.py new file mode 100644 index 00000000..1e91f7fa --- /dev/null +++ b/testenv/tests/plugins/__init__.py @@ -0,0 +1,20 @@ +# ========================================================================== # +# # +# KVMD - The main Pi-KVM daemon. # +# # +# Copyright (C) 2018 Maxim Devaev # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU 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 General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +# ========================================================================== # diff --git a/testenv/tests/auth/__init__.py b/testenv/tests/plugins/auth/__init__.py similarity index 100% rename from testenv/tests/auth/__init__.py rename to testenv/tests/plugins/auth/__init__.py diff --git a/testenv/tests/auth/test_service_htpasswd.py b/testenv/tests/plugins/auth/test_htpasswd.py similarity index 100% rename from testenv/tests/auth/test_service_htpasswd.py rename to testenv/tests/plugins/auth/test_htpasswd.py diff --git a/testenv/tests/auth/test_service_http.py b/testenv/tests/plugins/auth/test_http.py similarity index 100% rename from testenv/tests/auth/test_service_http.py rename to testenv/tests/plugins/auth/test_http.py