Skip to content

Commit

Permalink
recent connect, updated config, passes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aronatkins committed Jun 13, 2024
1 parent 0724ec2 commit 4ab4e47
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion __tests__/main.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as rsconnect from '../src/main'
jest.setTimeout(1000 * 60 * 2)

const SEED_ADMIN_CONFIG: rsconnect.APIClientConfiguration = {
apiKey: 'f1wc3w4090uv67yhud7j08zjzgvt7yfg',
apiKey: '21232f297a57a5a743894a0e4a801fc3',
baseURL: 'http://127.0.0.1:23939/__api__'
}

Expand Down
42 changes: 23 additions & 19 deletions __tests__/rstudio-connect.test.gcfg
Original file line number Diff line number Diff line change
@@ -1,42 +1,46 @@
; RStudio Connect test environment configuration

[Applications]
RunAs = rstudio-connect
[Server]
DataDir = /data
EmailProvider = print
DatabaseEmailSettings = true
Address = http://localhost:23939

[Authentication]
Provider = password
BasicAuth = true
InsecureDefaultUserAPIKey = true
APIKeyBcryptCost = 4

[Database]
Provider = Postgres
SeedUsers = true

[Debug]
Log = router
Log = services
Log = url-normalization

[HTTP]
Listen = :3939
NoWarning = true

[Mount]
BaseDir = /connect-test-mount

[Postgres]
URL = postgres://postgres:notasecret@db/postgres?sslmode=disable

[Python]
Enabled = true
Executable = /opt/python/3.6.5/bin/python
Executable = /opt/python/3.12.1/bin/python
Executable = /opt/python/3.11.7/bin/python

[Quarto]
Enabled = true
Executable = /opt/quarto/1.4.552/bin/quarto

[RPackageRepository "CRAN"]
URL = https://packagemanager.rstudio.com/cran/__linux__/bionic/latest
URL = https://packagemanager.rstudio.com/cran/__linux__/jammy/latest

[RPackageRepository "RSPM"]
URL = https://packagemanager.rstudio.com/cran/__linux__/bionic/latest

[Server]
DataDir = /data
EmailProvider = print
DatabaseEmailSettings = true
Address = http://127.0.0.1:23939
URL = https://packagemanager.rstudio.com/cran/__linux__/jammy/latest

[Logging]
ServiceLog = STDOUT
ServiceLogFormat = TEXT ; TEXT or JSON
ServiceLogLevel = INFO ; INFO, WARNING or ERROR
AccessLog = STDOUT
AccessLogFormat = COMMON ; COMMON, COMBINED, or JSON
6 changes: 1 addition & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3.7'

services:
db:
image: postgres:12
Expand All @@ -11,9 +9,7 @@ services:
privileged: true
depends_on:
- db
# TODO: when available
# image: rstudio/rstudio-connect:1.8.6
image: rstudio/rstudio-connect:1.8.4.2-2
image: rstudio/rstudio-connect:ubuntu2204-2024.05.0
volumes:
- ./.cache/data:/data
- ./__tests__/rstudio-connect.test.gcfg:/etc/rstudio-connect/rstudio-connect.gcfg
Expand Down

0 comments on commit 4ab4e47

Please sign in to comment.