[ARVADOS] updated: b2da02379210a1d43914b36f412f76e639203a81

Git user git at public.curoverse.com
Mon Jan 2 15:15:31 EST 2017


Summary of changes:
 services/keepstore/azure_blob_volume_test.go | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

       via  b2da02379210a1d43914b36f412f76e639203a81 (commit)
      from  590e8c5e913576f947a7e28e45166770a8bd619e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit b2da02379210a1d43914b36f412f76e639203a81
Author: Tom Clegg <tom at curoverse.com>
Date:   Mon Jan 2 15:13:45 2017 -0500

    10682: Avoid invoking special "test mode" behavior in Azure SDK.
    
    Restores compatibility with latest azure-sdk-for-go.
    
    refs #10682

diff --git a/services/keepstore/azure_blob_volume_test.go b/services/keepstore/azure_blob_volume_test.go
index 232382c..f4498f4 100644
--- a/services/keepstore/azure_blob_volume_test.go
+++ b/services/keepstore/azure_blob_volume_test.go
@@ -26,9 +26,12 @@ import (
 )
 
 const (
-	// The same fake credentials used by Microsoft's Azure emulator
-	emulatorAccountName = "devstoreaccount1"
-	emulatorAccountKey  = "Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw=="
+	// This cannot be the fake account name "devstoreaccount1"
+	// used by Microsoft's Azure emulator: the Azure SDK
+	// recognizes that magic string and changes its behavior to
+	// cater to the Azure SDK's own test suite.
+	fakeAccountName = "fakeAccountName"
+	fakeAccountKey  = "Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw=="
 )
 
 var azureTestContainer string
@@ -350,7 +353,7 @@ func NewTestableAzureBlobVolume(t TB, readonly bool, replication int) *TestableA
 		// Connect to stub instead of real Azure storage service
 		stubURLBase := strings.Split(azStub.URL, "://")[1]
 		var err error
-		if azClient, err = storage.NewClient(emulatorAccountName, emulatorAccountKey, stubURLBase, storage.DefaultAPIVersion, false); err != nil {
+		if azClient, err = storage.NewClient(fakeAccountName, fakeAccountKey, stubURLBase, storage.DefaultAPIVersion, false); err != nil {
 			t.Fatal(err)
 		}
 		container = "fakecontainername"

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list