chore(ci): test protonvpn Wireguard with port forwarding

This commit is contained in:
Quentin McGaw
2026-05-03 02:20:24 +00:00
parent 4bada8f0cd
commit f8400c1b1c
5 changed files with 39 additions and 20 deletions
+6 -2
View File
@@ -3,9 +3,11 @@ package internal
import (
"context"
"fmt"
"regexp"
"time"
)
func ProtonVPNTest(ctx context.Context, logger Logger) error {
func ProtonVPNWireguardPortForwardingTest(ctx context.Context, logger Logger) error {
expectedSecrets := []string{
"Wireguard private key",
}
@@ -20,6 +22,8 @@ func ProtonVPNTest(ctx context.Context, logger Logger) error {
"LOG_LEVEL=debug",
"SERVER_COUNTRIES=United States",
"WIREGUARD_PRIVATE_KEY=" + secrets[0],
"VPN_PORT_FORWARDING=on",
}
return simpleTest(ctx, env, logger)
const timeout = 80 * time.Second
return runContainerTest(ctx, env, []*regexp.Regexp{successRegexp, portForwardingRegexp}, timeout, logger)
}