forked from Silverfish/proton-bridge
feat(GODT-2556): Add functional test for Heartbeat Init and telemetry availability.
This commit is contained in:
committed by
Romain Le Jeune
parent
4adc6d60b9
commit
d3fc9a50f6
@ -80,6 +80,10 @@ func (s *scenario) theUserSetsTheAddressModeOfUserTo(user, mode string) error {
|
||||
}
|
||||
}
|
||||
|
||||
func (s *scenario) theUserChangesTheDefaultKeychainApplication() error {
|
||||
return s.t.bridge.SetKeychainApp("CustomKeychainApp")
|
||||
}
|
||||
|
||||
func (s *scenario) theUserChangesTheGluonPath() error {
|
||||
gluonDir, err := os.MkdirTemp(s.t.dir, "gluon")
|
||||
if err != nil {
|
||||
@ -118,7 +122,6 @@ func (s *scenario) theUserHasDisabledAutomaticUpdates() error {
|
||||
|
||||
started = true
|
||||
}
|
||||
|
||||
if err := s.t.bridge.SetAutoUpdate(false); err != nil {
|
||||
return err
|
||||
}
|
||||
@ -128,10 +131,26 @@ func (s *scenario) theUserHasDisabledAutomaticUpdates() error {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *scenario) theUserHasDisabledAutomaticStart() error {
|
||||
return s.t.bridge.SetAutostart(false)
|
||||
}
|
||||
|
||||
func (s *scenario) theUserHasEnabledAlternativeRouting() error {
|
||||
s.t.expectProxyCtlAllowProxy()
|
||||
return s.t.bridge.SetProxyAllowed(true)
|
||||
}
|
||||
|
||||
func (s *scenario) theUserSetIMAPModeToSSL() error {
|
||||
return s.t.bridge.SetIMAPSSL(true)
|
||||
}
|
||||
|
||||
func (s *scenario) theUserSetSMTPModeToSSL() error {
|
||||
return s.t.bridge.SetSMTPSSL(true)
|
||||
}
|
||||
|
||||
func (s *scenario) theUserReportsABug() error {
|
||||
return s.t.bridge.ReportBug(context.Background(), "osType", "osVersion", "description", "username", "email", "client", false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user