test(bootstrap): add unit tests for initial bootstrap behavior
SonarQube Scan / SonarQube Trigger (push) Successful in 2m30s
SonarQube Scan / SonarQube Trigger (push) Successful in 2m30s
This commit is contained in:
@@ -13,6 +13,7 @@ type Config interface {
|
||||
|
||||
TLSEnabled() bool
|
||||
TLSRedirect() bool
|
||||
TLSStoragePath() string
|
||||
|
||||
ACMEEmail() string
|
||||
CFAPIToken() string
|
||||
@@ -52,6 +53,7 @@ func (c *config) HTTPSPort() string { return c.httpsPort }
|
||||
func (c *config) KeyLoc() string { return c.keyLoc }
|
||||
func (c *config) TLSEnabled() bool { return c.tlsEnabled }
|
||||
func (c *config) TLSRedirect() bool { return c.tlsRedirect }
|
||||
func (c *config) TLSStoragePath() string { return c.tlsStoragePath }
|
||||
func (c *config) ACMEEmail() string { return c.acmeEmail }
|
||||
func (c *config) CFAPIToken() string { return c.cfAPIToken }
|
||||
func (c *config) ACMEStaging() bool { return c.acmeStaging }
|
||||
|
||||
@@ -20,12 +20,12 @@ type config struct {
|
||||
|
||||
keyLoc string
|
||||
|
||||
tlsEnabled bool
|
||||
tlsRedirect bool
|
||||
|
||||
acmeEmail string
|
||||
cfAPIToken string
|
||||
acmeStaging bool
|
||||
tlsEnabled bool
|
||||
tlsRedirect bool
|
||||
tlsStoragePath string
|
||||
acmeEmail string
|
||||
cfAPIToken string
|
||||
acmeStaging bool
|
||||
|
||||
allowedPortsStart uint16
|
||||
allowedPortsEnd uint16
|
||||
|
||||
Reference in New Issue
Block a user