Skip to content

Commit ffc4976

Browse files
committed
Revert "Change: update test fixtures and adjust tests"
This reverts commit c632976.
1 parent 296cfb6 commit ffc4976

File tree

4 files changed

+19
-21
lines changed

4 files changed

+19
-21
lines changed

src/dnsimple-test/Services/DomainsEmailForwardsTest.cs

+7-7
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ public class DomainsEmailForwardsTest
2727
"deleteEmailForward/success.http";
2828

2929
private DateTime CreatedAt { get; } = DateTime.ParseExact(
30-
"2017-05-25T19:23:16Z", "yyyy-MM-ddTHH:mm:ssZ",
30+
"2016-02-04T13:59:29Z", "yyyy-MM-ddTHH:mm:ssZ",
3131
CultureInfo.CurrentCulture);
3232

3333
private DateTime UpdatedAt { get; } = DateTime.ParseExact(
34-
"2017-05-25T19:23:16Z", "yyyy-MM-ddTHH:mm:ssZ",
34+
"2016-02-04T13:59:29Z", "yyyy-MM-ddTHH:mm:ssZ",
3535
CultureInfo.CurrentCulture);
3636

3737
[SetUp]
@@ -49,9 +49,9 @@ public void EmailForwardsData()
4949

5050
Assert.Multiple(() =>
5151
{
52-
Assert.That(emailForwards.Count, Is.EqualTo(1));
53-
Assert.That(emailForwards.First().Id, Is.EqualTo(24809));
54-
Assert.That(emailForwards.First().DomainId, Is.EqualTo(235146));
52+
Assert.That(emailForwards.Count, Is.EqualTo(2));
53+
Assert.That(emailForwards.First().Id, Is.EqualTo(17702));
54+
Assert.That(emailForwards.First().DomainId, Is.EqualTo(228963));
5555
Assert.That(emailForwards.First().From, Is.EqualTo(".*@a-domain.com"));
5656
Assert.That(emailForwards.First().To, Is.EqualTo("jane.smith@example.com"));
5757
Assert.That(emailForwards.First().CreatedAt, Is.EqualTo(CreatedAt));
@@ -73,7 +73,7 @@ public void ListEmailForwards(long accountId, string domainIdentifier,
7373

7474
Assert.Multiple(() =>
7575
{
76-
Assert.That(emailForwards.Data.Count, Is.EqualTo(1));
76+
Assert.That(emailForwards.Data.Count, Is.EqualTo(2));
7777
Assert.That(emailForwards.Pagination.CurrentPage, Is.EqualTo(1));
7878

7979
Assert.That(client.RequestSentTo(), Is.EqualTo(expectedUrl));
@@ -98,7 +98,7 @@ public void ListEmailForwardsWithOptions(long accountId,
9898

9999
Assert.Multiple(() =>
100100
{
101-
Assert.That(emailForwards.Data.Count, Is.EqualTo(1));
101+
Assert.That(emailForwards.Data.Count, Is.EqualTo(2));
102102
Assert.That(emailForwards.Pagination.CurrentPage, Is.EqualTo(1));
103103

104104
Assert.That(client.RequestSentTo(), Is.EqualTo(expectedUrl));

src/dnsimple-test/fixtures/v2/api/createEmailForward/created.http

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ HTTP/1.1 201 Created
22
Server: nginx
33
Date: Mon, 25 Jan 2021 13:54:40 GMT
44
Content-Type: application/json; charset=utf-8
5-
Transfer-Encoding: identity
65
Connection: keep-alive
76
X-RateLimit-Limit: 4800
87
X-RateLimit-Remaining: 4772
@@ -19,4 +18,4 @@ X-Permitted-Cross-Domain-Policies: none
1918
Content-Security-Policy: frame-ancestors 'none'
2019
Strict-Transport-Security: max-age=31536000
2120

22-
{"data":{"id":41872,"domain_id":235146,"alias_email":"example@dnsimple.xyz","destination_email":"example@example.com","created_at":"2021-01-25T13:54:40Z","updated_at":"2021-01-25T13:54:40Z","from":"example@dnsimple.xyz","to":"example@example.com"}}
21+
{"data":{"id":41872,"domain_id":235146,"alias_email":"example@dnsimple.xyz","destination_email":"example@example.com","created_at":"2021-01-25T13:54:40Z","updated_at":"2021-01-25T13:54:40Z","from":"example@dnsimple.xyz","to":"example@example.com"}}

src/dnsimple-test/fixtures/v2/api/getEmailForward/success.http

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ HTTP/1.1 200 OK
22
Server: nginx
33
Date: Mon, 25 Jan 2021 13:56:24 GMT
44
Content-Type: application/json; charset=utf-8
5-
Transfer-Encoding: identity
65
Connection: keep-alive
76
X-RateLimit-Limit: 4800
87
X-RateLimit-Remaining: 4766
@@ -19,4 +18,4 @@ X-Permitted-Cross-Domain-Policies: none
1918
Content-Security-Policy: frame-ancestors 'none'
2019
Strict-Transport-Security: max-age=31536000
2120

22-
{"data":{"id":41872,"domain_id":235146,"alias_email":"example@dnsimple.xyz","destination_email":"example@example.com","created_at":"2021-01-25T13:54:40Z","updated_at":"2021-01-25T13:54:40Z","from":"example@dnsimple.xyz","to":"example@example.com"}}
21+
{"data":{"id":41872,"domain_id":235146,"alias_email":"example@dnsimple.xyz","destination_email":"example@example.com","created_at":"2021-01-25T13:54:40Z","updated_at":"2021-01-25T13:54:40Z","from":"example@dnsimple.xyz","to":"example@example.com"}}
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
HTTP/1.1 200 OK
22
Server: nginx
3-
Date: Fri, 17 May 2024 09:07:28 GMT
3+
Date: Thu, 04 Feb 2016 14:07:19 GMT
44
Content-Type: application/json; charset=utf-8
55
Connection: keep-alive
6-
X-RateLimit-Limit: 4800
7-
X-RateLimit-Remaining: 4748
8-
X-RateLimit-Reset: 1715936948
9-
X-WORK-WITH-US: Love automation? So do we! https://dnsimple.com/jobs
10-
ETag: W/"a5eed9a071f03e10fc67001ccc647a94"
6+
Status: 200 OK
7+
X-RateLimit-Limit: 4000
8+
X-RateLimit-Remaining: 3993
9+
X-RateLimit-Reset: 1454596043
10+
ETag: W/"3f10aae0cf0f0b81bdb4f58786ee1750"
1111
Cache-Control: max-age=0, private, must-revalidate
12-
X-Request-Id: e42df983-a8a5-4123-8c74-fb89ab934aba
13-
X-Runtime: 0.025456
14-
Strict-Transport-Security: max-age=63072000
12+
X-Request-Id: 6e3aa9d0-cb95-4186-93b0-630da372de86
13+
X-Runtime: 0.026287
14+
Strict-Transport-Security: max-age=31536000
1515

16-
{"data":[{"id":24809,"domain_id":235146,"alias_email":".*@a-domain.com","destination_email":"jane.smith@example.com","created_at":"2017-05-25T19:23:16Z","updated_at":"2017-05-25T19:23:16Z","from":".*@a-domain.com","to":"jane.smith@example.com"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}
16+
{"data":[{"id":17702,"domain_id":228963,"from":".*@a-domain.com","to":"jane.smith@example.com","created_at":"2016-02-04T13:59:29Z","updated_at":"2016-02-04T13:59:29Z"},{"id":17703,"domain_id":228963,"from":"john@a-domain.com","to":"john@example.com","created_at":"2016-02-04T14:07:13Z","updated_at":"2016-02-04T14:07:13Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":2,"total_pages":1}}

0 commit comments

Comments
 (0)