def buildMessage(self): # note that we don't validate these strings -- if they contain newlines # (and so mess up the transition protocol) then the server will error result = ["faultInject"] result.append(toNonNoneString(self.options.faultName)) result.append(toNonNoneString(self.options.type)) result.append(toNonNoneString(self.options.ddlStatement)) result.append(toNonNoneString(self.options.databaseName)) result.append(toNonNoneString(self.options.tableName)) result.append(toNonNoneString(self.options.numOccurrences)) result.append(toNonNoneString(self.options.sleepTimeSeconds)) return '\n'.join(result)
def buildMessage(self) : # note that we don't validate these strings -- if they contain newlines # (and so mess up the transition protocol) then the server will error result = ["faultInject"] result.append( toNonNoneString(self.options.faultName)) result.append( toNonNoneString(self.options.type)) result.append( toNonNoneString(self.options.ddlStatement)) result.append( toNonNoneString(self.options.databaseName)) result.append( toNonNoneString(self.options.tableName)) result.append( toNonNoneString(self.options.numOccurrences)) result.append( toNonNoneString(self.options.sleepTimeSeconds)) return '\n'.join(result)
def buildGetStatusMessage(self): # note that we don't validate this string then the server may error result = ["getFaultInjectStatus"] result.append(toNonNoneString(self.options.faultName)) return '\n'.join(result)
def buildGetStatusMessage(self) : # note that we don't validate this string then the server may error result = ["getFaultInjectStatus"] result.append( toNonNoneString(self.options.faultName)) return '\n'.join(result)