fix(config): ensure AnonymousUserToken is set
[arvados-formula.git] / test / integration / keepstore / controls / config_spec.rb
index 9fb74c9997b382276b8a61e368406f60a14df6f2..7113e2b21e6de5ad953fd94b279fea7543302f20 100644 (file)
@@ -1,18 +1,25 @@
 # frozen_string_literal: true
 
+users_stanza = <<-USERS_STANZA
+    Users:
+      AnonymousUserToken: anonymoususertokensetintheusersdict
+USERS_STANZA
+
 keepstore_stanza = <<-KEEPSTORE_STANZA
       Keepstore:
         InternalURLs:
-          "http://keep0.example.net:25107/": {}
+          http://keep0.fixme.example.net:25107: {}
 KEEPSTORE_STANZA
 
 volumes_stanza = <<-VOLUMES_STANZA
     Volumes:
-      ### VOLUME_ONE
       fixme-nyw5e-000000000000000:
+        AccessViaHosts:
+          http://keep0.fixme.example.net:25107:
+            ReadOnly: false
         Driver: Directory
-        DriverParameters: {Root: /tmp}
-        AccessViaHosts: {'http://keep0.example.net:25107/': {}}
+        DriverParameters:
+          Root: /tmp
         Replication: 2
 VOLUMES_STANZA
 
@@ -31,5 +38,6 @@ control 'arvados configuration' do
     end
     its('content') { should include(keepstore_stanza) }
     its('content') { should include(volumes_stanza) }
+    its('content') { should include(users_stanza) }
   end
 end