Skip to content

Commit 19fa8b5

Browse files
committed
exclude integration tests run
1 parent 3c726fa commit 19fa8b5

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

dav/integration/general_dav_test.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@ var _ = Describe("General testing for DAV", func() {
1818
ca := os.Getenv("DAV_CA_CERT")
1919
secret := os.Getenv("DAV_SECRET")
2020

21-
BeforeEach(func() {
22-
Expect(endpoint).ToNot(BeEmpty(), "DAV_ENDPOINT must be set")
23-
Expect(user).ToNot(BeEmpty(), "DAV_USER must be set")
24-
Expect(password).ToNot(BeEmpty(), "DAV_PASSWORD must be set")
25-
})
21+
// Skip all tests if environment variables are not set
22+
if endpoint == "" || user == "" || password == "" {
23+
Skip("Skipping DAV integration tests - environment variables not set (DAV_ENDPOINT, DAV_USER, DAV_PASSWORD required)")
24+
}
2625

2726
configurations := []TableEntry{
2827
Entry("with basic config", &config.Config{

0 commit comments

Comments
 (0)