-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed TestWebserver.py to work with both config files and ENV varia…
…bles ------- A. TestWebserver.py Modified the code to have both approaches to read from config file as well as environment variables. The config files approach is based on the previous code logic that was used in this file to copy webserver.conf.sample as webserver.conf. b20cc36 The difference is I'm taking a backup of the webserver.conf file if present. Then writing the test values to this file before running tests. In teardown(), the original webserver.conf is restored from the backup file. ----------- B. cfc_webapp.py WEBSERVER_NOT_FOUND_REDIRECT was missing in the config var_map passed to get_config. It was being read using config.get in the variable not_found_redirect. Hence added it.
- Loading branch information
Mahadik, Mukul Chandrakant
authored and
Mahadik, Mukul Chandrakant
committed
Aug 22, 2024
1 parent
d0bc264
commit 1dc4275
Showing
2 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters