Skip to content

Commit 49b71d5

Browse files
committed
Fix request specs (add created_at and updated_at to destinations)
1 parent d01d7b2 commit 49b71d5

File tree

2 files changed

+24
-8
lines changed

2 files changed

+24
-8
lines changed

spec/request/route_destinations_spec.rb

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@
145145
},
146146
weight: nil,
147147
port: 8080,
148-
protocol: 'http1'
148+
protocol: 'http1',
149+
created_at: destination.created_at.iso8601,
150+
updated_at: destination.updated_at.iso8601
149151
}
150152
],
151153
links: {
@@ -268,7 +270,9 @@
268270
},
269271
weight: nil,
270272
port: 8080,
271-
protocol: 'http1'
273+
protocol: 'http1',
274+
created_at: existing_destination.created_at.iso8601,
275+
updated_at: existing_destination.updated_at.iso8601
272276
},
273277
{
274278
guid: UUID_REGEX,
@@ -280,7 +284,9 @@
280284
},
281285
weight: nil,
282286
port: 8080,
283-
protocol: 'http2'
287+
protocol: 'http2',
288+
created_at: iso8601,
289+
updated_at: iso8601
284290
}
285291
],
286292
links: {
@@ -791,7 +797,9 @@
791797
},
792798
weight: nil,
793799
port: 8080,
794-
protocol: 'http2'
800+
protocol: 'http2',
801+
created_at: iso8601,
802+
updated_at: iso8601
795803
}
796804
],
797805
links: {

spec/request/routes_spec.rb

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@
6464
},
6565
weight: route_in_org_dest_web.weight,
6666
port: route_in_org_dest_web.presented_port,
67-
protocol: 'http1'
67+
protocol: 'http1',
68+
created_at: iso8601,
69+
updated_at: iso8601
6870
}, {
6971
guid: route_in_org_dest_worker.guid,
7072
app: {
@@ -75,7 +77,9 @@
7577
},
7678
weight: route_in_org_dest_worker.weight,
7779
port: route_in_org_dest_worker.presented_port,
78-
protocol: 'http1'
80+
protocol: 'http1',
81+
created_at: iso8601,
82+
updated_at: iso8601
7983
}),
8084
relationships: {
8185
space: {
@@ -3607,7 +3611,9 @@
36073611
},
36083612
weight: route_mapping1.weight,
36093613
port: route_mapping1.presented_port,
3610-
protocol: 'http1'
3614+
protocol: 'http1',
3615+
created_at: iso8601,
3616+
updated_at: iso8601
36113617
}),
36123618
relationships: {
36133619
space: {
@@ -3651,7 +3657,9 @@
36513657
},
36523658
weight: route_mapping2.weight,
36533659
port: route_mapping2.presented_port,
3654-
protocol: 'http1'
3660+
protocol: 'http1',
3661+
created_at: iso8601,
3662+
updated_at: iso8601
36553663
}),
36563664
relationships: {
36573665
space: {

0 commit comments

Comments
 (0)