Skip to content

Commit

Permalink
[RELENG-4802] Update regex for action
Browse files Browse the repository at this point in the history
  • Loading branch information
erwan-b committed Aug 5, 2021
1 parent b628ae9 commit 9ab67cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conf/nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ http {
}

# Check that we are uploading an object to a staging build
if ($canonical_path !~ '^[^/]+\:(dev-|preprod-|)staging\-[0-9]+(\.[0-9]+){1,3}\.r[0-9]{12}\.[0-9a-f]+\.[^/]+\.[0-9]+/') {
if ($canonical_path !~ '^[^/]+\:staging\-[0-9]{10}\.[0-9a-f]+\.[^./]+\.[0-9]+/') {
return 400;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/end2end/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def artifacts_url(request):

@pytest.fixture(scope="class")
def container(request):
request.cls.container = 'githost:owner:repo:staging-0.0.0.0.r190101000000.1234567.pre-merge.12345678'
request.cls.container = 'githost:owner:repo:staging-1628004655.8e50acc6a1.pre-merge.28'

@pytest.fixture(scope="class")
def buckets(request):
Expand Down

0 comments on commit 9ab67cb

Please sign in to comment.