From 219b45e7d061b49e23afc358be9a4bb9171895a9 Mon Sep 17 00:00:00 2001 From: Tom Gardham-Pallister Date: Wed, 15 Feb 2017 07:51:19 +0000 Subject: [PATCH] updated acceptance test assertion --- src/Ocelot/Controllers/ReRoutesController.cs | 1 + test/Ocelot.AcceptanceTests/AdministrationTests.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Ocelot/Controllers/ReRoutesController.cs b/src/Ocelot/Controllers/ReRoutesController.cs index 0b02c796..4304d4b1 100644 --- a/src/Ocelot/Controllers/ReRoutesController.cs +++ b/src/Ocelot/Controllers/ReRoutesController.cs @@ -1,3 +1,4 @@ +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace Ocelot.Controllers diff --git a/test/Ocelot.AcceptanceTests/AdministrationTests.cs b/test/Ocelot.AcceptanceTests/AdministrationTests.cs index 5a76e458..44c4447e 100644 --- a/test/Ocelot.AcceptanceTests/AdministrationTests.cs +++ b/test/Ocelot.AcceptanceTests/AdministrationTests.cs @@ -36,6 +36,7 @@ namespace Ocelot.AcceptanceTests .And(x => _steps.GivenOcelotIsRunning()) .When(x => _steps.WhenIGetUrlOnTheApiGateway("/administration/reroutes")) .Then(x => _steps.ThenTheStatusCodeShouldBe(HttpStatusCode.OK)) + .And(x => _steps.ThenTheResponseBodyShouldBe("hi from re routes controller")) .BDDfy(); }