Skip to content

Commit

Permalink
fix test_access
Browse files Browse the repository at this point in the history
  • Loading branch information
Revolyssup committed Feb 12, 2025
1 parent 605da6f commit 9c2c81b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ jobs:
- name: Linux Before install
run: sudo ./ci/${{ matrix.job_name }}_runner.sh before_install

- name: Fix Permissions
run: |
sudo chmod 755 /home/runner/work/apisix/apisix/conf
sudo chmod 644 /home/runner/work/apisix/apisix/conf/config.yaml
sudo chown -R $USER:$USER /home/runner/work/apisix/apisix/
- name: Linux Install
run: |
sudo --preserve-env=OPENRESTY_VERSION \
Expand Down
7 changes: 7 additions & 0 deletions t/cli/test_access_log.sh
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,13 @@ nginx_config:
access_log_format: '\"\$upstream_scheme://\$upstream_host\" \$ssl_server_name'
" > conf/config.yaml

echo "check here:"
#check permission
# Add this before "make run" in the "TLS upstream" section
ls -l conf/config.yaml
ls -ld conf/
sudo chmod 644 conf/config.yaml
sudo chown $USER:$USER conf/config.yaml
make run
sleep 2

Expand Down

0 comments on commit 9c2c81b

Please sign in to comment.