Mailinglist Archive: yast-commit (2114 mails)

< Previous Next >
[yast-commit] <rest-service> patch_refactor : fix broken test, sorry
  • From: Duncan Mac-Vicar P <dmacvicar@xxxxxxx>
  • Date: Thu, 24 Sep 2009 17:38:50 +0200
  • Message-id: <E1MrI2k-0005yK-5M@xxxxxxxxxxxxxxxx>
ref: refs/heads/patch_refactor
commit 1e83c9a27365aa7a766434048f16aa64fe640495
Author: Duncan Mac-Vicar P <dmacvicar@xxxxxxx>
Date: Thu Sep 24 17:38:50 2009 +0200

fix broken test, sorry
---
plugins/status/test/unit/metric_test.rb | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/plugins/status/test/unit/metric_test.rb
b/plugins/status/test/unit/metric_test.rb
index 6f57bc4..0004dda 100644
--- a/plugins/status/test/unit/metric_test.rb
+++ b/plugins/status/test/unit/metric_test.rb
@@ -76,8 +76,7 @@ class MetricTest < ActiveSupport::TestCase

assert_equal expected, packets.data(:start => start, :stop => stop)

- xml = "<?xml version=\"1.0\"
encoding=\"UTF-8\"?><metric><id>myhost*domain*de+interface+packets</id><identifier>myhost.domain.de/interface/packets</identifier><host>myhost.domain.de</host><plugin>interface</plugin><plugin_instance></plugin_instance><type>packets</type><type_instance></type_instance><data
interval=\"10\" column=\"tx\"
start=\"1252075500\"><value></value><value>425.76</value><value>159.22</value><value>61.66</value><value>7.79</value><value></value></data><data
interval=\"10\" column=\"rx\"
start=\"1252075500\"><value></value><value>280.69</value><value>339.62</value><value>258.14</value><value>22.15</value><value></value></data></metric>"
-
+ xml = "<?xml version=\"1.0\"
encoding=\"UTF-8\"?><metric><id>myhost*domain*de+interface+packets</id><identifier>myhost.domain.de/interface/packets</identifier><host>myhost.domain.de</host><plugin>interface</plugin><plugin_instance></plugin_instance><type>packets</type><type_instance></type_instance><data
interval=\"10\" column=\"tx\"
start=\"1252075500\"><value>7.79</value><value>61.66</value><value>159.22</value><value>425.76</value><value></value><value></value></data><data
interval=\"10\" column=\"rx\"
start=\"1252075500\"><value>22.15</value><value>258.14</value><value>339.62</value><value>280.69</value><value></value><value></value></data></metric>"
assert_equal xml, packets.to_xml(:start => start, :stop => stop)
end

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >