From 9dda3487f839c8f8748ad90479322409df5b14c0 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch>
Date: Thu, 20 Mar 2025 11:23:12 +0100
Subject: [PATCH] update/ fi tests

---
 tests/200_apacheprocesses.php  | 2 +-
 tests/configs/file.ini         | 5 ++---
 tests/configs/mysqlconnect.ini | 2 +-
 3 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/tests/200_apacheprocesses.php b/tests/200_apacheprocesses.php
index 4289cc9..eaf2c37 100644
--- a/tests/200_apacheprocesses.php
+++ b/tests/200_apacheprocesses.php
@@ -2,6 +2,6 @@
 <?php
 
 echo "
-WHAT: Run check sqlite connect
+WHAT: Run check apache processes
 ";
 _exec("$AMCLI --ini='".__DIR__."/configs/apacheprocesses.ini'");
diff --git a/tests/configs/file.ini b/tests/configs/file.ini
index 542bc21..e0c8997 100644
--- a/tests/configs/file.ini
+++ b/tests/configs/file.ini
@@ -18,7 +18,7 @@ function="File"
 params='{
     "filename": "/tmp",
     "exists": true,
-    "flag": "dir",
+    "dir": true,
     "readable": true,
     "writable": true
 }'
@@ -28,8 +28,7 @@ description="Check non existing maintenance flag file"
 function="File"
 params='{
     "filename": "/some/where/maintenance.txt",
-    "exists": false,
-    "flag": "file"
+    "exists": false
 }'
 
 ; -----------------------------------------------------------------------
diff --git a/tests/configs/mysqlconnect.ini b/tests/configs/mysqlconnect.ini
index c2cab2d..ce02598 100644
--- a/tests/configs/mysqlconnect.ini
+++ b/tests/configs/mysqlconnect.ini
@@ -20,7 +20,7 @@ params='{
     "user": "root",
     "password": "12345678",
     "db": "ahcrawler",
-    "port": "13306"
+    "port": 13306
 }'
 
 ; -----------------------------------------------------------------------
-- 
GitLab