-
Notifications
You must be signed in to change notification settings - Fork 516
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-11059] complete ca-client mocha tests
This change: - add unit tests for remaning 'core' fabric-ca-client files - Extracts FabricCAClient from being an inner class within `FabricCAClientImpl` - Renames the `FabricClientCAImpl` to match the export name `FabricClientServices` - Updates the main export in index.js - Fixes tested functions where bugs found - Removes tape unit test now covered by Mocha - Updates all references to newly named file in tests Change-Id: I23ecda6cd22d3ce69ef7a73ab687491e6777d5ad Signed-off-by: nkl199@yahoo.co.uk <nkl199@yahoo.co.uk>
- Loading branch information
Showing
25 changed files
with
4,000 additions
and
2,195 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 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 |
---|---|---|
@@ -1,23 +1,23 @@ | ||
/** | ||
* Copyright 2016 IBM All Rights Reserved. | ||
* | ||
/* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
/** | ||
* This is the main module for the "fabric-ca-client" package. It communicates with the | ||
* "fabric-ca" server to manage user certificates lifecycle including register, enroll, | ||
* renew and revoke, so that the application can use the properly signed certificates to | ||
* authenticate with the fabric | ||
*/ | ||
module.exports = require('./lib/FabricCAClientImpl.js'); | ||
module.exports = require('./lib/FabricCAServices.js'); |
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.