Skip to content

Commit

Permalink
Update ginkgo to v2 (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
aramprice authored Mar 18, 2024
1 parent 9dbdb1a commit 7f9aa3d
Show file tree
Hide file tree
Showing 57 changed files with 57 additions and 2,414 deletions.
2 changes: 1 addition & 1 deletion scripts/bosh-lite-acceptance-test
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ AGENT_HOST="$(bosh vms | grep running | grep bpm | awk '{print $4}')"
agent_port=1337

pushd "${RELEASE_PATH}/src/bpm/acceptance" > /dev/null
go run github.com/onsi/ginkgo/ginkgo -mod=vendor -r -p -race -randomizeAllSpecs -- --agent-uri="http://${AGENT_HOST}:${agent_port}"
go run github.com/onsi/ginkgo/v2/ginkgo -r -p --race --randomize-all -- --agent-uri="http://${AGENT_HOST}:${agent_port}"
popd > /dev/null

# We run the errand twice to make sure there is no state left on the VM which
Expand Down
2 changes: 1 addition & 1 deletion scripts/test-acceptance
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ AGENT_HOST="$(bosh -d bpm instances | grep running | awk '{ print $4 }')"
agent_port=1337

pushd "${RELEASE_PATH}/src/bpm/acceptance" > /dev/null
go run github.com/onsi/ginkgo/ginkgo -mod=vendor -r -p -race -randomizeAllSpecs -- --agent-uri="http://${AGENT_HOST}:${agent_port}"
go run github.com/onsi/ginkgo/v2/ginkgo -r -p --race --randomize-all -- --agent-uri="http://${AGENT_HOST}:${agent_port}"
popd > /dev/null
2 changes: 1 addition & 1 deletion scripts/test-unit
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ RELEASE_PATH="$(cd "$(dirname "$0")/.." && pwd)"
export RELEASE_PATH

pushd "${RELEASE_PATH}/src/bpm" > /dev/null
go run github.com/onsi/ginkgo/ginkgo -mod=vendor -r -p -race -randomizeAllSpecs -skipPackage "acceptance" "$@"
go run github.com/onsi/ginkgo/v2/ginkgo -r -p --race --randomize-all --skip-package "acceptance" "$@"
popd
2 changes: 1 addition & 1 deletion scripts/test-upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ AGENT_HOST="$(bosh -d bpm instances | grep running | awk '{ print $4 }')"
agent_port=1337

pushd "${RELEASE_PATH}/src/bpm/acceptance" > /dev/null
go run github.com/onsi/ginkgo/ginkgo -mod=vendor -r -p -race -randomizeAllSpecs -- --agent-uri="http://${AGENT_HOST}:${agent_port}"
go run github.com/onsi/ginkgo/v2/ginkgo -r -p --race -randomizeAllSpecs -- --agent-uri="http://${AGENT_HOST}:${agent_port}"
popd > /dev/null
5 changes: 2 additions & 3 deletions src/bpm/acceptance/bpm_acceptance_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ package bpm_acceptance_test
import (
"flag"
"net/http"
"testing"
"time"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

"testing"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion src/bpm/acceptance/bpm_acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"sort"
"strings"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)

Expand Down
2 changes: 1 addition & 1 deletion src/bpm/bosh/bosh_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package bosh_test
import (
"testing"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)

Expand Down
2 changes: 1 addition & 1 deletion src/bpm/bosh/env_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"os"
"path/filepath"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

"bpm/bosh"
Expand Down
2 changes: 1 addition & 1 deletion src/bpm/bosh/paths_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package bosh_test

import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

"bpm/bosh"
Expand Down
2 changes: 1 addition & 1 deletion src/bpm/cgroups/cgroup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"io"
"strings"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)

Expand Down
2 changes: 1 addition & 1 deletion src/bpm/cgroups/cgroups_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package cgroups
import (
"testing"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)

Expand Down
2 changes: 1 addition & 1 deletion src/bpm/config/bpm_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
package config_test

import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

"bpm/bosh"
Expand Down
2 changes: 1 addition & 1 deletion src/bpm/config/config_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
package config_test

import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

"testing"
Expand Down
2 changes: 1 addition & 1 deletion src/bpm/config/job_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
package config_test

import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

"bpm/bosh"
Expand Down
2 changes: 1 addition & 1 deletion src/bpm/exitstatus/error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"errors"
"testing"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

"bpm/exitstatus"
Expand Down
2 changes: 1 addition & 1 deletion src/bpm/flock/flock_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package flock_test
import (
"testing"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)

Expand Down
2 changes: 1 addition & 1 deletion src/bpm/flock/flock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"os"
"path/filepath"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

"bpm/flock"
Expand Down
2 changes: 1 addition & 1 deletion src/bpm/hostlock/hostlock_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package hostlock_test
import (
"testing"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)

Expand Down
2 changes: 1 addition & 1 deletion src/bpm/hostlock/hostlock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package hostlock_test
import (
"os"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

"bpm/hostlock"
Expand Down
2 changes: 1 addition & 1 deletion src/bpm/integration/capabilities_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"os/exec"
"path/filepath"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gexec"
uuid "github.com/satori/go.uuid"
Expand Down
6 changes: 3 additions & 3 deletions src/bpm/integration/integration_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ import (
"testing"
"time"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gexec"
specs "github.com/opencontainers/runtime-spec/specs-go"
yaml "gopkg.in/yaml.v3"
"github.com/opencontainers/runtime-spec/specs-go"
"gopkg.in/yaml.v3"

"bpm/config"
)
Expand Down
2 changes: 1 addition & 1 deletion src/bpm/integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"path/filepath"
"syscall"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gbytes"
"github.com/onsi/gomega/gexec"
Expand Down
5 changes: 2 additions & 3 deletions src/bpm/integration/list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@ import (
"os/exec"
"path/filepath"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gbytes"
"github.com/onsi/gomega/gexec"
"github.com/opencontainers/runtime-spec/specs-go"
uuid "github.com/satori/go.uuid"

specs "github.com/opencontainers/runtime-spec/specs-go"

"bpm/config"
"bpm/jobid"
"bpm/models"
Expand Down
2 changes: 1 addition & 1 deletion src/bpm/integration/logs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"os/exec"
"path/filepath"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gbytes"
"github.com/onsi/gomega/gexec"
Expand Down
2 changes: 1 addition & 1 deletion src/bpm/integration/namespaces_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"strconv"
"strings"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gexec"
uuid "github.com/satori/go.uuid"
Expand Down
4 changes: 2 additions & 2 deletions src/bpm/integration/pid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ import (
"os/exec"
"path/filepath"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gbytes"
"github.com/onsi/gomega/gexec"
specs "github.com/opencontainers/runtime-spec/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
uuid "github.com/satori/go.uuid"

"bpm/config"
Expand Down
2 changes: 1 addition & 1 deletion src/bpm/integration/privileged_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"os/exec"
"path/filepath"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gexec"
uuid "github.com/satori/go.uuid"
Expand Down
4 changes: 2 additions & 2 deletions src/bpm/integration/resource_limits_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ import (
"path/filepath"
"time"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gexec"
specs "github.com/opencontainers/runtime-spec/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
uuid "github.com/satori/go.uuid"

"bpm/bosh"
Expand Down
2 changes: 1 addition & 1 deletion src/bpm/integration/shell_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"syscall"

"github.com/kr/pty"
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gbytes"
"github.com/onsi/gomega/gexec"
Expand Down
4 changes: 2 additions & 2 deletions src/bpm/integration/start_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ import (
"strconv"
"time"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gbytes"
"github.com/onsi/gomega/gexec"
specs "github.com/opencontainers/runtime-spec/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
uuid "github.com/satori/go.uuid"

"bpm/bosh"
Expand Down
5 changes: 2 additions & 3 deletions src/bpm/integration/stop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@ import (
"os/exec"
"path/filepath"

"bpm/bosh"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gbytes"
"github.com/onsi/gomega/gexec"
uuid "github.com/satori/go.uuid"

"bpm/bosh"
"bpm/config"
"bpm/jobid"
)
Expand Down
4 changes: 2 additions & 2 deletions src/bpm/integration/trace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ import (
"os/exec"
"path/filepath"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gbytes"
"github.com/onsi/gomega/gexec"
specs "github.com/opencontainers/runtime-spec/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
uuid "github.com/satori/go.uuid"

"bpm/config"
Expand Down
2 changes: 1 addition & 1 deletion src/bpm/integration/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package integration_test
import (
"os/exec"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gbytes"
"github.com/onsi/gomega/gexec"
Expand Down
3 changes: 1 addition & 2 deletions src/bpm/jobid/encoding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ import (
"regexp"
"testing/quick"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/extensions/table"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

"github.com/opencontainers/runc/libcontainer/utils"
Expand Down
2 changes: 1 addition & 1 deletion src/bpm/jobid/jobid_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package jobid_test
import (
"testing"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)

Expand Down
2 changes: 1 addition & 1 deletion src/bpm/license_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"strings"
"testing"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)

Expand Down
2 changes: 1 addition & 1 deletion src/bpm/presenters/presenters_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
package presenters_test

import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

"testing"
Expand Down
2 changes: 1 addition & 1 deletion src/bpm/presenters/presenters_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package presenters_test
import (
"fmt"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gbytes"

Expand Down
6 changes: 3 additions & 3 deletions src/bpm/runc/client/client_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
package client_test

import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

"testing"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)

func TestClient(t *testing.T) {
Expand Down
Loading

0 comments on commit 7f9aa3d

Please sign in to comment.