mirror of
https://github.com/netbirdio/netbird.git
synced 2025-08-11 08:04:32 +02:00
@ -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"}},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user