Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions provider/sdkv2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,18 @@ func TestAccProvider_SSHKeys(t *testing.T) {
},
})
}

func TestProviderSDKDescriptionsAreNotEmpty(t *testing.T) {
Copy link

Copilot AI Dec 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test function name should follow the naming convention used by other acceptance tests in this file. Since this is a unit test rather than an acceptance test, consider using "TestSDKProvider_DescriptionsNotEmpty" or a similar pattern to be consistent with the "TestAccProvider_*" naming convention for acceptance tests in this file. Alternatively, if it should be an acceptance test, prefix it with "TestAcc".

Suggested change
func TestProviderSDKDescriptionsAreNotEmpty(t *testing.T) {
func TestSDKProvider_DescriptionsNotEmpty(t *testing.T) {

Copilot uses AI. Check for mistakes.
p := provider.SDKProvider(nil)()
for name, d := range p.DataSourcesMap {
if d.Description == "" {
t.Errorf("Description for data source %s is empty", name)
}
}

for name, r := range p.ResourcesMap {
if r.Description == "" {
t.Errorf("Description for resource %s is empty", name)
}
}
}
Loading