mirror of
https://github.com/netbirdio/netbird.git
synced 2025-03-05 02:11:13 +01:00
Fix tests
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
This commit is contained in:
parent
bde334ecfc
commit
e5a6f9e965
@ -177,7 +177,9 @@ func TestPoliciesWritePolicy(t *testing.T) {
|
|||||||
"Description": "Description",
|
"Description": "Description",
|
||||||
"Protocol": "tcp",
|
"Protocol": "tcp",
|
||||||
"Action": "accept",
|
"Action": "accept",
|
||||||
"Bidirectional":true
|
"Bidirectional":true,
|
||||||
|
"Sources": ["F"],
|
||||||
|
"Destinations": ["G"]
|
||||||
}
|
}
|
||||||
]}`)),
|
]}`)),
|
||||||
expectedStatus: http.StatusOK,
|
expectedStatus: http.StatusOK,
|
||||||
@ -193,6 +195,8 @@ func TestPoliciesWritePolicy(t *testing.T) {
|
|||||||
Protocol: "tcp",
|
Protocol: "tcp",
|
||||||
Action: "accept",
|
Action: "accept",
|
||||||
Bidirectional: true,
|
Bidirectional: true,
|
||||||
|
Sources: &[]api.GroupMinimum{{Id: "F"}},
|
||||||
|
Destinations: &[]api.GroupMinimum{{Id: "G"}},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -221,7 +225,9 @@ func TestPoliciesWritePolicy(t *testing.T) {
|
|||||||
"Description": "Description",
|
"Description": "Description",
|
||||||
"Protocol": "tcp",
|
"Protocol": "tcp",
|
||||||
"Action": "accept",
|
"Action": "accept",
|
||||||
"Bidirectional":true
|
"Bidirectional":true,
|
||||||
|
"Sources": ["F"],
|
||||||
|
"Destinations": ["F"]
|
||||||
}
|
}
|
||||||
]}`)),
|
]}`)),
|
||||||
expectedStatus: http.StatusOK,
|
expectedStatus: http.StatusOK,
|
||||||
@ -237,6 +243,8 @@ func TestPoliciesWritePolicy(t *testing.T) {
|
|||||||
Protocol: "tcp",
|
Protocol: "tcp",
|
||||||
Action: "accept",
|
Action: "accept",
|
||||||
Bidirectional: true,
|
Bidirectional: true,
|
||||||
|
Sources: &[]api.GroupMinimum{{Id: "F"}},
|
||||||
|
Destinations: &[]api.GroupMinimum{{Id: "F"}},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user