-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finalize Terraform differences between old and new versions of api #3347
- Loading branch information
Showing
12 changed files
with
37 additions
and
23 deletions.
There are no files selected for viewing
Submodule msgraph-metadata
updated
from 182fd6 to d58c3d
Submodule rest-api-specs
updated
534 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 2 additions & 6 deletions
8
...rter-rest-api-specs/components/dataapigeneratorjson/templater_terraform_resource_tests.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,17 @@ | ||
package dataapigeneratorjson | ||
|
||
import ( | ||
"github.com/hashicorp/go-azure-helpers/lang/pointer" | ||
dataApiModels "github.com/hashicorp/pandora/tools/importer-rest-api-specs/components/dataapigeneratorjson/models" | ||
"github.com/hashicorp/pandora/tools/sdk/resourcemanager" | ||
) | ||
|
||
func mapTerraformResourceTestDefinition(input resourcemanager.TerraformResourceTestsDefinition) dataApiModels.TerraformResourceTestConfig { | ||
testConfig := dataApiModels.TerraformResourceTestConfig{ | ||
return dataApiModels.TerraformResourceTestConfig{ | ||
BasicConfig: input.BasicConfiguration, | ||
CompleteConfig: input.CompleteConfiguration, | ||
Generate: input.Generate, | ||
OtherTests: input.OtherTests, | ||
RequiresImport: input.RequiresImportConfiguration, | ||
TemplateConfig: input.TemplateConfiguration, | ||
} | ||
if len(input.OtherTests) > 0 { | ||
testConfig.OtherTests = pointer.To(input.OtherTests) | ||
} | ||
return testConfig | ||
} |