virtualGuestService, err = testhelpers.CreateVirtualGuestService() Expect(err).ToNot(HaveOccurred()) testhelpers.TIMEOUT = 35 * time.Minute testhelpers.POLLING_INTERVAL = 10 * time.Second }) Context("SoftLayer_Account#<getSshKeys, getVirtualGuests>", func() { It("returns an array of SoftLayer_Virtual_Guest objects", func() { virtualGuests, err := accountService.GetVirtualGuests() Expect(err).ToNot(HaveOccurred()) Expect(len(virtualGuests)).To(BeNumerically(">=", 0)) }) It("returns an array of SoftLayer_Security_Ssh_Keys objects", func() { sshKeys, err := accountService.GetSshKeys() Expect(err).ToNot(HaveOccurred()) Expect(len(sshKeys)).To(BeNumerically(">=", 0)) }) }) Context("SoftLayer_SecuritySshKey#CreateObject and SoftLayer_SecuritySshKey#DeleteObject", func() { It("creates the ssh key and verify it is present and then deletes it", func() { createdSshKey, _ := testhelpers.CreateTestSshKey() testhelpers.WaitForCreatedSshKeyToBePresent(createdSshKey.Id) sshKeyService, err := testhelpers.CreateSecuritySshKeyService() Expect(err).ToNot(HaveOccurred()) deleted, err := sshKeyService.DeleteObject(createdSshKey.Id) Expect(err).ToNot(HaveOccurred())