Browse Source

Added tests for dhcp server

Till Klocke 9 years ago
parent
commit
918b9c9785

+ 1 - 1
test/application/supernode.yml

@@ -2,7 +2,7 @@
 - name         : Fastd via pkg manager
   hosts        : all
   gather_facts : yes
-  sudo         : True
+  sudo         : yes
   connection   : "{{ kitchen_connection | default('local') }}"
   vars_files   :
                  - "supernode_pkg_vars.yml"

+ 4 - 1
test/application/supernode_pkg_vars.yml

@@ -1,11 +1,14 @@
 supernode_mesh_mac: 96:48:76:b5:a3:61
 supernode_mesh_ipv4: 10.42.0.1
+supernode_mesh_net_base_ip: 10.42.0.0
 supernode_mesh_netmask_ipv4: 255.255.0.0
 supernode_bat_macaddress: f2:43:13:c0:d7:06
 supernode_mesh_net_cidr: 10.42.0.0/16
 supernode_mesh_ipv6: fdfe:7808:502a:4eb7::1/64
 supernode_mesh_net_ipv6: fdfe:7808:502a:4eb7::/64
 supernode_local_ip: "{{ansible_default_ipv4.address}}"
+supernode_other_nameserver: 10.42.0.23
+supernode_other_ntp_server: 10.42.0.23
 
 supernode_mesh_backbones:
   - name: test-node02
@@ -83,7 +86,7 @@ bird_protocols:
       source address 10.0.6.6;
       neighbor 10.0.6.5 as 65079;
       default bgp_med 2;
-  - header: protocol bgp ffrg25 from ibgp
+  - header: bgp ffrg25 from ibgp
     content: |
       source address 10.0.6.2;
       neighbor 10.0.6.1 as 65079;

+ 4 - 0
test/integration/supernode/serverspec/test_spec.rb

@@ -123,4 +123,8 @@ end
 describe user('fritz') do
   it { should exist }
   it { should have_authorized_key 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCfO2TgNUMcY9K8N9SsAU/LfVtlloO50n6NRxDER8dCi+t1ydalTbNdEj52cIjqvIEn458cCxdCwsNYeWqSVggX7vT7a+DgYZlJcRteHcb0lPYZplPuiZe3AUE9rHH48W4xEopv7J8Wz6hLng6Gb0TQx9HeVybQ5dn6CGyt8sOCKQ== Fritz Brinkhoffs' }
+end
+
+describe port(67) do
+  it { should be_listening.with('udp')}
 end