File tree Expand file tree Collapse file tree 7 files changed +82
-54
lines changed Expand file tree Collapse file tree 7 files changed +82
-54
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ jobs:
10
10
runs-on : ubuntu-latest
11
11
steps :
12
12
13
- - name : Set up Go 1.16
13
+ - name : Set up Go 1.17
14
14
uses : actions/setup-go@v2
15
15
with :
16
- go-version : 1.16
16
+ go-version : 1.17
17
17
id : go
18
18
19
19
- name : Check out code into the Go module directory
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ jobs:
10
10
runs-on : ubuntu-latest
11
11
steps :
12
12
13
- - name : Set up Go 1.16
13
+ - name : Set up Go 1.17
14
14
uses : actions/setup-go@v2
15
15
with :
16
- go-version : 1.16
16
+ go-version : 1.17
17
17
id : go
18
18
19
19
- name : Check out code into the Go module directory
Original file line number Diff line number Diff line change 2
2
CGO_ENABLED := $(or ${CGO_ENABLED},0)
3
3
GO := go
4
4
GO111MODULE := on
5
- PG_VERSION := $(or ${PG_VERSION},13 -alpine)
6
- COCKROACH_VERSION := $(or ${COCKROACH_VERSION},v21.1.5 )
5
+ PG_VERSION := $(or ${PG_VERSION},14 -alpine)
6
+ COCKROACH_VERSION := $(or ${COCKROACH_VERSION},v21.2.2 )
7
7
8
8
.EXPORT_ALL_VARIABLES :
9
9
Original file line number Diff line number Diff line change @@ -4,12 +4,11 @@ go 1.16
4
4
5
5
require (
6
6
github.com/avast/retry-go/v3 v3.1.1
7
- github.com/go-redis/redis/v8 v8.11.1
7
+ github.com/go-redis/redis/v8 v8.11.4
8
8
github.com/jmoiron/sqlx v1.3.4
9
- github.com/lib/pq v1.10.2
9
+ github.com/lib/pq v1.10.4
10
10
github.com/stretchr/testify v1.7.0
11
- github.com/testcontainers/testcontainers-go v0.11.1
12
- golang.org/x/net v0.0.0-20210726213435-c6fcb2dbf985 // indirect
11
+ github.com/testcontainers/testcontainers-go v0.12.0
13
12
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
14
- inet.af/netaddr v0.0.0-20210721214506-ce7a8ad02cc1
13
+ inet.af/netaddr v0.0.0-20211027220019-c74959edd3b6
15
14
)
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1
1
package ipam
2
2
3
3
import (
4
- "io/ioutil "
4
+ "os "
5
5
"strings"
6
6
"testing"
7
7
@@ -13,7 +13,7 @@ func TestIntegration(t *testing.T) {
13
13
_ , storage , err := startPostgres ()
14
14
require .NoError (t , err )
15
15
defer storage .db .Close ()
16
- dump , err := ioutil .ReadFile ("testdata/ipamt.dump.sql" )
16
+ dump , err := os .ReadFile ("testdata/ipamt.dump.sql" )
17
17
require .NoError (t , err )
18
18
require .NotNil (t , dump )
19
19
storage .db .MustExec (string (dump ))
@@ -140,7 +140,7 @@ func TestIntegrationP(t *testing.T) {
140
140
_ , storage , err := startPostgres ()
141
141
require .NoError (t , err )
142
142
defer storage .db .Close ()
143
- dump , err := ioutil .ReadFile ("testdata/ipamp.dump.sql" )
143
+ dump , err := os .ReadFile ("testdata/ipamp.dump.sql" )
144
144
require .NoError (t , err )
145
145
require .NotNil (t , dump )
146
146
storage .db .MustExec (string (dump ))
Original file line number Diff line number Diff line change @@ -3,8 +3,7 @@ package ipam
3
3
import (
4
4
"context"
5
5
"fmt"
6
- "io/ioutil"
7
- "log"
6
+ "io"
8
7
"os"
9
8
"sync"
10
9
"testing"
@@ -33,19 +32,19 @@ func TestMain(m *testing.M) {
33
32
// call flag.Parse() here if TestMain uses flags
34
33
pgVersion = os .Getenv ("PG_VERSION" )
35
34
if pgVersion == "" {
36
- pgVersion = "13 "
35
+ pgVersion = "14 "
37
36
}
38
37
cockroachVersion = os .Getenv ("COCKROACH_VERSION" )
39
38
if cockroachVersion == "" {
40
- cockroachVersion = "v21.1.5 "
39
+ cockroachVersion = "v21.2.2 "
41
40
}
42
41
redisVersion = os .Getenv ("REDIS_VERSION" )
43
42
if redisVersion == "" {
44
- redisVersion = "6-alpine"
43
+ redisVersion = "6.2 -alpine"
45
44
}
46
45
keyDBVersion = os .Getenv ("KEYDB_VERSION" )
47
46
if keyDBVersion == "" {
48
- keyDBVersion = "alpine_x86_64_v6.0.18 "
47
+ keyDBVersion = "alpine_x86_64_v6.2.1 "
49
48
}
50
49
backend = os .Getenv ("BACKEND" )
51
50
if backend == "" {
@@ -54,7 +53,7 @@ func TestMain(m *testing.M) {
54
53
fmt .Printf ("only test %s\n " , backend )
55
54
}
56
55
// prevent testcontainer logging mangle test and benchmark output
57
- log . SetOutput (ioutil .Discard )
56
+ testcontainers . Logger . SetOutput (io .Discard )
58
57
os .Exit (m .Run ())
59
58
}
60
59
You can’t perform that action at this time.
0 commit comments