scram 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/scram/target.rb +13 -0
- data/lib/scram/version.rb +1 -1
- data/spec/config/mongoid.yml +5 -1
- data/spec/dummy/config/mongoid.yml +1 -1
- data/spec/dummy/log/test.log +342 -0
- data/spec/scram/target_spec.rb +16 -0
- metadata +45 -45
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df407a856d46e4c14c491c945f1da15376a6888d
|
4
|
+
data.tar.gz: f5e7be693c54f8dcb478713cf2f0f067a35acc4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74583265814dd3e1cb4fbf988d099584547cf57770057263cf0ddd853be906c5d15e0650a31baf1462914777fc9b7ce5f03050a4ce76d42288e829146f5984d2
|
7
|
+
data.tar.gz: 16818102f8adc92ee9fa35f575a582ccf55bab3db2fad37f1bc470f6d5b35e71865e33c8dbb34e724fb2392e07fcf27eb76869422d9106e38fa93a6a43d996ec
|
data/app/models/scram/target.rb
CHANGED
@@ -16,6 +16,9 @@ module Scram
|
|
16
16
|
# @return [Boolean] This target's modification onto a permission (allow or deny), i.e. its type
|
17
17
|
field :allow, type: Boolean, default: true
|
18
18
|
|
19
|
+
# Ensures that hash follows the right format
|
20
|
+
validate :conditions_hash_validations
|
21
|
+
|
19
22
|
# @return [Symbol] The type of this target (either permissive as allow or deny)
|
20
23
|
def target_type
|
21
24
|
allow ? :allow : :deny
|
@@ -65,5 +68,15 @@ module Scram
|
|
65
68
|
|
66
69
|
return target_type
|
67
70
|
end
|
71
|
+
|
72
|
+
private
|
73
|
+
|
74
|
+
# Validates that the conditions Hash follows an expected format
|
75
|
+
def conditions_hash_validations
|
76
|
+
conditions.each do |comparator, mappings|
|
77
|
+
errors.add(:conditions, "can't use undefined comparators") unless Scram::DSL::Definitions::COMPARATORS.keys.include? comparator.to_sym
|
78
|
+
errors.add(:conditions, "comparators must have values of type Hash") unless mappings.is_a? Hash
|
79
|
+
end
|
80
|
+
end
|
68
81
|
end
|
69
82
|
end
|
data/lib/scram/version.rb
CHANGED
data/spec/config/mongoid.yml
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -274,3 +274,345 @@ MONGODB | localhost:27017 | scram_dummy_test.listCollections | STARTED | {"listC
|
|
274
274
|
MONGODB | localhost:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.001619s
|
275
275
|
MONGODB | localhost:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
276
276
|
MONGODB | localhost:27017 | scram_dummy_test.delete | SUCCEEDED | 0.0009209999999999999s
|
277
|
+
MONGODB | Topology type 'unknown' initializing.
|
278
|
+
MONGODB | Server 127.0.0.1:27017 initializing.
|
279
|
+
MONGODB | Topology type 'unknown' changed to type 'single'.
|
280
|
+
MONGODB | Server description for 127.0.0.1:27017 changed from 'unknown' to 'standalone'.
|
281
|
+
MONGODB | There was a change in the members of the 'single' topology.
|
282
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
283
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.001494s
|
284
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
285
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.011961000000000001s
|
286
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
287
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.0006119999999999999s
|
288
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
289
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000469s
|
290
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
291
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.00048499999999999997s
|
292
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
293
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000336s
|
294
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
295
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000381s
|
296
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
297
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.00031000000000000005s
|
298
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
299
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000387s
|
300
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
301
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000322s
|
302
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
303
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000482s
|
304
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
305
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.00034s
|
306
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.insert | STARTED | {"insert"=>"scram_policies", "documents"=>[{"_id"=>BSON::ObjectId('5a90ba35366a3512707f98cc'), "priority"=>0, "name"=>"globals", "targets"=>[{"_id"=>BSON::ObjectId('5a90ba35366a3512707f98cd'), "actions"=>["woot"], "conditions"=>{"equals"=>{"*target_na...
|
307
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.insert | SUCCEEDED | 0.00091s
|
308
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
309
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000577s
|
310
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
311
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.00052s
|
312
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
313
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000376s
|
314
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
315
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000313s
|
316
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
317
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000383s
|
318
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
319
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000342s
|
320
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
321
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000611s
|
322
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
323
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.00032399999999999996s
|
324
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
325
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000354s
|
326
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
327
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000286s
|
328
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
329
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000363s
|
330
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
331
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.00031s
|
332
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
333
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.0004s
|
334
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
335
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000331s
|
336
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
337
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.00039400000000000004s
|
338
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
339
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000331s
|
340
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
341
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000429s
|
342
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
343
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.00031099999999999997s
|
344
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
345
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000464s
|
346
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
347
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.00032300000000000004s
|
348
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
349
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000401s
|
350
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
351
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000296s
|
352
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
353
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000495s
|
354
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
355
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.00031800000000000003s
|
356
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
357
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000383s
|
358
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
359
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000348s
|
360
|
+
MONGODB | Topology type 'unknown' initializing.
|
361
|
+
MONGODB | Server 127.0.0.1:27017 initializing.
|
362
|
+
MONGODB | Topology type 'unknown' changed to type 'single'.
|
363
|
+
MONGODB | Server description for 127.0.0.1:27017 changed from 'unknown' to 'standalone'.
|
364
|
+
MONGODB | There was a change in the members of the 'single' topology.
|
365
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
366
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.001227s
|
367
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
368
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000314s
|
369
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
370
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000406s
|
371
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
372
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.00031499999999999996s
|
373
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
374
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000495s
|
375
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
376
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.00033s
|
377
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
378
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000395s
|
379
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
380
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000415s
|
381
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
382
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000428s
|
383
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
384
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000443s
|
385
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
386
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.0005300000000000001s
|
387
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
388
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.00030500000000000004s
|
389
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.insert | STARTED | {"insert"=>"scram_policies", "documents"=>[{"_id"=>BSON::ObjectId('5a90ba85366a3512a734bced'), "priority"=>0, "name"=>"globals", "targets"=>[{"_id"=>BSON::ObjectId('5a90ba85366a3512a734bcee'), "actions"=>["woot"], "conditions"=>{"equals"=>{"*target_na...
|
390
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.insert | SUCCEEDED | 0.000546s
|
391
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
392
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000489s
|
393
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
394
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000348s
|
395
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
396
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.00047599999999999997s
|
397
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
398
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.0005690000000000001s
|
399
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
400
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000497s
|
401
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
402
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.00030900000000000003s
|
403
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
404
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000348s
|
405
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
406
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.00030199999999999997s
|
407
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
408
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.00032399999999999996s
|
409
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
410
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000448s
|
411
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
412
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.00046s
|
413
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
414
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000293s
|
415
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
416
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000338s
|
417
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
418
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000329s
|
419
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
420
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.00042s
|
421
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
422
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000357s
|
423
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
424
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.00037600000000000003s
|
425
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
426
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000418s
|
427
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
428
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.00084s
|
429
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
430
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000359s
|
431
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
432
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000414s
|
433
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
434
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.00043s
|
435
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
436
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.0004890000000000001s
|
437
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
438
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000309s
|
439
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
440
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000356s
|
441
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
442
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000299s
|
443
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
444
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.00034s
|
445
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
446
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000348s
|
447
|
+
MONGODB | Topology type 'unknown' initializing.
|
448
|
+
MONGODB | Server 127.0.0.1:27017 initializing.
|
449
|
+
MONGODB | Topology type 'unknown' changed to type 'single'.
|
450
|
+
MONGODB | Server description for 127.0.0.1:27017 changed from 'unknown' to 'standalone'.
|
451
|
+
MONGODB | There was a change in the members of the 'single' topology.
|
452
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
453
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.001608s
|
454
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
455
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.00045599999999999997s
|
456
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
457
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000544s
|
458
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
459
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000334s
|
460
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
461
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000456s
|
462
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
463
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000344s
|
464
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
465
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000379s
|
466
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
467
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000347s
|
468
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
469
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000335s
|
470
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
471
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.00033s
|
472
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
473
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000779s
|
474
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
475
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.00042s
|
476
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
477
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000421s
|
478
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
479
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.00035099999999999997s
|
480
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
481
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000492s
|
482
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
483
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000404s
|
484
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
485
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000427s
|
486
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
487
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000443s
|
488
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
489
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.0005329999999999999s
|
490
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
491
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000577s
|
492
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
493
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.00046199999999999995s
|
494
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
495
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000378s
|
496
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
497
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000445s
|
498
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
499
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.00033299999999999996s
|
500
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
501
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000521s
|
502
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
503
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000445s
|
504
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
505
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.00034500000000000004s
|
506
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
507
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.00036100000000000005s
|
508
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
509
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000393s
|
510
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
511
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.00031299999999999996s
|
512
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
513
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000347s
|
514
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
515
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000303s
|
516
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
517
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000508s
|
518
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
519
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000385s
|
520
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
521
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000363s
|
522
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
523
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.0007499999999999999s
|
524
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
525
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000394s
|
526
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
527
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000344s
|
528
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
529
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000357s
|
530
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
531
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.00033800000000000003s
|
532
|
+
MONGODB | Topology type 'unknown' initializing.
|
533
|
+
MONGODB | Server 127.0.0.1:27017 initializing.
|
534
|
+
MONGODB | Topology type 'unknown' changed to type 'single'.
|
535
|
+
MONGODB | Server description for 127.0.0.1:27017 changed from 'unknown' to 'standalone'.
|
536
|
+
MONGODB | There was a change in the members of the 'single' topology.
|
537
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
538
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.0017989999999999998s
|
539
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
540
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000564s
|
541
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
542
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.0005s
|
543
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
544
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000759s
|
545
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
546
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000793s
|
547
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
548
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.0006370000000000001s
|
549
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
550
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000576s
|
551
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
552
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.00036899999999999997s
|
553
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
554
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.00042699999999999997s
|
555
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
556
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000299s
|
557
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
558
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000561s
|
559
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
560
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000813s
|
561
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.insert | STARTED | {"insert"=>"scram_policies", "documents"=>[{"_id"=>BSON::ObjectId('5a90bade366a3512d5209265'), "priority"=>0, "name"=>"globals", "targets"=>[{"_id"=>BSON::ObjectId('5a90bade366a3512d5209266'), "actions"=>["woot"], "conditions"=>{"equals"=>{"*target_na...
|
562
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.insert | SUCCEEDED | 0.000489s
|
563
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
564
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000389s
|
565
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
566
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000365s
|
567
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
568
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.00034300000000000004s
|
569
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
570
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.00031899999999999995s
|
571
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
572
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000367s
|
573
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
574
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.00038s
|
575
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
576
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000358s
|
577
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
578
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000312s
|
579
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
580
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000475s
|
581
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
582
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000318s
|
583
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
584
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000571s
|
585
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
586
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000295s
|
587
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
588
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000334s
|
589
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
590
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000278s
|
591
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
592
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.00034s
|
593
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
594
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000272s
|
595
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
596
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000439s
|
597
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
598
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000289s
|
599
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
600
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000437s
|
601
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
602
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000292s
|
603
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
604
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000437s
|
605
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
606
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000283s
|
607
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
608
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000566s
|
609
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
610
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000345s
|
611
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
612
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000404s
|
613
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
614
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.00033499999999999996s
|
615
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}}
|
616
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.listCollections | SUCCEEDED | 0.000339s
|
617
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | STARTED | {"delete"=>"scram_policies", "deletes"=>[{"q"=>{}, "limit"=>0}], "ordered"=>true}
|
618
|
+
MONGODB | 127.0.0.1:27017 | scram_dummy_test.delete | SUCCEEDED | 0.000324s
|
data/spec/scram/target_spec.rb
CHANGED
@@ -57,5 +57,21 @@ module Scram
|
|
57
57
|
expect(dude.can? :woot, TestModel).to be true
|
58
58
|
expect(dude.can? :woot, TestModel.new).to be true # you can check based off an instance as well
|
59
59
|
end
|
60
|
+
|
61
|
+
it "validates that the conditions use defined comparators" do
|
62
|
+
target = Target.new
|
63
|
+
target.conditions = {undefined_comparator: {}}
|
64
|
+
|
65
|
+
target.valid?
|
66
|
+
target.errors[:conditions].should include("can't use undefined comparators")
|
67
|
+
end
|
68
|
+
|
69
|
+
it "validates that the conditions only map to Hashes" do
|
70
|
+
target = Target.new
|
71
|
+
target.conditions = {equals: []}
|
72
|
+
|
73
|
+
target.valid?
|
74
|
+
target.errors[:conditions].should include("comparators must have values of type Hash")
|
75
|
+
end
|
60
76
|
end
|
61
77
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scram
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- skreem
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -211,68 +211,68 @@ signing_key:
|
|
211
211
|
specification_version: 4
|
212
212
|
summary: Awesome authorization system
|
213
213
|
test_files:
|
214
|
-
- spec/
|
215
|
-
- spec/dummy/app/assets/config/manifest.js
|
216
|
-
- spec/dummy/app/assets/javascripts/application.js
|
217
|
-
- spec/dummy/app/assets/javascripts/cable.js
|
218
|
-
- spec/dummy/app/assets/stylesheets/application.css
|
219
|
-
- spec/dummy/app/channels/application_cable/channel.rb
|
220
|
-
- spec/dummy/app/channels/application_cable/connection.rb
|
221
|
-
- spec/dummy/app/controllers/application_controller.rb
|
222
|
-
- spec/dummy/app/helpers/application_helper.rb
|
223
|
-
- spec/dummy/app/jobs/application_job.rb
|
214
|
+
- spec/spec_helper.rb
|
224
215
|
- spec/dummy/app/mailers/application_mailer.rb
|
216
|
+
- spec/dummy/app/jobs/application_job.rb
|
217
|
+
- spec/dummy/app/controllers/application_controller.rb
|
225
218
|
- spec/dummy/app/views/layouts/application.html.erb
|
226
219
|
- spec/dummy/app/views/layouts/mailer.html.erb
|
227
220
|
- spec/dummy/app/views/layouts/mailer.text.erb
|
228
|
-
- spec/dummy/
|
229
|
-
- spec/dummy/
|
221
|
+
- spec/dummy/app/assets/config/manifest.js
|
222
|
+
- spec/dummy/app/assets/javascripts/cable.js
|
223
|
+
- spec/dummy/app/assets/javascripts/application.js
|
224
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
225
|
+
- spec/dummy/app/helpers/application_helper.rb
|
226
|
+
- spec/dummy/app/channels/application_cable/connection.rb
|
227
|
+
- spec/dummy/app/channels/application_cable/channel.rb
|
228
|
+
- spec/dummy/bin/update
|
230
229
|
- spec/dummy/bin/rake
|
231
230
|
- spec/dummy/bin/setup
|
232
|
-
- spec/dummy/bin/
|
233
|
-
- spec/dummy/
|
234
|
-
- spec/dummy/config/
|
231
|
+
- spec/dummy/bin/bundle
|
232
|
+
- spec/dummy/bin/rails
|
233
|
+
- spec/dummy/config/secrets.yml
|
234
|
+
- spec/dummy/config/routes.rb
|
235
|
+
- spec/dummy/config/mongoid.yml
|
236
|
+
- spec/dummy/config/locales/en.yml
|
235
237
|
- spec/dummy/config/cable.yml
|
236
|
-
- spec/dummy/config/environment.rb
|
237
|
-
- spec/dummy/config/environments/development.rb
|
238
238
|
- spec/dummy/config/environments/production.rb
|
239
|
+
- spec/dummy/config/environments/development.rb
|
239
240
|
- spec/dummy/config/environments/test.rb
|
241
|
+
- spec/dummy/config/spring.rb
|
242
|
+
- spec/dummy/config/environment.rb
|
243
|
+
- spec/dummy/config/application.rb
|
244
|
+
- spec/dummy/config/puma.rb
|
245
|
+
- spec/dummy/config/boot.rb
|
240
246
|
- spec/dummy/config/initializers/application_controller_renderer.rb
|
241
|
-
- spec/dummy/config/initializers/assets.rb
|
242
247
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
243
|
-
- spec/dummy/config/initializers/cookies_serializer.rb
|
244
|
-
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
245
|
-
- spec/dummy/config/initializers/inflections.rb
|
246
248
|
- spec/dummy/config/initializers/mime_types.rb
|
247
|
-
- spec/dummy/config/initializers/
|
249
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
248
250
|
- spec/dummy/config/initializers/session_store.rb
|
249
251
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
250
|
-
- spec/dummy/config/
|
251
|
-
- spec/dummy/config/
|
252
|
-
- spec/dummy/config/
|
253
|
-
- spec/dummy/config/
|
254
|
-
- spec/dummy/config/secrets.yml
|
255
|
-
- spec/dummy/config/spring.rb
|
252
|
+
- spec/dummy/config/initializers/new_framework_defaults.rb
|
253
|
+
- spec/dummy/config/initializers/assets.rb
|
254
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
255
|
+
- spec/dummy/config/initializers/inflections.rb
|
256
256
|
- spec/dummy/config.ru
|
257
|
-
- spec/dummy/
|
258
|
-
- spec/dummy/
|
259
|
-
- spec/dummy/public/404.html
|
257
|
+
- spec/dummy/Rakefile
|
258
|
+
- spec/dummy/public/favicon.ico
|
260
259
|
- spec/dummy/public/422.html
|
260
|
+
- spec/dummy/public/apple-touch-icon.png
|
261
261
|
- spec/dummy/public/500.html
|
262
|
+
- spec/dummy/public/404.html
|
262
263
|
- spec/dummy/public/apple-touch-icon-precomposed.png
|
263
|
-
- spec/dummy/
|
264
|
-
- spec/dummy/
|
265
|
-
- spec/
|
264
|
+
- spec/dummy/log/test.log
|
265
|
+
- spec/dummy/log/development.log
|
266
|
+
- spec/config/mongoid.yml
|
267
|
+
- spec/support/factory_girl.rb
|
266
268
|
- spec/factories/policy.rb
|
267
|
-
- spec/rails_helper.rb
|
268
|
-
- spec/scram/concerns/aggregate_holder_spec.rb
|
269
|
-
- spec/scram/concerns/holder_spec.rb
|
270
|
-
- spec/scram/dsl_spec.rb
|
271
|
-
- spec/scram/policy_spec.rb
|
272
|
-
- spec/scram/target_spec.rb
|
273
|
-
- spec/scram/test_implementations/simple_aggregate_holder.rb
|
274
269
|
- spec/scram/test_implementations/simple_holder.rb
|
275
270
|
- spec/scram/test_implementations/test_model.rb
|
271
|
+
- spec/scram/test_implementations/simple_aggregate_holder.rb
|
272
|
+
- spec/scram/dsl_spec.rb
|
273
|
+
- spec/scram/target_spec.rb
|
274
|
+
- spec/scram/policy_spec.rb
|
275
|
+
- spec/scram/concerns/aggregate_holder_spec.rb
|
276
|
+
- spec/scram/concerns/holder_spec.rb
|
276
277
|
- spec/scram_spec.rb
|
277
|
-
- spec/
|
278
|
-
- spec/support/factory_girl.rb
|
278
|
+
- spec/rails_helper.rb
|