Exemplo n.º 1
0
    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)
Exemplo n.º 2
0
    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)
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
 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)