@@ -67,7 +67,7 @@ func loadRootCAs() [][]byte {
67
67
func TestNewCredentialSupport (t * testing.T ) {
68
68
expected := & CredentialSupport {
69
69
appRootCAsByChain : make (map [string ][][]byte ),
70
- OrdererRootCAsByChain : make (map [string ][][]byte ),
70
+ ordererRootCAsByChain : make (map [string ][][]byte ),
71
71
}
72
72
assert .Equal (t , expected , NewCredentialSupport ())
73
73
}
@@ -82,7 +82,7 @@ func TestCredentialSupport(t *testing.T) {
82
82
83
83
cs := & CredentialSupport {
84
84
appRootCAsByChain : make (map [string ][][]byte ),
85
- OrdererRootCAsByChain : make (map [string ][][]byte ),
85
+ ordererRootCAsByChain : make (map [string ][][]byte ),
86
86
}
87
87
cert := tls.Certificate {Certificate : [][]byte {}}
88
88
cs .SetClientCertificate (cert )
@@ -92,8 +92,8 @@ func TestCredentialSupport(t *testing.T) {
92
92
cs .appRootCAsByChain ["channel1" ] = [][]byte {rootCAs [0 ]}
93
93
cs .appRootCAsByChain ["channel2" ] = [][]byte {rootCAs [1 ]}
94
94
cs .appRootCAsByChain ["channel3" ] = [][]byte {rootCAs [2 ]}
95
- cs .OrdererRootCAsByChain ["channel1" ] = [][]byte {rootCAs [3 ]}
96
- cs .OrdererRootCAsByChain ["channel2" ] = [][]byte {rootCAs [4 ]}
95
+ cs .ordererRootCAsByChain ["channel1" ] = [][]byte {rootCAs [3 ]}
96
+ cs .ordererRootCAsByChain ["channel2" ] = [][]byte {rootCAs [4 ]}
97
97
cs .ServerRootCAs = [][]byte {rootCAs [5 ]}
98
98
99
99
creds , _ := cs .GetDeliverServiceCredentials ("channel1" )
@@ -192,13 +192,13 @@ func TestImpersonation(t *testing.T) {
192
192
193
193
cs := & CredentialSupport {
194
194
appRootCAsByChain : make (map [string ][][]byte ),
195
- OrdererRootCAsByChain : make (map [string ][][]byte ),
195
+ ordererRootCAsByChain : make (map [string ][][]byte ),
196
196
}
197
197
_ , err := cs .GetDeliverServiceCredentials ("C" )
198
198
assert .Error (t , err )
199
199
200
- cs .OrdererRootCAsByChain ["A" ] = [][]byte {osA .caCert }
201
- cs .OrdererRootCAsByChain ["B" ] = [][]byte {osB .caCert }
200
+ cs .ordererRootCAsByChain ["A" ] = [][]byte {osA .caCert }
201
+ cs .ordererRootCAsByChain ["B" ] = [][]byte {osB .caCert }
202
202
203
203
var tests = []struct {
204
204
channel string
0 commit comments