Skip to content

Commit 938ba63

Browse files
committed
fix test
1 parent d8be4c8 commit 938ba63

File tree

3 files changed

+4
-158
lines changed

3 files changed

+4
-158
lines changed

docs/resources/tem_domain.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ variable "domain_name" {
2828
2929
resource "scaleway_tem_domain" "main" {
3030
name = var.domain_name
31-
accept_tos = true
3231
}
3332
3433
resource "scaleway_domain_record" "spf" {
@@ -67,7 +66,6 @@ variable "domain_name" {
6766
6867
resource "scaleway_tem_domain" "main" {
6968
name = var.domain_name
70-
accept_tos = true
7169
autoconfig = true
7270
}
7371
@@ -109,8 +107,8 @@ The following arguments are supported:
109107
- `name` - (Required) The domain name, must not be used in another Transactional Email Domain.
110108
~> **Important:** Updates to `name` will recreate the domain.
111109

112-
- `accept_tos` - (Required) Acceptation of the [Term of Service](https://tem.s3.fr-par.scw.cloud/antispam_policy.pdf).
113-
~> **Important:** This attribute must be set to `true`.
110+
- `accept_tos` - (Deprecated) Acceptation of the [Term of Service](https://tem.s3.fr-par.scw.cloud/antispam_policy.pdf).
111+
~> **Important:** This attribute must be set to `true`. Note that its value is no longer taken into account.
114112

115113
- `region` - (Defaults to [provider](../index.md#region) `region`). The [region](../guides/regions_and_zones.md#regions) in which the domain should be created.
116114

internal/services/tem/domain.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func ResourceDomain() *schema.Resource {
4040
Type: schema.TypeBool,
4141
Optional: true,
4242
Description: "Accept the Scaleway Terms of Service",
43-
Deprecated: "This field is deprecated and will be removed",
43+
Deprecated: "This field is deprecated and will be removed, the field is always set to null",
4444
ValidateFunc: func(i interface{}, _ string) (warnings []string, errs []error) {
4545
v := i.(bool)
4646
if !v {
@@ -231,7 +231,7 @@ func ResourceDomainRead(ctx context.Context, d *schema.ResourceData, m interface
231231
}
232232

233233
_ = d.Set("name", domain.Name)
234-
_ = d.Set("accept_tos", true)
234+
_ = d.Set("accept_tos", nil)
235235
_ = d.Set("autoconfig", domain.Autoconfig)
236236
_ = d.Set("status", domain.Status)
237237
_ = d.Set("created_at", types.FlattenTime(domain.CreatedAt))

internal/services/tem/testdata/data-source-offer-subscription-with-project-id.cassette.yaml

Lines changed: 0 additions & 152 deletions
This file was deleted.

0 commit comments

Comments
 (0)