First commit!
This commit is contained in:
5
test/application_system_test_case.rb
Normal file
5
test/application_system_test_case.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
require "test_helper"
|
||||
|
||||
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
|
||||
driven_by :selenium, using: :headless_chrome, screen_size: [ 1400, 1400 ]
|
||||
end
|
||||
0
test/controllers/.keep
Normal file
0
test/controllers/.keep
Normal file
0
test/fixtures/files/.keep
vendored
Normal file
0
test/fixtures/files/.keep
vendored
Normal file
37
test/fixtures/network_ranges.yml
vendored
Normal file
37
test/fixtures/network_ranges.yml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
ip_address:
|
||||
network_prefix: 1
|
||||
ip_version: 1
|
||||
company: MyString
|
||||
asn: 1
|
||||
asn_org: MyString
|
||||
is_datacenter: false
|
||||
is_proxy: false
|
||||
is_vpn: false
|
||||
ip_api_country: MyString
|
||||
geo2_country: MyString
|
||||
abuser_scores: MyText
|
||||
additional_data: MyText
|
||||
created_at: 2025-11-02 14:01:11
|
||||
updated_at: 2025-11-02 14:01:11
|
||||
last_api_fetch: 2025-11-02 14:01:11
|
||||
|
||||
two:
|
||||
ip_address:
|
||||
network_prefix: 1
|
||||
ip_version: 1
|
||||
company: MyString
|
||||
asn: 1
|
||||
asn_org: MyString
|
||||
is_datacenter: false
|
||||
is_proxy: false
|
||||
is_vpn: false
|
||||
ip_api_country: MyString
|
||||
geo2_country: MyString
|
||||
abuser_scores: MyText
|
||||
additional_data: MyText
|
||||
created_at: 2025-11-02 14:01:11
|
||||
updated_at: 2025-11-02 14:01:11
|
||||
last_api_fetch: 2025-11-02 14:01:11
|
||||
11
test/fixtures/path_segments.yml
vendored
Normal file
11
test/fixtures/path_segments.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
segment: MyString
|
||||
usage_count: 1
|
||||
first_seen_at: 2025-11-03 10:24:38
|
||||
|
||||
two:
|
||||
segment: MyString
|
||||
usage_count: 1
|
||||
first_seen_at: 2025-11-03 10:24:38
|
||||
7
test/fixtures/request_actions.yml
vendored
Normal file
7
test/fixtures/request_actions.yml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
action: MyString
|
||||
|
||||
two:
|
||||
action: MyString
|
||||
11
test/fixtures/request_hosts.yml
vendored
Normal file
11
test/fixtures/request_hosts.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
hostname: MyString
|
||||
usage_count: 1
|
||||
first_seen_at: 2025-11-03 10:24:29
|
||||
|
||||
two:
|
||||
hostname: MyString
|
||||
usage_count: 1
|
||||
first_seen_at: 2025-11-03 10:24:29
|
||||
7
test/fixtures/request_methods.yml
vendored
Normal file
7
test/fixtures/request_methods.yml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
method: MyString
|
||||
|
||||
two:
|
||||
method: MyString
|
||||
7
test/fixtures/request_protocols.yml
vendored
Normal file
7
test/fixtures/request_protocols.yml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
protocol: MyString
|
||||
|
||||
two:
|
||||
protocol: MyString
|
||||
15
test/fixtures/rule_sets.yml
vendored
Normal file
15
test/fixtures/rule_sets.yml
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
name: MyString
|
||||
description: MyText
|
||||
enabled: false
|
||||
projects:
|
||||
rules:
|
||||
|
||||
two:
|
||||
name: MyString
|
||||
description: MyText
|
||||
enabled: false
|
||||
projects:
|
||||
rules:
|
||||
23
test/fixtures/rules.yml
vendored
Normal file
23
test/fixtures/rules.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
rule_set: one
|
||||
rule_type: MyString
|
||||
target: MyString
|
||||
action: MyString
|
||||
enabled: false
|
||||
expires_at: 2025-11-02 19:10:14
|
||||
priority: 1
|
||||
conditions:
|
||||
metadata:
|
||||
|
||||
two:
|
||||
rule_set: two
|
||||
rule_type: MyString
|
||||
target: MyString
|
||||
action: MyString
|
||||
enabled: false
|
||||
expires_at: 2025-11-02 19:10:14
|
||||
priority: 1
|
||||
conditions:
|
||||
metadata:
|
||||
0
test/helpers/.keep
Normal file
0
test/helpers/.keep
Normal file
0
test/integration/.keep
Normal file
0
test/integration/.keep
Normal file
0
test/mailers/.keep
Normal file
0
test/mailers/.keep
Normal file
0
test/models/.keep
Normal file
0
test/models/.keep
Normal file
7
test/models/network_range_test.rb
Normal file
7
test/models/network_range_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require "test_helper"
|
||||
|
||||
class NetworkRangeTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/models/path_segment_test.rb
Normal file
7
test/models/path_segment_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require "test_helper"
|
||||
|
||||
class PathSegmentTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/models/request_action_test.rb
Normal file
7
test/models/request_action_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require "test_helper"
|
||||
|
||||
class RequestActionTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/models/request_host_test.rb
Normal file
7
test/models/request_host_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require "test_helper"
|
||||
|
||||
class RequestHostTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/models/request_method_test.rb
Normal file
7
test/models/request_method_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require "test_helper"
|
||||
|
||||
class RequestMethodTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/models/request_protocol_test.rb
Normal file
7
test/models/request_protocol_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require "test_helper"
|
||||
|
||||
class RequestProtocolTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/models/rule_set_test.rb
Normal file
7
test/models/rule_set_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require "test_helper"
|
||||
|
||||
class RuleSetTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/models/rule_test.rb
Normal file
7
test/models/rule_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require "test_helper"
|
||||
|
||||
class RuleTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
0
test/system/.keep
Normal file
0
test/system/.keep
Normal file
15
test/test_helper.rb
Normal file
15
test/test_helper.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
ENV["RAILS_ENV"] ||= "test"
|
||||
require_relative "../config/environment"
|
||||
require "rails/test_help"
|
||||
|
||||
module ActiveSupport
|
||||
class TestCase
|
||||
# Run tests in parallel with specified workers
|
||||
parallelize(workers: :number_of_processors)
|
||||
|
||||
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
|
||||
fixtures :all
|
||||
|
||||
# Add more helper methods to be used by all tests here...
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user