Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump github.com/godogx/clocksteps from 0.3.0 to 0.4.0 in /tests/suite #257

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/mssql/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ require (
github.com/go-logr/logr v1.3.0 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-ole/go-ole v1.3.0 // indirect
github.com/godogx/clocksteps v0.3.0 // indirect
github.com/godogx/clocksteps v0.4.0 // indirect
github.com/godogx/dbsteps v0.1.2 // indirect
github.com/godogx/resource v0.1.1 // indirect
github.com/gofrs/uuid v4.4.0+incompatible // indirect
Expand Down
4 changes: 2 additions & 2 deletions tests/mssql/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,8 @@ github.com/godbus/dbus v0.0.0-20190422162347-ade71ed3457e/go.mod h1:bBOAhwG1umN6
github.com/godbus/dbus/v5 v5.0.3/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
github.com/godbus/dbus/v5 v5.0.6/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
github.com/godogx/clocksteps v0.3.0 h1:n62MMtWUZrIvUs0vvHFxUiojGE+dzadpfhUbfXJiBxY=
github.com/godogx/clocksteps v0.3.0/go.mod h1:/FW+JCcCR7Gjps8clGdpnENzo92ElywroJ2sBKNzYGY=
github.com/godogx/clocksteps v0.4.0 h1:vYyTph5tBi0dO0QTGSZUB2cYiih5SCZIXJ0RJjUxHYg=
github.com/godogx/clocksteps v0.4.0/go.mod h1:LY6LrxLlnOBH/BTBGzGP9WbMtDiu6v8afDJL0UvuKHo=
github.com/godogx/dbsteps v0.1.2 h1:MLpxpqCxXZrdvA/r8o8M+xKjrpmb+RTye1YWkvATFyk=
github.com/godogx/dbsteps v0.1.2/go.mod h1:kY6x9odRDEfymsLJ/O3VnX4LJBa23PhTdKjJzJgnMJM=
github.com/godogx/resource v0.1.1 h1:1vbznIn1mUCP+9TzJp9v8QKm54kAMTe38CBLnFBk0j8=
Expand Down
2 changes: 1 addition & 1 deletion tests/mysql/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ require (
github.com/go-logr/logr v1.3.0 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-ole/go-ole v1.3.0 // indirect
github.com/godogx/clocksteps v0.3.0 // indirect
github.com/godogx/clocksteps v0.4.0 // indirect
github.com/godogx/dbsteps v0.1.2 // indirect
github.com/godogx/resource v0.1.1 // indirect
github.com/gofrs/uuid v4.4.0+incompatible // indirect
Expand Down
4 changes: 2 additions & 2 deletions tests/mysql/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -532,8 +532,8 @@ github.com/godbus/dbus v0.0.0-20190422162347-ade71ed3457e/go.mod h1:bBOAhwG1umN6
github.com/godbus/dbus/v5 v5.0.3/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
github.com/godbus/dbus/v5 v5.0.6/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
github.com/godogx/clocksteps v0.3.0 h1:n62MMtWUZrIvUs0vvHFxUiojGE+dzadpfhUbfXJiBxY=
github.com/godogx/clocksteps v0.3.0/go.mod h1:/FW+JCcCR7Gjps8clGdpnENzo92ElywroJ2sBKNzYGY=
github.com/godogx/clocksteps v0.4.0 h1:vYyTph5tBi0dO0QTGSZUB2cYiih5SCZIXJ0RJjUxHYg=
github.com/godogx/clocksteps v0.4.0/go.mod h1:LY6LrxLlnOBH/BTBGzGP9WbMtDiu6v8afDJL0UvuKHo=
github.com/godogx/dbsteps v0.1.2 h1:MLpxpqCxXZrdvA/r8o8M+xKjrpmb+RTye1YWkvATFyk=
github.com/godogx/dbsteps v0.1.2/go.mod h1:kY6x9odRDEfymsLJ/O3VnX4LJBa23PhTdKjJzJgnMJM=
github.com/godogx/resource v0.1.1 h1:1vbznIn1mUCP+9TzJp9v8QKm54kAMTe38CBLnFBk0j8=
Expand Down
2 changes: 1 addition & 1 deletion tests/postgres/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ require (
github.com/go-logr/logr v1.3.0 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-ole/go-ole v1.3.0 // indirect
github.com/godogx/clocksteps v0.3.0 // indirect
github.com/godogx/clocksteps v0.4.0 // indirect
github.com/godogx/dbsteps v0.1.2 // indirect
github.com/godogx/resource v0.1.1 // indirect
github.com/gofrs/uuid v4.4.0+incompatible // indirect
Expand Down
4 changes: 2 additions & 2 deletions tests/postgres/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,8 @@ github.com/godbus/dbus v0.0.0-20190422162347-ade71ed3457e/go.mod h1:bBOAhwG1umN6
github.com/godbus/dbus/v5 v5.0.3/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
github.com/godbus/dbus/v5 v5.0.6/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
github.com/godogx/clocksteps v0.3.0 h1:n62MMtWUZrIvUs0vvHFxUiojGE+dzadpfhUbfXJiBxY=
github.com/godogx/clocksteps v0.3.0/go.mod h1:/FW+JCcCR7Gjps8clGdpnENzo92ElywroJ2sBKNzYGY=
github.com/godogx/clocksteps v0.4.0 h1:vYyTph5tBi0dO0QTGSZUB2cYiih5SCZIXJ0RJjUxHYg=
github.com/godogx/clocksteps v0.4.0/go.mod h1:LY6LrxLlnOBH/BTBGzGP9WbMtDiu6v8afDJL0UvuKHo=
github.com/godogx/dbsteps v0.1.2 h1:MLpxpqCxXZrdvA/r8o8M+xKjrpmb+RTye1YWkvATFyk=
github.com/godogx/dbsteps v0.1.2/go.mod h1:kY6x9odRDEfymsLJ/O3VnX4LJBa23PhTdKjJzJgnMJM=
github.com/godogx/resource v0.1.1 h1:1vbznIn1mUCP+9TzJp9v8QKm54kAMTe38CBLnFBk0j8=
Expand Down
2 changes: 1 addition & 1 deletion tests/suite/customer.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (t *customerTests) constructRepository() {
t.repository = t.construct(newDatabaseExecer(t.runner, t.usePreparer), t.clock)
}

func (t *customerTests) RegisterContext(sc *godog.ScenarioContext) {
func (t *customerTests) RegisterSteps(sc *godog.ScenarioContext) {
sc.Before(func(ctx context.Context, _ *godog.Scenario) (context.Context, error) {
db, err := openDB(t.databaseDriver, t.databaseDSN)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion tests/suite/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/Masterminds/squirrel v1.5.4
github.com/bool64/sqluct v0.2.1
github.com/cucumber/godog v0.13.0
github.com/godogx/clocksteps v0.3.0
github.com/godogx/clocksteps v0.4.0
github.com/jmoiron/sqlx v1.3.5
github.com/prometheus/client_golang v1.17.0
github.com/stretchr/testify v1.8.4
Expand Down
4 changes: 2 additions & 2 deletions tests/suite/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ github.com/go-ole/go-ole v1.3.0 h1:Dt6ye7+vXGIKZ7Xtk4s6/xVdGDQynvom7xCFEdWr6uE=
github.com/go-ole/go-ole v1.3.0/go.mod h1:5LS6F96DhAwUc7C+1HLexzMXY1xGRSryjyPPKW6zv78=
github.com/go-sql-driver/mysql v1.6.0 h1:BCTh4TKNUYmOmMUcQ3IipzF5prigylS7XXjEkfCHuOE=
github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
github.com/godogx/clocksteps v0.3.0 h1:n62MMtWUZrIvUs0vvHFxUiojGE+dzadpfhUbfXJiBxY=
github.com/godogx/clocksteps v0.3.0/go.mod h1:/FW+JCcCR7Gjps8clGdpnENzo92ElywroJ2sBKNzYGY=
github.com/godogx/clocksteps v0.4.0 h1:vYyTph5tBi0dO0QTGSZUB2cYiih5SCZIXJ0RJjUxHYg=
github.com/godogx/clocksteps v0.4.0/go.mod h1:LY6LrxLlnOBH/BTBGzGP9WbMtDiu6v8afDJL0UvuKHo=
github.com/godogx/dbsteps v0.1.2 h1:MLpxpqCxXZrdvA/r8o8M+xKjrpmb+RTye1YWkvATFyk=
github.com/godogx/dbsteps v0.1.2/go.mod h1:kY6x9odRDEfymsLJ/O3VnX4LJBa23PhTdKjJzJgnMJM=
github.com/godogx/resource v0.1.1 h1:1vbznIn1mUCP+9TzJp9v8QKm54kAMTe38CBLnFBk0j8=
Expand Down
2 changes: 1 addition & 1 deletion tests/suite/observability.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type observabilityTests struct {
promExporter *prometheus.Exporter
}

func (t *observabilityTests) RegisterContext(sc *godog.ScenarioContext) {
func (t *observabilityTests) RegisterSteps(sc *godog.ScenarioContext) {
// Reset prometheus exporter for every test.
sc.Before(func(ctx context.Context, _ *godog.Scenario) (context.Context, error) {
promExporter, err := newPrometheusExporter()
Expand Down
6 changes: 3 additions & 3 deletions tests/suite/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ func (s suite) runTests(tb testing.TB, sc suiteContext) error {
suite := godog.TestSuite{
Name: "Integration",
ScenarioInitializer: func(sc *godog.ScenarioContext) {
clock.RegisterContext(sc)
clock.RegisterSteps(sc)
dbm.RegisterSteps(sc)
otelsqlTests.RegisterContext(sc)
customerTests.RegisterContext(sc)
otelsqlTests.RegisterSteps(sc)
customerTests.RegisterSteps(sc)
},
Options: &godog.Options{
Format: "pretty",
Expand Down
Loading