Skip to content
Snippets Groups Projects
Commit 611f32eb authored by Piotr Gawron's avatar Piotr Gawron
Browse files

amke sure we ask for all configuration options

parent a86b2674
No related branches found
No related tags found
1 merge request!280Resolve "sensitive configuration options should be only write only"
Pipeline #34756 passed
...@@ -22,7 +22,7 @@ class TestConfigurationItemApi(LoggedInTestCase): ...@@ -22,7 +22,7 @@ class TestConfigurationItemApi(LoggedInTestCase):
item.name = "yyy" item.name = "yyy"
item.value_type = VALUE_TYPE_PASSWORD item.value_type = VALUE_TYPE_PASSWORD
item.save() item.save()
response = self.client.get(reverse('web.api.configuration_items')) response = self.client.get(reverse('web.api.configuration_items'), {'length': "100"})
self.assertFalse(item.value in response.content.decode("utf-8")) self.assertFalse(item.value in response.content.decode("utf-8"))
self.assertTrue(item.value_type in response.content.decode("utf-8")) self.assertTrue(item.value_type in response.content.decode("utf-8"))
self.assertEqual(response.status_code, 200) self.assertEqual(response.status_code, 200)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment