Skip to content

Commit a40b6a3

Browse files
David MaloneyDavid Maloney
authored andcommitted
Merge branch 'master' into feature/task_sssoc/sessions
Conflicts: Gemfile Gemfile.lock
2 parents c447553 + ebb3f2a commit a40b6a3

File tree

6 files changed

+19
-159
lines changed

6 files changed

+19
-159
lines changed

db/schema.rb

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#
1212
# It's strongly recommended to check this file into your version control system.
1313

14-
ActiveRecord::Schema.define(:version => 20130522041110) do
14+
ActiveRecord::Schema.define(:version => 20130531144949) do
1515

1616
create_table "api_keys", :force => true do |t|
1717
t.text "token"
@@ -46,11 +46,10 @@
4646
create_table "clients", :force => true do |t|
4747
t.integer "host_id"
4848
t.datetime "created_at"
49-
t.string "ua_string", :limit => 1024, :null => false
50-
t.string "ua_name", :limit => 64
51-
t.string "ua_ver", :limit => 32
49+
t.string "ua_string", :limit => 1024, :null => false
50+
t.string "ua_name", :limit => 64
51+
t.string "ua_ver", :limit => 32
5252
t.datetime "updated_at"
53-
t.integer "campaign_id"
5453
end
5554

5655
create_table "creds", :force => true do |t|
@@ -167,18 +166,11 @@
167166
add_index "hosts", ["state"], :name => "index_hosts_on_state"
168167
add_index "hosts", ["workspace_id", "address"], :name => "index_hosts_on_workspace_id_and_address", :unique => true
169168

170-
create_table "hosts_tags", :id => false, :force => true do |t|
169+
create_table "hosts_tags", :force => true do |t|
171170
t.integer "host_id"
172171
t.integer "tag_id"
173172
end
174173

175-
create_table "imported_creds", :force => true do |t|
176-
t.integer "workspace_id", :default => 1, :null => false
177-
t.string "user", :limit => 512
178-
t.string "pass", :limit => 512
179-
t.string "ptype", :limit => 16, :default => "password"
180-
end
181-
182174
create_table "listeners", :force => true do |t|
183175
t.datetime "created_at", :null => false
184176
t.datetime "updated_at", :null => false
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FactoryGirl.define do
2+
factory :exported_web_vuln, :parent => :mdm_web_vuln do
3+
blame { generate :mdm_web_vuln_blame }
4+
description { generate :mdm_web_vuln_description }
5+
end
6+
7+
sequence :mdm_web_vuln_blame do |n|
8+
"Blame employee ##{n}"
9+
end
10+
11+
sequence :mdm_web_vuln_description do |n|
12+
"Mdm::WebVuln#description #{n}"
13+
end
14+
end

spec/factories/mdm/routes.rb

Lines changed: 0 additions & 34 deletions
This file was deleted.

spec/factories/mdm/web_forms.rb

Lines changed: 0 additions & 34 deletions
This file was deleted.

spec/factories/mdm/web_pages.rb

Lines changed: 0 additions & 64 deletions
This file was deleted.

spec/factories/mdm/web_vulns.rb

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)