Skip to content

Commit

Permalink
build: work in progress [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
khalilou88 committed May 29, 2023
1 parent 602bbcf commit 681731b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@
<artifactId>logback-classic</artifactId>
<scope>runtime</scope>
</dependency>
<% if(configFormat === '.yml') { -%>
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<scope>runtime</scope>
</dependency>
<% } -%>
<dependency>
<groupId>io.micronaut</groupId>
<artifactId>micronaut-http-client</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@
<artifactId>logback-classic</artifactId>
<scope>runtime</scope>
</dependency>
<% if(configFormat === '.yml') { -%>
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<scope>runtime</scope>
</dependency>
<% } -%>
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-kotlin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,7 @@ describe('nx-micronaut-maven e2e', () => {
const randomName = uniq('micronaut-maven-app-');
const appDir = 'deep/subdir';
const appName = `${normalizeName(appDir)}-${randomName}`;
//TODO
const port = 8181;
const port2 = 8080;

await runNxCommandAsync(
`generate @jnxplus/nx-micronaut-maven:application ${randomName} --tags e2etag,e2ePackage --directory ${appDir} --groupId com.jnxplus --projectVersion 1.2.3 --packaging war --configFormat .yml --port ${port}`
Expand Down Expand Up @@ -321,10 +319,10 @@ describe('nx-micronaut-maven e2e', () => {

const process = await runNxCommandUntil(
`serve ${appName} --args=""`,
(output) => output.includes(`Server Running: http://localhost:${port2}`)
(output) => output.includes(`Server Running: http://localhost:${port}`)
);

const dataResult = await getData(port2, '/hello');
const dataResult = await getData(port, '/hello');
expect(dataResult.status).toEqual(200);
expect(dataResult.message).toMatch('Hello World');

Expand Down Expand Up @@ -440,9 +438,6 @@ describe('nx-micronaut-maven e2e', () => {
const appName = `${appDir}-${randomName}`;
const port = 8383;

//TODO
const port2 = 8080;

await runNxCommandAsync(
`g @jnxplus/nx-micronaut-maven:app ${randomName} --t e2etag,e2ePackage --dir ${appDir} --groupId com.jnxplus --v 1.2.3 --packaging war --configFormat .yml --port ${port}`
);
Expand Down Expand Up @@ -505,10 +500,10 @@ describe('nx-micronaut-maven e2e', () => {

const process = await runNxCommandUntil(
`serve ${appName} --args=""`,
(output) => output.includes(`Server Running: http://localhost:${port2}`)
(output) => output.includes(`Server Running: http://localhost:${port}`)
);

const dataResult = await getData(port2, '/hello');
const dataResult = await getData(port, '/hello');
expect(dataResult.status).toEqual(200);
expect(dataResult.message).toMatch('Hello World');

Expand All @@ -526,9 +521,7 @@ describe('nx-micronaut-maven e2e', () => {
const appDir = 'subdir';
const appName = `${appDir}-${randomName}`;

//TODO
const port = 8484;
const port2 = 8080;

await runNxCommandAsync(
`g @jnxplus/nx-micronaut-maven:app ${randomName} --t e2etag,e2ePackage --dir ${appDir} --groupId com.jnxplus --simplePackageName --v 1.2.3 --packaging war --configFormat .yml --port ${port}`
Expand Down Expand Up @@ -592,10 +585,10 @@ describe('nx-micronaut-maven e2e', () => {

const process = await runNxCommandUntil(
`serve ${appName} --args=""`,
(output) => output.includes(`Server Running: http://localhost:${port2}`)
(output) => output.includes(`Server Running: http://localhost:${port}`)
);

const dataResult = await getData(port2, '/hello');
const dataResult = await getData(port, '/hello');
expect(dataResult.status).toEqual(200);
expect(dataResult.message).toMatch('Hello World');

Expand Down Expand Up @@ -1505,9 +1498,6 @@ describe('nx-micronaut-maven e2e', () => {
const appDir = 'deep/subdir';
const port = 8686;

//TODO
const port2 = 8080;

await runNxCommandAsync(
`generate @jnxplus/nx-micronaut-maven:application ${appName} --simpleName --tags e2etag,e2ePackage --directory ${appDir} --groupId com.jnxplus --projectVersion 1.2.3 --packaging war --configFormat .yml --port ${port}`
);
Expand Down Expand Up @@ -1572,10 +1562,10 @@ describe('nx-micronaut-maven e2e', () => {

const process = await runNxCommandUntil(
`serve ${appName} --args=""`,
(output) => output.includes(`Server Running: http://localhost:${port2}`)
(output) => output.includes(`Server Running: http://localhost:${port}`)
);

const dataResult = await getData(port2, '/hello');
const dataResult = await getData(port, '/hello');
expect(dataResult.status).toEqual(200);
expect(dataResult.message).toMatch('Hello World');

Expand Down

0 comments on commit 681731b

Please sign in to comment.