Skip to content

Commit

Permalink
enable R installation test again
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronJackson committed Nov 27, 2024
1 parent edb6c10 commit 80ef5d0
Showing 1 changed file with 19 additions and 23 deletions.
42 changes: 19 additions & 23 deletions reverse_proxy/molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,29 +64,25 @@
fail_msg: "Request to valid file extension was blocked."
success_msg: "Request to valid file extension was not blocked."

# Ubuntu 20.04 uses R 3, and packages for R 3 are no longer
# available in CRAN. We can sort this out when we move to Ubuntu
# 22.04 or later:

# - name: r package installation
# shell:
# cmd: |
# rm -rf /usr/local/lib/R/site-library/dplyr # remove if installed
# /usr/bin/R --no-save <<RPROG
# install.packages("dplyr", repos="http://cran.{{zone}}")
# library('dplyr')
# q()
# RPROG
# ls /usr/local/lib/R/site-library/dplyr
# failed_when: false
# changed_when: false
# register: r_install

# - name: ensure r package installed successfully
# assert:
# that: r_install.rc == 0
# fail_msg: "Failed to install R package (dplyr) from local proxy"
# success_msg: "R package (dplyr) was successfully installed via local proxy"
- name: r package installation
shell:
cmd: |
rm -rf /usr/local/lib/R/site-library/dplyr # remove if installed
/usr/bin/R --no-save <<RPROG
install.packages("dplyr", repos="http://cran.{{zone}}")
library('dplyr')
q()
RPROG
ls /usr/local/lib/R/site-library/dplyr
failed_when: false
changed_when: false
register: r_install

- name: ensure r package installed successfully
assert:
that: r_install.rc == 0
fail_msg: "Failed to install R package (dplyr) from local proxy"
success_msg: "R package (dplyr) was successfully installed via local proxy"

- name: check avscanner headers
uri:
Expand Down

0 comments on commit 80ef5d0

Please sign in to comment.