Browse Source

sample config for remote test

nas 2 years ago
parent
commit
714a4abfcd
2 changed files with 15 additions and 0 deletions
  1. 5
    0
      test/test.cfg.sample
  2. 10
    0
      test/test.pl

+ 5
- 0
test/test.cfg.sample View File

@@ -0,0 +1,5 @@
1
+[Authentification]
2
+Protocol : https
3
+Host : localhost
4
+Username : test_remote
5
+Password : NJfccjabWSXqmpTRhfXRs6Re2CAIsJyhz3TAo4rpWz2nlMgWqTScmbsXoIlwdHB1

+ 10
- 0
test/test.pl View File

@@ -0,0 +1,10 @@
1
+#!/usr/bin/perl
2
+# @file journal.pl
3
+# @author nas
4
+# @date 31/01/2022
5
+# @brief Remote call to the API in order to test
6
+
7
+use Config::Std;
8
+read_config 'test.cfg' => my %config; 
9
+
10
+print "Authentification : $config{Authentification}{Username}";

Loading…
Cancel
Save