Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion docs/guides/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ in a browser — your monitor, channel, and policy are now live.

```bash
terraform output status_page_url
# https://acme.devhelm.page
# https://acme.devhelmstatus.com
```

## Where to go next
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/status_page.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ resource "devhelm_status_page_component" "api" {
### Read-Only

- `id` (String) Unique identifier for this status page
- `page_url` (String) Public URL of the status page (https://<slug>.devhelm.page)
- `page_url` (String) Public URL of the status page (https://<slug>.devhelmstatus.com)

<a id="nestedatt--branding"></a>
### Nested Schema for `branding`
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/datasources/datasources_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ func TestMapStatusPageToState_PopulatesAllFieldsAndSyntheticPageURL(t *testing.T
// data source constructs it from slug. If we ever change the
// hosted-page domain, this assertion is the canary that forces us
// to update both the resource and the data source in lockstep.
wantURL := "https://acme.devhelm.page"
wantURL := "https://acme.devhelmstatus.com"
if model.PageURL.ValueString() != wantURL {
t.Errorf("PageURL: got %q, want %q", model.PageURL.ValueString(), wantURL)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/datasources/negative_datasource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func TestMapStatusPageToState_SyntheticPageURLWithSlug(t *testing.T) {
}
var model StatusPageDataSourceModel
mapStatusPageToState(&model, dto)
want := "https://my-company.devhelm.page"
want := "https://my-company.devhelmstatus.com"
if model.PageURL.ValueString() != want {
t.Errorf("PageURL = %q, want %q", model.PageURL.ValueString(), want)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/datasources/status_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,5 @@ func mapStatusPageToState(model *StatusPageDataSourceModel, p *generated.StatusP
model.Visibility = types.StringValue(string(p.Visibility))
model.Enabled = types.BoolValue(p.Enabled)
model.IncidentMode = types.StringValue(string(p.IncidentMode))
model.PageURL = types.StringValue(fmt.Sprintf("https://%s.devhelm.page", p.Slug))
model.PageURL = types.StringValue(fmt.Sprintf("https://%s.devhelmstatus.com", p.Slug))
}
2 changes: 1 addition & 1 deletion internal/provider/resources/negative_validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ func TestStatusPage_MapToState_SyntheticPageURL(t *testing.T) {
}
model := &StatusPageResourceModel{}
r.mapToState(ctx, model, dto)
want := "https://acme.devhelm.page"
want := "https://acme.devhelmstatus.com"
if model.PageURL.ValueString() != want {
t.Errorf("PageURL = %q, want %q", model.PageURL.ValueString(), want)
}
Expand Down
8 changes: 4 additions & 4 deletions internal/provider/resources/status_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (r *StatusPageResource) Schema(_ context.Context, _ resource.SchemaRequest,
},
},
"page_url": schema.StringAttribute{
Computed: true, Description: "Public URL of the status page (https://<slug>.devhelm.page)",
Computed: true, Description: "Public URL of the status page (https://<slug>.devhelmstatus.com)",
},
"branding": schema.SingleNestedAttribute{
Optional: true, Computed: true,
Expand Down Expand Up @@ -416,9 +416,9 @@ func (r *StatusPageResource) mapToState(ctx context.Context, model *StatusPageRe
model.Branding, d = brandingObjectFromDto(ctx, dto.Branding)
diags.Append(d...)
// page_url is derived client-side from the slug. The API doesn't return
// it because the host is dictated by the deployment (devhelm.page) and
// would otherwise drift across environments.
model.PageURL = types.StringValue(fmt.Sprintf("https://%s.devhelm.page", dto.Slug))
// it because the host is dictated by the deployment (devhelmstatus.com)
// and would otherwise drift across environments.
model.PageURL = types.StringValue(fmt.Sprintf("https://%s.devhelmstatus.com", dto.Slug))
return diags
}

Expand Down
2 changes: 1 addition & 1 deletion internal/provider/resources/status_page_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func TestStatusPage_MapToState_PopulatesEveryField(t *testing.T) {
if model.IncidentMode.ValueString() != "AUTOMATIC" {
t.Errorf("IncidentMode = %q", model.IncidentMode.ValueString())
}
if model.PageURL.ValueString() != "https://acme.devhelm.page" {
if model.PageURL.ValueString() != "https://acme.devhelmstatus.com" {
t.Errorf("PageURL = %q", model.PageURL.ValueString())
}
if model.Branding.IsNull() {
Expand Down
2 changes: 1 addition & 1 deletion templates/guides/getting-started.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ in a browser — your monitor, channel, and policy are now live.

```bash
terraform output status_page_url
# https://acme.devhelm.page
# https://acme.devhelmstatus.com
```

## Where to go next
Expand Down
Loading