diff options
author | Pavlo Strokov <pstrokov@gitlab.com> | 2020-06-22 13:15:52 +0300 |
---|---|---|
committer | Pavlo Strokov <pstrokov@gitlab.com> | 2020-06-22 13:15:52 +0300 |
commit | 9eaeb1abdbcd543afb2bc0f7417639c247f6e42c (patch) | |
tree | e18542e844c2f578b3d9a22b9ba4515bca7b3c4f /internal/testhelper | |
parent | 7904013f189a5d780c3f3f477fa357c9f4844ab9 (diff) |
Refactoring of 'starter' package and gitaly server factory
Extending package 'starter' with 'Parse', 'Compose' funcs
to work with gitaly address format.
'GracefulStoppableServer' is a common interface that is why
it has been moved to 'starter' package where it is used.
'GitalyServerFactory' moved into 'server' package as
'bootstrap' is used by praefect as well.
Also it now supports multiple servers to be started for
listening and track all of them correctly.
Diffstat (limited to 'internal/testhelper')
-rw-r--r-- | internal/testhelper/testhelper.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/testhelper/testhelper.go b/internal/testhelper/testhelper.go index 5cfe083f0..d6b051ff5 100644 --- a/internal/testhelper/testhelper.go +++ b/internal/testhelper/testhelper.go @@ -839,7 +839,8 @@ func GenerateTestCerts(t *testing.T) (string, string, Cleanup) { NotAfter: time.Now().AddDate(0, 0, 1), BasicConstraintsValid: true, IsCA: true, - DNSNames: []string{"localhost", "0.0.0.0", "127.0.0.1", "::1"}, + IPAddresses: []net.IP{net.ParseIP("0.0.0.0"), net.ParseIP("127.0.0.1"), net.ParseIP("::1"), net.ParseIP("::")}, + DNSNames: []string{"localhost"}, KeyUsage: x509.KeyUsageCertSign, } |