Skip to content

Commit 0da68a4

Browse files
fao89dkliban
authored andcommitted
Enable azure tests
[noissue]
1 parent b30986d commit 0da68a4

File tree

6 files changed

+25
-1
lines changed

6 files changed

+25
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ jobs:
8888
env:
8989
- TEST: pulp
9090
- TEST: docs
91+
- TEST: azure
9192
- TEST: s3
9293
- TEST: bindings
9394

.github/workflows/nightly.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
env:
2424
- TEST: pulp
2525
- TEST: docs
26+
- TEST: azure
2627
- TEST: s3
2728
- TEST: bindings
2829

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ jobs:
7979
env:
8080
- TEST: pulp
8181
- TEST: docs
82+
- TEST: azure
8283
- TEST: s3
8384
- TEST: bindings
8485

.github/workflows/scripts/install.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,22 @@ minio_access_key: "'$MINIO_ACCESS_KEY'"\
9090
minio_secret_key: "'$MINIO_SECRET_KEY'"' vars/main.yaml
9191
fi
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+
93109
ansible-playbook build_container.yaml
94110
ansible-playbook start_container.yaml
95111
echo ::group::SSL

pulpcore/tests/functional/api/using_plugin/test_distributions.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Tests that perform actions over distributions."""
22
import csv
33
import hashlib
4+
import os
45
import unittest
56
from 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(

template_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ single_commit_check: true
6363
stable_branch: null
6464
sync_ci: true
6565
tasking_allow_async_unsafe: true
66-
test_azure: false
66+
test_azure: true
6767
test_bindings: true
6868
test_cli: true
6969
test_fips_nightly: false

0 commit comments

Comments
 (0)