Skip to content

Commit

Permalink
[FAB-8983] make org names consistent in small case
Browse files Browse the repository at this point in the history
Change-Id: I1e4b32f5461f521392c8ace89c8fda2c5fe3d5a8
Signed-off-by: Pavan Kappara <[email protected]>
  • Loading branch information
Pavan Kappara committed Mar 20, 2018
1 parent d7c5c6a commit aaeebdd
Show file tree
Hide file tree
Showing 43 changed files with 69 additions and 67 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ FABRIC_PRERELEASE_VERSION := 1.1.0
FABRIC_PREV_VERSION := 1.0.6
FABRIC_DEVSTABLE_VERSION_MINOR := 1.1
FABRIC_DEVSTABLE_VERSION_MAJOR := 1
FABRIC_PREV_VERSION_MINOR := 1.0

# Build flags (overridable)
GO_LDFLAGS ?=
Expand Down Expand Up @@ -93,7 +94,7 @@ FABRIC_CODELEVEL_TAG ?= $(FABRIC_STABLE_CODELEVEL_TAG)

# Code level version targets
FABRIC_STABLE_CODELEVEL_VER := v$(FABRIC_STABLE_VERSION_MINOR)
FABRIC_PREV_CODELEVEL_VER := v$(FABRIC_PREV_VERSION)
FABRIC_PREV_CODELEVEL_VER := v$(FABRIC_PREV_VERSION_MINOR)
FABRIC_PRERELEASE_CODELEVEL_VER := v$(FABRIC_PRERELEASE_VERSION)
FABRIC_DEVSTABLE_CODELEVEL_VER := v$(FABRIC_DEVSTABLE_VERSION_MINOR)
FABRIC_CODELEVEL_VER ?= $(FABRIC_STABLE_CODELEVEL_VER)
Expand Down
6 changes: 3 additions & 3 deletions pkg/client/msp/testdata/config_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ client:

# Which organization does this application instance belong to? The value must be the name of an org
# defined under "organizations"
organization: Org1
organization: org1

logging:
level: info
Expand Down Expand Up @@ -167,7 +167,7 @@ channels:
# list of participating organizations in this network
#
organizations:
Org1:
org1:
mspid: Org1MSP

# This org's MSP store (absolute path or relative to client.cryptoconfig)
Expand Down Expand Up @@ -201,7 +201,7 @@ organizations:
# peers with a public URL to send transaction proposals. The file will not contain private
# information reserved for members of the organization, such as admin key and certificate,
# fabric-ca registrar enroll ID and secret, etc.
Org2:
org2:
mspid: Org2MSP

# This org's MSP store (absolute path or relative to client.cryptoconfig)
Expand Down
4 changes: 2 additions & 2 deletions pkg/client/resmgmt/testdata/ccproposal_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ version: 1.0.0
client:

# Default organisation
organization: Org1
organization: org1

logging:
level: info
Expand Down Expand Up @@ -81,7 +81,7 @@ channels:
eventSource: false

organizations:
Org1:
org1:
mspid: Org1MSP

# Needed to load users crypto keys and certs for this org (absolute path or relative to global crypto path, DEV mode)
Expand Down
4 changes: 2 additions & 2 deletions pkg/client/resmgmt/testdata/event_source_missing_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ version: 1.0.0
client:

# Default organisation
organization: Org1
organization: org1

logging:
level: info
Expand Down Expand Up @@ -73,7 +73,7 @@ channels:
eventSource: false

organizations:
Org1:
org1:
mspid: Org1MSP

# Needed to load users crypto keys and certs for this org (absolute path or relative to global crypto path, DEV mode)
Expand Down
4 changes: 2 additions & 2 deletions pkg/client/resmgmt/testdata/invalidchorderer_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ version: 1.0.0

client:

organization: Org1
organization: org1

logging:
level: info
Expand Down Expand Up @@ -44,7 +44,7 @@ channels:
- invalid.example.com

organizations:
Org1:
org1:
mspid: Org1MSP

# Needed to load users crypto keys and certs for this org (absolute path or relative to global crypto path, DEV mode)
Expand Down
4 changes: 2 additions & 2 deletions pkg/client/resmgmt/testdata/invalidorderer_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ version: 1.0.0

client:

organization: Org1
organization: org1

logging:
level: info
Expand Down Expand Up @@ -43,7 +43,7 @@ channels:
- orderer.example.com

organizations:
Org1:
org1:
mspid: Org1MSP

# Needed to load users crypto keys and certs for this org (absolute path or relative to global crypto path, DEV mode)
Expand Down
4 changes: 2 additions & 2 deletions pkg/client/resmgmt/testdata/noorderer_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ version: 1.0.0

client:

organization: Org1
organization: org1

logging:
level: info
Expand All @@ -38,7 +38,7 @@ client:


organizations:
Org1:
org1:
mspid: Org1MSP

# Needed to load users crypto keys and certs for this org (absolute path or relative to global crypto path, DEV mode)
Expand Down
1 change: 1 addition & 0 deletions pkg/core/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ func (c *Config) Client() (*core.ClientConfig, error) {
}
client := config.Client

client.Organization = strings.ToLower(client.Organization)
client.TLSCerts.Path = SubstPathVars(client.TLSCerts.Path)
client.TLSCerts.Client.Key.Path = SubstPathVars(client.TLSCerts.Client.Key.Path)
client.TLSCerts.Client.Cert.Path = SubstPathVars(client.TLSCerts.Client.Cert.Path)
Expand Down
2 changes: 1 addition & 1 deletion pkg/core/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var configImpl *Config

const (
org0 = "org0"
org1 = "Org1"
org1 = "org1"
configTestFilePath = "testdata/config_test.yaml"
configEmptyTestFilePath = "testdata/empty.yaml"
configPemTestFilePath = "testdata/config_test_pem.yaml"
Expand Down
6 changes: 3 additions & 3 deletions pkg/core/config/testdata/config_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ client:

# Which organization does this application instance belong to? The value must be the name of an org
# defined under "organizations"
organization: Org1
organization: org1

logging:
level: info
Expand Down Expand Up @@ -185,7 +185,7 @@ channels:
# list of participating organizations in this network
#
organizations:
Org1:
org1:
mspid: Org1MSP

# This org's MSP store (absolute path or relative to client.cryptoconfig)
Expand Down Expand Up @@ -219,7 +219,7 @@ organizations:
# peers with a public URL to send transaction proposals. The file will not contain private
# information reserved for members of the organization, such as admin key and certificate,
# fabric-ca registrar enroll ID and secret, etc.
Org2:
org2:
mspid: Org2MSP

# This org's MSP store (absolute path or relative to client.cryptoconfig)
Expand Down
6 changes: 3 additions & 3 deletions pkg/core/config/testdata/config_test_embedded_pems.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ client:

# Which organization does this application instance belong to? The value must be the name of an org
# defined under "organizations"
organization: Org1
organization: org1

logging:
level: info
Expand Down Expand Up @@ -173,7 +173,7 @@ channels:
# list of participating organizations in this network
#
organizations:
Org1:
org1:
mspid: Org1MSP

# Needed to load users crypto keys and certs for this org (absolute path or relative to global crypto path, DEV mode)
Expand Down Expand Up @@ -291,7 +291,7 @@ organizations:
# peers with a public URL to send transaction proposals. The file will not contain private
# information reserved for members of the organization, such as admin key and certificate,
# fabric-ca registrar enroll ID and secret, etc.
Org2:
org2:
mspid: Org2MSP

users:
Expand Down
6 changes: 3 additions & 3 deletions pkg/core/config/testdata/config_test_pem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ client:

# Which organization does this application instance belong to? The value must be the name of an org
# defined under "organizations"
organization: Org1
organization: org1

logging:
level: info
Expand Down Expand Up @@ -165,7 +165,7 @@ channels:
# list of participating organizations in this network
#
organizations:
Org1:
org1:
mspid: Org1MSP

# Needed to load users crypto keys and certs for this org (absolute path or relative to global crypto path, DEV mode)
Expand Down Expand Up @@ -199,7 +199,7 @@ organizations:
# peers with a public URL to send transaction proposals. The file will not contain private
# information reserved for members of the organization, such as admin key and certificate,
# fabric-ca registrar enroll ID and secret, etc.
Org2:
org2:
mspid: Org2MSP

# Needed to load users crypto keys and certs for this org (absolute path or relative to global crypto path, DEV mode)
Expand Down
2 changes: 1 addition & 1 deletion pkg/fabsdk/fabsdk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
const (
sdkConfigFile = "../../test/fixtures/config/config_test.yaml"
sdkValidClientUser = "User1"
sdkValidClientOrg1 = "Org1"
sdkValidClientOrg1 = "org1"
)

func TestNewGoodOpt(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions pkg/fabsdk/testdata/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ description: "The network to be in if you want to stay in the global trade busin
version: 1.0.0

client:
organization: Org2
organization: org2

logging:
level: info
Expand Down Expand Up @@ -76,7 +76,7 @@ channels:

organizations:

Org2:
org2:
mspid: Org2MSP

# Needed to load users crypto keys and certs for this org (absolute path or relative to global crypto path, DEV mode)
Expand Down
4 changes: 2 additions & 2 deletions pkg/msp/testdata/config_embedded_registrar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ client:

# Which organization does this application instance belong to? The value must be the name of an org
# defined under "organizations"
organization: Org1
organization: org1

logging:
level: info
Expand Down Expand Up @@ -161,7 +161,7 @@ channels:
# list of participating organizations in this network
#
organizations:
Org1:
org1:
mspid: Org1MSP

users:
Expand Down
4 changes: 2 additions & 2 deletions pkg/msp/testdata/config_no_ca.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ client:

# Which organization does this application instance belong to? The value must be the name of an org
# defined under "organizations"
organization: Org1
organization: org1

logging:
level: info
Expand Down Expand Up @@ -160,7 +160,7 @@ channels:
# list of participating organizations in this network
#
organizations:
Org1:
org1:
mspid: Org1MSP

# This org's MSP store (absolute path or relative to client.cryptoconfig)
Expand Down
4 changes: 2 additions & 2 deletions pkg/msp/testdata/config_no_registrar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ client:

# Which organization does this application instance belong to? The value must be the name of an org
# defined under "organizations"
organization: Org1
organization: org1

logging:
level: info
Expand Down Expand Up @@ -161,7 +161,7 @@ channels:
# list of participating organizations in this network
#
organizations:
Org1:
org1:
mspid: Org1MSP

# This org's MSP store (absolute path or relative to client.cryptoconfig)
Expand Down
6 changes: 3 additions & 3 deletions pkg/msp/testdata/config_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ client:

# Which organization does this application instance belong to? The value must be the name of an org
# defined under "organizations"
organization: Org1
organization: org1

logging:
level: info
Expand Down Expand Up @@ -167,7 +167,7 @@ channels:
# list of participating organizations in this network
#
organizations:
Org1:
org1:
mspid: Org1MSP

# This org's MSP store (absolute path or relative to client.cryptoconfig)
Expand Down Expand Up @@ -201,7 +201,7 @@ organizations:
# peers with a public URL to send transaction proposals. The file will not contain private
# information reserved for members of the organization, such as admin key and certificate,
# fabric-ca registrar enroll ID and secret, etc.
Org2:
org2:
mspid: Org2MSP

# This org's MSP store (absolute path or relative to client.cryptoconfig)
Expand Down
6 changes: 3 additions & 3 deletions pkg/msp/testdata/config_wrong_url.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ client:

# Which organization does this application instance belong to? The value must be the name of an org
# defined under "organizations"
organization: Org1
organization: org1

logging:
level: info
Expand Down Expand Up @@ -167,7 +167,7 @@ channels:
# list of participating organizations in this network
#
organizations:
Org1:
org1:
mspid: Org1MSP

# This org's MSP store (absolute path or relative to client.cryptoconfig)
Expand Down Expand Up @@ -201,7 +201,7 @@ organizations:
# peers with a public URL to send transaction proposals. The file will not contain private
# information reserved for members of the organization, such as admin key and certificate,
# fabric-ca registrar enroll ID and secret, etc.
Org2:
org2:
mspid: Org2MSP

# This org's MSP store (absolute path or relative to client.cryptoconfig)
Expand Down
6 changes: 3 additions & 3 deletions test/fixtures/config/config_pkcs11_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ version: 1.0.0
client:
# Which organization does this application instance belong to? The value must be the name of an org
# defined under "organizations"
organization: Org1
organization: org1

logging:
level: info
Expand Down Expand Up @@ -190,7 +190,7 @@ channels:
# list of participating organizations in this network
#
organizations:
Org1:
org1:
mspid: Org1MSP

# Needed to load users crypto certs for this org
Expand Down Expand Up @@ -258,7 +258,7 @@ organizations:
# peers with a public URL to send transaction proposals. The file will not contain private
# information reserved for members of the organization, such as admin key and certificate,
# fabric-ca registrar enroll ID and secret, etc.
Org2:
org2:
mspid: Org2MSP

users:
Expand Down
Loading

0 comments on commit aaeebdd

Please sign in to comment.