Skip to content

Commit

Permalink
Revert "Comment out failing tests"
Browse files Browse the repository at this point in the history
This reverts commit 492e2b9.
  • Loading branch information
ansd committed Nov 15, 2019
1 parent 3445627 commit c516634
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/rabbitmq-smoke-tests/tests/smoke_tests_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package smoke_tests

import (
"crypto/tls"
"fmt"
"net/http"

"rabbitmq-smoke-tests/tests/helper"

Expand Down Expand Up @@ -65,15 +67,15 @@ var _ = Describe("Smoke tests", func() {
Expect(helper.ReceiveMessage(appURL, queue)).To(Equal("foo"))
Expect(helper.ReceiveMessage(appURL, queue)).To(Equal("bar"))

// By("accessing the management dashboard")
// serviceKey := helper.GetServiceKey(serviceName, serviceKeyName)
//
// client := http.Client{Transport: &http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: true}}}
// resp, err := client.Get(serviceKey.DashboardUrl)
// Expect(err).NotTo(HaveOccurred())
//
// defer resp.Body.Close()
// Expect(resp.StatusCode).To(Equal(http.StatusOK))
By("accessing the management dashboard")
serviceKey := helper.GetServiceKey(serviceName, serviceKeyName)

client := http.Client{Transport: &http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: true}}}
resp, err := client.Get(serviceKey.DashboardUrl)
Expect(err).NotTo(HaveOccurred())

defer resp.Body.Close()
Expect(resp.StatusCode).To(Equal(http.StatusOK))
}
}

Expand Down

0 comments on commit c516634

Please sign in to comment.