Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BATS testing failing on a number of tests #15

Open
justinhartman opened this issue Jul 10, 2020 · 1 comment
Open

BATS testing failing on a number of tests #15

justinhartman opened this issue Jul 10, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@justinhartman
Copy link
Owner

justinhartman commented Jul 10, 2020

There are a number of BATS tests failing which I need to address at some stage. The following is the output of the tests.

$ sudo bats -t ./tests/bats
1..35
not ok 1 cleanup test directory and clone project repo
# (in test file bats/_setup.bats, line 18)
#   `[ "$status" -eq 0 ]' failed
ok 2 create test directory structure
not ok 3 apache file backup
# (in test file bats/apache_config.bats, line 25)
#   `[ "${lines[7]}" = "✔ Successfully backed up the Apache 2 configuration files." ]' failed
not ok 4 apache copy files
# (in test file bats/apache_config.bats, line 48)
#   `[ "${lines[10]}" = "✔ Successfully copied the new Apache 2 configuration files." ]' failed
not ok 5 apache final configuration
# (in test file bats/apache_config.bats, line 63)
#   `[ "${lines[7]}" = "✔ Your website folder has been created at ${websites} and you can edit your files in the 'dist' folder." ]' failed
ok 6 global includes
ok 7 brew start
ok 8 brew install
not ok 9 brew packages
# (in test file bats/brew.bats, line 70)
#   `[ "${lines[11]}" = "\n${GRN}\xE2\x9C\x94${NOC} ${CYA}Successfully installed Apache 2," ]' failed
ok 10 brew startup
ok 11 colour palette
ok 12 enter domain name
not ok 13 folder and git setup
# (in test file bats/folder_and_git.bats, line 25)
#   `[ "${lines[12]}" = "✔ Successfully created folder and initialised git repo for ${domain}." ]' failed
not ok 14 change file and folder ownership
# (in test file bats/folder_ownership.bats, line 22)
#   `[ "${lines[6]}" = "✔ Successfully set folder permissions recursively on ${main} and ${httpd}." ]' failed
not ok 15 git setup
# (in test file bats/git_setup.bats, line 28)
#   `[ "${lines[13]}" = "\n${GRN}\xE2\x9C\x94${NOC} ${CYA}Successfully created files and${NOC}" ]' failed
ok 16 user variables
ok 17 ssl variables
ok 18 path variables
not ok 19 hosts file domain insert
# (in test file bats/hosts_domain.bats, line 23)
#   `[ "${lines[7]}" = "✔ Successfully added ${domain} to ${hosts} file." ]' failed
ok 20 hosts file backup
ok 21 hosts symbolic link
ok 22 add ssl to keychain certificate
ok 23 openssl command
not ok 24 openssl configuration
# (in test file bats/openssl_config.bats, line 25)
#   `[ "${lines[9]}" = "✔ Successfully added ${domain} to the openssl configuration file." ]' failed
not ok 25 setup ssl
# (in test file bats/setup_ssl.bats, line 75)
#   `[ "${lines[19]}" = "✔ Successfully created the localhost SSL." ]' failed
not ok 26 add certificates to apple keychain
# (in test file bats/setup_ssl.bats, line 102)
#   `[ "${lines[10]}" = "✔ Successfully added the new Root CA, localhost server and client SSL certificates to the macOS Keychain." ]' failed
ok 27 set folder permissions
ok 28 git submodule install
ok 29 adminer install
ok 30 error pages install
ok 31 phpmyadmin install
ok 32 test no cancels upgrade to packages
ok 33 test yes starts and completes the upgrade of packages
not ok 34 upgrade adminer and apache error pages projects
# (in test file bats/upgrade_software.bats, line 79)
#   `[ "${lines[4]}" = "✔ Successfully updated the core project." ]' failed
not ok 35 change file and folder ownership
# (in test file bats/website_folder_ownership.bats, line 22)
#   `[ "${lines[6]}" = "✔ Successfully set ${username}:${group} permissions to ${websites}/${domain}" ]' failed
@justinhartman justinhartman added the bug Something isn't working label Jul 10, 2020
@justinhartman justinhartman self-assigned this Jul 10, 2020
@justinhartman
Copy link
Owner Author

Commit 7aa71b2 fixes the bats test for lamp-upgrade script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant