proton-bridge/tests
2024-10-25 08:25:21 +00:00
..
_features GODT-1817: Port old user feature tests 2023-01-10 11:47:05 +01:00
e2e/ui_tests/windows_os test(BRIDGE-232): Add Home Menu Bridge UI e2e automation tests 2024-10-21 12:48:03 +00:00
features feat(BRIDGE-236): added SMTP observability metrics 2024-10-25 08:25:21 +00:00
testdata test(GODT-1602): run integration tests against black 🖤 2024-02-19 10:43:35 +00:00
utils/gmail test(BRIDGE-131): Integration tests for messages from Proton <-> Gmail 2024-10-09 12:29:42 +00:00
api_test.go test(GODT-1602): run integration tests against black 🖤 2024-02-19 10:43:35 +00:00
bdd_test.go test(BRIDGE-131): Integration tests for messages from Proton <-> Gmail 2024-10-09 12:29:42 +00:00
bridge_test.go test(GODT-1602): run integration tests against black 🖤 2024-02-19 10:43:35 +00:00
collector_test.go feat(GODT-3160): no need to ignore vulns 2024-01-25 09:30:31 +01:00
config_status_test.go fix(GODT-3188): Happy new year. 2024-01-02 15:06:05 +01:00
contact_test.go fix(GODT-3188): Happy new year. 2024-01-02 15:06:05 +01:00
ctx_bridge_test.go feat(BRIDGE-119): added support for Feature Flags 2024-08-21 14:54:27 +02:00
ctx_heartbeat_test.go fix(GODT-3188): Happy new year. 2024-01-02 15:06:05 +01:00
ctx_helper_test.go test(GODT-1602): run integration tests against black 🖤 2024-02-19 10:43:35 +00:00
ctx_imap_test.go fix(GODT-3188): Happy new year. 2024-01-02 15:06:05 +01:00
ctx_reporter_test.go fix(GODT-3188): Happy new year. 2024-01-02 15:06:05 +01:00
ctx_smtp_test.go fix(GODT-3188): Happy new year. 2024-01-02 15:06:05 +01:00
ctx_test.go feat(BRIDGE-119): added support for Feature Flags 2024-08-21 14:54:27 +02:00
diff_test.go fix(GODT-3188): Happy new year. 2024-01-02 15:06:05 +01:00
diff.go fix(GODT-3188): Happy new year. 2024-01-02 15:06:05 +01:00
environment_test.go feat(BRIDGE-120): use appropriate address key when importing / saving draft. 2024-10-11 12:50:21 +02:00
external_test.go test(BRIDGE-131): Integration tests for messages from Proton <-> Gmail 2024-10-09 12:29:42 +00:00
fast.go fix(GODT-3188): Happy new year. 2024-01-02 15:06:05 +01:00
frontend_test.go fix(GODT-3188): Happy new year. 2024-01-02 15:06:05 +01:00
heartbeat_test.go fix(GODT-3188): Happy new year. 2024-01-02 15:06:05 +01:00
imap_test.go chore: update golangci-lint to 1.61.0. 2024-10-09 14:56:18 +02:00
main_test.go test(GODT-1602): run integration tests against black 🖤 2024-02-19 10:43:35 +00:00
observability_test.go feat(BRIDGE-236): added SMTP observability metrics 2024-10-25 08:25:21 +00:00
README.md test(GODT-1602): run integration tests against black 🖤 2024-02-19 10:43:35 +00:00
smtp_test.go test(GODT-1602): run integration tests against black 🖤 2024-02-19 10:43:35 +00:00
steps_test.go feat(BRIDGE-236): added SMTP observability metrics 2024-10-25 08:25:21 +00:00
types_test.go test(BRIDGE-131): Integration tests for messages from Proton <-> Gmail 2024-10-09 12:29:42 +00:00
user_test.go feat(BRIDGE-37): Remote notification support 2024-08-29 13:31:37 +02:00

Bridge Integration tests

Tests defined in this folder are using github.com/cucumber/godog library to define scenarios.

The scenarios are defined in ./features/ folder. The step definition can be found in ./steps_test.go.

How to run

All features are run as sub-test of TestFeatures in ./bdd_test.go. The most simple way to execute is make test-integration from project source directory.

There are several environment variables which can be used to control the tests:

  • FEATURES sets the path to folder / file / line in file to select which scenarios to run.

      FEATURES=${PWD}/tests/features/user/addressmode.feature:162
    
  • FEATURE_TEST_LOG_LEVEL the logrus level for tests (affects also testing bridge instance)

      FEATURE_TEST_LOG_LEVEL=trace
    
  • BRIDGE_API_DEBUG when enabled GPA client used in testing bridge instance will log http communication and logrus is automatically set to trace

      BRIDGE_API_DEBUG=1
    
  • GO_PROTON_API_SERVER_LOGGER_ENABLED GPA mock server will print log line per each request to stdout (not logrus)

      GO_PROTON_API_SERVER_LOGGER_ENABLED=1
    
  • FEATURE_API_DEBUG when enabled GPA client for preparation of test condiditions (see ./ctx_helper_test.go) will dump http communication to stdoout.

      FEATURE_API_DEBUG=1
    
  • FEATURE_TEST_LOG_IMAP when enabled bridge will dump all (client and server) IMAP communication to logs and logrus is automatically set to trace

      FEATURE_TEST_LOG_IMAP=1
    
  • GLUON_LOG_IMAP_LINE_LIMIT controls maximal number of lines (by default 1) which are printed into imap trace log (logrus). Needs FEATURE_TEST_LOG_IMAP enabled to take effect.

      GLUON_LOG_IMAP_LINE_LIMIT=1048576
    
  • FEATURE_TEST_LOG_SMTP when enabled bridge will dump all SMTP communication to logs and logrus is automatically set to trace

      FEATURE_TEST_LOG_SMTP=1