From cc4e78aa7af6c3b6ccf5c86e03936b991f4cd36b Mon Sep 17 00:00:00 2001 From: Mohammed Mehedi Hasan Date: Fri, 21 Aug 2020 22:16:01 +0600 Subject: [PATCH] Update README.md --- README.md | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8700fb5..e5b4ea1 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,41 @@ Mehedi Hassan (Lead) , Akond Rahman #### Categories which will be focussed: -1. Assertion Roulette -2. External dependency +##### Assertion Roulette +###### Definition +....Will Be Updated Later.... + +Example: +https://github.com/akondrahman/IaCTesting/blob/18b98460e0c059ad79aee81f2359f3d5d5f863f8/categ_ansible_test_code.txt#L4024 +``` + def test_init(self): + self.assertEqual(self.ml._prefix, 'prefix') + self.assertEqual(self.ml._delimiter, '.') + + self.assertEqual(self.ml_no_prefix._prefix, '') + self.assertEqual(self.ml_other_delim._delimiter, '*') + self.assertEqual(self.ml_default._prefix, '') +``` + + +https://github.com/akondrahman/IaCTesting/blob/18b98460e0c059ad79aee81f2359f3d5d5f863f8/categ_ansible_test_code.txt#L6533 +``` + def test_two_ips(self): + + with self.assertRaises(di.MultipleIpForHostError) as context: + di._check_multiple_ips_to_host(config) + self.assertEqual(context.exception.current_ip, '192.168.1.1') + self.assertEqual(context.exception.new_ip, '192.168.1.2') + self.assertEqual(context.exception.hostname, 'host1') +``` +In the above two examples we can see that multiple mention of assertion without proper debug message. So if any of those fails it will not be identifiable which one failed and why failed. + + +##### External dependency +###### Definition +....Will Be Updated Later.... + + 3. Violation of execute and verify 4. Not collecting facts from remote host 5. Mishandled privilege escalation