File tree Expand file tree Collapse file tree 6 files changed +25
-1
lines changed
pulpcore/tests/functional/api/using_plugin Expand file tree Collapse file tree 6 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 8888 env :
8989 - TEST : pulp
9090 - TEST : docs
91+ - TEST : azure
9192 - TEST : s3
9293 - TEST : bindings
9394
Original file line number Diff line number Diff line change 2323 env :
2424 - TEST : pulp
2525 - TEST : docs
26+ - TEST : azure
2627 - TEST : s3
2728 - TEST : bindings
2829
Original file line number Diff line number Diff line change 7979 env :
8080 - TEST : pulp
8181 - TEST : docs
82+ - TEST : azure
8283 - TEST : s3
8384 - TEST : bindings
8485
Original file line number Diff line number Diff line change @@ -90,6 +90,22 @@ minio_access_key: "'$MINIO_ACCESS_KEY'"\
9090minio_secret_key: "' $MINIO_SECRET_KEY ' "' vars/main.yaml
9191fi
9292
93+ if [ " $TEST " = " azure" ]; then
94+ mkdir -p azurite
95+ cd azurite
96+ openssl req -newkey rsa:2048 -x509 -nodes -keyout azkey.pem -new -out azcert.pem -sha256 -days 365 -addext " subjectAltName=DNS:pulp-azurite" -subj " /C=CO/ST=ST/L=LO/O=OR/OU=OU/CN=CN"
97+ sudo cp azcert.pem /usr/local/share/ca-certificates/azcert.crt
98+ sudo dpkg-reconfigure ca-certificates
99+ cd ..
100+ sed -i -e ' /^services:/a \
101+ - name: pulp-azurite\
102+ image: mcr.microsoft.com/azure-storage/azurite\
103+ volumes:\
104+ - ./azurite:/etc/pulp\
105+ command: "azurite-blob --blobHost 0.0.0.0 --cert /etc/pulp/azcert.pem --key /etc/pulp/azkey.pem"' vars/main.yaml
106+ sed -i -e ' $a azure_test: true' vars/main.yaml
107+ fi
108+
93109ansible-playbook build_container.yaml
94110ansible-playbook start_container.yaml
95111echo ::group::SSL
Original file line number Diff line number Diff line change 11"""Tests that perform actions over distributions."""
22import csv
33import hashlib
4+ import os
45import unittest
56from urllib .parse import urljoin
67
@@ -383,6 +384,10 @@ def test_content_served_immediate_with_range_request_too_large_end_value(self):
383384
384385 def test_content_served_immediate_with_range_request_start_value_larger_than_content (self ):
385386 """Assert that a range request with a start value larger than the content errors."""
387+ if "azure" == os .getenv ("TEST" ):
388+ # Skip while Azurite is not handling this correctly:
389+ # https://github.com/Azure/Azurite/issues/333
390+ self .skipTest ("Skipping test for Azurite storage." )
386391 self .setup_download_test ("immediate" , url = FILE_CHUNKED_FIXTURE_MANIFEST_URL )
387392 with self .assertRaises (HTTPError ) as cm :
388393 download_content_unit_return_requests_response (
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ single_commit_check: true
6363stable_branch : null
6464sync_ci : true
6565tasking_allow_async_unsafe : true
66- test_azure : false
66+ test_azure : true
6767test_bindings : true
6868test_cli : true
6969test_fips_nightly : false
You can’t perform that action at this time.
0 commit comments