Skip to content

Commit 9d3d7ad

Browse files
Cleanup and doc
1 parent d29699b commit 9d3d7ad

4 files changed

Lines changed: 13 additions & 37 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,5 @@ reference/
146146
src/
147147

148148
/.luarc.json
149+
150+
*.lic

CONTRIBUTING.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,16 @@ There are two important details to note for testing:
7676

7777
### Setting up Posit Connect tests
7878

79+
You can use the [`with-connect`](https://github.com/posit-dev/with-connect) tool to spin up a Docker container with Posit Connect for testing.
80+
81+
```
82+
uv tool install git+https://github.com/posit-dev/with-connect.git
83+
```
84+
85+
Then run:
86+
7987
```
80-
# Be sure to set RSC_LICENSE in .env
81-
make dev
88+
with-connect -- pytest -m 'fs_rsc' pins
8289
```
90+
91+
This requires a valid Posit Connect license. If you have the file somewhere other than `./rstudio-connect.lic`, provide the path to it with the `--license` argument.

Makefile

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,4 @@
11
SPHINX_BUILDARGS=
2-
# Note that these are keys generated by the docker rsconnect service, so are
3-
# not really secrets. They are saved to json to make it easy to use rsconnect
4-
# as multiple users from the tests
5-
RSC_API_KEYS=pins/tests/rsconnect_api_keys.json
6-
7-
dev: pins/tests/rsconnect_api_keys.json
8-
9-
dev-start:
10-
docker compose up -d
11-
docker compose exec -T rsconnect bash < script/setup-rsconnect/add-users.sh
12-
# curl fails with error 52 without a short sleep....
13-
sleep 5
14-
curl -s --retry 10 --retry-connrefused http://localhost:3939
15-
16-
dev-stop:
17-
docker compose down
18-
rm -f $(RSC_API_KEYS)
19-
20-
$(RSC_API_KEYS): dev-start
21-
python script/setup-rsconnect/dump_api_keys.py $@
222

233
README.md:
244
quarto render README.qmd

docker-compose.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)