rollout_control 0.0.2 → 0.0.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51316f432d46eae8e1c1c3826f95e51d9005e3a7
|
4
|
+
data.tar.gz: c4aab52901b0de718e1136259f9dba9e6948759c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22d13b15598d2b64e2623834c612c1e964ee4765976a010cc0185613cb077ff1e3568de6763ff6a15f7d9e015122d18bbf2d1bc8ca94896a6c480defd796dcc8
|
7
|
+
data.tar.gz: 0c10a1d999af31cbee18af840459168deadafe09e826ef8259c6aae14e1a736a7e01ad86618f1da0cdee332ab918ef628f6f89a2a6c23a840e9c434ea49e8ad0
|
@@ -4,13 +4,13 @@ module RolloutControl
|
|
4
4
|
class FeaturesController < ApplicationController
|
5
5
|
def index
|
6
6
|
features = rollout.features.map do |feature|
|
7
|
-
rollout.get(feature).to_hash.merge(
|
7
|
+
rollout.get(feature).to_hash.merge(name: feature)
|
8
8
|
end
|
9
9
|
render json: features.to_json
|
10
10
|
end
|
11
11
|
|
12
12
|
def show
|
13
|
-
render json: rollout.get(feature)
|
13
|
+
render json: rollout.get(feature).to_hash.merge(name: feature)
|
14
14
|
end
|
15
15
|
|
16
16
|
def update
|
data/test/dummy/log/test.log
CHANGED
@@ -5194,3 +5194,489 @@ Completed 204 No Content in 0ms
|
|
5194
5194
|
------------------------------------------------
|
5195
5195
|
RolloutControl::FeaturesControllerTest: test_wat
|
5196
5196
|
------------------------------------------------
|
5197
|
+
---------------------------------------------
|
5198
|
+
RolloutControlTest: test_add_group_to_feature
|
5199
|
+
---------------------------------------------
|
5200
|
+
Started POST "/rollout/features/extra_sharp_knives/groups" for 127.0.0.1 at 2014-11-12 17:13:54 -0800
|
5201
|
+
Processing by RolloutControl::GroupsController#create as HTML
|
5202
|
+
Parameters: {"group"=>"experienced_chefs", "feature_id"=>"extra_sharp_knives"}
|
5203
|
+
Completed 204 No Content in 0ms
|
5204
|
+
--------------------------------------------
|
5205
|
+
RolloutControlTest: test_add_user_to_feature
|
5206
|
+
--------------------------------------------
|
5207
|
+
Started POST "/rollout/features/potato_gun/users" for 127.0.0.1 at 2014-11-12 17:13:54 -0800
|
5208
|
+
Processing by RolloutControl::UsersController#create as HTML
|
5209
|
+
Parameters: {"user_id"=>"45", "feature_id"=>"potato_gun"}
|
5210
|
+
Completed 204 No Content in 0ms
|
5211
|
+
------------------------------------------------------------------------------
|
5212
|
+
RolloutControlTest: test_attempt_to_activate_user_to_feature_without_a_user_id
|
5213
|
+
------------------------------------------------------------------------------
|
5214
|
+
Started POST "/rollout/features/potato_gun/users" for 127.0.0.1 at 2014-11-12 17:13:54 -0800
|
5215
|
+
Processing by RolloutControl::UsersController#create as HTML
|
5216
|
+
Parameters: {"feature_id"=>"potato_gun"}
|
5217
|
+
Completed 400 Bad Request in 0ms
|
5218
|
+
-----------------------------------------------------------------------------
|
5219
|
+
RolloutControlTest: test_attempt_to_add_group_to_feature_without_a_group_name
|
5220
|
+
-----------------------------------------------------------------------------
|
5221
|
+
Started POST "/rollout/features/extra_sharp_knives/groups" for 127.0.0.1 at 2014-11-12 17:13:54 -0800
|
5222
|
+
Processing by RolloutControl::GroupsController#create as HTML
|
5223
|
+
Parameters: {"feature_id"=>"extra_sharp_knives"}
|
5224
|
+
Completed 400 Bad Request in 0ms
|
5225
|
+
------------------------------------------------------------------------
|
5226
|
+
RolloutControlTest: test_can_login_with_configured_username_and_password
|
5227
|
+
------------------------------------------------------------------------
|
5228
|
+
Started GET "/rollout/features" for 127.0.0.1 at 2014-11-12 17:13:54 -0800
|
5229
|
+
Processing by RolloutControl::FeaturesController#index as JSON
|
5230
|
+
Completed 200 OK in 0ms (Views: 0.1ms)
|
5231
|
+
--------------------------------------------
|
5232
|
+
RolloutControlTest: test_list_empty_features
|
5233
|
+
--------------------------------------------
|
5234
|
+
Started GET "/rollout/features" for 127.0.0.1 at 2014-11-12 17:13:54 -0800
|
5235
|
+
Processing by RolloutControl::FeaturesController#index as HTML
|
5236
|
+
Completed 200 OK in 0ms (Views: 0.0ms)
|
5237
|
+
-----------------------------------------------
|
5238
|
+
RolloutControlTest: test_list_existing_features
|
5239
|
+
-----------------------------------------------
|
5240
|
+
Started GET "/rollout/features" for 127.0.0.1 at 2014-11-12 17:13:54 -0800
|
5241
|
+
Processing by RolloutControl::FeaturesController#index as HTML
|
5242
|
+
Completed 200 OK in 0ms (Views: 0.0ms)
|
5243
|
+
Started GET "/rollout/features" for 127.0.0.1 at 2014-11-12 17:13:54 -0800
|
5244
|
+
Processing by RolloutControl::FeaturesController#index as HTML
|
5245
|
+
Completed 200 OK in 0ms (Views: 0.0ms)
|
5246
|
+
----------------------------------------------------
|
5247
|
+
RolloutControlTest: test_protect_API_with_basic_auth
|
5248
|
+
----------------------------------------------------
|
5249
|
+
Started GET "/rollout/features" for 127.0.0.1 at 2014-11-12 17:13:54 -0800
|
5250
|
+
Processing by RolloutControl::FeaturesController#index as HTML
|
5251
|
+
Filter chain halted as :authenticate rendered or redirected
|
5252
|
+
Completed 401 Unauthorized in 0ms
|
5253
|
+
--------------------------------------------------
|
5254
|
+
RolloutControlTest: test_remove_group_from_feature
|
5255
|
+
--------------------------------------------------
|
5256
|
+
Started DELETE "/rollout/features/extra_sharp_knives/groups/experienced_chefs" for 127.0.0.1 at 2014-11-12 17:13:54 -0800
|
5257
|
+
Processing by RolloutControl::GroupsController#destroy as HTML
|
5258
|
+
Parameters: {"feature_id"=>"extra_sharp_knives", "id"=>"experienced_chefs"}
|
5259
|
+
Completed 204 No Content in 0ms
|
5260
|
+
-------------------------------------------------
|
5261
|
+
RolloutControlTest: test_remove_user_from_feature
|
5262
|
+
-------------------------------------------------
|
5263
|
+
Started DELETE "/rollout/features/potato_gun/users/45" for 127.0.0.1 at 2014-11-12 17:13:54 -0800
|
5264
|
+
Processing by RolloutControl::UsersController#destroy as HTML
|
5265
|
+
Parameters: {"feature_id"=>"potato_gun", "id"=>"45"}
|
5266
|
+
Completed 204 No Content in 0ms
|
5267
|
+
-------------------------------------
|
5268
|
+
RolloutControlTest: test_show_feature
|
5269
|
+
-------------------------------------
|
5270
|
+
Started GET "/rollout/features/kittens" for 127.0.0.1 at 2014-11-12 17:13:54 -0800
|
5271
|
+
Processing by RolloutControl::FeaturesController#show as HTML
|
5272
|
+
Parameters: {"id"=>"kittens"}
|
5273
|
+
Completed 200 OK in 0ms (Views: 0.1ms)
|
5274
|
+
------------------------------------------------------------------------------------
|
5275
|
+
RolloutControlTest: test_unset_basic_auth_username_and_password_does_not_allow_login
|
5276
|
+
------------------------------------------------------------------------------------
|
5277
|
+
Started GET "/rollout/features" for 127.0.0.1 at 2014-11-12 17:13:54 -0800
|
5278
|
+
Processing by RolloutControl::FeaturesController#index as JSON
|
5279
|
+
Filter chain halted as :authenticate rendered or redirected
|
5280
|
+
Completed 401 Unauthorized in 0ms
|
5281
|
+
--------------------------------------------------
|
5282
|
+
RolloutControlTest: test_update_feature_percentage
|
5283
|
+
--------------------------------------------------
|
5284
|
+
Started PATCH "/rollout/features/kittens" for 127.0.0.1 at 2014-11-12 17:13:54 -0800
|
5285
|
+
Processing by RolloutControl::FeaturesController#update as HTML
|
5286
|
+
Parameters: {"percentage"=>"65", "id"=>"kittens"}
|
5287
|
+
Completed 204 No Content in 0ms
|
5288
|
+
------------------------------------------------
|
5289
|
+
RolloutControl::FeaturesControllerTest: test_wat
|
5290
|
+
------------------------------------------------
|
5291
|
+
---------------------------------------------
|
5292
|
+
RolloutControlTest: test_add_group_to_feature
|
5293
|
+
---------------------------------------------
|
5294
|
+
Started POST "/rollout/features/extra_sharp_knives/groups" for 127.0.0.1 at 2014-11-12 17:14:04 -0800
|
5295
|
+
Processing by RolloutControl::GroupsController#create as HTML
|
5296
|
+
Parameters: {"group"=>"experienced_chefs", "feature_id"=>"extra_sharp_knives"}
|
5297
|
+
Completed 204 No Content in 0ms
|
5298
|
+
--------------------------------------------
|
5299
|
+
RolloutControlTest: test_add_user_to_feature
|
5300
|
+
--------------------------------------------
|
5301
|
+
Started POST "/rollout/features/potato_gun/users" for 127.0.0.1 at 2014-11-12 17:14:04 -0800
|
5302
|
+
Processing by RolloutControl::UsersController#create as HTML
|
5303
|
+
Parameters: {"user_id"=>"45", "feature_id"=>"potato_gun"}
|
5304
|
+
Completed 204 No Content in 0ms
|
5305
|
+
------------------------------------------------------------------------------
|
5306
|
+
RolloutControlTest: test_attempt_to_activate_user_to_feature_without_a_user_id
|
5307
|
+
------------------------------------------------------------------------------
|
5308
|
+
Started POST "/rollout/features/potato_gun/users" for 127.0.0.1 at 2014-11-12 17:14:04 -0800
|
5309
|
+
Processing by RolloutControl::UsersController#create as HTML
|
5310
|
+
Parameters: {"feature_id"=>"potato_gun"}
|
5311
|
+
Completed 400 Bad Request in 0ms
|
5312
|
+
-----------------------------------------------------------------------------
|
5313
|
+
RolloutControlTest: test_attempt_to_add_group_to_feature_without_a_group_name
|
5314
|
+
-----------------------------------------------------------------------------
|
5315
|
+
Started POST "/rollout/features/extra_sharp_knives/groups" for 127.0.0.1 at 2014-11-12 17:14:04 -0800
|
5316
|
+
Processing by RolloutControl::GroupsController#create as HTML
|
5317
|
+
Parameters: {"feature_id"=>"extra_sharp_knives"}
|
5318
|
+
Completed 400 Bad Request in 0ms
|
5319
|
+
------------------------------------------------------------------------
|
5320
|
+
RolloutControlTest: test_can_login_with_configured_username_and_password
|
5321
|
+
------------------------------------------------------------------------
|
5322
|
+
Started GET "/rollout/features" for 127.0.0.1 at 2014-11-12 17:14:04 -0800
|
5323
|
+
Processing by RolloutControl::FeaturesController#index as JSON
|
5324
|
+
Completed 200 OK in 0ms (Views: 0.1ms)
|
5325
|
+
--------------------------------------------
|
5326
|
+
RolloutControlTest: test_list_empty_features
|
5327
|
+
--------------------------------------------
|
5328
|
+
Started GET "/rollout/features" for 127.0.0.1 at 2014-11-12 17:14:04 -0800
|
5329
|
+
Processing by RolloutControl::FeaturesController#index as HTML
|
5330
|
+
Completed 200 OK in 0ms (Views: 0.0ms)
|
5331
|
+
-----------------------------------------------
|
5332
|
+
RolloutControlTest: test_list_existing_features
|
5333
|
+
-----------------------------------------------
|
5334
|
+
Started GET "/rollout/features" for 127.0.0.1 at 2014-11-12 17:14:04 -0800
|
5335
|
+
Processing by RolloutControl::FeaturesController#index as HTML
|
5336
|
+
Completed 200 OK in 0ms (Views: 0.0ms)
|
5337
|
+
Started GET "/rollout/features" for 127.0.0.1 at 2014-11-12 17:14:04 -0800
|
5338
|
+
Processing by RolloutControl::FeaturesController#index as HTML
|
5339
|
+
Completed 200 OK in 0ms (Views: 0.0ms)
|
5340
|
+
----------------------------------------------------
|
5341
|
+
RolloutControlTest: test_protect_API_with_basic_auth
|
5342
|
+
----------------------------------------------------
|
5343
|
+
Started GET "/rollout/features" for 127.0.0.1 at 2014-11-12 17:14:04 -0800
|
5344
|
+
Processing by RolloutControl::FeaturesController#index as HTML
|
5345
|
+
Filter chain halted as :authenticate rendered or redirected
|
5346
|
+
Completed 401 Unauthorized in 0ms
|
5347
|
+
--------------------------------------------------
|
5348
|
+
RolloutControlTest: test_remove_group_from_feature
|
5349
|
+
--------------------------------------------------
|
5350
|
+
Started DELETE "/rollout/features/extra_sharp_knives/groups/experienced_chefs" for 127.0.0.1 at 2014-11-12 17:14:04 -0800
|
5351
|
+
Processing by RolloutControl::GroupsController#destroy as HTML
|
5352
|
+
Parameters: {"feature_id"=>"extra_sharp_knives", "id"=>"experienced_chefs"}
|
5353
|
+
Completed 204 No Content in 0ms
|
5354
|
+
-------------------------------------------------
|
5355
|
+
RolloutControlTest: test_remove_user_from_feature
|
5356
|
+
-------------------------------------------------
|
5357
|
+
Started DELETE "/rollout/features/potato_gun/users/45" for 127.0.0.1 at 2014-11-12 17:14:04 -0800
|
5358
|
+
Processing by RolloutControl::UsersController#destroy as HTML
|
5359
|
+
Parameters: {"feature_id"=>"potato_gun", "id"=>"45"}
|
5360
|
+
Completed 204 No Content in 0ms
|
5361
|
+
-------------------------------------
|
5362
|
+
RolloutControlTest: test_show_feature
|
5363
|
+
-------------------------------------
|
5364
|
+
Started GET "/rollout/features/kittens" for 127.0.0.1 at 2014-11-12 17:14:04 -0800
|
5365
|
+
Processing by RolloutControl::FeaturesController#show as HTML
|
5366
|
+
Parameters: {"id"=>"kittens"}
|
5367
|
+
Completed 200 OK in 0ms (Views: 0.1ms)
|
5368
|
+
------------------------------------------------------------------------------------
|
5369
|
+
RolloutControlTest: test_unset_basic_auth_username_and_password_does_not_allow_login
|
5370
|
+
------------------------------------------------------------------------------------
|
5371
|
+
Started GET "/rollout/features" for 127.0.0.1 at 2014-11-12 17:14:04 -0800
|
5372
|
+
Processing by RolloutControl::FeaturesController#index as JSON
|
5373
|
+
Filter chain halted as :authenticate rendered or redirected
|
5374
|
+
Completed 401 Unauthorized in 0ms
|
5375
|
+
--------------------------------------------------
|
5376
|
+
RolloutControlTest: test_update_feature_percentage
|
5377
|
+
--------------------------------------------------
|
5378
|
+
Started PATCH "/rollout/features/kittens" for 127.0.0.1 at 2014-11-12 17:14:04 -0800
|
5379
|
+
Processing by RolloutControl::FeaturesController#update as HTML
|
5380
|
+
Parameters: {"percentage"=>"65", "id"=>"kittens"}
|
5381
|
+
Completed 204 No Content in 0ms
|
5382
|
+
------------------------------------------------
|
5383
|
+
RolloutControl::FeaturesControllerTest: test_wat
|
5384
|
+
------------------------------------------------
|
5385
|
+
---------------------------------------------
|
5386
|
+
RolloutControlTest: test_add_group_to_feature
|
5387
|
+
---------------------------------------------
|
5388
|
+
Started POST "/rollout/features/extra_sharp_knives/groups" for 127.0.0.1 at 2014-11-12 17:14:36 -0800
|
5389
|
+
Processing by RolloutControl::GroupsController#create as HTML
|
5390
|
+
Parameters: {"group"=>"experienced_chefs", "feature_id"=>"extra_sharp_knives"}
|
5391
|
+
Completed 204 No Content in 0ms
|
5392
|
+
--------------------------------------------
|
5393
|
+
RolloutControlTest: test_add_user_to_feature
|
5394
|
+
--------------------------------------------
|
5395
|
+
Started POST "/rollout/features/potato_gun/users" for 127.0.0.1 at 2014-11-12 17:14:36 -0800
|
5396
|
+
Processing by RolloutControl::UsersController#create as HTML
|
5397
|
+
Parameters: {"user_id"=>"45", "feature_id"=>"potato_gun"}
|
5398
|
+
Completed 204 No Content in 0ms
|
5399
|
+
------------------------------------------------------------------------------
|
5400
|
+
RolloutControlTest: test_attempt_to_activate_user_to_feature_without_a_user_id
|
5401
|
+
------------------------------------------------------------------------------
|
5402
|
+
Started POST "/rollout/features/potato_gun/users" for 127.0.0.1 at 2014-11-12 17:14:36 -0800
|
5403
|
+
Processing by RolloutControl::UsersController#create as HTML
|
5404
|
+
Parameters: {"feature_id"=>"potato_gun"}
|
5405
|
+
Completed 400 Bad Request in 0ms
|
5406
|
+
-----------------------------------------------------------------------------
|
5407
|
+
RolloutControlTest: test_attempt_to_add_group_to_feature_without_a_group_name
|
5408
|
+
-----------------------------------------------------------------------------
|
5409
|
+
Started POST "/rollout/features/extra_sharp_knives/groups" for 127.0.0.1 at 2014-11-12 17:14:36 -0800
|
5410
|
+
Processing by RolloutControl::GroupsController#create as HTML
|
5411
|
+
Parameters: {"feature_id"=>"extra_sharp_knives"}
|
5412
|
+
Completed 400 Bad Request in 0ms
|
5413
|
+
------------------------------------------------------------------------
|
5414
|
+
RolloutControlTest: test_can_login_with_configured_username_and_password
|
5415
|
+
------------------------------------------------------------------------
|
5416
|
+
Started GET "/rollout/features" for 127.0.0.1 at 2014-11-12 17:14:36 -0800
|
5417
|
+
Processing by RolloutControl::FeaturesController#index as JSON
|
5418
|
+
Completed 200 OK in 0ms (Views: 0.1ms)
|
5419
|
+
--------------------------------------------
|
5420
|
+
RolloutControlTest: test_list_empty_features
|
5421
|
+
--------------------------------------------
|
5422
|
+
Started GET "/rollout/features" for 127.0.0.1 at 2014-11-12 17:14:36 -0800
|
5423
|
+
Processing by RolloutControl::FeaturesController#index as HTML
|
5424
|
+
Completed 200 OK in 0ms (Views: 0.0ms)
|
5425
|
+
-----------------------------------------------
|
5426
|
+
RolloutControlTest: test_list_existing_features
|
5427
|
+
-----------------------------------------------
|
5428
|
+
Started GET "/rollout/features" for 127.0.0.1 at 2014-11-12 17:14:36 -0800
|
5429
|
+
Processing by RolloutControl::FeaturesController#index as HTML
|
5430
|
+
Completed 200 OK in 0ms (Views: 0.0ms)
|
5431
|
+
Started GET "/rollout/features" for 127.0.0.1 at 2014-11-12 17:14:36 -0800
|
5432
|
+
Processing by RolloutControl::FeaturesController#index as HTML
|
5433
|
+
Completed 200 OK in 0ms (Views: 0.1ms)
|
5434
|
+
----------------------------------------------------
|
5435
|
+
RolloutControlTest: test_protect_API_with_basic_auth
|
5436
|
+
----------------------------------------------------
|
5437
|
+
Started GET "/rollout/features" for 127.0.0.1 at 2014-11-12 17:14:36 -0800
|
5438
|
+
Processing by RolloutControl::FeaturesController#index as HTML
|
5439
|
+
Filter chain halted as :authenticate rendered or redirected
|
5440
|
+
Completed 401 Unauthorized in 0ms
|
5441
|
+
--------------------------------------------------
|
5442
|
+
RolloutControlTest: test_remove_group_from_feature
|
5443
|
+
--------------------------------------------------
|
5444
|
+
Started DELETE "/rollout/features/extra_sharp_knives/groups/experienced_chefs" for 127.0.0.1 at 2014-11-12 17:14:36 -0800
|
5445
|
+
Processing by RolloutControl::GroupsController#destroy as HTML
|
5446
|
+
Parameters: {"feature_id"=>"extra_sharp_knives", "id"=>"experienced_chefs"}
|
5447
|
+
Completed 204 No Content in 0ms
|
5448
|
+
-------------------------------------------------
|
5449
|
+
RolloutControlTest: test_remove_user_from_feature
|
5450
|
+
-------------------------------------------------
|
5451
|
+
Started DELETE "/rollout/features/potato_gun/users/45" for 127.0.0.1 at 2014-11-12 17:14:36 -0800
|
5452
|
+
Processing by RolloutControl::UsersController#destroy as HTML
|
5453
|
+
Parameters: {"feature_id"=>"potato_gun", "id"=>"45"}
|
5454
|
+
Completed 204 No Content in 0ms
|
5455
|
+
-------------------------------------
|
5456
|
+
RolloutControlTest: test_show_feature
|
5457
|
+
-------------------------------------
|
5458
|
+
Started GET "/rollout/features/kittens" for 127.0.0.1 at 2014-11-12 17:14:36 -0800
|
5459
|
+
Processing by RolloutControl::FeaturesController#show as HTML
|
5460
|
+
Parameters: {"id"=>"kittens"}
|
5461
|
+
Completed 500 Internal Server Error in 0ms
|
5462
|
+
------------------------------------------------------------------------------------
|
5463
|
+
RolloutControlTest: test_unset_basic_auth_username_and_password_does_not_allow_login
|
5464
|
+
------------------------------------------------------------------------------------
|
5465
|
+
Started GET "/rollout/features" for 127.0.0.1 at 2014-11-12 17:14:36 -0800
|
5466
|
+
Processing by RolloutControl::FeaturesController#index as JSON
|
5467
|
+
Filter chain halted as :authenticate rendered or redirected
|
5468
|
+
Completed 401 Unauthorized in 0ms
|
5469
|
+
--------------------------------------------------
|
5470
|
+
RolloutControlTest: test_update_feature_percentage
|
5471
|
+
--------------------------------------------------
|
5472
|
+
Started PATCH "/rollout/features/kittens" for 127.0.0.1 at 2014-11-12 17:14:36 -0800
|
5473
|
+
Processing by RolloutControl::FeaturesController#update as HTML
|
5474
|
+
Parameters: {"percentage"=>"65", "id"=>"kittens"}
|
5475
|
+
Completed 204 No Content in 0ms
|
5476
|
+
------------------------------------------------
|
5477
|
+
RolloutControl::FeaturesControllerTest: test_wat
|
5478
|
+
------------------------------------------------
|
5479
|
+
---------------------------------------------
|
5480
|
+
RolloutControlTest: test_add_group_to_feature
|
5481
|
+
---------------------------------------------
|
5482
|
+
Started POST "/rollout/features/extra_sharp_knives/groups" for 127.0.0.1 at 2014-11-12 17:14:50 -0800
|
5483
|
+
Processing by RolloutControl::GroupsController#create as HTML
|
5484
|
+
Parameters: {"group"=>"experienced_chefs", "feature_id"=>"extra_sharp_knives"}
|
5485
|
+
Completed 204 No Content in 0ms
|
5486
|
+
--------------------------------------------
|
5487
|
+
RolloutControlTest: test_add_user_to_feature
|
5488
|
+
--------------------------------------------
|
5489
|
+
Started POST "/rollout/features/potato_gun/users" for 127.0.0.1 at 2014-11-12 17:14:50 -0800
|
5490
|
+
Processing by RolloutControl::UsersController#create as HTML
|
5491
|
+
Parameters: {"user_id"=>"45", "feature_id"=>"potato_gun"}
|
5492
|
+
Completed 204 No Content in 0ms
|
5493
|
+
------------------------------------------------------------------------------
|
5494
|
+
RolloutControlTest: test_attempt_to_activate_user_to_feature_without_a_user_id
|
5495
|
+
------------------------------------------------------------------------------
|
5496
|
+
Started POST "/rollout/features/potato_gun/users" for 127.0.0.1 at 2014-11-12 17:14:50 -0800
|
5497
|
+
Processing by RolloutControl::UsersController#create as HTML
|
5498
|
+
Parameters: {"feature_id"=>"potato_gun"}
|
5499
|
+
Completed 400 Bad Request in 0ms
|
5500
|
+
-----------------------------------------------------------------------------
|
5501
|
+
RolloutControlTest: test_attempt_to_add_group_to_feature_without_a_group_name
|
5502
|
+
-----------------------------------------------------------------------------
|
5503
|
+
Started POST "/rollout/features/extra_sharp_knives/groups" for 127.0.0.1 at 2014-11-12 17:14:50 -0800
|
5504
|
+
Processing by RolloutControl::GroupsController#create as HTML
|
5505
|
+
Parameters: {"feature_id"=>"extra_sharp_knives"}
|
5506
|
+
Completed 400 Bad Request in 0ms
|
5507
|
+
------------------------------------------------------------------------
|
5508
|
+
RolloutControlTest: test_can_login_with_configured_username_and_password
|
5509
|
+
------------------------------------------------------------------------
|
5510
|
+
Started GET "/rollout/features" for 127.0.0.1 at 2014-11-12 17:14:50 -0800
|
5511
|
+
Processing by RolloutControl::FeaturesController#index as JSON
|
5512
|
+
Completed 200 OK in 0ms (Views: 0.1ms)
|
5513
|
+
--------------------------------------------
|
5514
|
+
RolloutControlTest: test_list_empty_features
|
5515
|
+
--------------------------------------------
|
5516
|
+
Started GET "/rollout/features" for 127.0.0.1 at 2014-11-12 17:14:50 -0800
|
5517
|
+
Processing by RolloutControl::FeaturesController#index as HTML
|
5518
|
+
Completed 200 OK in 0ms (Views: 0.0ms)
|
5519
|
+
-----------------------------------------------
|
5520
|
+
RolloutControlTest: test_list_existing_features
|
5521
|
+
-----------------------------------------------
|
5522
|
+
Started GET "/rollout/features" for 127.0.0.1 at 2014-11-12 17:14:50 -0800
|
5523
|
+
Processing by RolloutControl::FeaturesController#index as HTML
|
5524
|
+
Completed 200 OK in 0ms (Views: 0.0ms)
|
5525
|
+
Started GET "/rollout/features" for 127.0.0.1 at 2014-11-12 17:14:50 -0800
|
5526
|
+
Processing by RolloutControl::FeaturesController#index as HTML
|
5527
|
+
Completed 200 OK in 0ms (Views: 0.0ms)
|
5528
|
+
----------------------------------------------------
|
5529
|
+
RolloutControlTest: test_protect_API_with_basic_auth
|
5530
|
+
----------------------------------------------------
|
5531
|
+
Started GET "/rollout/features" for 127.0.0.1 at 2014-11-12 17:14:50 -0800
|
5532
|
+
Processing by RolloutControl::FeaturesController#index as HTML
|
5533
|
+
Filter chain halted as :authenticate rendered or redirected
|
5534
|
+
Completed 401 Unauthorized in 0ms
|
5535
|
+
--------------------------------------------------
|
5536
|
+
RolloutControlTest: test_remove_group_from_feature
|
5537
|
+
--------------------------------------------------
|
5538
|
+
Started DELETE "/rollout/features/extra_sharp_knives/groups/experienced_chefs" for 127.0.0.1 at 2014-11-12 17:14:50 -0800
|
5539
|
+
Processing by RolloutControl::GroupsController#destroy as HTML
|
5540
|
+
Parameters: {"feature_id"=>"extra_sharp_knives", "id"=>"experienced_chefs"}
|
5541
|
+
Completed 204 No Content in 0ms
|
5542
|
+
-------------------------------------------------
|
5543
|
+
RolloutControlTest: test_remove_user_from_feature
|
5544
|
+
-------------------------------------------------
|
5545
|
+
Started DELETE "/rollout/features/potato_gun/users/45" for 127.0.0.1 at 2014-11-12 17:14:50 -0800
|
5546
|
+
Processing by RolloutControl::UsersController#destroy as HTML
|
5547
|
+
Parameters: {"feature_id"=>"potato_gun", "id"=>"45"}
|
5548
|
+
Completed 204 No Content in 0ms
|
5549
|
+
-------------------------------------
|
5550
|
+
RolloutControlTest: test_show_feature
|
5551
|
+
-------------------------------------
|
5552
|
+
Started GET "/rollout/features/kittens" for 127.0.0.1 at 2014-11-12 17:14:50 -0800
|
5553
|
+
Processing by RolloutControl::FeaturesController#show as HTML
|
5554
|
+
Parameters: {"id"=>"kittens"}
|
5555
|
+
Completed 200 OK in 0ms (Views: 0.1ms)
|
5556
|
+
Started GET "/rollout/features/kittens" for 127.0.0.1 at 2014-11-12 17:14:50 -0800
|
5557
|
+
Processing by RolloutControl::FeaturesController#show as HTML
|
5558
|
+
Parameters: {"id"=>"kittens"}
|
5559
|
+
Completed 200 OK in 0ms (Views: 0.1ms)
|
5560
|
+
Started GET "/rollout/features/kittens" for 127.0.0.1 at 2014-11-12 17:14:50 -0800
|
5561
|
+
Processing by RolloutControl::FeaturesController#show as HTML
|
5562
|
+
Parameters: {"id"=>"kittens"}
|
5563
|
+
Completed 200 OK in 0ms (Views: 0.1ms)
|
5564
|
+
------------------------------------------------------------------------------------
|
5565
|
+
RolloutControlTest: test_unset_basic_auth_username_and_password_does_not_allow_login
|
5566
|
+
------------------------------------------------------------------------------------
|
5567
|
+
Started GET "/rollout/features" for 127.0.0.1 at 2014-11-12 17:14:50 -0800
|
5568
|
+
Processing by RolloutControl::FeaturesController#index as JSON
|
5569
|
+
Filter chain halted as :authenticate rendered or redirected
|
5570
|
+
Completed 401 Unauthorized in 0ms
|
5571
|
+
--------------------------------------------------
|
5572
|
+
RolloutControlTest: test_update_feature_percentage
|
5573
|
+
--------------------------------------------------
|
5574
|
+
Started PATCH "/rollout/features/kittens" for 127.0.0.1 at 2014-11-12 17:14:50 -0800
|
5575
|
+
Processing by RolloutControl::FeaturesController#update as HTML
|
5576
|
+
Parameters: {"percentage"=>"65", "id"=>"kittens"}
|
5577
|
+
Completed 204 No Content in 0ms
|
5578
|
+
------------------------------------------------
|
5579
|
+
RolloutControl::FeaturesControllerTest: test_wat
|
5580
|
+
------------------------------------------------
|
5581
|
+
------------------------------------------------
|
5582
|
+
RolloutControl::FeaturesControllerTest: test_wat
|
5583
|
+
------------------------------------------------
|
5584
|
+
---------------------------------------------
|
5585
|
+
RolloutControlTest: test_add_group_to_feature
|
5586
|
+
---------------------------------------------
|
5587
|
+
Started POST "/rollout/features/extra_sharp_knives/groups" for 127.0.0.1 at 2014-11-12 17:15:47 -0800
|
5588
|
+
Processing by RolloutControl::GroupsController#create as HTML
|
5589
|
+
Parameters: {"group"=>"experienced_chefs", "feature_id"=>"extra_sharp_knives"}
|
5590
|
+
Completed 204 No Content in 0ms
|
5591
|
+
--------------------------------------------
|
5592
|
+
RolloutControlTest: test_add_user_to_feature
|
5593
|
+
--------------------------------------------
|
5594
|
+
Started POST "/rollout/features/potato_gun/users" for 127.0.0.1 at 2014-11-12 17:15:47 -0800
|
5595
|
+
Processing by RolloutControl::UsersController#create as HTML
|
5596
|
+
Parameters: {"user_id"=>"45", "feature_id"=>"potato_gun"}
|
5597
|
+
Completed 204 No Content in 0ms
|
5598
|
+
------------------------------------------------------------------------------
|
5599
|
+
RolloutControlTest: test_attempt_to_activate_user_to_feature_without_a_user_id
|
5600
|
+
------------------------------------------------------------------------------
|
5601
|
+
Started POST "/rollout/features/potato_gun/users" for 127.0.0.1 at 2014-11-12 17:15:47 -0800
|
5602
|
+
Processing by RolloutControl::UsersController#create as HTML
|
5603
|
+
Parameters: {"feature_id"=>"potato_gun"}
|
5604
|
+
Completed 400 Bad Request in 0ms
|
5605
|
+
-----------------------------------------------------------------------------
|
5606
|
+
RolloutControlTest: test_attempt_to_add_group_to_feature_without_a_group_name
|
5607
|
+
-----------------------------------------------------------------------------
|
5608
|
+
Started POST "/rollout/features/extra_sharp_knives/groups" for 127.0.0.1 at 2014-11-12 17:15:47 -0800
|
5609
|
+
Processing by RolloutControl::GroupsController#create as HTML
|
5610
|
+
Parameters: {"feature_id"=>"extra_sharp_knives"}
|
5611
|
+
Completed 400 Bad Request in 0ms
|
5612
|
+
------------------------------------------------------------------------
|
5613
|
+
RolloutControlTest: test_can_login_with_configured_username_and_password
|
5614
|
+
------------------------------------------------------------------------
|
5615
|
+
Started GET "/rollout/features" for 127.0.0.1 at 2014-11-12 17:15:47 -0800
|
5616
|
+
Processing by RolloutControl::FeaturesController#index as JSON
|
5617
|
+
Completed 200 OK in 0ms (Views: 0.1ms)
|
5618
|
+
--------------------------------------------
|
5619
|
+
RolloutControlTest: test_list_empty_features
|
5620
|
+
--------------------------------------------
|
5621
|
+
Started GET "/rollout/features" for 127.0.0.1 at 2014-11-12 17:15:47 -0800
|
5622
|
+
Processing by RolloutControl::FeaturesController#index as HTML
|
5623
|
+
Completed 200 OK in 0ms (Views: 0.0ms)
|
5624
|
+
-----------------------------------------------
|
5625
|
+
RolloutControlTest: test_list_existing_features
|
5626
|
+
-----------------------------------------------
|
5627
|
+
Started GET "/rollout/features" for 127.0.0.1 at 2014-11-12 17:15:47 -0800
|
5628
|
+
Processing by RolloutControl::FeaturesController#index as HTML
|
5629
|
+
Completed 200 OK in 0ms (Views: 0.0ms)
|
5630
|
+
Started GET "/rollout/features" for 127.0.0.1 at 2014-11-12 17:15:47 -0800
|
5631
|
+
Processing by RolloutControl::FeaturesController#index as HTML
|
5632
|
+
Completed 200 OK in 0ms (Views: 0.0ms)
|
5633
|
+
----------------------------------------------------
|
5634
|
+
RolloutControlTest: test_protect_API_with_basic_auth
|
5635
|
+
----------------------------------------------------
|
5636
|
+
Started GET "/rollout/features" for 127.0.0.1 at 2014-11-12 17:15:47 -0800
|
5637
|
+
Processing by RolloutControl::FeaturesController#index as HTML
|
5638
|
+
Filter chain halted as :authenticate rendered or redirected
|
5639
|
+
Completed 401 Unauthorized in 0ms
|
5640
|
+
--------------------------------------------------
|
5641
|
+
RolloutControlTest: test_remove_group_from_feature
|
5642
|
+
--------------------------------------------------
|
5643
|
+
Started DELETE "/rollout/features/extra_sharp_knives/groups/experienced_chefs" for 127.0.0.1 at 2014-11-12 17:15:47 -0800
|
5644
|
+
Processing by RolloutControl::GroupsController#destroy as HTML
|
5645
|
+
Parameters: {"feature_id"=>"extra_sharp_knives", "id"=>"experienced_chefs"}
|
5646
|
+
Completed 204 No Content in 0ms
|
5647
|
+
-------------------------------------------------
|
5648
|
+
RolloutControlTest: test_remove_user_from_feature
|
5649
|
+
-------------------------------------------------
|
5650
|
+
Started DELETE "/rollout/features/potato_gun/users/45" for 127.0.0.1 at 2014-11-12 17:15:47 -0800
|
5651
|
+
Processing by RolloutControl::UsersController#destroy as HTML
|
5652
|
+
Parameters: {"feature_id"=>"potato_gun", "id"=>"45"}
|
5653
|
+
Completed 204 No Content in 0ms
|
5654
|
+
-------------------------------------
|
5655
|
+
RolloutControlTest: test_show_feature
|
5656
|
+
-------------------------------------
|
5657
|
+
Started GET "/rollout/features/kittens" for 127.0.0.1 at 2014-11-12 17:15:47 -0800
|
5658
|
+
Processing by RolloutControl::FeaturesController#show as HTML
|
5659
|
+
Parameters: {"id"=>"kittens"}
|
5660
|
+
Completed 200 OK in 0ms (Views: 0.1ms)
|
5661
|
+
Started GET "/rollout/features/kittens" for 127.0.0.1 at 2014-11-12 17:15:47 -0800
|
5662
|
+
Processing by RolloutControl::FeaturesController#show as HTML
|
5663
|
+
Parameters: {"id"=>"kittens"}
|
5664
|
+
Completed 200 OK in 0ms (Views: 0.1ms)
|
5665
|
+
Started GET "/rollout/features/kittens" for 127.0.0.1 at 2014-11-12 17:15:47 -0800
|
5666
|
+
Processing by RolloutControl::FeaturesController#show as HTML
|
5667
|
+
Parameters: {"id"=>"kittens"}
|
5668
|
+
Completed 200 OK in 0ms (Views: 0.1ms)
|
5669
|
+
------------------------------------------------------------------------------------
|
5670
|
+
RolloutControlTest: test_unset_basic_auth_username_and_password_does_not_allow_login
|
5671
|
+
------------------------------------------------------------------------------------
|
5672
|
+
Started GET "/rollout/features" for 127.0.0.1 at 2014-11-12 17:15:47 -0800
|
5673
|
+
Processing by RolloutControl::FeaturesController#index as JSON
|
5674
|
+
Filter chain halted as :authenticate rendered or redirected
|
5675
|
+
Completed 401 Unauthorized in 0ms
|
5676
|
+
--------------------------------------------------
|
5677
|
+
RolloutControlTest: test_update_feature_percentage
|
5678
|
+
--------------------------------------------------
|
5679
|
+
Started PATCH "/rollout/features/kittens" for 127.0.0.1 at 2014-11-12 17:15:47 -0800
|
5680
|
+
Processing by RolloutControl::FeaturesController#update as HTML
|
5681
|
+
Parameters: {"percentage"=>"65", "id"=>"kittens"}
|
5682
|
+
Completed 204 No Content in 0ms
|
@@ -30,7 +30,7 @@ class RolloutControlTest < ActionDispatch::IntegrationTest
|
|
30
30
|
rollout.activate(:kittens)
|
31
31
|
get '/rollout/features/kittens'
|
32
32
|
assert_response :success
|
33
|
-
feature_data = { 'percentage' => 100, 'groups' => [], 'users' => [] }
|
33
|
+
feature_data = { 'name' => 'kittens', 'percentage' => 100, 'groups' => [], 'users' => [] }
|
34
34
|
assert_equal feature_data, last_json
|
35
35
|
|
36
36
|
rollout.activate_percentage(:kittens, 75)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rollout_control
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Royer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -74,7 +74,6 @@ extensions: []
|
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
76
|
- MIT-LICENSE
|
77
|
-
- README.rdoc
|
78
77
|
- Rakefile
|
79
78
|
- app/controllers/rollout_control/application_controller.rb
|
80
79
|
- app/controllers/rollout_control/features_controller.rb
|
data/README.rdoc
DELETED