summaryrefslogtreecommitdiff
path: root/test/unit
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-04-12 10:25:25 -0700
committerelijah <elijah@riseup.net>2016-04-12 10:25:25 -0700
commit50980798983c9cf9b4d562a2a9279ef3ab3d25fc (patch)
tree2b7e2e6fcb9cca269c11bb77152eece3be7c6acf /test/unit
parent298ae98021443dabe98e6855436f24ad8ad12a99 (diff)
move template() from manager to environment. closes #8026
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/command_line_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit/command_line_test.rb b/test/unit/command_line_test.rb
index 2aaf1c1..12f8e2c 100644
--- a/test/unit/command_line_test.rb
+++ b/test/unit/command_line_test.rb
@@ -17,4 +17,11 @@ class CommandLineTest < Minitest::Test
end
end
+ def test_add_node
+ output = leap_bin("node add banana tags:production services:openvpn ip_address:1.1.1.1")
+ cleanup_files('nodes/banana.json', 'files/nodes/banana')
+ assert_match /created nodes\/banana\.json/, output
+ assert_match /created files\/nodes\//, output
+ end
+
end