@sig-network @conformance @release-1.19

Feature: Default backend

An Ingress with no rules sends all traffic to the single default backend. The default backend is part of the Ingress resource spec field `defaultBackend`. If none of the hosts or paths match the HTTP request in the Ingress objects, the traffic is routed to your default backend.

Scenarios
Status Progress

Passed

100.00%

Failed

0.00%
check_circle
Given 0s a new random namespace
check_circle
Given 5s an Ingress resource named default-backend with this spec: +Show Parameter
defaultBackend:
service:
name: echo-service
port:
number: 8080
check_circle
Then 5s The Ingress status shows the IP address or FQDN where it is exposed
check_circle
When 0s I send a GET request to http://my-host/
check_circle
Then 0s the response status-code must be 200
check_circle
And 0s the response must be served by the echo-service service
check_circle
And 0s the response proto must be HTTP/1.1
check_circle
And 0s the response headers must contain with matching
check_circle
And 0s the request method must be GET
check_circle
And 0s the request path must be
check_circle
And 0s the request proto must be HTTP/1.1
check_circle
And 0s the request headers must contain with matching
check_circle
Given 0s a new random namespace
check_circle
Given 5s an Ingress resource named default-backend with this spec: +Show Parameter
defaultBackend:
service:
name: echo-service
port:
number: 8080
check_circle
Then 5s The Ingress status shows the IP address or FQDN where it is exposed
check_circle
When 0s I send a GET request to http://my-host/sub-path
check_circle
Then 0s the response status-code must be 200
check_circle
And 0s the response must be served by the echo-service service
check_circle
And 0s the response proto must be HTTP/1.1
check_circle
And 0s the response headers must contain with matching
check_circle
And 0s the request method must be GET
check_circle
And 0s the request path must be sub-path
check_circle
And 0s the request proto must be HTTP/1.1
check_circle
And 0s the request headers must contain with matching
check_circle
Given 0s a new random namespace
check_circle
Given 5s an Ingress resource named default-backend with this spec: +Show Parameter
defaultBackend:
service:
name: echo-service
port:
number: 8080
check_circle
Then 5s The Ingress status shows the IP address or FQDN where it is exposed
check_circle
When 0s I send a POST request to http://some-host/
check_circle
Then 0s the response status-code must be 200
check_circle
And 0s the response must be served by the echo-service service
check_circle
And 0s the response proto must be HTTP/1.1
check_circle
And 0s the response headers must contain with matching
check_circle
And 0s the request method must be POST
check_circle
And 0s the request path must be
check_circle
And 0s the request proto must be HTTP/1.1
check_circle
And 0s the request headers must contain with matching
check_circle
Given 0s a new random namespace
check_circle
Given 5s an Ingress resource named default-backend with this spec: +Show Parameter
defaultBackend:
service:
name: echo-service
port:
number: 8080
check_circle
Then 5s The Ingress status shows the IP address or FQDN where it is exposed
check_circle
When 0s I send a PUT request to http:///resource
check_circle
Then 0s the response status-code must be 200
check_circle
And 0s the response must be served by the echo-service service
check_circle
And 0s the response proto must be HTTP/1.1
check_circle
And 0s the response headers must contain with matching
check_circle
And 0s the request method must be PUT
check_circle
And 0s the request path must be resource
check_circle
And 0s the request proto must be HTTP/1.1
check_circle
And 0s the request headers must contain with matching
check_circle
Given 0s a new random namespace
check_circle
Given 5s an Ingress resource named default-backend with this spec: +Show Parameter
defaultBackend:
service:
name: echo-service
port:
number: 8080
check_circle
Then 5s The Ingress status shows the IP address or FQDN where it is exposed
check_circle
When 0s I send a DELETE request to http://some-host/resource
check_circle
Then 0s the response status-code must be 200
check_circle
And 0s the response must be served by the echo-service service
check_circle
And 0s the response proto must be HTTP/1.1
check_circle
And 0s the response headers must contain with matching
check_circle
And 0s the request method must be DELETE
check_circle
And 0s the request path must be resource
check_circle
And 0s the request proto must be HTTP/1.1
check_circle
And 0s the request headers must contain with matching
check_circle
Given 0s a new random namespace
check_circle
Given 5s an Ingress resource named default-backend with this spec: +Show Parameter
defaultBackend:
service:
name: echo-service
port:
number: 8080
check_circle
Then 5s The Ingress status shows the IP address or FQDN where it is exposed
check_circle
When 0s I send a PATCH request to http://my-host/resource
check_circle
Then 0s the response status-code must be 200
check_circle
And 0s the response must be served by the echo-service service
check_circle
And 0s the response proto must be HTTP/1.1
check_circle
And 0s the response headers must contain with matching
check_circle
And 0s the request method must be PATCH
check_circle
And 0s the request path must be resource
check_circle
And 0s the request proto must be HTTP/1.1
check_circle
And 0s the request headers must contain with matching