Add enable_normalized_version to NuGet repository resources#1425
Open
mawl wants to merge 1 commit into
Open
Conversation
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
faaaed9 to
1599bb2
Compare
Author
|
I have read the CLA Document and I hereby sign the CLA |
Exposes the `enableNormalizedVersion` API field introduced in Artifactory 7.146.7 for all four NuGet repository types (local, remote, virtual, federated) and the remote NuGet datasource. The attribute is immutable after repository creation and is marked with RequiresReplace (Framework resources) / ForceNew (SDKv2 resources) so Terraform forces a destroy-and-recreate when the value changes. Closes jfrog#1418
1599bb2 to
11148ad
Compare
Author
Author
Acceptance test results —
|
| Test | Package | Result | Time |
|---|---|---|---|
TestAccLocalNugetRepository_EnableNormalizedVersion |
local |
✅ PASS | 2.38s |
TestAccLocalNugetRepository_EnableNormalizedVersion_RequiresReplace |
local |
✅ PASS | 2.60s |
TestAccRemoteNugetRepository_EnableNormalizedVersion |
remote |
✅ PASS | 2.73s |
TestAccVirtualNugetRepository_PackageCreationFull |
virtual |
✅ PASS | 2.30s |
4 passed, 0 failed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Artifactory 7.146.7 introduced a "NuGet Enforced Layout" feature via the
enableNormalizedVersionfield on NuGet repositories. This field was not surfaced in the Terraform provider, forcing teams to manage the setting outside Terraform (e.g. vianull_resource+curl), losing drift detection and plan visibility.Closes #1418
Changes
artifactory_local_nuget_repository— Framework resource; field added to model, API model,ToAPIModel,FromAPIModel, and schema withRequiresReplaceartifactory_remote_nuget_repository— Same Framework-based patternartifactory_virtual_nuget_repository— SDKv2 resource; field added to schema (ForceNew: true) and inline structartifactory_federated_nuget_repository— Inherits schema/struct from local;unpackLocalNugetRepositoryupdated to read the fielddata.artifactory_remote_nuget_repository— Field added toNugetRemoteRepostruct andNugetSchemaImmutability
The Artifactory API does not allow updating
enableNormalizedVersionafter repository creation. Accordingly:boolplanmodifier.RequiresReplace()ForceNew: trueWarning
Changing this attribute on an existing repository triggers a destroy-and-recreate. Destroying a local repository deletes all of its artifacts.
Usage