Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dometto committed Nov 13, 2024
1 parent fba9a21 commit dbaafab
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
27 changes: 14 additions & 13 deletions molecule/playbook-flask_app/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@ provisioner:
remote_tmp: /tmp
env:
ANSIBLE_ROLES_PATH: ../../../
- name: flask_app
path: flask_app.yml
parameters:
flask_app_name: hello
flask_app_path: hello/app.py
flask_app_auth_basic: true
flask_app_username: tester
flask_app_password: letmein
flask_app_repo: https://github.com/dometto/flask-examples.git
flask_app_requirements: 'requirements.txt'
flask_app_location: '/'
flask_app_uwsgi_config: >
vacuum = false # just to test the flask_app_uswgi_config option
components:
- name: flask_app
path: flask_app.yml
parameters:
flask_app_name: hello
flask_app_path: hello/app.py
flask_app_auth_basic: true
flask_app_username: tester
flask_app_password: letmein
flask_app_repo: https://github.com/dometto/flask-examples.git
flask_app_requirements: 'requirements.txt'
flask_app_location: '/'
flask_app_uwsgi_config: >
vacuum = false # just to test the flask_app_uswgi_config option
2 changes: 1 addition & 1 deletion molecule/playbook-reverse_proxy/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ provisioner:
- name: reverse_proxy
path: reverse_proxy.yml
parameters:
reverse_proxy_locations: '- {name: test_noauth, location: /, proxy_pass: "http://localhost:8000" }\n- {name: test_basicauth, location: = /test_basicauth, auth: basic, htpasswd: myauth, proxy_pass: "http://localhost:8000/" }\n- {name: test_basicauth2, location: = /test_basicauth2, auth: basic, htpasswd: myauth2, proxy_pass: "http://localhost:8000/" }\n- {name: test_sramauth, location: /test_sramauth, auth: sram, proxy_pass: "http://localhost:8000/"}\n- {name: test_authoff, location: /test_basicauth/api, auth: noauth, alias: /etc/nginx, proxy_set_header: { X-Real-IP: ""} }'
reverse_proxy_locations: '- {name: mock_endpoint, location: /auth_endpoint, proxy_pass: "http://localhost:8000" }\n- {name: test_noauth, location: /, proxy_pass: "http://localhost:8000" }\n- {name: test_basicauth, location: = /test_basicauth, auth: basic, htpasswd: myauth, proxy_pass: "http://localhost:8000/" }\n- {name: test_basicauth2, location: = /test_basicauth2, auth: basic, htpasswd: myauth2, proxy_pass: "http://localhost:8000/" }\n- {name: test_sramauth, location: /test_sramauth, auth: sram, proxy_pass: "http://localhost:8000/"}\n- {name: test_authoff, location: /test_basicauth/api, auth: noauth, alias: /etc/nginx, proxy_set_header: { X-Real-IP: ""} }'
reverse_proxy_auth_info: '- {name: myauth, username: test, password: letmein}\n'
basic_auth_default_username: 'test2'
basic_auth_default_password: 'letmeintoo'

0 comments on commit dbaafab

Please sign in to comment.