Skip to content

Commit

Permalink
[FAB-5115] Add test case to config.go
Browse files Browse the repository at this point in the history
Change-Id: Id86727c64f15865f528055d415f25f3de7e11e18
Signed-off-by: Divyank Katira <Divyank.Katira@securekey.com>
  • Loading branch information
d1vyank committed Jun 30, 2017
1 parent 13a35d0 commit a4ae7c1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkg/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ package config
import (
"fmt"
"os"
"path/filepath"
"strings"
"testing"

Expand Down Expand Up @@ -233,6 +234,15 @@ func TestOrdererConfig(t *testing.T) {
if oConfig == nil || err != nil {
t.Fatal("Testing get OrdererConfig failed")
}

orderers, err := configImpl.OrderersConfig()
if err != nil {
t.Fatal(err)
}

if !filepath.IsAbs(orderers[0].TLS.Certificate) {
t.Fatal("Expected GOPATH relative path to be replaced")
}
}

func TestCSPConfig(t *testing.T) {
Expand Down

0 comments on commit a4ae7c1

Please sign in to comment.