summary refs log tree commit diff
path: root/pkgs/servers/monitoring/fusion-inventory/remove_software_test.patch
blob: b360f418aa0bb41579236fa4c13ec394d9fb7d44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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
--- a/t/apps/agent.t
+++ b/t/apps/agent.t
@@ -12,7 +12,7 @@ use XML::TreePP;
 use FusionInventory::Agent::Tools;
 use FusionInventory::Test::Utils;
 
-plan tests => 34;
+plan tests => 33;
 
 my ($content, $out, $err, $rc);
 
@@ -71,11 +71,6 @@ subtest "first inventory execution and content" => sub {
     check_content_ok($out);
 };
 
-ok(
-    exists $content->{REQUEST}->{CONTENT}->{SOFTWARES},
-    'inventory has software'
-);
-
 ok(
     exists $content->{REQUEST}->{CONTENT}->{ENVS},
     'inventory has environment variables'
diff --git a/t/tasks/inventory/linux/softwares.t b/t/tasks/inventory/linux/softwares.t
index 72a0e578c..13944f34f 100755
--- a/t/tasks/inventory/linux/softwares.t
+++ b/t/tasks/inventory/linux/softwares.t
@@ -89,7 +89,7 @@ my $rpm_packages = [
         PUBLISHER   => 'Mageia.Org',
         NAME        => 'xfsprogs',
         COMMENTS    => 'Utilities for managing the XFS filesystem',
-        INSTALLDATE => '25/03/2012',
+        INSTALLDATE => '24/03/2012',
         FILESIZE    => '3628382',
         FROM        => 'rpm',
         ARCH        => 'x86_64',