Skip to content

Commit 6786dd7

Browse files
feat(tem): add mx records validation in get domain last status (#5007)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 50dcf50 commit 6786dd7

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

cmd/scw/testdata/test-all-usage-tem-domain-get-last-status-usage.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Display SPF and DKIM records status and potential errors, including the found records to make debugging easier.
3+
Display SPF, DKIM, DMARC and MX records status and potential errors, including the found records to make debugging easier.
44

55
USAGE:
66
scw tem domain get-last-status <domain-id ...> [arg=value ...]
77

88
ARGS:
9-
domain-id ID of the domain to delete
9+
domain-id ID of the domain to get records status
1010
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
1111

1212
FLAGS:

cmd/scw/testdata/test-all-usage-tem-domain-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ AVAILABLE COMMANDS:
99
check Domain DNS check
1010
create Register a domain in a project
1111
get Get information about a domain
12-
get-last-status Display SPF and DKIM records status and potential errors
12+
get-last-status Display SPF, DKIM, DMARC and MX records status and potential errors
1313
list List domains
1414
revoke Delete a domain
1515
update Update a domain

docs/commands/tem.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This API allows you to manage your Transactional Email services.
1010
- [Domain DNS check](#domain-dns-check)
1111
- [Register a domain in a project](#register-a-domain-in-a-project)
1212
- [Get information about a domain](#get-information-about-a-domain)
13-
- [Display SPF and DKIM records status and potential errors](#display-spf-and-dkim-records-status-and-potential-errors)
13+
- [Display SPF, DKIM, DMARC and MX records status and potential errors](#display-spf,-dkim,-dmarc-and-mx-records-status-and-potential-errors)
1414
- [List domains](#list-domains)
1515
- [Delete a domain](#delete-a-domain)
1616
- [Update a domain](#update-a-domain)
@@ -175,9 +175,9 @@ scw tem domain get <domain-id ...> [arg=value ...]
175175

176176

177177

178-
### Display SPF and DKIM records status and potential errors
178+
### Display SPF, DKIM, DMARC and MX records status and potential errors
179179

180-
Display SPF and DKIM records status and potential errors, including the found records to make debugging easier.
180+
Display SPF, DKIM, DMARC and MX records status and potential errors, including the found records to make debugging easier.
181181

182182
**Usage:**
183183

@@ -190,7 +190,7 @@ scw tem domain get-last-status <domain-id ...> [arg=value ...]
190190

191191
| Name | | Description |
192192
|------|---|-------------|
193-
| domain-id | Required | ID of the domain to delete |
193+
| domain-id | Required | ID of the domain to get records status |
194194
| region | Default: `fr-par`<br />One of: `fr-par` | Region to target. If none is passed will use default region from the config |
195195

196196

internal/namespaces/tem/v1alpha1/tem_cli.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -755,8 +755,8 @@ func temDomainCheck() *core.Command {
755755

756756
func temDomainGetLastStatus() *core.Command {
757757
return &core.Command{
758-
Short: `Display SPF and DKIM records status and potential errors`,
759-
Long: `Display SPF and DKIM records status and potential errors, including the found records to make debugging easier.`,
758+
Short: `Display SPF, DKIM, DMARC and MX records status and potential errors`,
759+
Long: `Display SPF, DKIM, DMARC and MX records status and potential errors, including the found records to make debugging easier.`,
760760
Namespace: "tem",
761761
Resource: "domain",
762762
Verb: "get-last-status",
@@ -765,7 +765,7 @@ func temDomainGetLastStatus() *core.Command {
765765
ArgSpecs: core.ArgSpecs{
766766
{
767767
Name: "domain-id",
768-
Short: `ID of the domain to delete`,
768+
Short: `ID of the domain to get records status`,
769769
Required: true,
770770
Deprecated: false,
771771
Positional: true,

0 commit comments

Comments
 (0)