diff options
author | Philipp Hausmann <ph_git@314.ch> | 2017-08-25 13:59:51 +0200 |
---|---|---|
committer | Philipp Hausmann <ph_git@314.ch> | 2017-09-25 10:39:11 +0200 |
commit | 2490dea9d0cb25979f738f5abaf02cfb9008c670 (patch) | |
tree | 20c136637c6e4dd62f5a201abb31d55bb33f946d /pkgs/servers/monitoring | |
parent | 1a23ff8a13e4f833d3d9eea2837394e712736149 (diff) | |
download | nixpkgs-2490dea9d0cb25979f738f5abaf02cfb9008c670.tar nixpkgs-2490dea9d0cb25979f738f5abaf02cfb9008c670.tar.gz nixpkgs-2490dea9d0cb25979f738f5abaf02cfb9008c670.tar.bz2 nixpkgs-2490dea9d0cb25979f738f5abaf02cfb9008c670.tar.lz nixpkgs-2490dea9d0cb25979f738f5abaf02cfb9008c670.tar.xz nixpkgs-2490dea9d0cb25979f738f5abaf02cfb9008c670.tar.zst nixpkgs-2490dea9d0cb25979f738f5abaf02cfb9008c670.zip |
FusionInventory: Disable tests requiring network access.
Diffstat (limited to 'pkgs/servers/monitoring')
-rw-r--r-- | pkgs/servers/monitoring/fusion-inventory/remove_software_test.patch | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/pkgs/servers/monitoring/fusion-inventory/remove_software_test.patch b/pkgs/servers/monitoring/fusion-inventory/remove_software_test.patch index ba6fd54eb18..5449f4d3740 100644 --- a/pkgs/servers/monitoring/fusion-inventory/remove_software_test.patch +++ b/pkgs/servers/monitoring/fusion-inventory/remove_software_test.patch @@ -1,5 +1,34 @@ +diff --git a/t/agent/snmp/live.t b/t/agent/snmp/live.t +index 8ee7ff02c..bd5551ab3 100755 +--- a/t/agent/snmp/live.t ++++ b/t/agent/snmp/live.t +@@ -11,7 +11,7 @@ use Test::More; + use FusionInventory::Agent::XML::Response; + use FusionInventory::Agent::SNMP::Live; + +-plan tests => 12; ++plan tests => 11; + + my $snmp; + throws_ok { +@@ -52,15 +52,6 @@ throws_ok { + } qr/^Unable to resolve the UDP\/IPv4 address "none"/, + 'instanciation: unresolvable host'; + +-throws_ok { +- $snmp = FusionInventory::Agent::SNMP::Live->new( +- version => 1, +- community => 'public', +- hostname => '1.1.1.1' +- ); +-} qr/no response from host 1.1.1.1/, +-'instanciation: unresponding host'; +- + SKIP: { + skip 'live SNMP test disabled', 6 unless $ENV{TEST_LIVE_SNMP}; + diff --git a/t/apps/agent.t b/t/apps/agent.t -index c0f6fc52f..c83837d70 100755 +index f417b4106..12207f192 100755 --- a/t/apps/agent.t +++ b/t/apps/agent.t @@ -12,7 +12,7 @@ use XML::TreePP; @@ -11,7 +40,7 @@ index c0f6fc52f..c83837d70 100755 my ($content, $out, $err, $rc); -@@ -72,11 +72,6 @@ subtest "first inventory execution and content" => sub { +@@ -73,11 +73,6 @@ subtest "first inventory execution and content" => sub { }; ok( |