projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
3413: code review update
[arvados.git]
/
services
/
api
/
test
/
unit
/
node_test.rb
diff --git
a/services/api/test/unit/node_test.rb
b/services/api/test/unit/node_test.rb
index 5a9a057696041ab76a505977bdd3659b6e2daa94..8e1233c225df7f81c1751090c4468ca2d8a464d5 100644
(file)
--- a/
services/api/test/unit/node_test.rb
+++ b/
services/api/test/unit/node_test.rb
@@
-11,13
+11,13
@@
class NodeTest < ActiveSupport::TestCase
test "pinging a node can add and update stats" do
node = ping_node(:idle, {total_cpu_cores: '12', total_ram_mb: '512'})
test "pinging a node can add and update stats" do
node = ping_node(:idle, {total_cpu_cores: '12', total_ram_mb: '512'})
- assert_equal(12, node.
info['total_cpu_cores'].to_i
)
- assert_equal(512, node.
info['total_ram_mb'].to_i
)
+ assert_equal(12, node.
properties['total_cpu_cores']
)
+ assert_equal(512, node.
properties['total_ram_mb']
)
end
test "stats disappear if not in a ping" do
node = ping_node(:idle, {total_ram_mb: '256'})
end
test "stats disappear if not in a ping" do
node = ping_node(:idle, {total_ram_mb: '256'})
- refute_includes(node.
info
, 'total_cpu_cores')
- assert_equal(256, node.
info['total_ram_mb'].to_i
)
+ refute_includes(node.
properties
, 'total_cpu_cores')
+ assert_equal(256, node.
properties['total_ram_mb']
)
end
end
end
end