Skip to content

Commit

Permalink
add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eitsupi committed Aug 10, 2023
1 parent e20dd43 commit 567ce55
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/rstudio-server/daily.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

set -e

# Optional: Import test library bundled with the devcontainer CLI
source dev-container-features-test-lib

# Feature-specific tests
check "version" bash -c 'rstudio-server version'

# Report result
reportResults
13 changes: 13 additions & 0 deletions test/rstudio-server/r-already-installed.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

set -e

# Optional: Import test library bundled with the devcontainer CLI
source dev-container-features-test-lib

# Feature-specific tests
check "R version" bash -c 'R --version | grep 4.3.0'
check "version" bash -c 'rstudio-server version'

# Report result
reportResults
32 changes: 32 additions & 0 deletions test/rstudio-server/scenarios.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"r-already-installed": {
"image": "rocker/r-ver:4.3.0",
"features": {
"rstudio-server": {}
}
},
"version-tag": {
"image": "rocker/r-ver",
"features": {
"rstudio-server": {
"version": "2023.03.2+454"
}
}
},
"daily": {
"image": "rocker/r-ver",
"features": {
"rstudio-server": {
"version": "daily"
}
}
},
"version-daily-specific": {
"image": "rocker/r-ver",
"features": {
"rstudio-server": {
"version": "2023.09.0-daily+306"
}
}
}
}
12 changes: 12 additions & 0 deletions test/rstudio-server/version-daily-specific.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

set -e

# Optional: Import test library bundled with the devcontainer CLI
source dev-container-features-test-lib

# Feature-specific tests
check "version" bash -c 'rstudio-server version | grep 2023.09.0'

# Report result
reportResults
12 changes: 12 additions & 0 deletions test/rstudio-server/version-tag.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

set -e

# Optional: Import test library bundled with the devcontainer CLI
source dev-container-features-test-lib

# Feature-specific tests
check "version" bash -c 'rstudio-server version | grep 2023.03.2+454'

# Report result
reportResults

0 comments on commit 567ce55

Please sign in to comment.