-
Notifications
You must be signed in to change notification settings - Fork 709
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-5935] Fixes TestSRVServerInit and more on vagrant
This change simply uses a temp dir on a local volume before trying to change its access mode so that it can effectively be set to 000. With this changes the test passes: $ go test -v -run TestSRVServerInit === RUN TestSRVServerInit 2017/08/28 13:14:50 [DEBUG] CA Home Directory: /opt/gopath/src/github.com/hyperledger/fabric-ca/lib/rootDir ... --- PASS: TestSRVServerInit (0.30s) server_test.go:111: Current dir: . server_test.go:112: Current curd: /tmp/ServerInitStat202077287 server_test.go:119: Server.Init error: Failed to get server's home directory: stat .: permission denied PASS Patch-set #2: fixes similar problem with TestCAInit, TestCLIClientConfigStat, and TestCWBCAConfigStat Patch-set #3: makes sure to delete all temp files that were created by tests Patch-set #4: fixes file format Patch-set #5: improves error handling Patch-set #6: fixes error message that referenced wrong dir Patch-set #7: fixes yet another error cleaning up tmp file Change-Id: If2aa88d683df7997159442f1d0d9d678f21496f3 Signed-off-by: Arnaud J Le Hors <[email protected]> Signed-off-by: Allen Bailey <[email protected]>
- Loading branch information
Showing
4 changed files
with
120 additions
and
66 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
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