Skip to content

Added test cases for Multiple Txns in Batch#51

Open
sandeeplandt wants to merge 22 commits intolntdev:rest_api_testingfrom
SandeepTEMP:rest_api_testing
Open

Added test cases for Multiple Txns in Batch#51
sandeeplandt wants to merge 22 commits intolntdev:rest_api_testingfrom
SandeepTEMP:rest_api_testing

Conversation

@sandeeplandt
Copy link
Copy Markdown
Collaborator

Signed-off-by: sandeeplandt sandeepx.hs@intel.com

initial_batch_length = batch_count()
initial_transaction_length = transaction_count()

LOGGER.info("Creating intkey transactions with set operations")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a need to generalize these fixtures now....otherwise they will simply add locs


txns = [
create_intkey_same_transaction("set",[],30, signer),
create_intkey_same_transaction("set",[],30, signer),
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cant see invalid and valid combo

txns = [
create_intkey_transaction("set",[],30, signer),
create_intkey_same_transaction("set",[],30, signer),
create_intkey_same_transaction("set",[],30, signer),
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where are valid and invalid trnxs?

data = {}
signer = get_signer()
expected_trxn_ids = []
expected_batch_ids = []
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please shorten your code

initial_batch_length = setup_batch_valinv_txns['initial_batch_length']
expected_batch_length = setup_batch_valinv_txns['expected_batch_length']
initial_trn_length = setup_batch_valinv_txns['initial_trn_length']
expected_trn_length = setup_batch_valinv_txns['expected_trn_length']
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For post related tests , better create payload in fixtures and call here and then post from the test case

header_bytes = header.SerializeToString()

signature = self.signer.sign(header_bytes)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Transaction creation is done in payload file ...then why use Transaction header here....create there and call here....Please rework

rbuysse and others added 21 commits September 3, 2018 21:41
Signed-off-by: Ryan Beck-Buysse <rbuysse@bitwise.io>
Signed-off-by: Ryan Beck-Buysse <rbuysse@bitwise.io>
Signed-off-by: Ryan Beck-Buysse <rbuysse@bitwise.io>
In order to reduce the logging noise during debug, add a log guard that
will only add the messages about "Not ready to summarize" or "finalize"
on the first occurrence. Once the summary or finalization result is
returned, the guard is disabled.

Signed-off-by: Peter Schwarz <peterx.schwarz@intel.com>
This trait is used to pass the cache of block validation results to the
block scheduler.

Signed-off-by: Boyd Johnson <bjohnson@bitwise.io>
The python BlockScheduler will be removed once the BlockValidator is
re-written in Rust.

Signed-off-by: Boyd Johnson <bjohnson@bitwise.io>
Signed-off-by: Boyd Johnson <bjohnson@bitwise.io>
This is a idiomatic change from performing an action inside of a map to
an `if let Some`. This also changes the test for contains in a hashmap
and then insertion if it does not contain, to
hashmap.entry(key).or_insert(value) which is idiomatic rust.

Signed-off-by: Boyd Johnson <bjohnson@bitwise.io>
When the field name and the variable are named the same
 in constructing a struct, the field name should be omitted.

Signed-off-by: Boyd Johnson <bjohnson@bitwise.io>
There is less specificity on which parts of the code are unsafe, but
marking the function as unsafe is easier to see, and conforms to the
clippy rules.

Signed-off-by: Boyd Johnson <bjohnson@bitwise.io>
Signed-off-by: Boyd Johnson <bjohnson@bitwise.io>
Signed-off-by: Boyd Johnson <bjohnson@bitwise.io>
Signed-off-by: Boyd Johnson <bjohnson@bitwise.io>
Prior to this commit there was a Clippy lint error about calling
mem::forget on a Copy trait, which doesn't have a destructor.

Signed-off-by: Boyd Johnson <bjohnson@bitwise.io>
This includes a single pod in devmode, and a 5 pod poet network.

Signed-off-by: Richard Berg <rberg@bitwise.io>
Preserve the kubernetes yaml files in the docs build artifacts for
publishing.

Signed-off-by: Richard Berg <rberg@bitwise.io>
Contains base class for all test classes
Contains conftest.py for pytest cli and
session fixtures
Contains utils.py for utility methods
required in calling rest api endpoints
and other functions for testing the
endpoints
Contains Test files inside test folders
for rest api testing
Includes thread module for various threads
for multi validator testing
Includes ssh, payload and workload modules for
performing ssh, creating payload and generating
workload using threads

Signed-off-by: aditya singh <adityasingh27@hotmail.com>
Signed-off-by: sandeeplandt <sandeepx.hs@intel.com>
Signed-off-by: sandeeplandt <sandeepx.hs@intel.com>
Signed-off-by: sandeeplandt <sandeepx.hs@intel.com>
Signed-off-by: sandeeplandt <sandeepx.hs@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants