-
Notifications
You must be signed in to change notification settings - Fork 84
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
Description: There are configuration changes from apache2.2 to apache… #136
Open
bskjois
wants to merge
1
commit into
autotest:master
Choose a base branch
from
bskjois:httpd-tools
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
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 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 |
---|---|---|
|
@@ -30,7 +30,7 @@ | |
#cd `dirname $0` | ||
#LTPBIN=${LTPBIN%/shared}/httpd_tools | ||
source $LTPBIN/tc_utils.source | ||
SDIR=${LTPBIN%/shared}/httpd_tools/ | ||
SDIR=${LTPBIN%/shared}/httpd_tools | ||
|
||
# system files | ||
HTTPD_CONF="/etc/httpd/conf/httpd.conf" | ||
|
@@ -41,6 +41,7 @@ TOOLS="ab htdbm htdigest htpasswd logresolve" | |
# | ||
function tc_local_setup() | ||
{ | ||
TCTMP=$SDIR/tmp | ||
tc_root_or_break || exit | ||
tc_exec_or_break cat grep || exit | ||
|
||
|
@@ -59,6 +60,7 @@ function tc_local_setup() | |
httpd_cleanup=1 | ||
|
||
# backup files which are touched by the testcase. | ||
mkdir $TCTMP | ||
cp -f $HTTPD_CONF $TCTMP/httpd.conf | ||
|
||
HOST="127.0.0.1" | ||
|
@@ -76,8 +78,7 @@ function tc_local_setup() | |
<Directory "$TCTMP/test"> | ||
Options Indexes MultiViews FollowSymLinks ExecCGI | ||
AllowOverride None | ||
Order allow,deny | ||
Allow from all | ||
Require all granted | ||
</Directory> | ||
|
||
EOF | ||
|
@@ -106,10 +107,14 @@ function tc_local_cleanup() | |
{ | ||
cp -rf $TCTMP/httpd.conf $HTTPD_CONF | ||
service httpd restart >$stdout 2>$stderr | ||
|
||
if [ -d $TCTMP ]; then | ||
rm -rf $TCTMP | ||
fi | ||
|
||
# Restore status of httpd service | ||
if [ $httpd_cleanup -eq 0 ]; then | ||
service httpd stop >$stdout 2>$stderr | ||
systemctl stop httpd >$stdout 2>$stderr | ||
tc_break_if_bad $? "failed to stop httpd" | ||
fi | ||
} | ||
|
@@ -204,7 +209,7 @@ function htdbm_test() | |
|
||
sed -i 's/AuthType Digest/AuthType Basic/g' $HTTPD_CONF | ||
sed -i 's/AuthBasicProvider file/AuthBasicProvider dbm/g' $HTTPD_CONF | ||
sed -i 's:AuthUserFile $TCTMP/test/passwd_file:AuthDBMUserFile $TCTMP/test/passwd_file:g' $HTTPD_CONF | ||
sed -i 's:AuthUserFile:AuthDBMUserFile:g' $HTTPD_CONF | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please explain why this change is required here |
||
expect -c "spawn htdbm -c $TCTMP/test/passwd_file $USER; expect \"*password*:\"; send -- \"password\r\"; expect \"*password*:\"; send -- \"password\r\"; expect eof" | ||
tc_fail_if_bad $? "htdbm -c failed to create password" | ||
|
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tc_service macros cant be used here ?