-
Notifications
You must be signed in to change notification settings - Fork 507
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-9238] local int tests to use configbackend
-instead of using different config files for local integration tests, customized backend with updated entity matchers is used. Change-Id: I0816123e0c8287d16818f45872ccaa21dcf6abc9 Signed-off-by: Sudesh Shetty <[email protected]>
- Loading branch information
1 parent
b4f68e3
commit f332aba
Showing
17 changed files
with
232 additions
and
667 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
# | ||
# Copyright SecureKey Technologies Inc. All Rights Reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# | ||
# The network connection profile provides client applications the information about the target | ||
# blockchain network that are necessary for the applications to interact with it. These are all | ||
# knowledge that must be acquired from out-of-band sources. This file provides such a source. | ||
# | ||
|
||
|
||
# EntityMatchers enable substitution of network hostnames with static configurations | ||
# so that properties can be mapped. Regex can be used for this purpose | ||
# UrlSubstitutionExp can be empty which means the same network hostname will be used | ||
# UrlSubstitutionExp can be given same as mapped peer url, so that mapped peer url can be used | ||
# UrlSubstitutionExp can have golang regex matchers like $1.local.example.$2:$3 for pattern | ||
# like peer0.org1.example.com:1234 which converts peer0.org1.example.com to peer0.org1.local.example.com:1234 | ||
# EventUrlSubstitutionExp and sslTargetOverrideUrlSubstitutionExp follow in the same lines as | ||
# SubstitutionExp for the fields eventUrl and gprcOptions.ssl-target-name-override respectively | ||
# In any case mappedHost's config will be used, so mapped host cannot be empty, if entityMatchers are used | ||
entityMatchers: | ||
peer: | ||
- pattern: (\w+).org1.example.(\w+) | ||
urlSubstitutionExp: localhost:7051 | ||
eventUrlSubstitutionExp: localhost:7053 | ||
sslTargetOverrideUrlSubstitutionExp: peer0.org1.example.com | ||
mappedHost: local.peer0.org1.example.com | ||
|
||
- pattern: (\w+).org2.example.(\w+) | ||
urlSubstitutionExp: localhost:8051 | ||
eventUrlSubstitutionExp: localhost:8053 | ||
sslTargetOverrideUrlSubstitutionExp: peer0.org2.example.com | ||
mappedHost: local.peer0.org2.example.com | ||
|
||
- pattern: (\w+).example.(\w+) | ||
urlSubstitutionExp: localhost:7051 | ||
eventUrlSubstitutionExp: localhost:7053 | ||
sslTargetOverrideUrlSubstitutionExp: localhost | ||
mappedHost: local.peer0.org1.example.com | ||
|
||
- pattern: (\w+).example2.(\w+):(\d+) | ||
urlSubstitutionExp: localhost:7051 | ||
eventUrlSubstitutionExp: localhost:7053 | ||
sslTargetOverrideUrlSubstitutionExp: localhost | ||
mappedHost: local.peer0.org2.example.com | ||
|
||
- pattern: (\w+).example3.(\w+) | ||
urlSubstitutionExp: | ||
eventUrlSubstitutionExp: | ||
sslTargetOverrideUrlSubstitutionExp: | ||
mappedHost: local.peer0.org1.example.com | ||
|
||
- pattern: (\w+).example4.(\w+):(\d+) | ||
urlSubstitutionExp: $1.org1.example.$2:$3 | ||
eventUrlSubstitutionExp: $1.org1.example.$2:7053 | ||
sslTargetOverrideUrlSubstitutionExp: $1.org1.example.$2 | ||
mappedHost: local.peer0.org1.example.com | ||
|
||
- pattern: (\w+).example2.com:(\d+) | ||
urlSubstitutionExp: peer0.org2.example.com:7051 | ||
eventUrlSubstitutionExp: | ||
sslTargetOverrideUrlSubstitutionExp: | ||
mappedHost: local.peer0.org2.example.com | ||
|
||
orderer: | ||
- pattern: (\w+).example2.(\w+) | ||
urlSubstitutionExp: localhost:7050 | ||
sslTargetOverrideUrlSubstitutionExp: localhost | ||
mappedHost: local.orderer.example.com | ||
|
||
- pattern: (\w+).example.(\w+) | ||
urlSubstitutionExp: localhost:7050 | ||
sslTargetOverrideUrlSubstitutionExp: orderer.example.com | ||
mappedHost: local.orderer.example.com | ||
|
||
- pattern: (\w+).example.(\w+):(\d+) | ||
urlSubstitutionExp: localhost:7050 | ||
sslTargetOverrideUrlSubstitutionExp: orderer.example.com | ||
mappedHost: local.orderer.example.com | ||
|
||
- pattern: (\w+).example3.(\w+) | ||
urlSubstitutionExp: | ||
sslTargetOverrideUrlSubstitutionExp: | ||
mappedHost: local.orderer.example.com | ||
|
||
- pattern: (\w+).example4.(\w+):(\d+) | ||
urlSubstitutionExp: $1.example.$2:$3 | ||
sslTargetOverrideUrlSubstitutionExp: $1.example.$2 | ||
mappedHost: local.orderer.example.com | ||
|
||
certificateAuthority: | ||
- pattern: (\w+).org1.example.(\w+) | ||
urlSubstitutionExp: https://localhost:7054 | ||
mappedHost: local.ca.org1.example.com | ||
|
||
- pattern: (\w+).org2.example.(\w+) | ||
urlSubstitutionExp: https://localhost:8054 | ||
mappedHost: local.ca.org2.example.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.