Skip to content

Instantly share code, notes, and snippets.

@ncdc
Created February 1, 2012 14:05
Show Gist options
  • Save ncdc/1717102 to your computer and use it in GitHub Desktop.
Save ncdc/1717102 to your computer and use it in GitHub Desktop.
Processing by RunsController#create as JSON
Parameters: {"run"=>{"uuid"=>"8dbc2ab5-dd5d-4515-adf1-1183eeebbd28"}, "release"=>"1.1.0.0", "devhost"=>{"name"=>"develhost6", "packages"=>{}}, "feature"=>{"test_cases"=>{"1"=>{"
status"=>"passed"}}, "status"=>"passed", "mapping"=>"Component", "type"=>"component", "name"=>"ml_ff01", "topology"=>"ml_top01", "topology_git_commit"=>"e9cfd61087f1f736f4bf2cde59
e9cc641287382a"}, "testhosts"=>[], "run_end_time"=>"2012-01-26 15:31:06 -0500"}
(0.0ms) SAVEPOINT active_record_1
Creating run from upload {"run"=>{"uuid"=>"8dbc2ab5-dd5d-4515-adf1-1183eeebbd28"}, "release"=>"1.1.0.0", "devhost"=>{"name"=>"develhost6", "packages"=>{}}, "feature"=>{"test_cases
"=>{"1"=>{"status"=>"passed"}}, "status"=>"passed", "mapping"=>"Component", "type"=>"component", "name"=>"ml_ff01", "topology"=>"ml_top01", "topology_git_commit"=>"e9cfd61087f1f73
6f4bf2cde59e9cc641287382a"}, "testhosts"=>[], "run_end_time"=>"2012-01-26 15:31:06 -0500", "format"=>"json", "controller"=>"runs", "action"=>"create"}
Run Exists (1.0ms) SELECT 1 FROM "runs" WHERE "runs"."uuid" = '8dbc2ab5-dd5d-4515-adf1-1183eeebbd28' LIMIT 1
FeatureType Load (0.0ms) SELECT "feature_types".* FROM "feature_types" WHERE "feature_types"."name" = 'component' LIMIT 1
SQL (0.0ms) INSERT INTO "feature_types" ("created_at", "name", "updated_at") VALUES ('2012-02-01 14:02:33.378000', 'component', '2012-02-01 14:02:33.378000')
FeatureFile Load (1.0ms) SELECT "feature_files".* FROM "feature_files" WHERE "feature_files"."name" = 'ml_ff01' LIMIT 1
SQL (0.0ms) INSERT INTO "feature_files" ("created_at", "feature_type_id", "name", "updated_at", "use_case_id") VALUES ('2012-02-01 14:02:33.419000', 1, 'ml_ff01', '2012-02-01 14:02:33.419000', NULL)
Host Load (0.0ms) SELECT "hosts".* FROM "hosts" WHERE "hosts"."name" = 'develhost6' LIMIT 1
SQL (0.0ms) INSERT INTO "hosts" ("created_at", "name", "updated_at") VALUES ('2012-02-01 14:02:33.444000', 'develhost6', '2012-02-01 14:02:33.444000')
BuildGroup Load (0.0ms) SELECT "build_groups".* FROM "build_groups" WHERE "build_groups"."checksum" = 0 LIMIT 1
BuildGroup Exists (0.0ms) SELECT 1 FROM "build_groups" WHERE "build_groups"."checksum" = 0 LIMIT 1
SQL (1.0ms) INSERT INTO "build_groups" ("checksum", "created_at", "updated_at") VALUES (0, '2012-02-01 14:02:33.468000', '2012-02-01 14:02:33.468000')
Found or created BuildGroup: #<BuildGroup id: 1, created_at: "2012-02-01 14:02:33", updated_at: "2012-02-01 14:02:33", checksum: 0>
Mapping Load (0.0ms) SELECT "mappings".* FROM "mappings" WHERE "mappings"."name" = 'Component' LIMIT 1
SQL (0.0ms) INSERT INTO "mappings" ("created_at", "name", "updated_at") VALUES ('2012-02-01 14:02:33.519000', 'Component', '2012-02-01 14:02:33.519000')
Release Load (0.0ms) SELECT "releases".* FROM "releases" WHERE "releases"."name" = '1.1.0.0' LIMIT 1
Release Exists (0.0ms) SELECT 1 FROM "releases" WHERE "releases"."name" = '1.1.0.0' LIMIT 1
SQL (0.0ms) INSERT INTO "releases" ("created_at", "name", "updated_at") VALUES ('2012-02-01 14:02:33.526000', '1.1.0.0', '2012-02-01 14:02:33.526000')
Topology Load (0.0ms) SELECT "topologies".* FROM "topologies" WHERE "topologies"."name" = 'ml_top01' AND "topologies"."commit" = 'e9cfd61087f1f736f4bf2cde59e9cc641287382a' LIMIT 1
SQL (0.0ms) INSERT INTO "topologies" ("commit", "created_at", "name", "updated_at") VALUES ('e9cfd61087f1f736f4bf2cde59e9cc641287382a', '2012-02-01 14:02:33.559000', 'ml_top01', '2012-02-01 14:02:33.559000')
Run Exists (0.0ms) SELECT 1 FROM "runs" WHERE "runs"."uuid" = '8dbc2ab5-dd5d-4515-adf1-1183eeebbd28' LIMIT 1
Run Exists (1.0ms) SELECT 1 FROM "runs" WHERE "runs"."uuid" = '8dbc2ab5-dd5d-4515-adf1-1183eeebbd28' LIMIT 1
SQL (0.0ms) INSERT INTO "runs" ("created_at", "devhost_environment_id", "feature_file_id", "mapping_id", "passed", "release_id", "review_status_id", "reviewed_by", "run_by", "run_comment_id", "run_date", "run_file_id", "topology_id", "updated_at", "uuid") VALUES ('2012-02-01 14:02:33.605000', NULL, 1, 1, 't', 1, NULL, NULL, NULL, NULL, NULL, NULL, 1, '2012-02-01 14:02:33.605000', '8dbc2ab5-dd5d-4515-adf1-1183eeebbd28')
SQL (1.0ms) INSERT INTO "environments" ("build_group_id", "created_at", "host_id", "run_id", "updated_at") VALUES (1, '2012-02-01 14:02:33.612000', 1, 1, '2012-02-01 14:02:33.612000')
(0.0ms) UPDATE "runs" SET "devhost_environment_id" = 1, "updated_at" = '2012-02-01 14:02:33.616000' WHERE "runs"."id" = 1
RunStatus Load (1.0ms) SELECT "run_statuses".* FROM "run_statuses" WHERE "run_statuses"."name" = 'passed' LIMIT 1
SQL (0.0ms) INSERT INTO "run_statuses" ("created_at", "name", "updated_at") VALUES ('2012-02-01 14:02:33.633000', 'passed', '2012-02-01 14:02:33.633000')
TestCase Load (0.0ms) SELECT "test_cases".* FROM "test_cases" WHERE "test_cases"."feature_file_id" = 1 AND "test_cases"."name" = 1 LIMIT 1
SQL (0.0ms) INSERT INTO "test_cases" ("created_at", "feature_file_id", "mcc_approved", "name", "updated_at") VALUES ('2012-02-01 14:02:33.664000', 1, NULL, 1, '2012-02-01 14:02:33.664000')
SQL (1.0ms) INSERT INTO "test_case_results" ("created_at", "mapping_id", "passed_example_rows", "run_id", "run_status_id", "test_case_id", "total_example_rows", "updated_at") VALUES ('2012-02-01 14:02:33.712000', 1, 1, 1, 1, 1, 1, '2012-02-01 14:02:33.712000')
(0.0ms) RELEASE SAVEPOINT active_record_1
Preparing to write json file to: /tmp/1/1.json.gz
Completed 201 Created in 406ms (Views: 20.0ms | ActiveRecord: 0.0ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment