Skip to content

Commit 8a1ef92

Browse files
committed
B2B-2530: Unskip GraphQL cache tests skipped due to DEVOPS-4924
- Debug statement added on CacheId
1 parent 8bcac2c commit 8a1ef92

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/PageCache/CacheTagTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ public function testCacheInvalidationForProducts()
5656
$product->setPrice(15);
5757
$productRepository->save($product);
5858

59-
$responseAfterUpdate = $this->graphQlQueryWithResponseHeaders($query);
60-
$this->assertArrayHasKey(CacheIdCalculator::CACHE_ID_HEADER, $responseAfterUpdate['headers']);
6159
// Cache invalidation happens and cache header value is a MISS after product update
6260
$this->assertCacheMissAndReturnResponse($query, [CacheIdCalculator::CACHE_ID_HEADER => $cacheId]);
6361
}
@@ -85,6 +83,8 @@ public function testCacheInvalidationForCategoriesWithProduct()
8583
// cache-debug header value should be a MISS when category is loaded first time
8684
$responseMissOnCategoryQuery = $this->graphQlQueryWithResponseHeaders($categoryQuery);
8785
$cacheIdOfCategoryQuery = $responseMissOnCategoryQuery['headers'][CacheIdCalculator::CACHE_ID_HEADER];
86+
print_r("CacheId of CategoryQuery \n");
87+
print_r($cacheIdOfCategoryQuery);
8888
// Verify we obtain a cache MISS the first time we search the cache using this X-Magento-Cache-Id
8989
$this->assertCacheMissAndReturnResponse(
9090
$categoryQuery,
@@ -121,6 +121,8 @@ public function testCacheInvalidationForCategoriesWithProduct()
121121
);
122122
$cacheIdOfCategoryAfterProductUpdate =
123123
$responseMissCategoryAfterProductUpdate['headers'][CacheIdCalculator::CACHE_ID_HEADER];
124+
print_r("CacheId of CategoryQuery After update \n");
125+
print_r($cacheIdOfCategoryAfterProductUpdate );
124126
// Verify we obtain a cache MISS the first time we search the cache using this X-Magento-Cache-Id
125127
$this->assertCacheMissAndReturnResponse(
126128
$categoryQuery,

0 commit comments

Comments
 (0)