From b2c7a637bf0939a353b907f0e37b008ac284914d Mon Sep 17 00:00:00 2001 From: Mihmet Akpinar Date: Thu, 9 Nov 2023 10:02:28 +0100 Subject: [PATCH] add http2 tests --- spec/defines/resource_server_spec.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/spec/defines/resource_server_spec.rb b/spec/defines/resource_server_spec.rb index 5ae0bfeb1..60515a008 100644 --- a/spec/defines/resource_server_spec.rb +++ b/spec/defines/resource_server_spec.rb @@ -765,6 +765,18 @@ value: 'off', match: %r{\s+listen\s+\*:443 ssl;} }, + { + title: 'should set HTTP2', + attr: 'http2', + value: 'on', + match: %r{\s+listen\s+\*:443 ssl http2;} + }, + { + title: 'should not set HTTP2', + attr: 'http2', + value: 'off', + match: %r{\s+listen\s+\*:443 ssl;} + }, { title: 'should set the IPv4 listen options', attr: 'listen_options',