[ARVADOS] updated: 1.3.0-168-ga27348943

Git user git at public.curoverse.com
Tue Jan 15 13:31:08 EST 2019


Summary of changes:
 lib/cloud/azure_test.go | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

       via  a27348943c6e35eee983d6a333eb6977394c3f13 (commit)
      from  6756ee790a6c685b96bc1ec80b67e7d6c94e9846 (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 a27348943c6e35eee983d6a333eb6977394c3f13
Author: Peter Amstutz <pamstutz at veritasgenetics.com>
Date:   Tue Jan 15 13:29:30 2019 -0500

    14324: Embed test public key instead of reading from file
    
    Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz at veritasgenetics.com>

diff --git a/lib/cloud/azure_test.go b/lib/cloud/azure_test.go
index 7dbafe617..f74688bb1 100644
--- a/lib/cloud/azure_test.go
+++ b/lib/cloud/azure_test.go
@@ -57,6 +57,8 @@ var _ = check.Suite(&AzureInstanceSetSuite{})
 
 type VirtualMachinesClientStub struct{}
 
+var testKey []byte = []byte(`ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDLQS1ExT2+WjA0d/hntEAyAtgeN1W2ik2QX8c2zO6HjlPHWXL92r07W0WMuDib40Pcevpi1BXeBWXA9ZB5KKMJB+ukaAu22KklnQuUmNvk6ZXnPKSkGxuCYvPQb08WhHf3p1VxiKfP3iauedBDM4x9/bkJohlBBQiFXzNUcQ+a6rKiMzmJN2gbL8ncyUzc+XQ5q4JndTwTGtOlzDiGOc9O4z5Dd76wtAVJneOuuNpwfFRVHThpJM6VThpCZOnl8APaceWXKeuwOuCae3COZMz++xQfxOfZ9Z8aIwo+TlQhsRaNfZ4Vjrop6ej8dtfZtgUFKfbXEOYaHrGrWGotFDTD example at example`)
+
 func (*VirtualMachinesClientStub) CreateOrUpdate(ctx context.Context,
 	resourceGroupName string,
 	VMName string,
@@ -140,13 +142,7 @@ func (*AzureInstanceSetSuite) TestCreate(c *check.C) {
 		c.Fatal("Error making provider", err)
 	}
 
-	f, err := os.Open("azconfig_sshkey.pub")
-	c.Assert(err, check.IsNil)
-
-	keybytes, err := ioutil.ReadAll(f)
-	c.Assert(err, check.IsNil)
-
-	pk, _, _, _, err := ssh.ParseAuthorizedKey(keybytes)
+	pk, _, _, _, err := ssh.ParseAuthorizedKey(testKey)
 	c.Assert(err, check.IsNil)
 
 	nodetoken, err := randutil.String(40, "abcdefghijklmnopqrstuvwxyz0123456789")

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list