From 6a5322d2fb8362d6ceaab589707b61ffcf89140b Mon Sep 17 00:00:00 2001 From: Devrim Date: Wed, 21 Dec 2022 18:39:36 +0300 Subject: [PATCH] fix: jans-linux-setup copy libs directory of agama test data (#3376) --- jans-linux-setup/jans_setup/setup_app/test_data_loader.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/jans-linux-setup/jans_setup/setup_app/test_data_loader.py b/jans-linux-setup/jans_setup/setup_app/test_data_loader.py index 9fc74e40e69..c14028f33d4 100644 --- a/jans-linux-setup/jans_setup/setup_app/test_data_loader.py +++ b/jans-linux-setup/jans_setup/setup_app/test_data_loader.py @@ -83,7 +83,13 @@ def load_agama_test_data(self): 'jans-auth-server/agama/engine/src/test/resources/templates', target_dir ) - self.chown(target_dir, Config.jetty_user, Config.jetty_group, recursive=True) + scripts_target = os.path.join(base.current_app.JansAuthInstaller.agama_root, 'scripts') + base.extract_from_zip( + base.current_app.jans_zip, + 'jans-auth-server/agama/engine/src/test/resources/libs', + scripts_target + ) + self.chown(base.current_app.JansAuthInstaller.agama_root, Config.jetty_user, Config.jetty_group, recursive=True) prop_src_fn = os.path.join(agama_out_dir, 'config-agama-test.properties') self.renderTemplateInOut(prop_src_fn, agama_temp_dir, os.path.join(Config.output_dir, 'test/jans-auth'))