Skip to content

Commit

Permalink
fix: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gmeligio committed Apr 28, 2024
1 parent 914a5eb commit d61fc01
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
16 changes: 8 additions & 8 deletions internal/provider/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import (
)

const (
domainMarkdownDescription = "Parses Public Suffix List properties from a domain"
domainAttrMarkdownDescription = "The domain name. It's the tld plus one more label. For example: example.com for host foo.example.com"
hostAttrMarkdownDescription = "The host that identifies the domain name"
managerAttrMarkdownDescription = "The manager is the entity that manages the domain. It can be one of the following: ICANN, Private, or None."
sldAttrMarkdownDescription = "The second-level domain (SLD) is the label to the left of the effective TLD. For example: example for example.com, or foo for foo.co.uk"
domainMarkdownDescription = "Parses Public Suffix List properties from a domain"
domainAttrMarkdownDescription = "The domain name. It's the tld plus one more label. For example: example.com for host foo.example.com"
hostAttrMarkdownDescription = "The host that identifies the domain name"
managerAttrMarkdownDescription = "The manager is the entity that manages the domain. It can be one of the following: ICANN, Private, or None."
sldAttrMarkdownDescription = "The second-level domain (SLD) is the label to the left of the effective TLD. For example: example for example.com, or foo for foo.co.uk"
subdomainAttrMarkdownDescription = "The subdomain is the left part of the host that is not the domain. For example: www for www.example.com, mail for mail.foo.org, blog for blog.bar.org"
tldAttrMarkdownDescription = "The effective top-level domain (eTLD) of the domain. This is the public suffix of the domain. For example: com for example.com, or co.uk for foo.co.uk"
tldAttrMarkdownDescription = "The effective top-level domain (eTLD) of the domain. This is the public suffix of the domain. For example: com for example.com, or co.uk for foo.co.uk"
)

// domainDataSourceModel describes the data source data model.
Expand All @@ -39,7 +39,7 @@ func ParseDomain(h string) (*domainModel, error) {
host := h
eTLD, icann := publicsuffix.PublicSuffix(host)
tld := eTLD

sld, err := extractSld(host, eTLD)
if err != nil {
return nil, err
Expand Down Expand Up @@ -71,7 +71,7 @@ func findManager(icann bool, eTLD string) string {
}

func (d *domainDataSourceModel) update(_ context.Context) error {
domain, err := ParseDomain(string(d.Host.ValueString()))
domain, err := ParseDomain(d.Host.ValueString())
if err != nil {
return fmt.Errorf("failed to parse domain: %w", err)
}
Expand Down
1 change: 0 additions & 1 deletion internal/provider/parse_domain_function_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
"github.com/hashicorp/terraform-plugin-testing/tfversion"
)


func TestParseDomainFunction_Known(t *testing.T) {
resource.ParallelTest(t, resource.TestCase{
TerraformVersionChecks: []tfversion.TerraformVersionCheck{
Expand Down
1 change: 0 additions & 1 deletion internal/provider/parse_url_function_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
"github.com/hashicorp/terraform-plugin-testing/tfversion"
)


func TestParseUrlFunction_Known(t *testing.T) {
resource.ParallelTest(t, resource.TestCase{
TerraformVersionChecks: []tfversion.TerraformVersionCheck{
Expand Down

0 comments on commit d61fc01

Please sign in to comment.