Beispiel #1
0
    def prepare_new_risk(self):
        new_misuse_case = MisuseCaseParameters(
            scName='Test misuse case',
            cProps=[
                MisuseCaseEnvironmentProperties(self.existing_environment_name,
                                                '')
            ],
            risk='Test risk')

        new_misuse_case.theEnvironmentDictionary = {}
        delattr(new_misuse_case, 'theEnvironmentDictionary')

        new_risk = RiskParameters(riskName='Test risk',
                                  threatName=self.existing_threat_name,
                                  vulName=self.existing_vulnerability,
                                  mc=new_misuse_case,
                                  rTags=[])

        return new_risk
Beispiel #2
0
    def prepare_new_risk(self):
        new_misuse_case = MisuseCaseParameters(
            scName='Test misuse case',
            cProps=[
                MisuseCaseEnvironmentProperties(self.existing_environment_name, '')
            ],
            risk='Test risk'
        )

        new_misuse_case.theEnvironmentDictionary = {}
        delattr(new_misuse_case, 'theEnvironmentDictionary')

        new_risk = RiskParameters(
            riskName='Test risk',
            threatName=self.existing_threat_name,
            vulName=self.existing_vulnerability,
            mc=new_misuse_case,
            rTags=[]
        )

        return new_risk
Beispiel #3
0
 def parameters(self): 
   parameters = MisuseCaseParameters(self.theName,self.theEnvironmentProperties,self.theRisk)
   parameters.setId(self.theMisuseCaseId)
   return parameters
Beispiel #4
0
 def parameters(self):
     parameters = MisuseCaseParameters(self.theName,
                                       self.theEnvironmentProperties,
                                       self.theRisk)
     parameters.setId(self.theMisuseCaseId)
     return parameters