Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Commit 8971223

Browse files
committed
Issue #2109: More fixes for linting and testing.
1 parent d5d32b9 commit 8971223

10 files changed

+53
-220
lines changed

.github/workflows/ci.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ jobs:
1616
steps:
1717
- name: Check out the codebase.
1818
uses: actions/checkout@v2
19-
with:
20-
path: 'geerlingguy.apache'
2119

2220
- name: Set up Python 3.
2321
uses: actions/setup-python@v2
@@ -46,6 +44,7 @@ jobs:
4644
strategy:
4745
matrix:
4846
include:
47+
# Defaults.
4948
- distro: ubuntu1804
5049
playbook: converge.yml
5150
- distro: debian10

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"process-timeout": 1800
2626
},
2727
"scripts": {
28-
"run-tests": "./tests/run-tests.sh",
28+
"run-tests": "molecule test",
2929
"docker-bake": "./provisioning/docker/bake.sh",
3030
"docker-save-image": "./provisioning/docker/save-image.sh",
3131
"docker-load-image": "./provisioning/docker/load-image.sh"

molecule/default/converge.yml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
# Added to prevent test failures in CI.
1515
firewall_enable_ipv6: false
16+
hostname_fqdn: ''
1617

1718
tasks:
1819
- name: Update apt cache.

molecule/default/verify.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
- name: Verify
3+
hosts: all
4+
become: true
5+
6+
vars:
7+
drupal_vm_hostname: drupalvm.test
8+
9+
tasks:
10+
- name: Validate web services are up and running.
11+
uri:
12+
url: localhost{{ item.port | default(omit) }}
13+
headers:
14+
Host: "{{ item.host_prefix }}{{ drupal_vm_hostname }}"
15+
return_content: true
16+
register: response
17+
failed_when: item.expected_content not in response.content
18+
with_items:
19+
- name: Drupal
20+
host_prefix: ""
21+
expected_content: "<title>Welcome to Drupal"
22+
- name: Dashboard
23+
host_prefix: "dashboard."
24+
expected_content: "Vagrant + Ansible"
25+
- name: Adminer
26+
host_prefix: "adminer."
27+
expected_content: "<title>Login - Adminer"
28+
- name: Pimp My Log
29+
host_prefix: "pimpmylog."
30+
expected_content: "<title>Pimp my Log"
31+
- name: MailHog
32+
host_prefix: ""
33+
port: "8025"
34+
expected_content: "<title>MailHog"
35+
36+
# TODO: Varnish
37+
# if [ $TEST_INSTALLED_EXTRAS = true ]; then
38+
# docker exec $CONTAINER_ID curl -sSI --header Host:$HOSTNAME localhost:81 \
39+
# | tee /tmp/dvm-test \
40+
# | grep -q 'Via: .* varnish' \
41+
# && (echo 'Varnish install pass' && exit 0) \
42+
# || (echo 'Varnish install fail' && cat /tmp/dvm-test && exit 1)
43+
# fi
44+
45+
# TODO: Drush
46+
# docker exec $CONTAINER_ID bash -c "cd $DRUPALVM_DIR/drupal && $DRUSH_BIN status" \
47+
# | tee /tmp/dvm-test \
48+
# | grep -q 'Drush' \
49+
# && (echo 'Drush install pass' && exit 0) \
50+
# || (echo 'Drush install fail' && cat /tmp/dvm-test && exit 1)

tests/centos-8.config.yml

-2
This file was deleted.

tests/config.yml

-10
This file was deleted.

tests/run-tests.sh

-185
This file was deleted.

tests/test-setup.yml

-12
This file was deleted.

tests/ubuntu-18-php74.config.yml

-4
This file was deleted.

tests/ubuntu-18-postgresql.config.yml

-4
This file was deleted.

0 commit comments

Comments
 (0)