Pārlūkot izejas kodu

sample config for remote test

nas 2 gadus atpakaļ
vecāks
revīzija
714a4abfcd
2 mainītis faili ar 15 papildinājumiem un 0 dzēšanām
  1. 5
    0
      test/test.cfg.sample
  2. 10
    0
      test/test.pl

+ 5
- 0
test/test.cfg.sample Parādīt failu

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

+ 10
- 0
test/test.pl Parādīt failu

@@ -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}";

Notiek ielāde…
Atcelt
Saglabāt