self.assertTrue(os.path.exists(machine_crt),
'Machine certificate was not requested')
machine_key = os.path.join(dname, '%s.Machine.key' % ca_cn)
- self.assertTrue(os.path.exists(machine_crt),
+ self.assertTrue(os.path.exists(machine_key),
'Machine key was not generated')
# Subsequent apply should react to new certificate templates
'Root CA certificate was not requested')
self.assertTrue(os.path.exists(machine_crt),
'Machine certificate was not requested')
- self.assertTrue(os.path.exists(machine_crt),
+ self.assertTrue(os.path.exists(machine_key),
'Machine key was not generated')
workstation_crt = os.path.join(dname, '%s.Workstation.crt' % ca_cn)
self.assertTrue(os.path.exists(workstation_crt),
'Workstation certificate was not requested')
workstation_key = os.path.join(dname, '%s.Workstation.key' % ca_cn)
- self.assertTrue(os.path.exists(workstation_crt),
+ self.assertTrue(os.path.exists(workstation_key),
'Workstation key was not generated')
# Verify RSOP does not fail
'Root CA certificate was not removed')
self.assertFalse(os.path.exists(machine_crt),
'Machine certificate was not removed')
- self.assertFalse(os.path.exists(machine_crt),
+ self.assertFalse(os.path.exists(machine_key),
'Machine key was not removed')
self.assertFalse(os.path.exists(workstation_crt),
'Workstation certificate was not removed')
- self.assertFalse(os.path.exists(workstation_crt),
+ self.assertFalse(os.path.exists(workstation_key),
'Workstation key was not removed')
# Reapply policy by staging the enabled pol file
'Root CA certificate was not requested')
self.assertTrue(os.path.exists(machine_crt),
'Machine certificate was not requested')
- self.assertTrue(os.path.exists(machine_crt),
+ self.assertTrue(os.path.exists(machine_key),
'Machine key was not generated')
self.assertTrue(os.path.exists(workstation_crt),
'Workstation certificate was not requested')
- self.assertTrue(os.path.exists(workstation_crt),
+ self.assertTrue(os.path.exists(workstation_key),
'Workstation key was not generated')
# Remove policy
'Root CA certificate was not removed')
self.assertFalse(os.path.exists(machine_crt),
'Machine certificate was not removed')
- self.assertFalse(os.path.exists(machine_crt),
+ self.assertFalse(os.path.exists(machine_key),
'Machine key was not removed')
self.assertFalse(os.path.exists(workstation_crt),
'Workstation certificate was not removed')
- self.assertFalse(os.path.exists(workstation_crt),
+ self.assertFalse(os.path.exists(workstation_key),
'Workstation key was not removed')
out, _ = Popen(['getcert', 'list-cas'], stdout=PIPE).communicate()
self.assertNotIn(get_bytes(ca_cn), out, 'CA was not removed')
self.assertTrue(os.path.exists(machine_crt),
'Machine certificate was not requested')
machine_key = os.path.join(dname, '%s.Machine.key' % ca)
- self.assertTrue(os.path.exists(machine_crt),
+ self.assertTrue(os.path.exists(machine_key),
'Machine key was not generated')
# Subsequent apply should react to new certificate templates
'Root CA certificate was not requested')
self.assertTrue(os.path.exists(machine_crt),
'Machine certificate was not requested')
- self.assertTrue(os.path.exists(machine_crt),
+ self.assertTrue(os.path.exists(machine_key),
'Machine key was not generated')
workstation_crt = os.path.join(dname, '%s.Workstation.crt' % ca)
self.assertTrue(os.path.exists(workstation_crt),
'Workstation certificate was not requested')
workstation_key = os.path.join(dname, '%s.Workstation.key' % ca)
- self.assertTrue(os.path.exists(workstation_crt),
+ self.assertTrue(os.path.exists(workstation_key),
'Workstation key was not generated')
# Verify RSOP does not fail
'Root CA certificate was not removed')
self.assertFalse(os.path.exists(machine_crt),
'Machine certificate was not removed')
- self.assertFalse(os.path.exists(machine_crt),
+ self.assertFalse(os.path.exists(machine_key),
'Machine key was not removed')
self.assertFalse(os.path.exists(workstation_crt),
'Workstation certificate was not removed')
- self.assertFalse(os.path.exists(workstation_crt),
+ self.assertFalse(os.path.exists(workstation_key),
'Workstation key was not removed')
out, _ = Popen(['getcert', 'list-cas'], stdout=PIPE).communicate()
for ca in ca_list: