예제 #1
0
 def test_all_checks_as_v1(self):
     '''Test snap v1 has no checks'''
     self.set_test_pkgfmt("snap", "15.04")
     c = SnapReviewSecurity(self.test_name)
     c.do_checks()
     sum = 0
     for i in c.click_report:
         sum += len(c.click_report[i])
     self.assertTrue(sum == 0)
예제 #2
0
 def test_all_checks_as_click(self):
     '''Test click format has no checks'''
     self.set_test_pkgfmt("click", "0.4")
     c = SnapReviewSecurity(self.test_name)
     c.do_checks()
     sum = 0
     for i in c.click_report:
         sum += len(c.click_report[i])
     self.assertTrue(sum == 0)
예제 #3
0
 def test_all_checks_as_v2(self):
     '''Test snap v2 has checks'''
     self.set_test_pkgfmt("snap", "16.04")
     plugs = self._create_top_plugs()
     self.set_test_snap_yaml("plugs", plugs)
     c = SnapReviewSecurity(self.test_name)
     c.do_checks()
     sum = 0
     for i in c.click_report:
         sum += len(c.click_report[i])
     self.assertTrue(sum != 0)