From f12d8ceee733bf5d13ed89bd8f94ed78c70d762a Mon Sep 17 00:00:00 2001 From: Pascal Grimaud Date: Fri, 12 Oct 2018 00:29:03 +0200 Subject: [PATCH] Fix expected files with Feign Configuration --- test/app.spec.js | 3 +++ test/utils/expected-files.js | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/test/app.spec.js b/test/app.spec.js index 6e83997d1b99..2c9f99615c15 100644 --- a/test/app.spec.js +++ b/test/app.spec.js @@ -1398,6 +1398,7 @@ describe('JHipster generator', () => { it('creates expected files with the gateway application type', () => { assert.file(expectedFiles.jwtServer); assert.file(expectedFiles.gateway); + assert.file(expectedFiles.feignConfig); assert.file(expectedFiles.eureka); assert.noFile(expectedFiles.consul); }); @@ -1434,6 +1435,7 @@ describe('JHipster generator', () => { it('creates expected files with the microservice application type', () => { assert.file(expectedFiles.jwtServer); assert.file(expectedFiles.microservice); + assert.file(expectedFiles.feignConfig); assert.file(expectedFiles.dockerServices); assert.file(expectedFiles.eureka); assert.noFile(expectedFiles.consul); @@ -1509,6 +1511,7 @@ describe('JHipster generator', () => { it('creates expected files with the microservice application type', () => { assert.file(expectedFiles.jwtServer); assert.file(expectedFiles.microservice); + assert.file(expectedFiles.feignConfig); assert.file(expectedFiles.microserviceGradle); assert.file(expectedFiles.eureka); assert.noFile(expectedFiles.consul); diff --git a/test/utils/expected-files.js b/test/utils/expected-files.js index 56bd90552a55..a6259e63f746 100644 --- a/test/utils/expected-files.js +++ b/test/utils/expected-files.js @@ -544,14 +544,17 @@ const expectedFiles = { `${SERVER_MAIN_SRC_DIR}com/mycompany/myapp/gateway/ratelimiting/RateLimitingFilter.java`, `${SERVER_MAIN_SRC_DIR}com/mycompany/myapp/web/rest/vm/RouteVM.java`, `${SERVER_MAIN_SRC_DIR}com/mycompany/myapp/web/rest/GatewayResource.java`, - `${SERVER_MAIN_SRC_DIR}com/mycompany/myapp/config/FeignConfiguration.java`, - `${SERVER_MAIN_SRC_DIR}com/mycompany/myapp/client/UserFeignClientInterceptor.java`, `${CLIENT_MAIN_SRC_DIR}app/admin/gateway/gateway.component.ts`, `${CLIENT_MAIN_SRC_DIR}app/admin/gateway/gateway.route.ts`, `${CLIENT_MAIN_SRC_DIR}app/admin/gateway/gateway.component.html`, `${CLIENT_MAIN_SRC_DIR}app/admin/gateway/gateway-routes.service.ts` ], + feignConfig: [ + `${SERVER_MAIN_SRC_DIR}com/mycompany/myapp/config/FeignConfiguration.java`, + `${SERVER_MAIN_SRC_DIR}com/mycompany/myapp/client/UserFeignClientInterceptor.java` + ], + microservice: [ `${SERVER_MAIN_RES_DIR}static/index.html`, `${SERVER_MAIN_SRC_DIR}com/mycompany/myapp/config/SecurityConfiguration.java`,