tls_test_kit 0.2.3 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e9e86fe670defe8dcef4e4bf3f6b8b3ce5735cbf16e4f310af4c184f5296820e
4
- data.tar.gz: 57bfbbaf77019e48772fc630a38c06d132cd657473da98ba3c9ad2b76ac3a717
3
+ metadata.gz: fabe1ec5926d9c6526070549ce38f5f71159124f44653ae4549701acb6f50c19
4
+ data.tar.gz: 53e86907edaf012fc2a218b01949997698a46a57eecad18b1aa8eeba8bb9c102
5
5
  SHA512:
6
- metadata.gz: 0cb474ee952738a914e1cb92710ca1647d71193c26d090c8f9152faefbbbf067109cb62455222f39797fa993522fe0867346b7a4ed241a510c5f415ee1fa9a40
7
- data.tar.gz: 257f0f11a10809e8da3d7ca0ad35e5317159a64a5336e52b21ab478d324511be0b375e21bbee0e2bf0d6ee2b47179b8cb0e8718bfdacd74a089ccafe45a36064
6
+ metadata.gz: 59a4cfeaa2027ae1b78a55d9955390c5ea420dbf189f3ca1047a1a3bb234ff0ef7a27e00b7335e3dbb449a3b36c02d98b7d949b36d7c4c7c8c40d652c43b19d9
7
+ data.tar.gz: 2077212a903a2ee2ebec8ef8927b0ffbeaaebe7cf06175e943c788ae0a7ac8e8c11ebbce2838a350bac31ab5855ca91b346c7e0a50c56f92e5721410485cba36
@@ -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 %(
@@ -0,0 +1,6 @@
1
+ # version.rb
2
+
3
+ module TLSTestKit
4
+ VERSION = '1.0.0'.freeze
5
+ LAST_UPDATED = '2025-07-21'.freeze # TODO update next release
6
+ end
data/lib/tls_test_kit.rb CHANGED
@@ -1,25 +1,5 @@
1
- require_relative './tls_test_kit/tls_version_test'
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,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tls_test_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 1.0.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: 2024-10-29 00:00:00.000000000 Z
11
+ date: 2025-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inferno_core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
17
20
  - - ">="
18
21
  - !ruby/object:Gem::Version
19
- version: 0.4.2
22
+ version: 1.0.2
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '1.0'
24
30
  - - ">="
25
31
  - !ruby/object:Gem::Version
26
- version: 0.4.2
32
+ version: 1.0.2
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: database_cleaner-sequel
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -89,13 +95,17 @@ extra_rdoc_files: []
89
95
  files:
90
96
  - LICENSE
91
97
  - lib/tls_test_kit.rb
98
+ - lib/tls_test_kit/metadata.rb
99
+ - lib/tls_test_kit/tls_test_suite.rb
92
100
  - lib/tls_test_kit/tls_version_test.rb
101
+ - lib/tls_test_kit/version.rb
93
102
  homepage: https://github.com/inferno-framework/tls-test-kit
94
103
  licenses:
95
104
  - Apache-2.0
96
105
  metadata:
97
106
  homepage_uri: https://github.com/inferno-framework/tls-test-kit
98
107
  source_code_uri: https://github.com/inferno-framework/tls-test-kit
108
+ inferno_test_kit: 'true'
99
109
  post_install_message:
100
110
  rdoc_options: []
101
111
  require_paths:
@@ -104,14 +114,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
104
114
  requirements:
105
115
  - - ">="
106
116
  - !ruby/object:Gem::Version
107
- version: 3.1.2
117
+ version: 3.3.6
108
118
  required_rubygems_version: !ruby/object:Gem::Requirement
109
119
  requirements:
110
120
  - - ">="
111
121
  - !ruby/object:Gem::Version
112
122
  version: '0'
113
123
  requirements: []
114
- rubygems_version: 3.3.7
124
+ rubygems_version: 3.5.22
115
125
  signing_key:
116
126
  specification_version: 4
117
127
  summary: Inferno tests for server TLS support