You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dav/README.md
+8-37Lines changed: 8 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,45 +112,16 @@ go test ./dav/client/...
112
112
113
113
### Integration Tests
114
114
115
-
The DAV implementation includes Go-based integration tests that run against a real WebDAV server.
115
+
The DAV implementation includes Go-based integration tests that run against a real WebDAV server. These tests require a WebDAV server to be available and the following environment variables to be set:
116
116
117
-
**Prerequisites:**
118
-
- Running WebDAV server (can be set up with Docker - see below)
119
-
- Environment variables configured
117
+
-`DAV_ENDPOINT` - WebDAV server URL
118
+
-`DAV_USER` - Username for authentication
119
+
-`DAV_PASSWORD` - Password for authentication
120
+
-`DAV_CA_CERT` - CA certificate (optional, for HTTPS with custom CA)
121
+
-`DAV_SECRET` - Secret for signed URLs (optional, for signed URL tests)
120
122
121
-
**Setup WebDAV server with Docker:**
122
-
```bash
123
-
cd dav
124
-
./setup-webdav-test.sh # Sets up Apache WebDAV with HTTPS
125
-
```
126
-
127
-
**Run integration tests:**
128
-
```bash
129
-
# Set environment variables (from the dav/ directory after running setup)
export DAV_SECRET="test-secret-key"# Optional, for signed URL tests
135
-
136
-
# Run integration tests
137
-
ginkgo -v ./integration
138
-
139
-
# Or using go test
140
-
go test -v ./integration/...
141
-
```
142
-
143
-
These tests cover all operations: PUT, GET, DELETE, DELETE-RECURSIVE, EXISTS, LIST, COPY, PROPERTIES, and ENSURE-STORAGE-EXISTS.
123
+
If these environment variables are not set, the integration tests will be skipped.
144
124
145
125
### End-to-End Tests
146
126
147
-
The DAV implementation also includes shell-based end-to-end tests using the compiled storage-cli binary.
148
-
149
-
**Quick start:**
150
-
```bash
151
-
cd dav
152
-
./setup-webdav-test.sh # Sets up Apache WebDAV with HTTPS
153
-
./test-storage-cli.sh # Runs complete test suite
154
-
```
155
-
156
-
**For detailed testing instructions, see [TESTING.md](TESTING.md).**
127
+
The `dav/` directory includes shell-based end-to-end tests that test the compiled storage-cli binary against a WebDAV server. See [TESTING.md](TESTING.md) for local setup instructions.
0 commit comments