@@ -26,7 +26,8 @@ var vPartnerAttachmentTestObj = &PartnerAttachment{
2626 PeerRouterIP : "169.250.0.6" ,
2727 AuthKey : "my-auth-key" ,
2828 },
29- CreatedAt : time .Date (2024 , 12 , 26 , 21 , 48 , 40 , 995304079 , time .UTC ),
29+ CreatedAt : time .Date (2024 , 12 , 26 , 21 , 48 , 40 , 995304079 , time .UTC ),
30+ RedundancyZone : "MEGAPORT_RED" ,
3031}
3132
3233var vPartnerAttachmentNoBGPTestObj = & PartnerAttachment {
@@ -38,6 +39,7 @@ var vPartnerAttachmentNoBGPTestObj = &PartnerAttachment{
3839 NaaSProvider : "MEGAPORT" ,
3940 VPCIDs : []string {"f5a0c5e4-7537-47de-bb8d-46c766f89ffb" },
4041 CreatedAt : time .Date (2024 , 12 , 26 , 21 , 48 , 40 , 995304079 , time .UTC ),
42+ RedundancyZone : "MEGAPORT_RED" ,
4143}
4244
4345var vPartnerAttachmentTestJSON = `
@@ -56,7 +58,8 @@ var vPartnerAttachmentTestJSON = `
5658 "peer_router_ip":"169.250.0.6",
5759 "auth_key":"my-auth-key"
5860 },
59- "created_at":"2024-12-26T21:48:40.995304079Z"
61+ "created_at":"2024-12-26T21:48:40.995304079Z",
62+ "redundancy_zone": "MEGAPORT_RED"
6063 }
6164`
6265
@@ -69,7 +72,8 @@ var vPartnerAttachmentNoBGPTestJSON = `
6972 "region":"NYC",
7073 "naas_provider":"MEGAPORT",
7174 "vpc_ids":["f5a0c5e4-7537-47de-bb8d-46c766f89ffb"],
72- "created_at":"2024-12-26T21:48:40.995304079Z"
75+ "created_at":"2024-12-26T21:48:40.995304079Z",
76+ "redundancy_zone": "MEGAPORT_RED"
7377 }
7478`
7579
@@ -139,6 +143,7 @@ func TestPartnerAttachment_Create(t *testing.T) {
139143 PeerASN : 133937 ,
140144 PeerRouterIP : "169.250.0.6" ,
141145 },
146+ RedundancyZone : "MEGAPORT_BLUE" ,
142147 }
143148 jsonBlob := `
144149{
0 commit comments