Skip to content

Commit

Permalink
fix: jans-linux-setup copy libs directory of agama test data (#3376)
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimyatar committed Dec 21, 2022
1 parent 7ba6131 commit 6a5322d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion jans-linux-setup/jans_setup/setup_app/test_data_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down

0 comments on commit 6a5322d

Please sign in to comment.