File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
fabric-chaincode-shim/src/test/java/org/hyperledger/fabric Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ public void testCreateFailsWithoutValidOptions() {
4141 thrown .expectMessage (containsString (
4242 "The chaincode id must be specified using either the -i or --i command line options or the CORE_CHAINCODE_ID_NAME environment variable." ));
4343
44+ System .out .println ("CORE_CHAINCODE_NAME = " + System .getenv ("CORE_CHAINCODE_ID_NAME" ));
45+
4446 @ SuppressWarnings ("unused" )
4547 final ContractRouter r = new ContractRouter (new String [] {});
4648 }
Original file line number Diff line number Diff line change @@ -193,6 +193,9 @@ public void testUnsetOptionClientCertPath() {
193193 environmentVariables .set ("CORE_CHAINCODE_ID_NAME" , "mycc" );
194194 environmentVariables .set ("CORE_PEER_TLS_ENABLED" , "true" );
195195 cb .processEnvironmentOptions ();
196+
197+ System .out .println ("CORE_TLS_CLIENT_CERT_PATH = " + System .getenv ("CORE_TLS_CLIENT_CERT_PATH" ));
198+
196199 thrown .expect (IllegalArgumentException .class );
197200 thrown .expectMessage (Matchers .containsString ("Client key certificate chain" ));
198201 cb .validateOptions ();
@@ -205,6 +208,9 @@ public void testUnsetOptionClientKeyPath() {
205208 environmentVariables .set ("CORE_PEER_TLS_ENABLED" , "true" );
206209 environmentVariables .set ("CORE_TLS_CLIENT_CERT_PATH" , "non_exist_path3" );
207210 cb .processEnvironmentOptions ();
211+
212+ System .out .println ("CORE_TLS_CLIENT_KEY_PATH = " + System .getenv ("CORE_TLS_CLIENT_KEY_PATH" ));
213+
208214 thrown .expect (IllegalArgumentException .class );
209215 thrown .expectMessage (Matchers .containsString ("Client key (" ));
210216 cb .validateOptions ();
@@ -268,6 +274,8 @@ public void testStartFailsWithoutValidOptions() {
268274 Logger logger = Logger .getLogger ("org.hyperledger.fabric.shim.ChaincodeBase" );
269275 logger .addHandler (mockHandler );
270276
277+ System .out .println ("CORE_CHAINCODE_NAME = " + System .getenv ("CORE_CHAINCODE_ID_NAME" ));
278+
271279 cb .start (args );
272280
273281 Mockito .verify (mockHandler , Mockito .atLeast (1 )).publish (argumentCaptor .capture ());
You can’t perform that action at this time.
0 commit comments