Skip to content

Commit

Permalink
BE-757 Disable CA server support (#121)
Browse files Browse the repository at this point in the history
Signed-off-by: Atsushi Neki <atsushin@fast.au.fujitsu.com>
  • Loading branch information
nekia authored Jun 22, 2020
1 parent 114cc88 commit 2404718
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 3 additions & 3 deletions app/platform/fabric/e2e-test/specs/apitest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,21 +170,21 @@ var _ = Describe("REST API Test Suite - Single profile", func() {
Expect(result.Row[0].Channelname).Should(Equal("commonchannel"))
})

It("register user", func() {
XIt("register user", func() {
resp := restPostWithToken("/api/register", map[string]interface{}{"user": "test", "password": "test", "affiliation": "department2", "role": "admin"}, &RegisterResp{}, token)
resultRegister := resp.Result().(*RegisterResp)
Expect(resultRegister.Status).Should(Equal(200))
})

It("login with newly registered user", func() {
XIt("login with newly registered user", func() {
resp := restPost("/auth/login", map[string]interface{}{"user": "test", "password": "test", "network": "org1-network"}, &LoginResponse{})
resultLogin := resp.Result().(*LoginResponse)

Expect(resultLogin.User.Message).Should(Equal("logged in"))
Expect(resultLogin.User.Name).Should(Equal("test"))
})

It("fail to register duplicate user", func() {
XIt("fail to register duplicate user", func() {
resp := restPostWithToken("/api/register", map[string]interface{}{"user": "test", "password": "test", "affiliation": "department2", "role": "admin"}, &RegisterResp{}, token)
resultRegister := resp.Result().(*RegisterResp)
Expect(resultRegister.Status).Should(Equal(400))
Expand Down
6 changes: 0 additions & 6 deletions app/platform/fabric/gateway/FabricGateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ class FabricGateway {
);

this.defaultChannelName = this.fabricConfig.getDefaultChannel();
const caURLs = this.fabricConfig.getCertificateAuthorities();
/* eslint-enable */
let identity;
try {
Expand All @@ -97,11 +96,6 @@ class FabricGateway {
logger.debug(
`An identity for the admin user: ${this.fabricConfig.getAdminUser()} already exists in the wallet`
);
} else if (this.fabricCaEnabled) {
identity = await this.enrollCaIdentity(
this.fabricConfig.getAdminUser(),
this.fabricConfig.getAdminPassword()
);
} else {
/*
* Identity credentials to be stored in the wallet
Expand Down

0 comments on commit 2404718

Please sign in to comment.