Add tests with include_attribute and exclude_attributes
@@ -185,6 +185,14 @@ class RulesControllerTestCase(FunctionalTest, APIControllerWithIncludeAndExclude
self.__do_delete(self.__get_rule_id(post_resp_rule_1))
self.__do_delete(self.__get_rule_id(post_resp_rule_3))
+ def test_get_all_parameters_mask_with_include_parameters(self):
+ resp = self.app.get('/v1/rules?include_attributes=action')
+ self.assertEqual(resp.status_int, http_client.OK)
+
+ def test_get_all_parameters_mask_with_exclude_parameters(self):
+ resp = self.app.get('/v1/rules?exclude_attributes=action')
+ self.assertEqual(resp.status_int, http_client.OK)
+
def test_get_one_by_id(self):
post_resp = self.__do_post(RulesControllerTestCase.RULE_1)
rule_id = self.__get_rule_id(post_resp)
