-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Updated ShellCheck to 0.8.0 and Hadolint to 2.8.0
#2329
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
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
41f5804
updated ShellCheck to 0.8.0 and Hadolint to 2.8.0
georglauterbach 37e5c9e
Apply suggestions from code review
georglauterbach d405a8e
Merge branch 'master' into update/linters
georglauterbach a36103e
chore: Remove unnecessary quotes in `test/permit_docker.bats`
polarathene File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,7 +8,7 @@ | |
|
|
||
| function dovecot_quota_to_hr() | ||
| { | ||
| if [ "${1}" == "-" ] | ||
| if [[ ${1} == "-" ]] | ||
| then | ||
| echo "~" | ||
| else | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -614,35 +614,35 @@ EOF | |
|
|
||
| run docker exec mail /bin/sh -c "grep '^user3@domain\.tld|' -i /tmp/docker-mailserver/postfix-accounts.cf" | ||
| assert_success | ||
| [ -n "${output}" ] | ||
| [[ -n ${output} ]] | ||
| } | ||
|
|
||
| @test "checking accounts: auser3 should have been added to /tmp/docker-mailserver/postfix-accounts.cf" { | ||
| docker exec mail /bin/sh -c "addmailuser [email protected] mypassword" | ||
|
|
||
| run docker exec mail /bin/sh -c "grep '^auser3@domain\.tld|' -i /tmp/docker-mailserver/postfix-accounts.cf" | ||
| assert_success | ||
| [ -n "${output}" ] | ||
| [[ -n ${output} ]] | ||
| } | ||
|
|
||
| @test "checking accounts: a.ser3 should have been added to /tmp/docker-mailserver/postfix-accounts.cf" { | ||
| docker exec mail /bin/sh -c "addmailuser [email protected] mypassword" | ||
|
|
||
| run docker exec mail /bin/sh -c "grep '^a\.ser3@domain\.tld|' -i /tmp/docker-mailserver/postfix-accounts.cf" | ||
| assert_success | ||
| [ -n "${output}" ] | ||
| [[ -n ${output} ]] | ||
| } | ||
|
|
||
| @test "checking accounts: user3 should have been removed from /tmp/docker-mailserver/postfix-accounts.cf but not auser3" { | ||
| docker exec mail /bin/sh -c "delmailuser -y [email protected]" | ||
|
|
||
| run docker exec mail /bin/sh -c "grep '^user3@domain\.tld' -i /tmp/docker-mailserver/postfix-accounts.cf" | ||
| assert_failure | ||
| [ -z "${output}" ] | ||
| [[ -z ${output} ]] | ||
|
|
||
| run docker exec mail /bin/sh -c "grep '^auser3@domain\.tld' -i /tmp/docker-mailserver/postfix-accounts.cf" | ||
| assert_success | ||
| [ -n "${output}" ] | ||
| [[ -n ${output} ]] | ||
| } | ||
|
|
||
| @test "checking user updating password for user in /tmp/docker-mailserver/postfix-accounts.cf" { | ||
|
|
@@ -654,7 +654,7 @@ EOF | |
| sleep 2 | ||
| changepass=$(docker exec mail /bin/sh -c "grep '^user4@domain\.tld' -i /tmp/docker-mailserver/postfix-accounts.cf") | ||
|
|
||
| [ "${initialpass}" != "${changepass}" ] | ||
| [[ ${initialpass} != "${changepass}" ]] | ||
|
|
||
| docker exec mail /bin/sh -c "delmailuser -y [email protected]" | ||
|
|
||
|
|
@@ -678,7 +678,7 @@ EOF | |
| -v "$(duplicate_config_for_container without-accounts/ without-accounts-deleting-user)":/tmp/docker-mailserver/ \ | ||
| "${IMAGE_NAME:?}" /bin/sh -c 'delmailuser -y [email protected]' | ||
| assert_success | ||
| [ -z "${output}" ] | ||
| [[ -z ${output} ]] | ||
| } | ||
|
|
||
| @test "checking accounts: user3 should have been added to /tmp/docker-mailserver/postfix-accounts.cf even when that file does not exist" { | ||
|
|
@@ -692,7 +692,7 @@ EOF | |
| -v "${PRIVATE_CONFIG}/without-accounts/":/tmp/docker-mailserver/ \ | ||
| "${IMAGE_NAME:?}" /bin/sh -c 'grep [email protected] -i /tmp/docker-mailserver/postfix-accounts.cf' | ||
| assert_success | ||
| [ -n "${output}" ] | ||
| [[ -n ${output} ]] | ||
| } | ||
|
|
||
|
|
||
|
|
@@ -956,7 +956,7 @@ EOF | |
| assert_success | ||
|
|
||
| value=$(grep [email protected] "$(private_config_path mail)/postfix-accounts.cf" | awk -F '|' '{print $1}') | ||
| [ "${value}" = "[email protected]" ] | ||
| [[ ${value} == "[email protected]" ]] | ||
| assert_success | ||
|
|
||
| wait_for_changes_to_be_detected_in_container mail | ||
|
|
@@ -979,15 +979,15 @@ EOF | |
| assert_success | ||
|
|
||
| initialpass=$(grep [email protected] "$(private_config_path mail)/postfix-accounts.cf" | awk -F '|' '{print $2}') | ||
| [ "${initialpass}" != "" ] | ||
| [[ ${initialpass} != "" ]] | ||
| assert_success | ||
|
|
||
| run ./setup.sh -c mail email update [email protected] my password | ||
| assert_success | ||
|
|
||
| updatepass=$(grep [email protected] "$(private_config_path mail)/postfix-accounts.cf" | awk -F '|' '{print $2}') | ||
| [ "${updatepass}" != "" ] | ||
| [ "${initialpass}" != "${updatepass}" ] | ||
| [[ ${updatepass} != "" ]] | ||
| [[ ${initialpass} != "${updatepass}" ]] | ||
|
|
||
| docker exec mail doveadm pw -t "${updatepass}" -p 'my password' | grep 'verified' | ||
| assert_success | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.