summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/one_node/vyos_script.sh2
-rw-r--r--spec/one_node/vyos_spec.rb8
2 files changed, 10 insertions, 0 deletions
diff --git a/spec/one_node/vyos_script.sh b/spec/one_node/vyos_script.sh
index 2caa038..9d69204 100644
--- a/spec/one_node/vyos_script.sh
+++ b/spec/one_node/vyos_script.sh
@@ -6,6 +6,8 @@ fi
source /opt/vyatta/etc/functions/script-template
+set system host-name router
+set system domain-name example.com
set system time-zone Asia/Tokyo
commit
diff --git a/spec/one_node/vyos_spec.rb b/spec/one_node/vyos_spec.rb
index fca7fe7..ce60a6b 100644
--- a/spec/one_node/vyos_spec.rb
+++ b/spec/one_node/vyos_spec.rb
@@ -4,3 +4,11 @@ require_relative '../config_spec'
describe 'vyos_config' do
include_examples 'config_spec'
end
+
+describe host_inventory['hostname'] do
+ it { should eq 'router' }
+end
+
+describe host_inventory['domain'] do
+ it { should eq 'example.com' }
+end