Skip to content

Commit

Permalink
Merge pull request #139 from woocommerce/24-03/windows-ssl-alternate
Browse files Browse the repository at this point in the history
Use Composer CA Bundle instead of custom implementation
  • Loading branch information
Luc45 authored Mar 7, 2024
2 parents 49f7073 + aa77035 commit 433b76b
Show file tree
Hide file tree
Showing 5 changed files with 299 additions and 357 deletions.
31 changes: 1 addition & 30 deletions .github/workflows/qit-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,39 +35,10 @@ jobs:
working-directory: src
run: php qit-cli.php dev

- name: Run SSL connection without CA file fallback Test
- name: Run SSL connection without CA file
working-directory: src
env:
OPENSSL_CONF: ''
run: |
php -d openssl.cafile='' -d curl.cainfo='' qit-cli.php sync -vvv
if ($LASTEXITCODE -ne 0) {
Write-Host "Test passed: SSL connection failed as expected"
$LASTEXITCODE = 0
} else {
Write-Host "Test failed: SSL connection did not fail as expected"
exit 1
}
- name: Run SSL connection with CA file fallback Test (Cache miss)
working-directory: src
env:
QIT_WINDOWS_DOWNLOAD_CA: yes
OPENSSL_CONF: ''
run: |
php -d openssl.cafile='' -d curl.cainfo='' qit-cli.php sync -vvv
if ($LASTEXITCODE -eq 0) {
Write-Host "Test passed: SSL connection succeeded"
} else {
Write-Host "Test failed: SSL connection did not succeed"
exit 1
}
- name: Run SSL connection with CA file fallback Test (Cache hit)
working-directory: src
env:
QIT_WINDOWS_DOWNLOAD_CA: yes
OPENSSL_CONF: ''
run: |
php -d openssl.cafile='' -d curl.cainfo='' qit-cli.php sync -vvv
if ($LASTEXITCODE -eq 0) {
Expand Down
Binary file modified qit
Binary file not shown.
3 changes: 2 additions & 1 deletion src/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"ext-zip": "*",
"symfony/console": "^5",
"lucatume/di52": "^3",
"stecman/symfony-console-completion": "^0.11.0"
"stecman/symfony-console-completion": "^0.11.0",
"composer/ca-bundle": "^1.4"
},
"require-dev": {
"phpunit/phpunit": "^8",
Expand Down
Loading

0 comments on commit 433b76b

Please sign in to comment.