Skip to content

Commit

Permalink
185827634 - Remove HTTP listener test for PaaS product pages
Browse files Browse the repository at this point in the history
Description:
- Product pages which has been migrated to GitHub pages has a HTTP listener on port 80 which redirects to HTTPs
rather than connection refused which means the test is incorrect and can be removed
  • Loading branch information
nimalank7 committed Sep 12, 2023
1 parent c065b37 commit f99d0b3
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions platform-tests/acceptance/plain_http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,6 @@ var _ = Describe("plain HTTP requests", func() {
Expect(err.(net.Error).Timeout()).To(BeTrue(), "should timeout")
})
})

Describe("for the product page", func() {
It("has the connection refused", func() {
systemDomain := GetConfigFromEnvironment("SYSTEM_DNS_ZONE_NAME")
uri := fmt.Sprintf("www.%s:80", systemDomain)
_, err := net.DialTimeout("tcp", uri, CONNECTION_TIMEOUT)
Expect(err).To(HaveOccurred(), "should not connect")
Expect(err.(net.Error).Timeout()).To(BeTrue(), "should timeout")
})
})
})

Context("to the apps domain", func() {
Expand Down

0 comments on commit f99d0b3

Please sign in to comment.