Skip to content

Commit b05847a

Browse files
Tomas BorosTomas Boros
Tomas Boros
authored and
Tomas Boros
committed
update once and last_modified in tests to boolean values too
1 parent 63f49ca commit b05847a

File tree

3 files changed

+34
-34
lines changed

3 files changed

+34
-34
lines changed

defaults/main/template.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ nginx_config_http_template:
146146

147147
sub_filter:
148148
# sub_filters: []
149-
last_modified: "off"
150-
once: "on"
149+
last_modified: false
150+
once: true
151151
types: "text/html"
152152
# custom_options: []
153153
web_server:
@@ -193,8 +193,8 @@ nginx_config_http_template:
193193
# url: https://sso.somehost.local/?url=https://$http_host$request_uri
194194
sub_filter:
195195
# sub_filters: []
196-
last_modified: "off"
197-
once: "on"
196+
last_modified: false
197+
once: true
198198
types: "text/html"
199199
# custom_options: []
200200
http_demo_conf: false
@@ -301,8 +301,8 @@ nginx_config_http_template:
301301
# url: https://sso.somehost.local/?url=https://$http_host$request_uri
302302
sub_filter:
303303
# sub_filters: []
304-
last_modified: "off"
305-
once: "on"
304+
last_modified: false
305+
once: true
306306
types: "text/html"
307307
# custom_options: []
308308
health_check_plus: false

molecule/default/converge.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
keyval: false
4545
server_tokens: "off"
4646
sub_filter:
47-
last_modified: "off"
48-
once: "on"
47+
last_modified: false
48+
once: true
4949
http_global_autoindex: false
5050
custom_options:
5151
- master_process on;
@@ -110,8 +110,8 @@
110110
value: max-age=15768000; includeSubDomains
111111
always: true
112112
sub_filter:
113-
last_modified: "off"
114-
once: "on"
113+
last_modified: false
114+
once: true
115115
reverse_proxy:
116116
locations:
117117
frontend:
@@ -164,8 +164,8 @@
164164
proxy_buffering: false
165165
client_max_body_size: 5m
166166
sub_filter:
167-
last_modified: "off"
168-
once: "on"
167+
last_modified: false
168+
once: true
169169
backend:
170170
location: /backend
171171
proxy_pass: http://backend_servers/
@@ -290,8 +290,8 @@
290290
- "'nginx_version' '$nginx_version'"
291291
- "'document_root' '$document_root'"
292292
- "'proxied_for_ip' '$http_x_forwarded_for'"
293-
last_modified: "off"
294-
once: "off"
293+
last_modified: false
294+
once: false
295295
web_server:
296296
locations:
297297
frontend_site:
@@ -302,8 +302,8 @@
302302
html_file_name: frontend_index.html
303303
autoindex: false
304304
sub_filter:
305-
last_modified: "off"
306-
once: "off"
305+
last_modified: false
306+
once: false
307307
http_demo_conf: false
308308
backend:
309309
template_file: http/default.conf.j2
@@ -330,8 +330,8 @@
330330
- "'nginx_version' '$nginx_version'"
331331
- "'document_root' '$document_root'"
332332
- "'proxied_for_ip' '$http_x_forwarded_for'"
333-
last_modified: "off"
334-
once: "off"
333+
last_modified: false
334+
once: false
335335
web_server:
336336
locations:
337337
backend_site:
@@ -354,8 +354,8 @@
354354
- include fastcgi_params;
355355
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
356356
sub_filter:
357-
last_modified: "off"
358-
once: "off"
357+
last_modified: false
358+
once: false
359359
http_demo_conf: false
360360

361361
nginx_config_html_demo_template_enable: true

molecule/plus/converge.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
keyval: false
5151
server_tokens: "off"
5252
sub_filter:
53-
last_modified: "off"
54-
once: "on"
53+
last_modified: false
54+
once: true
5555
http_global_autoindex: false
5656
custom_options:
5757
- master_process on;
@@ -118,8 +118,8 @@
118118
value: max-age=15768000; includeSubDomains
119119
always: true
120120
sub_filter:
121-
last_modified: "off"
122-
once: "on"
121+
last_modified: false
122+
once: true
123123
reverse_proxy:
124124
locations:
125125
frontend:
@@ -175,8 +175,8 @@
175175
proxy_buffering: false
176176
client_max_body_size: 5m
177177
sub_filter:
178-
last_modified: "off"
179-
once: "on"
178+
last_modified: false
179+
once: true
180180
backend:
181181
location: /backend
182182
proxy_pass: http://backend_servers/
@@ -301,8 +301,8 @@
301301
- "'nginx_version' '$nginx_version'"
302302
- "'document_root' '$document_root'"
303303
- "'proxied_for_ip' '$http_x_forwarded_for'"
304-
last_modified: "off"
305-
once: "off"
304+
last_modified: false
305+
once: false
306306
# types: "text/html"
307307
web_server:
308308
locations:
@@ -314,8 +314,8 @@
314314
html_file_name: frontend_index.html
315315
autoindex: false
316316
sub_filter:
317-
last_modified: "off"
318-
once: "off"
317+
last_modified: false
318+
once: false
319319
http_demo_conf: false
320320
backend:
321321
template_file: http/default.conf.j2
@@ -342,8 +342,8 @@
342342
- "'nginx_version' '$nginx_version'"
343343
- "'document_root' '$document_root'"
344344
- "'proxied_for_ip' '$http_x_forwarded_for'"
345-
last_modified: "off"
346-
once: "off"
345+
last_modified: false
346+
once: false
347347
web_server:
348348
locations:
349349
backend_site:
@@ -366,8 +366,8 @@
366366
- include fastcgi_params;
367367
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
368368
sub_filter:
369-
last_modified: "off"
370-
once: "off"
369+
last_modified: false
370+
once: false
371371
http_demo_conf: false
372372
nginx_config_html_demo_template_enable: true
373373
nginx_config_html_demo_template:

0 commit comments

Comments
 (0)