Skip to content

Commit

Permalink
fix: match the naming of setup-fastly.sh implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Oct 21, 2024
1 parent a824d42 commit 99d81ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Integration/Fastly/FastlyServiceUpdater.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private function updateFastlyService(FastlyContext $context, string $type, strin
if ($name === 'default') {
$snippetName = 'shopware_' . $type;
} else {
$snippetName = 'shopware_' . $type . '.' . $priority;
$snippetName = 'shopware_' . $type . '_' . $name;
}

if ($context->hasSnippet($snippetName)) {
Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/Fastly/FastlyServiceUpdaterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function testCreateSnippetWithPriority(): void
$fastlyAPIClient
->expects($this->once())
->method('createSnippet')
->with('SERVICE_ID', 0, 'shopware_deliver.5', 'deliver', 'TEST', 5);
->with('SERVICE_ID', 0, 'shopware_deliver_test', 'deliver', 'TEST', 5);

$fs = new Filesystem();
$tmpDir = $this->createProjectRoot('test.5.vcl');
Expand Down

0 comments on commit 99d81ad

Please sign in to comment.