Skip to content

Commit 6fffb2a

Browse files
dtretyakovsylvestre
authored andcommitted
use authentication in webdav test
1 parent 86a1f1a commit 6fffb2a

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.github/workflows/integration-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,8 @@ jobs:
300300

301301
env:
302302
SCCACHE_WEBDAV_ENDPOINT: "http://127.0.0.1:8080"
303+
SCCACHE_WEBDAV_USERNAME: "bar"
304+
SCCACHE_WEBDAV_PASSWORD: "baz"
303305
RUSTC_WRAPPER: /home/runner/.cargo/bin/sccache
304306

305307
steps:
@@ -309,6 +311,7 @@ jobs:
309311
shell: bash
310312
run: |
311313
mkdir /tmp/static
314+
cp `pwd`/tests/htpasswd /tmp/htpasswd
312315
nginx -c `pwd`/tests/nginx_http_cache.conf
313316
314317
- name: Install rust

tests/htpasswd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bar:{PLAIN}baz

tests/nginx_http_cache.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ http {
1818
dav_methods PUT DELETE;
1919
create_full_put_path on;
2020
client_max_body_size 1024M;
21+
auth_basic "Authentication required";
22+
auth_basic_user_file /tmp/htpasswd;
2123
}
2224
}
2325
}

0 commit comments

Comments
 (0)