Skip to content

Commit

Permalink
minor string fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismarget-j committed Aug 1, 2024
1 parent 2510db7 commit e298c29
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions apstra/blueprint/freeform_alloc_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (o FreeformAllocGroup) DataSourceAttributes() map[string]dataSourceSchema.A
Computed: true,
},
"pool_ids": dataSourceSchema.SetAttribute{
MarkdownDescription: "Pool ID assigned to the allocation group",
MarkdownDescription: "IDs of Resource Pools assigned to the allocation group",
Computed: true,
ElementType: types.StringType,
},
Expand Down Expand Up @@ -97,7 +97,7 @@ func (o FreeformAllocGroup) ResourceAttributes() map[string]resourceSchema.Attri
Validators: []validator.String{stringvalidator.OneOf(utils.AllFFResourceTypes()...)},
},
"pool_ids": resourceSchema.SetAttribute{
MarkdownDescription: "ID of the Pool to associate with this Allocation Group",
MarkdownDescription: "IDs of Resource Pools assigned to the allocation group",
ElementType: types.StringType,
Required: true,
Validators: []validator.Set{setvalidator.SizeAtLeast(1)},
Expand Down
2 changes: 1 addition & 1 deletion apstra/resource_freeform_alloc_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (o *resourceFreeformAllocGroup) Update(ctx context.Context, req resource.Up
return
}

// Update Config Template
// Update the Allocation Group
err = bp.UpdateAllocGroup(ctx, apstra.ObjectId(plan.Id.ValueString()), request)
if err != nil {
resp.Diagnostics.AddError("error updating Freeform Allocation Group", err.Error())
Expand Down
6 changes: 3 additions & 3 deletions apstra/resource_freeform_alloc_group_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func TestResourceAllocGroup(t *testing.T) {
client := testutils.GetTestClient(t, ctx)
apiVersion := version.Must(version.NewVersion(client.ApiVersion()))

// create a blueprint and a group...
// create a blueprint
bp := testutils.FfBlueprintA(t, ctx)

newAsnPool := func(t testing.TB) string {
Expand Down Expand Up @@ -243,15 +243,15 @@ func TestResourceAllocGroup(t *testing.T) {
{
config: resourceAllocGroup{
blueprintId: bp.Id().String(),
name: nameByKey("test_vni"),
name: nameByKey("test_ipv4"),
groupType: apstra.ResourcePoolTypeIpv4,
poolIds: []string{newIpv4Pool(t)},
},
},
{
config: resourceAllocGroup{
blueprintId: bp.Id().String(),
name: nameByKey("test_vni"),
name: nameByKey("test_ipv4"),
groupType: apstra.ResourcePoolTypeIpv4,
poolIds: []string{newIpv4Pool(t)},
},
Expand Down

0 comments on commit e298c29

Please sign in to comment.