@@ -18,6 +18,7 @@ func TestAccKongRoute(t *testing.T) {
1818 Config : testCreateRouteConfig ,
1919 Check : resource .ComposeTestCheckFunc (
2020 testAccCheckKongRouteExists ("kong_route.route" ),
21+ resource .TestCheckResourceAttr ("kong_route.route" , "name" , "foo" ),
2122 resource .TestCheckResourceAttr ("kong_route.route" , "protocols.0" , "http" ),
2223 resource .TestCheckResourceAttr ("kong_route.route" , "methods.0" , "GET" ),
2324 resource .TestCheckResourceAttr ("kong_route.route" , "hosts.0" , "example.com" ),
@@ -31,6 +32,7 @@ func TestAccKongRoute(t *testing.T) {
3132 Config : testUpdateRouteConfig ,
3233 Check : resource .ComposeTestCheckFunc (
3334 testAccCheckKongRouteExists ("kong_route.route" ),
35+ resource .TestCheckResourceAttr ("kong_route.route" , "name" , "bar" ),
3436 resource .TestCheckResourceAttr ("kong_route.route" , "protocols.0" , "http" ),
3537 resource .TestCheckResourceAttr ("kong_route.route" , "protocols.1" , "https" ),
3638 resource .TestCheckResourceAttr ("kong_route.route" , "methods.0" , "GET" ),
@@ -156,6 +158,7 @@ resource "kong_service" "service" {
156158}
157159
158160resource "kong_route" "route" {
161+ name = "foo"
159162 protocols = [ "http" ]
160163 methods = [ "GET" ]
161164 hosts = [ "example.com" ]
@@ -174,6 +177,7 @@ resource "kong_service" "service" {
174177}
175178
176179resource "kong_route" "route" {
180+ name = "bar"
177181 protocols = [ "http", "https" ]
178182 methods = [ "GET", "POST" ]
179183 hosts = [ "example2.com" ]
0 commit comments