From e15c4ead98c30fefd115c7b5daf9610b964e3f8c Mon Sep 17 00:00:00 2001
From: Andreas Romeyke <andreas.romeyke@slub-dresden.de>
Date: Mon, 18 Nov 2024 09:33:20 +0100
Subject: [PATCH] - refactoring, extracted port to variable

---
 t/02-init.t | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/t/02-init.t b/t/02-init.t
index b501882..e253d91 100644
--- a/t/02-init.t
+++ b/t/02-init.t
@@ -14,6 +14,7 @@ my $config_dir = path($testapp->workpath())->child('.config');
 $config_dir->mkpath();
 my $config_file = $config_dir->child('ta-tool.rc');
 my $testhost = Test::TA::testhost();
+my $testport = Test::TA::testport();
 my $cache_dir = path($testapp->workpath())->child('.cache');
 $cache_dir->mkpath();
 my $cache_file = $cache_dir->child('ta-tool.cache');
@@ -59,8 +60,9 @@ _EOF_
     is($config, <<_EXP_, "ta-tool init, config file as expected");
 ---
 elasticsearch_host: $testhost
-elasticsearch_port: 9200
-http_only: ~
+elasticsearch_port: $testport
+http_only: 1
+logdir: /tmp
 password: 839852bed005a7f1237578a6ac1197c142f7d0dd58bb248446dc7849d4bf770902e7f980ad83d39008ad638bc41e2345
 permanent_volume:
   - $permanent_volumes[0]
-- 
GitLab