-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix staticcheck issues Signed-off-by: Amelia Downs <[email protected]> Co-authored-by: Amelia Downs <[email protected]> * add integration tests from docker_driver_integration_tests repo Signed-off-by: Amelia Downs <[email protected]> Co-authored-by: Amelia Downs <[email protected]> * vendor dependancies Signed-off-by: Amin Jamali <[email protected]> Co-authored-by: Amin Jamali <[email protected]> * Use a single config for running integration Signed-off-by: Amelia Downs <[email protected]> Co-authored-by: Amelia Downs <[email protected]> * Various fixes for test suites to run properly Signed-off-by: Amelia Downs <[email protected]> Co-authored-by: Amelia Downs <[email protected]> * Update test to skip for smb when running nfs fixture Signed-off-by: Amelia Downs <[email protected]> Co-authored-by: Amelia Downs <[email protected]> * Add bin/test.bash * fix more staticcheck errors * Add scripts dir for local testing --------- Signed-off-by: Amelia Downs <[email protected]> Signed-off-by: Amin Jamali <[email protected]> Co-authored-by: Amelia Downs <[email protected]>
- Loading branch information
1 parent
441e44b
commit 9ef6bef
Showing
921 changed files
with
538,485 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
set -o pipefail | ||
|
||
# shellcheck disable=SC2068 | ||
# Double-quoting array expansion here causes ginkgo to fail | ||
go run github.com/onsi/ginkgo/v2/ginkgo ${@} --skip-package integration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package compatibility_test | ||
|
||
import ( | ||
"os/exec" | ||
"testing" | ||
|
||
"code.cloudfoundry.org/dockerdriver/integration" | ||
. "github.com/onsi/ginkgo/v2" | ||
. "github.com/onsi/gomega" | ||
"github.com/onsi/gomega/gbytes" | ||
"github.com/onsi/gomega/gexec" | ||
) | ||
|
||
var ( | ||
session *gexec.Session | ||
) | ||
|
||
func TestCompatibility(t *testing.T) { | ||
|
||
RegisterFailHandler(Fail) | ||
RunSpecs(t, "Compatibility Suite") | ||
} | ||
|
||
var _ = BeforeSuite(func() { | ||
|
||
config, err := integration.LoadConfig() | ||
Expect(err).NotTo(HaveOccurred()) | ||
|
||
cmd := exec.Command(config.Driver, config.DriverArgs...) | ||
|
||
session, err = gexec.Start(cmd, GinkgoWriter, GinkgoWriter) | ||
Expect(err).NotTo(HaveOccurred()) | ||
Eventually(session.Out).Should(gbytes.Say("driver-server.started")) | ||
}) | ||
var _ = AfterSuite(func() { | ||
session.Interrupt() | ||
Eventually(session).Should(gexec.Exit()) | ||
}) |
Oops, something went wrong.