Write a script to perform E2E test #43
Labels
No Label
ANSIBLE
BUG
CODE
DEVELOPMENT
DOCUMENTATION
FEEDBACK
FIX
HOWTOs
IDEA
INFRA
ISSUE
MAILSERVER
TESTS
To-Be-Reviewed
WEB
WEBSITE
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Blocks
#39 Introduce unit tests to current codebase
Disroot/gpg-lacre
Reference: Disroot/gpg-lacre#43
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Provide a script that would
Open point: is
os.chroot
enough to simulate/etc/gpg-mailgate.conf
presence without writing to system-wide directories?With a tiny adjustment to the original
gpg-mailgate.py
script it is possible to test the script without a global configuration file in/etc
directory.Python's
os.getenv
function takes second argument to pass the default value returned when an environment variable is missing, so we'll just try retrieving value of$GPG_MAILGATE_CONFIG
and use the file in/etc
in case variable is missing.Test script has been implemented within #39.