Detailed Description
Checks that the example helper still reads each setting under the name its environment variable had before, when the new name is not set, and prints once that the old name is deprecated.
These need no resource key.
Classes | |
| class | OldNameTests |
| class | KeyUtilsTests |
Variables | |
| dict | PAIRS |
| dict | CONSTANTS |
Variable Documentation
◆ CONSTANTS
| dict tests.test_environment_names.CONSTANTS |
Initial value:
= {
"RESOURCE_KEY_ENV_VAR": "_51DEGREES_RESOURCE_KEY",
"LEGACY_RESOURCE_KEY_ENV_VAR": "resource_key",
"LICENSE_KEY_ENV_VAR": "_51DEGREES_LICENSE_KEY",
"LEGACY_LICENSE_KEY_ENV_VAR": "license_key",
"CLOUD_ENDPOINT_ENV_VAR": "_51DEGREES_CLOUD_ENDPOINT",
"ENDPOINT_ENV_VAR": "cloud_endpoint",
"DD_PATH_ENV_VAR": "_51DEGREES_DD_PATH",
"DATA_FILE_ENV_VAR": "51DEGREES_DD_PATH",
}
◆ PAIRS
| dict tests.test_environment_names.PAIRS |
Initial value:
= {
"get_resource_key": ("_51DEGREES_RESOURCE_KEY", "resource_key"),
"get_license_key": ("_51DEGREES_LICENSE_KEY", "license_key"),
"get_cloud_endpoint": ("_51DEGREES_CLOUD_ENDPOINT", "cloud_endpoint"),
"get_data_file_path": ("_51DEGREES_DD_PATH", "51DEGREES_DD_PATH"),
}
