fix(vikon): correct VIKON API endpoint names for part updates
This commit is contained in:
@@ -33,7 +33,7 @@ class UpdatePartAction
|
|||||||
|
|
||||||
// Step 1: Request generation
|
// Step 1: Request generation
|
||||||
$genResponse = $this->http->postWithToken(
|
$genResponse = $this->http->postWithToken(
|
||||||
'pull_updates/requestGeneratePartByNewCoreJson',
|
'pull_updates/generatePartByNewCoreJson',
|
||||||
$accessToken,
|
$accessToken,
|
||||||
['part' => $part]
|
['part' => $part]
|
||||||
);
|
);
|
||||||
@@ -56,10 +56,9 @@ class UpdatePartAction
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Step 3: Check result
|
// Step 3: Check result
|
||||||
$checkResponse = $this->http->postWithToken(
|
$checkResponse = $this->http->getWithToken(
|
||||||
'pull_updates/checkPartGenerationByNewCoreResultJson',
|
"pull_updates/checkPartGenerationByNewCoreResultJson?operation_identity={$operationIdentity}&part={$part}",
|
||||||
$accessToken,
|
$accessToken
|
||||||
['operation_identity' => $operationIdentity, 'part' => $part]
|
|
||||||
);
|
);
|
||||||
$checkBody = $checkResponse->json();
|
$checkBody = $checkResponse->json();
|
||||||
|
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ class UpdatePartActionTest extends TestCase
|
|||||||
|
|
||||||
$http->shouldReceive('postWithToken')
|
$http->shouldReceive('postWithToken')
|
||||||
->once()
|
->once()
|
||||||
->with('pull_updates/requestGeneratePartByNewCoreJson', 'token', ['part' => 'common'])
|
->with('pull_updates/generatePartByNewCoreJson', 'token', ['part' => 'common'])
|
||||||
->andReturn($this->mockResponse([
|
->andReturn($this->mockResponse([
|
||||||
'operation_identity' => 'op-abc-123',
|
'operation_identity' => 'op-abc-123',
|
||||||
'ttl' => 60,
|
'ttl' => 60,
|
||||||
@@ -85,12 +85,9 @@ class UpdatePartActionTest extends TestCase
|
|||||||
->with('op-abc-123', 'token')
|
->with('op-abc-123', 'token')
|
||||||
->andReturn(['status' => 'completed']);
|
->andReturn(['status' => 'completed']);
|
||||||
|
|
||||||
$http->shouldReceive('postWithToken')
|
$http->shouldReceive('getWithToken')
|
||||||
->once()
|
->once()
|
||||||
->with('pull_updates/checkPartGenerationByNewCoreResultJson', 'token', [
|
->with('pull_updates/checkPartGenerationByNewCoreResultJson?operation_identity=op-abc-123&part=common', 'token')
|
||||||
'operation_identity' => 'op-abc-123',
|
|
||||||
'part' => 'common',
|
|
||||||
])
|
|
||||||
->andReturn($this->mockResponse(['success' => true]));
|
->andReturn($this->mockResponse(['success' => true]));
|
||||||
|
|
||||||
// Create a minimal ZIP
|
// Create a minimal ZIP
|
||||||
|
|||||||
Reference in New Issue
Block a user