Skip to content

Commit 232897c

Browse files
Removed some bad unit tests that were failing since SPS runs them as root
1 parent ca60958 commit 232897c

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

plugin/commands/security/key_print_test.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,6 @@ var _ = Describe("Key print", func() {
8888
Expect(fakeUI.Outputs()).To(ContainSubstrings([]string{"notes"}))
8989
Expect(fakeUI.Outputs()).NotTo(ContainSubstrings([]string{"ssh-rsa djghtbtmfhgentongwfrdnglkhsdye"}))
9090
})
91-
It("return error", func() {
92-
err := testhelpers.RunCobraCommand(cliCommand.Command, "1234", "-f", "/root/key")
93-
Expect(err).To(HaveOccurred())
94-
Expect(err.Error()).To(ContainSubstring("Failed to write SSH key to file: /root/key."))
95-
})
9691
})
9792
})
9893
})

plugin/commands/virtual/create_test.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,6 @@ var _ = Describe("VS create", func() {
9797
})
9898
})
9999
Context("VS create with --export", func() {
100-
It("Failed to write file", func() {
101-
err := testhelpers.RunCobraCommand(cliCommand.Command, "-H", "vs-abc", "-D", "wilma.com", "-c", "2", "-m", "4096", "--datacenter", "dal10", "-o", "CENTOS", "--export", "/root/template")
102-
Expect(err).To(HaveOccurred())
103-
Expect(err.Error()).To(ContainSubstring("Failed to write virtual server template file to: /root/template."))
104-
})
105100
It("Success", func() {
106101
tmpFile, tmpErr := ioutil.TempFile(os.TempDir(), "create_tests-")
107102
if tmpErr != nil {

0 commit comments

Comments
 (0)