metasploit_data_models 0.14.1 → 0.14.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -4,5 +4,5 @@ module MetasploitDataModels
|
|
4
4
|
# metasploit-framework/data/sql/migrate to db/migrate in this project, not all models have specs that verify the
|
5
5
|
# migrations (with have_db_column and have_db_index) and certain models may not be shared between metasploit-framework
|
6
6
|
# and pro, so models may be removed in the future. Because of the unstable API the version should remain below 1.0.0
|
7
|
-
VERSION = '0.14.
|
7
|
+
VERSION = '0.14.2'
|
8
8
|
end
|
@@ -10,4 +10,13 @@ describe Mdm::VulnRef do
|
|
10
10
|
it { should be_valid }
|
11
11
|
end
|
12
12
|
end
|
13
|
+
|
14
|
+
context 'database' do
|
15
|
+
context 'columns' do
|
16
|
+
it { should have_db_column(:id).of_type(:integer) }
|
17
|
+
it { should have_db_column(:ref_id).of_type(:integer) }
|
18
|
+
it { should have_db_column(:vuln_id).of_type(:integer) }
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
13
22
|
end
|
@@ -38,7 +38,13 @@ describe Mdm::Vuln do
|
|
38
38
|
FactoryGirl.create(:mdm_vuln_ref, :ref => ref, :vuln => vuln)
|
39
39
|
}
|
40
40
|
end
|
41
|
-
|
41
|
+
|
42
|
+
it 'should be deletable' do
|
43
|
+
expect {
|
44
|
+
vuln.destroy
|
45
|
+
}.not_to raise_error
|
46
|
+
end
|
47
|
+
|
42
48
|
context 'with Mdm::Module::Detail' do
|
43
49
|
let!(:module_detail) do
|
44
50
|
FactoryGirl.create(
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended to check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(:version =>
|
14
|
+
ActiveRecord::Schema.define(:version => 20130516204810) do
|
15
15
|
|
16
16
|
create_table "api_keys", :force => true do |t|
|
17
17
|
t.text "token"
|
@@ -511,7 +511,7 @@ ActiveRecord::Schema.define(:version => 20130515172727) do
|
|
511
511
|
|
512
512
|
add_index "vulns", ["name"], :name => "index_vulns_on_name"
|
513
513
|
|
514
|
-
create_table "vulns_refs", :
|
514
|
+
create_table "vulns_refs", :force => true do |t|
|
515
515
|
t.integer "ref_id"
|
516
516
|
t.integer "vuln_id"
|
517
517
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metasploit_data_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -295,6 +295,7 @@ files:
|
|
295
295
|
- db/migrate/20130430162145_enforce_address_uniqueness_in_workspace_in_hosts.rb
|
296
296
|
- db/migrate/20130515164311_change_web_vulns_confidence_to_integer.rb
|
297
297
|
- db/migrate/20130515172727_valid_mdm_web_vuln_params.rb
|
298
|
+
- db/migrate/20130516204810_making_vulns_refs_a_real_ar_model.rb
|
298
299
|
- lib/mdm.rb
|
299
300
|
- lib/mdm/host/operating_system_normalization.rb
|
300
301
|
- lib/mdm/module.rb
|
@@ -393,7 +394,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
393
394
|
version: '0'
|
394
395
|
segments:
|
395
396
|
- 0
|
396
|
-
hash:
|
397
|
+
hash: -3797340516484019629
|
397
398
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
398
399
|
none: false
|
399
400
|
requirements:
|
@@ -402,7 +403,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
402
403
|
version: '0'
|
403
404
|
segments:
|
404
405
|
- 0
|
405
|
-
hash:
|
406
|
+
hash: -3797340516484019629
|
406
407
|
requirements: []
|
407
408
|
rubyforge_project:
|
408
409
|
rubygems_version: 1.8.25
|