Skip to content

Commit

Permalink
feat: Infrastructure manager supports 1.2.3, 1.3.10, 1.4.7, 1.5.7 ver…
Browse files Browse the repository at this point in the history
…sions of Terraform when creating a preview of a deployment (#7251)

feat: Annotations are now supported to help client tools identify deployments during automation
PiperOrigin-RevId: 627386467
Source-Link: googleapis/googleapis@64be76a
Source-Link: googleapis/googleapis-gen@0491a38
Copy-Tag: eyJwIjoiQ29uZmlnLy5Pd2xCb3QueWFtbCIsImgiOiIwNDkxYTM4ZTcyN2ZiZjQ4MDg3NTJmMmEzZjEwMjMyNTQ4ODYzNWNlIn0=
Co-authored-by: Ajumal <[email protected]>
  • Loading branch information
gcf-owl-bot[bot] and ajupazhamayil authored Apr 25, 2024
1 parent d65086e commit 0a27dbb
Show file tree
Hide file tree
Showing 4 changed files with 144 additions and 0 deletions.
Binary file modified Config/metadata/V1/Config.php
Binary file not shown.
46 changes: 46 additions & 0 deletions Config/src/V1/Deployment.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

86 changes: 86 additions & 0 deletions Config/src/V1/Preview.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions Config/tests/Unit/V1/Client/ConfigClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ public function createPreviewTest()
$build = 'build94094958';
$errorLogs = 'errorLogs1635955078';
$logs = 'logs3327407';
$tfVersion = 'tfVersion1712341003';
$tfVersionConstraint = 'tfVersionConstraint594495121';
$expectedResponse = new Preview();
$expectedResponse->setName($name);
$expectedResponse->setDeployment($deployment);
Expand All @@ -308,6 +310,8 @@ public function createPreviewTest()
$expectedResponse->setBuild($build);
$expectedResponse->setErrorLogs($errorLogs);
$expectedResponse->setLogs($logs);
$expectedResponse->setTfVersion($tfVersion);
$expectedResponse->setTfVersionConstraint($tfVersionConstraint);
$anyResponse = new Any();
$anyResponse->setValue($expectedResponse->serializeToString());
$completeOperation = new Operation();
Expand Down Expand Up @@ -587,6 +591,8 @@ public function deletePreviewTest()
$build = 'build94094958';
$errorLogs = 'errorLogs1635955078';
$logs = 'logs3327407';
$tfVersion = 'tfVersion1712341003';
$tfVersionConstraint = 'tfVersionConstraint594495121';
$expectedResponse = new Preview();
$expectedResponse->setName($name2);
$expectedResponse->setDeployment($deployment);
Expand All @@ -596,6 +602,8 @@ public function deletePreviewTest()
$expectedResponse->setBuild($build);
$expectedResponse->setErrorLogs($errorLogs);
$expectedResponse->setLogs($logs);
$expectedResponse->setTfVersion($tfVersion);
$expectedResponse->setTfVersionConstraint($tfVersionConstraint);
$anyResponse = new Any();
$anyResponse->setValue($expectedResponse->serializeToString());
$completeOperation = new Operation();
Expand Down Expand Up @@ -1132,6 +1140,8 @@ public function getPreviewTest()
$build = 'build94094958';
$errorLogs = 'errorLogs1635955078';
$logs = 'logs3327407';
$tfVersion = 'tfVersion1712341003';
$tfVersionConstraint = 'tfVersionConstraint594495121';
$expectedResponse = new Preview();
$expectedResponse->setName($name2);
$expectedResponse->setDeployment($deployment);
Expand All @@ -1141,6 +1151,8 @@ public function getPreviewTest()
$expectedResponse->setBuild($build);
$expectedResponse->setErrorLogs($errorLogs);
$expectedResponse->setLogs($logs);
$expectedResponse->setTfVersion($tfVersion);
$expectedResponse->setTfVersionConstraint($tfVersionConstraint);
$transport->addResponse($expectedResponse);
// Mock request
$formattedName = $gapicClient->previewName('[PROJECT]', '[LOCATION]', '[PREVIEW]');
Expand Down

0 comments on commit 0a27dbb

Please sign in to comment.