1367cd4adb
CORDA-912 Stop exposing internal node user, create user in testing infrastructu… ( #2361 )
...
* Stop exposing internal node user, create user in testing infrastructure instead
* Update kdocs
2018-01-15 19:30:33 +00:00
094e96d303
Move the CommercialPaperTest examples to a location where it'll be run by gradle/ci. Make sure the tests pass, even the example tests that are intended to fail, so these files are kept up to date as the code changes.
2018-01-15 17:56:21 +01:00
4a995870c8
Fix example-node.conf in docs ( #2334 )
2018-01-08 17:50:29 +00:00
6db0490750
Fix node integration tests. ( #2233 )
...
* Add tests for node registration and communication
2017-12-21 11:48:00 +00:00
8114a20abd
CORDA-716 Move non-API things to internal ( #2256 )
2017-12-17 18:44:35 +00:00
2652ae111a
CORDA-716 Devrel feedback ( #2266 )
...
* * Document TestIdentity entropy and enforce that it actually works
* Ledger/transaction DSL default notary with fresh key
* MockServices default identity with fresh key
* makeTestIdentityService now takes vararg
* Require cordappPackages for MockServices
* DSL automatic serialization init
* Improve error when two MockNetworks used
* * Make cordappPackages required by MockNetwork
* Default identity service in MockServices
* Make notarySpecs Java-friendly
2017-12-15 19:18:31 +00:00
21e1118ea0
Make test constants Java-visible fields. ( #2258 )
2017-12-14 16:30:18 +00:00
2319bf396c
Renamed TestIdentity.key to keyPair and pubkey to publicKey ( #2249 )
2017-12-14 11:30:55 +00:00
929341e7ee
Updates tutorials (general fixes, link to solutions repos)
...
* Updates tutorial to make imports to be added clearer, and to reflect new repo structure.
* Adds links to the solution repos for tut 1.
* Further fixes based on dry-run.
2017-12-13 16:22:40 +00:00
c3b9955344
CORDA-716 Fix split packages in testing ( #2232 )
2017-12-12 19:37:01 +00:00
905c8252a6
CORDA-654 Remaining key constants ( #2226 )
2017-12-12 18:03:06 +00:00
91f7dbe658
Removes R3 references from the docs.
2017-12-12 10:42:48 +00:00
6d6393d984
Merge branch 'feature-network-parameters' into shams-merge-feature-network-parameters
2017-12-11 21:10:34 +00:00
d8c7f0ae23
Inline DUMMY_CASH/OBLIGATION_ISSUER. ( #2214 )
2017-12-11 16:17:20 +00:00
544e19e277
CORDA-654 Remove key constants from NodeTestUtils ( #2205 )
...
* DUMMY_NOTARY was hiding in a couple more places
2017-12-11 11:44:01 +00:00
6a1aa59e3e
Merge branch 'master' into shams-merge-master-041217
...
# Conflicts:
# node/src/integration-test/kotlin/net/corda/node/services/DistributedServiceTests.kt
# samples/bank-of-corda-demo/src/main/kotlin/net/corda/bank/BankOfCordaCordform.kt
# testing/node-driver/src/main/kotlin/net/corda/testing/NodeTestUtils.kt
# testing/node-driver/src/main/kotlin/net/corda/testing/driver/Driver.kt
# testing/node-driver/src/main/kotlin/net/corda/testing/internal/NodeBasedTest.kt
# testing/node-driver/src/main/kotlin/net/corda/testing/node/MockNode.kt
# testing/node-driver/src/main/kotlin/net/corda/testing/node/NotarySpec.kt
# verifier/src/integration-test/kotlin/net/corda/verifier/VerifierDriver.kt
2017-12-04 13:39:32 +00:00
5264072752
Renamed n.c.nodeapi.config to n.c.nodeapi.internal.config as that config code is not public API. For the same reason, also moved User into the same internal package.
2017-12-03 17:20:30 +00:00
d5e3f28303
Removed remaining references to networkMapService
2017-12-01 20:57:58 +00:00
a314a6a125
CORDA-654 Simplify TransactionDSL API ( #2152 )
2017-11-30 16:28:44 +00:00
5a6f2a19b3
[CORDA-824]: fix resource leak in Cash selection ( #2155 )
...
[CORDA-824]: fix resource leak in Cash selection and some example class
2017-11-30 16:17:18 +00:00
4bd6fef0f9
StateMachineManager is no longer lateinit. ( #2123 )
2017-11-27 17:55:08 +00:00
f26aa33553
Introduce contextLogger ( #2085 )
...
* Revert with comment, probably lazy for a reason.
2017-11-20 11:31:08 +00:00
85071f227a
Reflects tutorial changes and CorDapp build docs changes from release-V1.
2017-11-16 15:31:52 +00:00
8e18e1ba2a
Updates flow cookbook to use freshKeyAndCert not freshKey.
2017-11-15 16:49:06 +00:00
92c8861802
[CORDA-760]: Propagate invocation context across the codebase. ( #2016 )
2017-11-15 14:58:43 +00:00
2fe41715cc
On exit, the driver will automaticallly shutdown any nodes which weren't waited for.
...
The motivation for this came with the recent change that a default notary is started by the driver, which if ignored will leak the notary process.
Also, waitForAllNodesToFinish() has been replaced by a driver parameter.
2017-11-14 20:20:00 +00:00
6b71c6cf75
Retire some initialiseSerialization booleans. ( #2019 )
2017-11-10 10:15:55 +00:00
117261caa4
Retired getDefaultNotary test extension method.
...
Most uses where with MockNetwork which recently got a defaultNotaryIdentity property for dealing with the default single notary case. The remaining uses where in flows.
2017-11-07 21:20:43 +00:00
a4be26a296
Removed unnecessary calls to MockNetwork.runNetwork (b/c there is no more P2P node registration) and removed redundant entries in cordappPackages
2017-11-06 21:28:20 +00:00
3bb018a5ce
Removed the ability to manually start notary nodes from the driver and MockNetwork. Instead by default a single notary is automatically started. This can be customised at creation time of the driver and MockNetwork. This more accurately models the concept of network parameters in a CZ.
...
Also added helper methods to retrieve this default notary.
2017-11-05 22:55:33 +00:00
9be37c2b88
Remove useless call to waitUntilNetworkReady within driver started nodes ( #1998 )
...
Remove usages of waitUntilNetworkReady in conjunction with driver
2017-11-03 14:27:46 +00:00
d04e48740b
Introducing network parameters.
...
network-parameters file read in by the node at startup, of which only the list of notaries is used. For now, the driver and MockNetwork have been updated to require notaries to be started first. This is so that the same set of network parameters can be defined for all the nodes.
CN in the legal name is not longer disallowed since it's no longer reserved for distributed notary names.
Single-node notaries now only have one identity, their main identity. Nodes part of a cluster continue to have two.
(Based off Kasia's work)
2017-11-03 09:46:10 +00:00
d882f8871e
[CORDA-758]: Permissions are now checked for each RPC method. ( #1985 )
...
* Permissions are now checked for each RPC method.
* Fixed NodeMonitorModelTest
* Fixed IRSDemoTest
2017-11-02 15:09:49 +00:00
00e682a544
[CORDA-446] Clean up other mentions of network map node and logic ( #1974 )
...
* [CORDA-446] Clean up other mentions of network map node and logic
* Rename AbstractNetworkMapService to NetworkMapService and remove the empty NetworkMapService
* fix build
* fix artemismessaging tests
* pr comments
2017-11-01 14:25:48 +00:00
05d6fb91c7
Reinstate Simulation config overrides for notary. ( #1947 )
2017-10-30 11:41:53 +00:00
a0b9768be7
Retire FullNodeConfiguration ( #1954 )
...
* Retire FullNodeConfiguration
* Moved logic and tests for Artermis user names in RPCUserServiceImpl
2017-10-27 14:30:10 +01:00
2fe3fbbfef
CORDA-699 Add injection or modification of memory network messages ( #1920 )
2017-10-24 17:24:38 +01:00
c66a84bfc6
Interface changes for multi-threading
2017-10-20 11:29:30 +01:00
3dd09fd69b
Cordformation in Kotlin ( #1873 )
...
Cordformation rewritten in kotlin.
2017-10-19 15:41:25 +01:00
b2454c646c
Eliminate circular dependency of NodeSchedulerService on ServiceHub. ( #1891 )
2017-10-19 09:26:26 +01:00
d3e8df1644
Separates out the tutorial code into separate docs to ensure it compiles.
2017-10-16 14:39:28 +01:00
38cf4a489e
CORDA-676 Eager cordapp schemas ( #1839 )
...
* Retire customSchemas.
* Key cordapp-to-hash map by url as native equality too strict.
2017-10-16 11:35:29 +01:00
7b10e92819
Fixed AbstractNode to load custom notary services properly ( #1720 )
...
* Fixed AbstractNode to load custom notary services properly.
Added a custom notary sample.
* Prevent multiple custom notaries from being loaded
* Throw if more than once custom notary service is loaded
2017-10-13 10:36:25 +01:00
327f0ebd73
CORDA-654: Migrate test APIs to match identity changes ( #1744 )
...
Rework identity usage in tests to extract identity from nodes by name, rather than just arbitrarily choosing the first identity. This better models the intended design for production (future work).
2017-10-11 18:26:09 +01:00
4ee250a19b
Retire setCordappPackages. ( #1860 )
2017-10-11 10:35:21 +01:00
f19ff141dd
Update code to use AppServiceHub in services and support for services when using MockServices hub.
2017-10-10 17:11:32 +01:00
3bee830604
[CORDA-442] Removed the NetworkMap option from Cordform, changed all the examples… ( #1827 )
...
[CORDA-442]
Removed the option for Cordformation to specify a networkMap.
All the samples have been migrated to not specify a networkMap.
2017-10-10 15:45:42 +01:00
bd53a22efa
Removed extraAdvertisedServiceIds config
...
The remaining use for it was the finance CorDapp for permissioning CCY issuers. Instead this is now taken from a custom config in node.conf.
2017-10-10 13:47:37 +01:00
242b019dc2
CORDA-641: Remove special case handling of notary transactions ( #1675 )
...
Move special case handling of notary transactions into `SignedTransaction`
2017-10-10 13:23:31 +01:00
22b1dead32
Remove functions with spaces in their name ( #1850 )
...
Remove all the Kotlin functions with spaces in them since the Android doesn't support them.
See https://github.com/corda/corda/issues/1730 for a more in-depth discussion.
2017-10-10 09:32:43 +01:00