9 Commits

Author SHA1 Message Date
Viktor Kolomeyko
c396b80afe
ENT-1967: Illustration for Byteman library can be used in Node integration test. (#1204)
* ENT-1967: Enable byteman library

* ENT-1967: Add an integration test to experiment with Byteman.

This needs to be running with: `-Dexperimental.test.enable`
As in: `gradlew -Dexperimental.test.enable integrationTest`

* ENT-1967: Modify Node driver to allow for optional instrumentation and use it in the integration test

* ENT-1967: Rely on port allocation

* ENT-1967: Install the rule that works

* ENT-1967: Trying to introduce counter rule (doesn't work)

* ENT-1967: Install rules that make correct use of countdown and also improve debug logging for Byteman

* ENT-1967: Add assertion to validate that exception is indeed thrown as per rules installed.

* ENT-1967: Less logging and more assertions

* ENT-1967: Replace `fun` with `val`

* ENT-1967: Un-break DriverDSL public API.

* ENT-1967: Minor change

* ENT-1967: Remove Byteman settings from NodeParameters and hide them inside InternalDriverDSL.

* ENT-1967: Change the way how Jars resolved and use `Try` construct.
2018-07-10 10:05:07 +01:00
Shams Asari
0c8c914882 Removing warnings 2018-07-05 15:45:28 +01:00
Tommy Lillehagen
a612ca234a Merge remote-tracking branch 'open/master' into tlil-os-merge-20180613 2018-06-13 21:45:00 +01:00
Viktor Kolomeyko
1011e45b84
ENT-1962: Perform RPC retry in case of RejectedCommandException (#982)
* ENT-1962: Perform RPC retry in case of RejectedCommandException

(cherry picked from commit 2a7f0dd)

* ENT-1962: Address code-review comments.

(cherry picked from commit 7b4edde)
2018-06-13 12:33:36 +01:00
Shams Asari
f34a2bd33f Replacing uses of assert with require 2018-06-06 09:56:04 +01:00
Viktor Kolomeyko
63d357f62b
ENT-1986: Extend node HA test scenario to support LinearState. (#893)
* ENT-1986: Introduce new parameter `scenarioType`

* ENT-1986: Introduce `AbstractScenarioRunner` and refactor all the reusable bit of functionality into this class.

* ENT-1986: Create `LinearStateScenarioRunner` to use `perftestcordapp` flows.

* ENT-1986: More improvements to make Linear scenario runner work.
2018-05-31 11:14:59 +01:00
Viktor Kolomeyko
43ddc5e179
ENT-1396: Improve verification of states to transactions. (#882)
Since not every output state may be present, e.g. if the whole amount been paid and at source
the state is fully spent, there will not be a trace of an output state at source.
But recipient(target) will always have references of output states in its vault.

Also perform transfer of the full issued amount to eliminate any sort of coin selection issues.
2018-05-30 15:35:28 +01:00
Viktor Kolomeyko
ee094ef129
ENT-1396: Further improvements to Node HA Testing script. (#873)
* CORDA-1506: Cherry-pick fix from Corda OS.

* ENT-1396: Add verification logic to ensure that transaction reflected on both sides.

* ENT-1396: First stub on HA re-connect logic.

* ENT-1396: Ensure we re-connect correctly.

* ENT-1396: Improve the robustness of the scenario runner.

* ENT-1396: Perform Vault query in re-tryable fashion.

* ENT-1396: Larger iterations count.

* ENT-1396: Introduce "iterationsCount" as parameter.

* ENT-1396: ReadMe document.
2018-05-24 14:31:38 +01:00
Viktor Kolomeyko
9ec7e7f4c8
ENT-1396: First stub on Node HA testing facility. (#856)
* ENT-1396: Skeleton of HA testing project

* ENT-1396: Tidy-up arguments parsing and introduce ScenarioRunner.

* ENT-1396: More changes for ScenarioRunner.

* ENT-1396: Further changes.

* ENT-1396: Further changes.

* ENT-1396: Improve logging.

* ENT-1396: Add TODO comments to indicate what is going to be done in the future.
2018-05-21 09:36:14 +01:00