Skip to content

Commit 7becba6

Browse files
committed
resolve test attributes
1 parent 62b516e commit 7becba6

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

internal/provider/data_source_registry_module.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ func (m modelTFEVCSRepo) AttributeTypes() map[string]attr.Type {
113113
"github_app_installation_id": types.StringType,
114114
"repository_http_url": types.StringType,
115115
"service_provider": types.StringType,
116+
"source_directory": types.StringType,
117+
"tag_prefix": types.StringType,
116118
"tags": types.BoolType,
117119
"tags_regex": types.StringType,
118120
"webhook_url": types.StringType,
@@ -309,6 +311,12 @@ func (d *dataSourceTFERegistryModule) Schema(_ context.Context, _ datasource.Sch
309311
"service_provider": schema.StringAttribute{
310312
Computed: true,
311313
},
314+
"source_directory": schema.StringAttribute{
315+
Computed: true,
316+
},
317+
"tag_prefix": schema.StringAttribute{
318+
Computed: true,
319+
},
312320
"tags": schema.BoolAttribute{
313321
Computed: true,
314322
},

internal/provider/resource_tfe_registry_module.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@ func resourceTFERegistryModule() *schema.Resource {
100100
Optional: true,
101101
Computed: true,
102102
},
103+
"source_directory": {
104+
Type: schema.TypeString,
105+
Optional: true,
106+
},
107+
"tag_prefix": {
108+
Type: schema.TypeString,
109+
Optional: true,
110+
},
103111
},
104112
},
105113
},
@@ -410,6 +418,8 @@ func resourceTFERegistryModuleRead(d *schema.ResourceData, meta interface{}) err
410418
"display_identifier": registryModule.VCSRepo.DisplayIdentifier,
411419
"branch": registryModule.VCSRepo.Branch,
412420
"tags": registryModule.VCSRepo.Tags,
421+
"source_directory": registryModule.VCSRepo.SourceDirectory,
422+
"tag_prefix": registryModule.VCSRepo.TagPrefix,
413423
}
414424
vcsRepo = append(vcsRepo, vcsConfig)
415425

0 commit comments

Comments
 (0)