Ver código fonte

sample config for remote test

nas 2 anos atrás
pai
commit
714a4abfcd
2 arquivos alterados com 15 adições e 0 exclusões
  1. 5
    0
      test/test.cfg.sample
  2. 10
    0
      test/test.pl

+ 5
- 0
test/test.cfg.sample Ver arquivo

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

+ 10
- 0
test/test.pl Ver arquivo

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

Carregando…
Cancelar
Salvar