def setUpClass(cls):
        super().setUpClass()

        cls.validator.register_comparator(Message.TP_STATE_SET_REQUEST,
                                          compare_set_request)

        cls.factory = IntkeyMessageFactory()
Esempio n. 2
0
    def post_and_verify(self, batch, how_many_updates):
        batch = IntkeyMessageFactory().create_batch(batch)
        LOGGER.info('Posting batch')
        _post_batch(batch)

        time.sleep(10)

        self.verify_state_after_n_updates(how_many_updates)
def _send_intkey_cmd(txns):
    batch = IntkeyMessageFactory().create_batch(txns)
    LOGGER.info('Sending intkey txns')
    _post_batch(batch)
Esempio n. 4
0
def make_batches(keys):
    imf = IntkeyMessageFactory()
    return [imf.create_batch([('set', k, 0)]) for k in keys]
 def __init__(self, timeout):
     self.batches = []
     self.imf = IntkeyMessageFactory()
     self.timeout = timeout
Esempio n. 6
0
 def send_txns(self, txns):
     batch = IntkeyMessageFactory().create_batch(txns)
     self.send_batches(batch)
 def __init__(self, url):
     super().__init__(url)
     self.url = url
     self.factory = IntkeyMessageFactory()
    def __init__(self, timeout):
        self.batches = []
        self.imf = IntkeyMessageFactory()
        self.timeout = timeout

        wait_for_rest_apis(['rest-api:8008'])
Esempio n. 9
0
 def __init__(self):
     self.n = 0
     self.imf = IntkeyMessageFactory()