tls_test_kit 0.2.3 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tls_test_kit/metadata.rb +36 -0
- data/lib/tls_test_kit/tls_test_suite.rb +43 -0
- data/lib/tls_test_kit/tls_version_test.rb +18 -0
- data/lib/tls_test_kit/version.rb +6 -0
- data/lib/tls_test_kit.rb +2 -22
- metadata +10 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42d0044850c2fe830f8eb8414ff15e50067ec4ff941b16ac6a61ce14a3a38866
|
4
|
+
data.tar.gz: bbf4fd286f2c64e1aeb2062ad869b0cc4d45435e3d0f1f14e9f09080cfa78079
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 808eaf09babb6f5b8d99f297de81a083f5abe14791891ccc07abb56a822480a603ea3edac1ac8fac4be283c6028067e89b672ea6e0b20a8179fe1829a9699508
|
7
|
+
data.tar.gz: ca72092347adf71c0076d492b9040616fbe46ab23f2c136a2b68345188c7431802e3a96b2539509ee89300e085eaaa99cbce011c78bb0a3934446adbe51ed62a
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# metadata.rb
|
2
|
+
|
3
|
+
require_relative 'version'
|
4
|
+
|
5
|
+
module TLSTestKit
|
6
|
+
# Although the TLS Test Kit is not hosted on the deployment platform,
|
7
|
+
# let's have it conform to the platform_deployable_test_kit spec anyways
|
8
|
+
# since its a dependency.
|
9
|
+
class Metadata < Inferno::TestKit
|
10
|
+
id :tls_test_kit
|
11
|
+
title 'TLS Test Kit'
|
12
|
+
suite_ids ['tls']
|
13
|
+
tags []
|
14
|
+
last_updated TLSTestKit::LAST_UPDATED
|
15
|
+
version TLSTestKit::VERSION
|
16
|
+
maturity 'Medium'
|
17
|
+
authors ['Stephen MacVicar']
|
18
|
+
repo 'https://github.com/inferno-framework/tls-test-kit'
|
19
|
+
description <<~DESCRIPTION
|
20
|
+
This is an [Inferno](https://inferno-framework.github.io/) Test Kit for
|
21
|
+
TLS connections.
|
22
|
+
<!-- break -->
|
23
|
+
## Repository
|
24
|
+
|
25
|
+
The TLS Test Kit GitHub repository can be
|
26
|
+
[found here](https://github.com/inferno-framework/tls-test-kit).
|
27
|
+
|
28
|
+
## Providing Feedback and Reporting Issues
|
29
|
+
|
30
|
+
We welcome feedback on the Test Kit. Please report any issues with this
|
31
|
+
set of tests in the
|
32
|
+
[issues section](https://github.com/inferno-framework/tls-test-kit/issues)
|
33
|
+
of the repository.
|
34
|
+
DESCRIPTION
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
require_relative 'tls_version_test'
|
2
|
+
|
3
|
+
module TLSTestKit
|
4
|
+
class TLSTestSuite < Inferno::TestSuite
|
5
|
+
title 'TLS Tests'
|
6
|
+
id :tls
|
7
|
+
|
8
|
+
group do
|
9
|
+
title 'TLS Tests'
|
10
|
+
|
11
|
+
test from: :tls_version_test,
|
12
|
+
title: 'Server only supports secure versions of TLS',
|
13
|
+
description: %(
|
14
|
+
This test verifies that a server supports at least one version of
|
15
|
+
TLS >= 1.2. TLS versions below 1.2 were [deprecated in RFC
|
16
|
+
8666](https://datatracker.ietf.org/doc/html/rfc8996).
|
17
|
+
),
|
18
|
+
config: {
|
19
|
+
options: {
|
20
|
+
minimum_allowed_version: OpenSSL::SSL::TLS1_2_VERSION
|
21
|
+
}
|
22
|
+
}
|
23
|
+
end
|
24
|
+
|
25
|
+
links [
|
26
|
+
{
|
27
|
+
type: 'report_issue',
|
28
|
+
label: 'Report Issue',
|
29
|
+
url: 'https://github.com/inferno-framework/tls-test-kit/issues/'
|
30
|
+
},
|
31
|
+
{
|
32
|
+
type: 'source_code',
|
33
|
+
label: 'Open Source',
|
34
|
+
url: 'https://github.com/inferno-framework/tls-test-kit/'
|
35
|
+
},
|
36
|
+
{
|
37
|
+
type: 'download',
|
38
|
+
label: 'Download',
|
39
|
+
url: 'https://github.com/inferno-framework/tls-test-kit/releases/'
|
40
|
+
}
|
41
|
+
]
|
42
|
+
end
|
43
|
+
end
|
@@ -1,4 +1,22 @@
|
|
1
1
|
module TLSTestKit
|
2
|
+
# @example
|
3
|
+
# require 'tls_test_kit'
|
4
|
+
#
|
5
|
+
# test from: :tls_version_test do
|
6
|
+
# config(
|
7
|
+
# inputs: {
|
8
|
+
# url: {
|
9
|
+
# title: 'URL whose TLS connections will be tested'
|
10
|
+
# }
|
11
|
+
# },
|
12
|
+
# options: {
|
13
|
+
# minimum_allowed_version: OpenSSL::SSL::TLS1_1_VERSION,
|
14
|
+
# maximum_allowed_version: OpenSSL::SSL::TLS1_2_VERSION,
|
15
|
+
# required_versions: [OpenSSL::SSL::TLS1_2_VERSION],
|
16
|
+
# incorrectly_permitted_tls_version_message_type: 'warning'
|
17
|
+
# }
|
18
|
+
# )
|
19
|
+
# end
|
2
20
|
class TLSVersionTest < Inferno::Test
|
3
21
|
title 'Server supports TLS'
|
4
22
|
description %(
|
data/lib/tls_test_kit.rb
CHANGED
@@ -1,25 +1,5 @@
|
|
1
|
-
require_relative './tls_test_kit/
|
1
|
+
require_relative './tls_test_kit/metadata'
|
2
|
+
require_relative './tls_test_kit/tls_test_suite'
|
2
3
|
|
3
4
|
module TLSTestKit
|
4
|
-
class TLSTestSuite < Inferno::TestSuite
|
5
|
-
title 'TLS Tests'
|
6
|
-
id :tls
|
7
|
-
|
8
|
-
group do
|
9
|
-
title 'TLS Tests'
|
10
|
-
|
11
|
-
test from: :tls_version_test,
|
12
|
-
title: 'Server only supports secure versions of TLS',
|
13
|
-
description: %(
|
14
|
-
This test verifies that a server supports at least one version of
|
15
|
-
TLS >= 1.2. TLS versions below 1.2 were [deprecated in RFC
|
16
|
-
8666](https://datatracker.ietf.org/doc/html/rfc8996).
|
17
|
-
),
|
18
|
-
config: {
|
19
|
-
options: {
|
20
|
-
minimum_allowed_version: OpenSSL::SSL::TLS1_2_VERSION
|
21
|
-
}
|
22
|
-
}
|
23
|
-
end
|
24
|
-
end
|
25
5
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tls_test_kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen MacVicar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: inferno_core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.6.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.6.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: database_cleaner-sequel
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -89,13 +89,17 @@ extra_rdoc_files: []
|
|
89
89
|
files:
|
90
90
|
- LICENSE
|
91
91
|
- lib/tls_test_kit.rb
|
92
|
+
- lib/tls_test_kit/metadata.rb
|
93
|
+
- lib/tls_test_kit/tls_test_suite.rb
|
92
94
|
- lib/tls_test_kit/tls_version_test.rb
|
95
|
+
- lib/tls_test_kit/version.rb
|
93
96
|
homepage: https://github.com/inferno-framework/tls-test-kit
|
94
97
|
licenses:
|
95
98
|
- Apache-2.0
|
96
99
|
metadata:
|
97
100
|
homepage_uri: https://github.com/inferno-framework/tls-test-kit
|
98
101
|
source_code_uri: https://github.com/inferno-framework/tls-test-kit
|
102
|
+
inferno_test_kit: 'true'
|
99
103
|
post_install_message:
|
100
104
|
rdoc_options: []
|
101
105
|
require_paths:
|
@@ -104,14 +108,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
104
108
|
requirements:
|
105
109
|
- - ">="
|
106
110
|
- !ruby/object:Gem::Version
|
107
|
-
version: 3.
|
111
|
+
version: 3.3.6
|
108
112
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
109
113
|
requirements:
|
110
114
|
- - ">="
|
111
115
|
- !ruby/object:Gem::Version
|
112
116
|
version: '0'
|
113
117
|
requirements: []
|
114
|
-
rubygems_version: 3.
|
118
|
+
rubygems_version: 3.5.22
|
115
119
|
signing_key:
|
116
120
|
specification_version: 4
|
117
121
|
summary: Inferno tests for server TLS support
|