Explorar o código

Extended test case

Till Klocke %!s(int64=9) %!d(string=hai) anos
pai
achega
d9cbd4aa71

+ 8 - 1
test/application/supernode_pkg_vars.yml

@@ -176,4 +176,11 @@ supernode_interfaces:
   - name: eth0
     auto: true
     proto: inet
-    type: dhcp
+    type: dhcp
+
+usermanage_usersdb:
+  fritz:
+    comment: "Fritz Brinkhoffs"
+    state: "present"
+    keys:
+    - "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCfO2TgNUMcY9K8N9SsAU/LfVtlloO50n6NRxDER8dCi+t1ydalTbNdEj52cIjqvIEn458cCxdCwsNYeWqSVggX7vT7a+DgYZlJcRteHcb0lPYZplPuiZe3AUE9rHH48W4xEopv7J8Wz6hLng6Gb0TQx9HeVybQ5dn6CGyt8sOCKQ== Fritz Brinkhoffs"

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

@@ -118,4 +118,9 @@ end
 
 describe cron do
   it { should have_entry '*/5 * * * * wget -q -O /etc/fastd/fastd-blacklist.json https://raw.githubusercontent.com/ffruhr/fastdbl/master/fastd-blacklist.json' }
+end
+
+describe user('fritz') do
+  it { should exist }
+  it { should have_authorized_key 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCfO2TgNUMcY9K8N9SsAU/LfVtlloO50n6NRxDER8dCi+t1ydalTbNdEj52cIjqvIEn458cCxdCwsNYeWqSVggX7vT7a+DgYZlJcRteHcb0lPYZplPuiZe3AUE9rHH48W4xEopv7J8Wz6hLng6Gb0TQx9HeVybQ5dn6CGyt8sOCKQ== Fritz Brinkhoffs' }
 end