Below is a draft of the instructions for how to run integration tests on the proposed Certbot packages. Two comments about this script:
1. I'm not sure if there's a better way to get the Ubuntu codename or how reliable the method I'm using is. 2. I don't know if the way I'm installing the proposed packages will work because I don't know what will happen when apt tries to resolve python-certbot-apache's dependencies. Please feel free to make/suggest edits if anyone knows how to make these areas work (more robustly). == Running integration tests == Integration tests should be run on the proposed updates for each modified Ubuntu release. You can do this using the script below in a virtual machine for the release of Ubuntu you would like to test. ``` if test "$(id -u)" -ne "0"; then echo "Must run as root to install packages and use Docker." >&2 exit 1 fi apt update apt install docker.io git lsb-release net-tools wget -y wget https://github.com/docker/compose/releases/download/1.15.0-rc1/docker-compose-Linux-x86_64 -O /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose codename=$(lsb_release -a 2>/dev/null | grep Codename | cut -f2) echo "Package: *" > /etc/apt/preferences.d/proposed-updates echo "Pin: release a=$codename-proposed" >> /etc/apt/preferences.d/proposed-updates echo "Pin-Priority: 400" >> /etc/apt/preferences.d/proposed-updates apt update apt install python-certbot-apache/$codename-proposed -y service apache2 stop apt install python-certbot-nginx/$codename-proposed -y service nginx stop certbot_version=$(certbot --version 2>&1 | grep "^certbot" | cut -d " " -f 2) cd ~ git clone https://github.com/certbot/certbot --branch v$certbot_version --depth 1 cd certbot tests/boulder-fetch.sh until curl http://localhost:4000/directory 2>/dev/null; do echo waiting for boulder sleep 1 done tests/boulder-integration.sh echo "Success!" ``` -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640978 Title: [SRU] Backport letsencrypt 0.14.1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-acme/+bug/1640978/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs