defra_ruby_features 0.1.4 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/defra_ruby_features/version.rb +1 -1
- metadata +21 -262
- data/spec/dummy/Rakefile +0 -8
- data/spec/dummy/app/assets/config/manifest.js +0 -3
- data/spec/dummy/app/assets/stylesheets/application.css +0 -15
- data/spec/dummy/app/channels/application_cable/channel.rb +0 -6
- data/spec/dummy/app/channels/application_cable/connection.rb +0 -6
- data/spec/dummy/app/controllers/application_controller.rb +0 -4
- data/spec/dummy/app/controllers/test_controller.rb +0 -7
- data/spec/dummy/app/helpers/application_helper.rb +0 -4
- data/spec/dummy/app/javascript/packs/application.js +0 -14
- data/spec/dummy/app/jobs/application_job.rb +0 -9
- data/spec/dummy/app/models/ability.rb +0 -9
- data/spec/dummy/app/models/application_record.rb +0 -5
- data/spec/dummy/app/models/feature_toggle.rb +0 -4
- data/spec/dummy/app/models/user.rb +0 -8
- data/spec/dummy/app/views/layouts/application.html.erb +0 -12
- data/spec/dummy/bin/rails +0 -4
- data/spec/dummy/bin/rake +0 -4
- data/spec/dummy/bin/setup +0 -25
- data/spec/dummy/config/application.rb +0 -29
- data/spec/dummy/config/boot.rb +0 -7
- data/spec/dummy/config/database.yml +0 -21
- data/spec/dummy/config/environment.rb +0 -7
- data/spec/dummy/config/environments/development.rb +0 -50
- data/spec/dummy/config/environments/test.rb +0 -41
- data/spec/dummy/config/initializers/application_controller_renderer.rb +0 -10
- data/spec/dummy/config/initializers/assets.rb +0 -14
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -9
- data/spec/dummy/config/initializers/content_security_policy.rb +0 -30
- data/spec/dummy/config/initializers/cookies_serializer.rb +0 -7
- data/spec/dummy/config/initializers/defra_ruby_features.rb +0 -7
- data/spec/dummy/config/initializers/devise.rb +0 -311
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -6
- data/spec/dummy/config/initializers/inflections.rb +0 -18
- data/spec/dummy/config/initializers/mime_types.rb +0 -6
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -11
- data/spec/dummy/config/locales/devise.en.yml +0 -65
- data/spec/dummy/config/locales/en.yml +0 -33
- data/spec/dummy/config/routes.rb +0 -7
- data/spec/dummy/config.ru +0 -7
- data/spec/dummy/db/migrate/20200623125321_create_feature_toggles.rb +0 -12
- data/spec/dummy/db/migrate/20200624115316_devise_create_users.rb +0 -44
- data/spec/dummy/db/schema.rb +0 -34
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +0 -341
- data/spec/dummy/public/404.html +0 -67
- data/spec/dummy/public/422.html +0 -67
- data/spec/dummy/public/500.html +0 -66
- data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/spec/dummy/public/apple-touch-icon.png +0 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/tmp/development_secret.txt +0 -1
- data/spec/examples.txt +0 -13
- data/spec/factories/feature_toggle.rb +0 -8
- data/spec/factories/user.rb +0 -11
- data/spec/lib/defra_ruby_mocks/configuration_spec.rb +0 -13
- data/spec/rails_helper.rb +0 -54
- data/spec/requests/defra_ruby_features/feature_toggles_spec.rb +0 -145
- data/spec/spec_helper.rb +0 -83
- data/spec/support/database_cleaner.rb +0 -19
- data/spec/support/devise.rb +0 -5
- data/spec/support/factory_bot.rb +0 -8
- data/spec/support/migrations.rb +0 -10
- data/spec/support/pry.rb +0 -7
- data/spec/support/rails_controller_testing.rb +0 -5
- data/spec/support/simplecov.rb +0 -17
@@ -1,44 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
class DeviseCreateUsers < ActiveRecord::Migration[6.0]
|
4
|
-
def change
|
5
|
-
create_table :users do |t|
|
6
|
-
## Database authenticatable
|
7
|
-
t.string :email, null: false, default: ""
|
8
|
-
t.string :encrypted_password, null: false, default: ""
|
9
|
-
|
10
|
-
## Recoverable
|
11
|
-
t.string :reset_password_token
|
12
|
-
t.datetime :reset_password_sent_at
|
13
|
-
|
14
|
-
## Rememberable
|
15
|
-
t.datetime :remember_created_at
|
16
|
-
|
17
|
-
## Trackable
|
18
|
-
# t.integer :sign_in_count, default: 0, null: false
|
19
|
-
# t.datetime :current_sign_in_at
|
20
|
-
# t.datetime :last_sign_in_at
|
21
|
-
# t.string :current_sign_in_ip
|
22
|
-
# t.string :last_sign_in_ip
|
23
|
-
|
24
|
-
## Confirmable
|
25
|
-
# t.string :confirmation_token
|
26
|
-
# t.datetime :confirmed_at
|
27
|
-
# t.datetime :confirmation_sent_at
|
28
|
-
# t.string :unconfirmed_email # Only if using reconfirmable
|
29
|
-
|
30
|
-
## Lockable
|
31
|
-
# t.integer :failed_attempts, default: 0, null: false # Only if lock strategy is :failed_attempts
|
32
|
-
# t.string :unlock_token # Only if unlock strategy is :email or :both
|
33
|
-
# t.datetime :locked_at
|
34
|
-
|
35
|
-
|
36
|
-
t.timestamps null: false
|
37
|
-
end
|
38
|
-
|
39
|
-
add_index :users, :email, unique: true
|
40
|
-
add_index :users, :reset_password_token, unique: true
|
41
|
-
# add_index :users, :confirmation_token, unique: true
|
42
|
-
# add_index :users, :unlock_token, unique: true
|
43
|
-
end
|
44
|
-
end
|
data/spec/dummy/db/schema.rb
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
# This file is auto-generated from the current state of the database. Instead
|
2
|
-
# of editing this file, please use the migrations feature of Active Record to
|
3
|
-
# incrementally modify your database, and then regenerate this schema definition.
|
4
|
-
#
|
5
|
-
# This file is the source Rails uses to define your schema when running `rails
|
6
|
-
# db:schema:load`. When creating a new database, `rails db:schema:load` tends to
|
7
|
-
# be faster and is potentially less error prone than running all of your
|
8
|
-
# migrations from scratch. Old migrations may fail to apply correctly if those
|
9
|
-
# migrations use external dependencies or application code.
|
10
|
-
#
|
11
|
-
# It's strongly recommended that you check this file into your version control system.
|
12
|
-
|
13
|
-
ActiveRecord::Schema.define(version: 2020_06_24_115316) do
|
14
|
-
|
15
|
-
create_table "feature_toggles", force: :cascade do |t|
|
16
|
-
t.string "key"
|
17
|
-
t.boolean "active"
|
18
|
-
t.datetime "created_at", precision: 6, null: false
|
19
|
-
t.datetime "updated_at", precision: 6, null: false
|
20
|
-
end
|
21
|
-
|
22
|
-
create_table "users", force: :cascade do |t|
|
23
|
-
t.string "email", default: "", null: false
|
24
|
-
t.string "encrypted_password", default: "", null: false
|
25
|
-
t.string "reset_password_token"
|
26
|
-
t.datetime "reset_password_sent_at"
|
27
|
-
t.datetime "remember_created_at"
|
28
|
-
t.datetime "created_at", precision: 6, null: false
|
29
|
-
t.datetime "updated_at", precision: 6, null: false
|
30
|
-
t.index ["email"], name: "index_users_on_email", unique: true
|
31
|
-
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
|
32
|
-
end
|
33
|
-
|
34
|
-
end
|
data/spec/dummy/db/test.sqlite3
DELETED
Binary file
|
data/spec/dummy/log/test.log
DELETED
@@ -1,341 +0,0 @@
|
|
1
|
-
[1m[35m (1.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2
|
-
[1m[35m (1.5ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
3
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
4
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
5
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "feature_toggles"[0m
|
6
|
-
[1m[35m (1.7ms)[0m [1m[35mCREATE TABLE "feature_toggles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "key" varchar, "active" boolean, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
7
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "users"[0m
|
8
|
-
[1m[35m (1.5ms)[0m [1m[35mCREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
9
|
-
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
10
|
-
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
11
|
-
[1m[35m (1.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
12
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
13
|
-
[1m[35m (1.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20200624115316)[0m
|
14
|
-
[1m[35m (1.3ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
15
|
-
(20200623125321);
|
16
|
-
|
17
|
-
[0m
|
18
|
-
[1m[35m (1.4ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
19
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
20
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
21
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2021-08-31 13:10:31.411811"], ["updated_at", "2021-08-31 13:10:31.411811"]]
|
22
|
-
[1m[35m (0.9ms)[0m [1m[36mcommit transaction[0m
|
23
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
24
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "schema_sha1"], ["LIMIT", 1]]
|
25
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
26
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "schema_sha1"], ["value", "8dfe9119086661dc796fa00452dc81ff692523f5"], ["created_at", "2021-08-31 13:10:31.415677"], ["updated_at", "2021-08-31 13:10:31.415677"]]
|
27
|
-
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
28
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
29
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
30
|
-
[1m[35m (0.2ms)[0m [1m[35mPRAGMA foreign_keys[0m
|
31
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys[0m
|
32
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys = ON[0m
|
33
|
-
[1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m
|
34
|
-
[1m[35m (0.2ms)[0m [1m[35mTRUNCATE TABLE "feature_toggles"[0m
|
35
|
-
[1m[35m (1.2ms)[0m [1m[31mDELETE FROM "feature_toggles"[0m
|
36
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
37
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'feature_toggles';[0m
|
38
|
-
[1m[35m (0.1ms)[0m [1m[35mTRUNCATE TABLE "users"[0m
|
39
|
-
[1m[35m (1.0ms)[0m [1m[31mDELETE FROM "users"[0m
|
40
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
41
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'users';[0m
|
42
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys = 0[0m
|
43
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m
|
44
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
46
|
-
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
47
|
-
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
48
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
49
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
51
|
-
[1m[36mFeatureToggle Create (0.4ms)[0m [1m[32mINSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "test-feature"], ["active", 0], ["created_at", "2021-08-31 13:10:32.093337"], ["updated_at", "2021-08-31 13:10:32.093337"]]
|
52
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
53
|
-
Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2021-08-31 14:10:32 +0100
|
54
|
-
Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML
|
55
|
-
Parameters: {"id"=>"1"}
|
56
|
-
Completed 401 Unauthorized in 11ms (ActiveRecord: 0.0ms | Allocations: 1322)
|
57
|
-
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
58
|
-
[1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
|
59
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
60
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
61
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
62
|
-
[1m[36mFeatureToggle Create (0.4ms)[0m [1m[32mINSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "test-feature"], ["active", 0], ["created_at", "2021-08-31 13:10:32.158059"], ["updated_at", "2021-08-31 13:10:32.158059"]]
|
63
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
64
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
65
|
-
[1m[36mUser Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "user1@example.com"], ["LIMIT", 1]]
|
66
|
-
[1m[36mUser Create (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@example.com"], ["encrypted_password", "$2a$04$YBIfY4.gHtHOx/4WbHFKuOxvy12qDcxGQHtopspdKw2o6O43nj4rm"], ["created_at", "2021-08-31 13:10:32.323501"], ["updated_at", "2021-08-31 13:10:32.323501"]]
|
67
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
68
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "feature_toggles"[0m
|
69
|
-
Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2021-08-31 14:10:32 +0100
|
70
|
-
Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML
|
71
|
-
Parameters: {"id"=>"1"}
|
72
|
-
[1m[36mFeatureToggle Load (0.1ms)[0m [1m[34mSELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
73
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
74
|
-
[1m[36mFeatureToggle Destroy (0.1ms)[0m [1m[31mDELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ?[0m [["id", 1]]
|
75
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
76
|
-
Redirected to http://www.example.com/feature-toggles
|
77
|
-
Completed 302 Found in 4ms (ActiveRecord: 0.3ms | Allocations: 878)
|
78
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "feature_toggles"[0m
|
79
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
80
|
-
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
81
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
82
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
83
|
-
Started POST "/feature-toggles" for 127.0.0.1 at 2021-08-31 14:10:32 +0100
|
84
|
-
Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML
|
85
|
-
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 142)
|
86
|
-
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
87
|
-
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
88
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
89
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
90
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
91
|
-
[1m[36mUser Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "user2@example.com"], ["LIMIT", 1]]
|
92
|
-
[1m[36mUser Create (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@example.com"], ["encrypted_password", "$2a$04$DOdRVTRN5W9K4/iC7Glkf.zBJ3PYaobHkC8FeirOK6OVJGcwzxe26"], ["created_at", "2021-08-31 13:10:32.356978"], ["updated_at", "2021-08-31 13:10:32.356978"]]
|
93
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
94
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "feature_toggles"[0m
|
95
|
-
Started POST "/feature-toggles" for 127.0.0.1 at 2021-08-31 14:10:32 +0100
|
96
|
-
Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML
|
97
|
-
Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}
|
98
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
99
|
-
[1m[36mFeatureToggle Create (0.2ms)[0m [1m[32mINSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "test"], ["active", 1], ["created_at", "2021-08-31 13:10:32.365531"], ["updated_at", "2021-08-31 13:10:32.365531"]]
|
100
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
101
|
-
Redirected to http://www.example.com/feature-toggles
|
102
|
-
Completed 302 Found in 3ms (ActiveRecord: 0.4ms | Allocations: 667)
|
103
|
-
[1m[36mFeatureToggle Load (0.2ms)[0m [1m[34mSELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
104
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "feature_toggles"[0m
|
105
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
106
|
-
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
107
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
108
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
109
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
110
|
-
[1m[36mUser Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "user3@example.com"], ["LIMIT", 1]]
|
111
|
-
[1m[36mUser Create (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@example.com"], ["encrypted_password", "$2a$04$lQow859ukTlbk2l7u5foROdA5DkxIVoFzE1q9s4YkrNvzAhiNuTN."], ["created_at", "2021-08-31 13:10:32.379436"], ["updated_at", "2021-08-31 13:10:32.379436"]]
|
112
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
113
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
114
|
-
[1m[36mFeatureToggle Create (0.1ms)[0m [1m[32mINSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2021-08-31 13:10:32.381623"], ["updated_at", "2021-08-31 13:10:32.381623"]]
|
115
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
116
|
-
Started GET "/feature-toggles" for 127.0.0.1 at 2021-08-31 14:10:32 +0100
|
117
|
-
Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML
|
118
|
-
Rendering /Users/toby/Code/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application
|
119
|
-
[1m[36mFeatureToggle Load (0.3ms)[0m [1m[34mSELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC[0m
|
120
|
-
Rendered /Users/toby/Code/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 20.0ms | Allocations: 2982)
|
121
|
-
Completed 200 OK in 33ms (Views: 27.7ms | ActiveRecord: 0.3ms | Allocations: 5521)
|
122
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
123
|
-
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
124
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
125
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
126
|
-
Started GET "/feature-toggles" for 127.0.0.1 at 2021-08-31 14:10:32 +0100
|
127
|
-
Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML
|
128
|
-
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 142)
|
129
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
130
|
-
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
131
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
132
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
133
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
134
|
-
[1m[36mUser Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "user4@example.com"], ["LIMIT", 1]]
|
135
|
-
[1m[36mUser Create (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@example.com"], ["encrypted_password", "$2a$04$5bhtL5ebBqK.QaijgVvO5.tQW2.cElnFEUQ0XxgkRR2gfDvZGjPdS"], ["created_at", "2021-08-31 13:10:32.438965"], ["updated_at", "2021-08-31 13:10:32.438965"]]
|
136
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
137
|
-
Started GET "/feature-toggles/new" for 127.0.0.1 at 2021-08-31 14:10:32 +0100
|
138
|
-
Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML
|
139
|
-
Rendering /Users/toby/Code/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application
|
140
|
-
Rendered /Users/toby/Code/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 0.7ms | Allocations: 155)
|
141
|
-
Rendered /Users/toby/Code/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 6.8ms | Allocations: 1847)
|
142
|
-
Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms | Allocations: 2501)
|
143
|
-
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
144
|
-
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
145
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
146
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
147
|
-
Started GET "/feature-toggles/new" for 127.0.0.1 at 2021-08-31 14:10:32 +0100
|
148
|
-
Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML
|
149
|
-
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 142)
|
150
|
-
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
151
|
-
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
152
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
153
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
154
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
155
|
-
[1m[36mFeatureToggle Create (0.6ms)[0m [1m[32mINSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "test-feature"], ["active", 0], ["created_at", "2021-08-31 13:10:32.466742"], ["updated_at", "2021-08-31 13:10:32.466742"]]
|
156
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
157
|
-
Started PUT "/feature-toggles/1" for 127.0.0.1 at 2021-08-31 14:10:32 +0100
|
158
|
-
Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML
|
159
|
-
Parameters: {"id"=>"1"}
|
160
|
-
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 142)
|
161
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
162
|
-
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
163
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
164
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
165
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
166
|
-
[1m[36mUser Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "user5@example.com"], ["LIMIT", 1]]
|
167
|
-
[1m[36mUser Create (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@example.com"], ["encrypted_password", "$2a$04$m5/lA9eFMtl8XGlwOwshD.v4YWOVE0noViKfzRP1TR4qER/oQk4nW"], ["created_at", "2021-08-31 13:10:32.482496"], ["updated_at", "2021-08-31 13:10:32.482496"]]
|
168
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
169
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
170
|
-
[1m[36mFeatureToggle Create (0.1ms)[0m [1m[32mINSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "test-feature"], ["active", 0], ["created_at", "2021-08-31 13:10:32.484735"], ["updated_at", "2021-08-31 13:10:32.484735"]]
|
171
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
172
|
-
Started PUT "/feature-toggles/1" for 127.0.0.1 at 2021-08-31 14:10:32 +0100
|
173
|
-
Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML
|
174
|
-
Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"}
|
175
|
-
[1m[36mFeatureToggle Load (0.1ms)[0m [1m[34mSELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
176
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
177
|
-
[1m[36mFeatureToggle Update (0.1ms)[0m [1m[33mUPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ?[0m [["active", 1], ["updated_at", "2021-08-31 13:10:32.492668"], ["id", 1]]
|
178
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
179
|
-
Redirected to http://www.example.com/feature-toggles
|
180
|
-
Completed 302 Found in 3ms (ActiveRecord: 0.4ms | Allocations: 794)
|
181
|
-
[1m[36mFeatureToggle Load (0.1ms)[0m [1m[34mSELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
182
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
183
|
-
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
184
|
-
[1m[35m (2.9ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
185
|
-
[1m[35m (1.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "schema_sha1"]]
|
186
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
187
|
-
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
188
|
-
[1m[35m (0.2ms)[0m [1m[35mPRAGMA foreign_keys[0m
|
189
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys[0m
|
190
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys = ON[0m
|
191
|
-
[1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m
|
192
|
-
[1m[35m (0.2ms)[0m [1m[35mTRUNCATE TABLE "feature_toggles"[0m
|
193
|
-
[1m[35m (3.2ms)[0m [1m[31mDELETE FROM "feature_toggles"[0m
|
194
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
195
|
-
[1m[35m (0.5ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'feature_toggles';[0m
|
196
|
-
[1m[35m (0.1ms)[0m [1m[35mTRUNCATE TABLE "users"[0m
|
197
|
-
[1m[35m (1.4ms)[0m [1m[31mDELETE FROM "users"[0m
|
198
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
199
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'users';[0m
|
200
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys = 0[0m
|
201
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m
|
202
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
203
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
204
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
205
|
-
[1m[36mUser Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "user1@example.com"], ["LIMIT", 1]]
|
206
|
-
[1m[36mUser Create (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@example.com"], ["encrypted_password", "$2a$04$SXh.VPrkHK2l72.JM5K62O1apSvQzVjB8.eNKrX8vOhm/PcvBQSMa"], ["created_at", "2021-08-31 13:27:16.537437"], ["updated_at", "2021-08-31 13:27:16.537437"]]
|
207
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
208
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "feature_toggles"[0m
|
209
|
-
Started POST "/feature-toggles" for 127.0.0.1 at 2021-08-31 14:27:16 +0100
|
210
|
-
Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML
|
211
|
-
Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}
|
212
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
213
|
-
[1m[36mFeatureToggle Create (0.1ms)[0m [1m[32mINSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "test"], ["active", 1], ["created_at", "2021-08-31 13:27:16.586707"], ["updated_at", "2021-08-31 13:27:16.586707"]]
|
214
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
215
|
-
Redirected to http://www.example.com/feature-toggles
|
216
|
-
Completed 302 Found in 12ms (ActiveRecord: 0.4ms | Allocations: 4468)
|
217
|
-
[1m[36mFeatureToggle Load (0.1ms)[0m [1m[34mSELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
218
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "feature_toggles"[0m
|
219
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
220
|
-
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
221
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
222
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
223
|
-
Started POST "/feature-toggles" for 127.0.0.1 at 2021-08-31 14:27:16 +0100
|
224
|
-
Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML
|
225
|
-
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms | Allocations: 157)
|
226
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
227
|
-
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
228
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
229
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
230
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
231
|
-
[1m[36mFeatureToggle Create (0.4ms)[0m [1m[32mINSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "test-feature"], ["active", 0], ["created_at", "2021-08-31 13:27:16.623282"], ["updated_at", "2021-08-31 13:27:16.623282"]]
|
232
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
233
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
234
|
-
[1m[36mUser Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "user2@example.com"], ["LIMIT", 1]]
|
235
|
-
[1m[36mUser Create (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@example.com"], ["encrypted_password", "$2a$04$pPJu2fyUdEktpSgd8uRm8ei6KovxCnV1kNUnwiNLIMOZ2kX3Gkanu"], ["created_at", "2021-08-31 13:27:16.627083"], ["updated_at", "2021-08-31 13:27:16.627083"]]
|
236
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
237
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "feature_toggles"[0m
|
238
|
-
Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2021-08-31 14:27:16 +0100
|
239
|
-
Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML
|
240
|
-
Parameters: {"id"=>"1"}
|
241
|
-
[1m[36mFeatureToggle Load (0.1ms)[0m [1m[34mSELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
242
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
243
|
-
[1m[36mFeatureToggle Destroy (0.1ms)[0m [1m[31mDELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ?[0m [["id", 1]]
|
244
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
245
|
-
Redirected to http://www.example.com/feature-toggles
|
246
|
-
Completed 302 Found in 2ms (ActiveRecord: 0.3ms | Allocations: 679)
|
247
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "feature_toggles"[0m
|
248
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
249
|
-
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
250
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
251
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
252
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
253
|
-
[1m[36mFeatureToggle Create (0.4ms)[0m [1m[32mINSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "test-feature"], ["active", 0], ["created_at", "2021-08-31 13:27:16.638716"], ["updated_at", "2021-08-31 13:27:16.638716"]]
|
254
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
255
|
-
Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2021-08-31 14:27:16 +0100
|
256
|
-
Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML
|
257
|
-
Parameters: {"id"=>"1"}
|
258
|
-
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 142)
|
259
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
260
|
-
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
261
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
262
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
263
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
264
|
-
[1m[36mFeatureToggle Create (0.3ms)[0m [1m[32mINSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "test-feature"], ["active", 0], ["created_at", "2021-08-31 13:27:16.649700"], ["updated_at", "2021-08-31 13:27:16.649700"]]
|
265
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
266
|
-
Started PUT "/feature-toggles/1" for 127.0.0.1 at 2021-08-31 14:27:16 +0100
|
267
|
-
Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML
|
268
|
-
Parameters: {"id"=>"1"}
|
269
|
-
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 142)
|
270
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
271
|
-
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
272
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
273
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
274
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
275
|
-
[1m[36mUser Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "user3@example.com"], ["LIMIT", 1]]
|
276
|
-
[1m[36mUser Create (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@example.com"], ["encrypted_password", "$2a$04$MZE4B4bKq5ZD77psNNIaheeMdwlPyrDsTtSMrrYy9ZBHLFLmD/k/O"], ["created_at", "2021-08-31 13:27:16.662297"], ["updated_at", "2021-08-31 13:27:16.662297"]]
|
277
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
278
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
279
|
-
[1m[36mFeatureToggle Create (0.1ms)[0m [1m[32mINSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "test-feature"], ["active", 0], ["created_at", "2021-08-31 13:27:16.663938"], ["updated_at", "2021-08-31 13:27:16.663938"]]
|
280
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
281
|
-
Started PUT "/feature-toggles/1" for 127.0.0.1 at 2021-08-31 14:27:16 +0100
|
282
|
-
Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML
|
283
|
-
Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"}
|
284
|
-
[1m[36mFeatureToggle Load (0.1ms)[0m [1m[34mSELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
285
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
286
|
-
[1m[36mFeatureToggle Update (0.1ms)[0m [1m[33mUPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ?[0m [["active", 1], ["updated_at", "2021-08-31 13:27:16.671292"], ["id", 1]]
|
287
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
288
|
-
Redirected to http://www.example.com/feature-toggles
|
289
|
-
Completed 302 Found in 4ms (ActiveRecord: 0.4ms | Allocations: 794)
|
290
|
-
[1m[36mFeatureToggle Load (0.1ms)[0m [1m[34mSELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
291
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
292
|
-
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
293
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
294
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
295
|
-
Started GET "/feature-toggles" for 127.0.0.1 at 2021-08-31 14:27:16 +0100
|
296
|
-
Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML
|
297
|
-
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 142)
|
298
|
-
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
299
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
300
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
301
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
302
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
303
|
-
[1m[36mUser Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "user4@example.com"], ["LIMIT", 1]]
|
304
|
-
[1m[36mUser Create (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@example.com"], ["encrypted_password", "$2a$04$H3T.pqsTly2QeE.W41rP7O8NDrHiQQyus5Ipqv3MSK0UmZVXDwFVK"], ["created_at", "2021-08-31 13:27:16.697479"], ["updated_at", "2021-08-31 13:27:16.697479"]]
|
305
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
306
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
307
|
-
[1m[36mFeatureToggle Create (0.2ms)[0m [1m[32mINSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2021-08-31 13:27:16.699683"], ["updated_at", "2021-08-31 13:27:16.699683"]]
|
308
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
309
|
-
Started GET "/feature-toggles" for 127.0.0.1 at 2021-08-31 14:27:16 +0100
|
310
|
-
Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML
|
311
|
-
Rendering /Users/toby/Code/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application
|
312
|
-
[1m[36mFeatureToggle Load (0.2ms)[0m [1m[34mSELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC[0m
|
313
|
-
Rendered /Users/toby/Code/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 11.6ms | Allocations: 2982)
|
314
|
-
Completed 200 OK in 24ms (Views: 18.8ms | ActiveRecord: 0.2ms | Allocations: 5517)
|
315
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
316
|
-
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
317
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
318
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
319
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
320
|
-
[1m[36mUser Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "user5@example.com"], ["LIMIT", 1]]
|
321
|
-
[1m[36mUser Create (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@example.com"], ["encrypted_password", "$2a$04$HigDcCFtEICgoOc.YesvTuLAAIKhzTydC66.ATe.ROmgkAzC8KruC"], ["created_at", "2021-08-31 13:27:16.738104"], ["updated_at", "2021-08-31 13:27:16.738104"]]
|
322
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
323
|
-
Started GET "/feature-toggles/new" for 127.0.0.1 at 2021-08-31 14:27:16 +0100
|
324
|
-
Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML
|
325
|
-
Rendering /Users/toby/Code/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application
|
326
|
-
Rendered /Users/toby/Code/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 0.6ms | Allocations: 155)
|
327
|
-
Rendered /Users/toby/Code/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 5.9ms | Allocations: 1847)
|
328
|
-
Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms | Allocations: 2501)
|
329
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
330
|
-
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
331
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
332
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
333
|
-
Started GET "/feature-toggles/new" for 127.0.0.1 at 2021-08-31 14:27:16 +0100
|
334
|
-
Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML
|
335
|
-
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 142)
|
336
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
337
|
-
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
338
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
339
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
340
|
-
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
341
|
-
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
data/spec/dummy/public/404.html
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
-
<style>
|
7
|
-
.rails-default-error-page {
|
8
|
-
background-color: #EFEFEF;
|
9
|
-
color: #2E2F30;
|
10
|
-
text-align: center;
|
11
|
-
font-family: arial, sans-serif;
|
12
|
-
margin: 0;
|
13
|
-
}
|
14
|
-
|
15
|
-
.rails-default-error-page div.dialog {
|
16
|
-
width: 95%;
|
17
|
-
max-width: 33em;
|
18
|
-
margin: 4em auto 0;
|
19
|
-
}
|
20
|
-
|
21
|
-
.rails-default-error-page div.dialog > div {
|
22
|
-
border: 1px solid #CCC;
|
23
|
-
border-right-color: #999;
|
24
|
-
border-left-color: #999;
|
25
|
-
border-bottom-color: #BBB;
|
26
|
-
border-top: #B00100 solid 4px;
|
27
|
-
border-top-left-radius: 9px;
|
28
|
-
border-top-right-radius: 9px;
|
29
|
-
background-color: white;
|
30
|
-
padding: 7px 12% 0;
|
31
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
-
}
|
33
|
-
|
34
|
-
.rails-default-error-page h1 {
|
35
|
-
font-size: 100%;
|
36
|
-
color: #730E15;
|
37
|
-
line-height: 1.5em;
|
38
|
-
}
|
39
|
-
|
40
|
-
.rails-default-error-page div.dialog > p {
|
41
|
-
margin: 0 0 1em;
|
42
|
-
padding: 1em;
|
43
|
-
background-color: #F7F7F7;
|
44
|
-
border: 1px solid #CCC;
|
45
|
-
border-right-color: #999;
|
46
|
-
border-left-color: #999;
|
47
|
-
border-bottom-color: #999;
|
48
|
-
border-bottom-left-radius: 4px;
|
49
|
-
border-bottom-right-radius: 4px;
|
50
|
-
border-top-color: #DADADA;
|
51
|
-
color: #666;
|
52
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
-
}
|
54
|
-
</style>
|
55
|
-
</head>
|
56
|
-
|
57
|
-
<body class="rails-default-error-page">
|
58
|
-
<!-- This file lives in public/404.html -->
|
59
|
-
<div class="dialog">
|
60
|
-
<div>
|
61
|
-
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
-
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
-
</div>
|
64
|
-
<p>If you are the application owner check the logs for more information.</p>
|
65
|
-
</div>
|
66
|
-
</body>
|
67
|
-
</html>
|
data/spec/dummy/public/422.html
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>The change you wanted was rejected (422)</title>
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
-
<style>
|
7
|
-
.rails-default-error-page {
|
8
|
-
background-color: #EFEFEF;
|
9
|
-
color: #2E2F30;
|
10
|
-
text-align: center;
|
11
|
-
font-family: arial, sans-serif;
|
12
|
-
margin: 0;
|
13
|
-
}
|
14
|
-
|
15
|
-
.rails-default-error-page div.dialog {
|
16
|
-
width: 95%;
|
17
|
-
max-width: 33em;
|
18
|
-
margin: 4em auto 0;
|
19
|
-
}
|
20
|
-
|
21
|
-
.rails-default-error-page div.dialog > div {
|
22
|
-
border: 1px solid #CCC;
|
23
|
-
border-right-color: #999;
|
24
|
-
border-left-color: #999;
|
25
|
-
border-bottom-color: #BBB;
|
26
|
-
border-top: #B00100 solid 4px;
|
27
|
-
border-top-left-radius: 9px;
|
28
|
-
border-top-right-radius: 9px;
|
29
|
-
background-color: white;
|
30
|
-
padding: 7px 12% 0;
|
31
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
-
}
|
33
|
-
|
34
|
-
.rails-default-error-page h1 {
|
35
|
-
font-size: 100%;
|
36
|
-
color: #730E15;
|
37
|
-
line-height: 1.5em;
|
38
|
-
}
|
39
|
-
|
40
|
-
.rails-default-error-page div.dialog > p {
|
41
|
-
margin: 0 0 1em;
|
42
|
-
padding: 1em;
|
43
|
-
background-color: #F7F7F7;
|
44
|
-
border: 1px solid #CCC;
|
45
|
-
border-right-color: #999;
|
46
|
-
border-left-color: #999;
|
47
|
-
border-bottom-color: #999;
|
48
|
-
border-bottom-left-radius: 4px;
|
49
|
-
border-bottom-right-radius: 4px;
|
50
|
-
border-top-color: #DADADA;
|
51
|
-
color: #666;
|
52
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
-
}
|
54
|
-
</style>
|
55
|
-
</head>
|
56
|
-
|
57
|
-
<body class="rails-default-error-page">
|
58
|
-
<!-- This file lives in public/422.html -->
|
59
|
-
<div class="dialog">
|
60
|
-
<div>
|
61
|
-
<h1>The change you wanted was rejected.</h1>
|
62
|
-
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
-
</div>
|
64
|
-
<p>If you are the application owner check the logs for more information.</p>
|
65
|
-
</div>
|
66
|
-
</body>
|
67
|
-
</html>
|
data/spec/dummy/public/500.html
DELETED
@@ -1,66 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>We're sorry, but something went wrong (500)</title>
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
-
<style>
|
7
|
-
.rails-default-error-page {
|
8
|
-
background-color: #EFEFEF;
|
9
|
-
color: #2E2F30;
|
10
|
-
text-align: center;
|
11
|
-
font-family: arial, sans-serif;
|
12
|
-
margin: 0;
|
13
|
-
}
|
14
|
-
|
15
|
-
.rails-default-error-page div.dialog {
|
16
|
-
width: 95%;
|
17
|
-
max-width: 33em;
|
18
|
-
margin: 4em auto 0;
|
19
|
-
}
|
20
|
-
|
21
|
-
.rails-default-error-page div.dialog > div {
|
22
|
-
border: 1px solid #CCC;
|
23
|
-
border-right-color: #999;
|
24
|
-
border-left-color: #999;
|
25
|
-
border-bottom-color: #BBB;
|
26
|
-
border-top: #B00100 solid 4px;
|
27
|
-
border-top-left-radius: 9px;
|
28
|
-
border-top-right-radius: 9px;
|
29
|
-
background-color: white;
|
30
|
-
padding: 7px 12% 0;
|
31
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
-
}
|
33
|
-
|
34
|
-
.rails-default-error-page h1 {
|
35
|
-
font-size: 100%;
|
36
|
-
color: #730E15;
|
37
|
-
line-height: 1.5em;
|
38
|
-
}
|
39
|
-
|
40
|
-
.rails-default-error-page div.dialog > p {
|
41
|
-
margin: 0 0 1em;
|
42
|
-
padding: 1em;
|
43
|
-
background-color: #F7F7F7;
|
44
|
-
border: 1px solid #CCC;
|
45
|
-
border-right-color: #999;
|
46
|
-
border-left-color: #999;
|
47
|
-
border-bottom-color: #999;
|
48
|
-
border-bottom-left-radius: 4px;
|
49
|
-
border-bottom-right-radius: 4px;
|
50
|
-
border-top-color: #DADADA;
|
51
|
-
color: #666;
|
52
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
-
}
|
54
|
-
</style>
|
55
|
-
</head>
|
56
|
-
|
57
|
-
<body class="rails-default-error-page">
|
58
|
-
<!-- This file lives in public/500.html -->
|
59
|
-
<div class="dialog">
|
60
|
-
<div>
|
61
|
-
<h1>We're sorry, but something went wrong.</h1>
|
62
|
-
</div>
|
63
|
-
<p>If you are the application owner check the logs for more information.</p>
|
64
|
-
</div>
|
65
|
-
</body>
|
66
|
-
</html>
|
File without changes
|
File without changes
|