[ARVADOS] updated: 1.2.0-37-g441b77d7a
Git user
git at public.curoverse.com
Thu Aug 23 15:22:34 EDT 2018
Summary of changes:
lib/dispatchcloud/azure_test.go | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
via 441b77d7a3fe7568b696fd0e88109e98ca51bbd4 (commit)
from a695e615b207f1cfe0cd1989e7b5f1b68c391329 (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 441b77d7a3fe7568b696fd0e88109e98ca51bbd4
Author: Peter Amstutz <pamstutz at veritasgenetics.com>
Date: Thu Aug 23 15:21:05 2018 -0400
13964: Don't panic running tests on stubs
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz at veritasgenetics.com>
diff --git a/lib/dispatchcloud/azure_test.go b/lib/dispatchcloud/azure_test.go
index 0c8c8d534..f10121984 100644
--- a/lib/dispatchcloud/azure_test.go
+++ b/lib/dispatchcloud/azure_test.go
@@ -31,6 +31,7 @@ func (*VirtualMachinesClientStub) CreateOrUpdate(ctx context.Context,
VMName string,
parameters compute.VirtualMachine) (result compute.VirtualMachine, err error) {
parameters.ID = &VMName
+ parameters.Name = &VMName
return parameters, nil
}
@@ -167,9 +168,12 @@ func (*AzureProviderSuite) TestDeleteFake(c *check.C) {
_, err = ap.(*AzureProvider).netClient.Delete(context.Background(), "fakefakefake", "fakefakefake")
- rq := err.(autorest.DetailedError).Original.(*azure.RequestError)
+ de, ok := err.(autorest.DetailedError)
+ if ok {
+ rq := de.Original.(*azure.RequestError)
- log.Printf("%v %q %q", rq.Response.StatusCode, rq.ServiceError.Code, rq.ServiceError.Message)
+ log.Printf("%v %q %q", rq.Response.StatusCode, rq.ServiceError.Code, rq.ServiceError.Message)
+ }
}
func (*AzureProviderSuite) TestWrapError(c *check.C) {
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list