Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements #4

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Improvements #4

wants to merge 9 commits into from

Conversation

alabotski
Copy link
Contributor

No description provided.

@ghost
Copy link

ghost commented Feb 17, 2020

Congratulations 🍻. DeepCode analyzed your code in 0.103 seconds and we found no issues. Enjoy a moment of no bugs ☀️.

💬 This comment has been generated by the DeepCode bot, installed by the owner of the repository. The DeepCode bot protects your repository by detecting and commenting on security vulnerabilities or other critical issues.


☺️ If you want to provide feedback on our bot, here is how to contact us.

Copy link
Member

@AlexOreshkevich AlexOreshkevich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

codeCoverageReport was not added to gradle.build

@AlexOreshkevich
Copy link
Member

BUILD FAILED in 563ms
alexanders-iMac:Projects neo$ cd spring-graphql-microservice/
alexanders-iMac:spring-graphql-microservice neo$ gradle clean build
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details

> Task :employee-client:test

com.rednavis.employee.EmpolyeeGraphQlTest > testFindAll() FAILED
    java.lang.IllegalStateException
        Caused by: org.springframework.beans.factory.BeanCreationException
            Caused by: org.springframework.beans.BeanInstantiationException
                Caused by: javax.ws.rs.ProcessingException
                    Caused by: org.newsclub.net.unix.AFUNIXSocketException

1 test completed, 1 failed

> Task :employee-client:test FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':employee-client:test'.
> There were failing tests. See the report at: file:///Users/neo/Projects/spring-graphql-microservice/employee-client/build/reports/tests/test/index.html

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2m 8s
36 actionable tasks: 29 executed, 7 up-to-date

@alabotski
Copy link
Contributor Author

@alabotski
Copy link
Contributor Author

BUILD FAILED in 563ms
alexanders-iMac:Projects neo$ cd spring-graphql-microservice/
alexanders-iMac:spring-graphql-microservice neo$ gradle clean build
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details

> Task :employee-client:test

com.rednavis.employee.EmpolyeeGraphQlTest > testFindAll() FAILED
    java.lang.IllegalStateException
        Caused by: org.springframework.beans.factory.BeanCreationException
            Caused by: org.springframework.beans.BeanInstantiationException
                Caused by: javax.ws.rs.ProcessingException
                    Caused by: org.newsclub.net.unix.AFUNIXSocketException

1 test completed, 1 failed

> Task :employee-client:test FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':employee-client:test'.
> There were failing tests. See the report at: file:///Users/neo/Projects/spring-graphql-microservice/employee-client/build/reports/tests/test/index.html

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2m 8s
36 actionable tasks: 29 executed, 7 up-to-date

Can you give me more info?
As you can see jenkins has builed project without any errors

@codecov
Copy link

codecov bot commented Feb 18, 2020

Codecov Report

Merging #4 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master       #4   +/-   ##
=========================================
  Coverage     15.94%   15.94%           
  Complexity       22       22           
=========================================
  Files            29       29           
  Lines           207      207           
=========================================
  Hits             33       33           
  Misses          174      174

@AlexOreshkevich AlexOreshkevich requested review from AlexOreshkevich and removed request for ashalak March 3, 2020 12:26
Copy link
Member

@AlexOreshkevich AlexOreshkevich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@AlexOreshkevich
Copy link
Member

Codacy Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 21
- Added 26
           

Complexity increasing per file
==============================
- core/src/test/java/com/rednavis/core/CoreModuleTest.java  1
- organization-client/src/test/java/com/rednavis/organization/OrganizationApplicationTest.java  1
- department-client/src/test/java/com/rednavis/department/DepartmentApplicationTest.java  1
- employee-client/src/test/java/com/rednavis/employee/MongoDbContainer.java  1
- discovery-service/src/test/java/com/rednavis/discovery/DiscoveryApplicationTest.java  1
- zuul-service/src/test/java/com/rednavis/zuul/ZuulApplicationTest.java  1
         

See the complete overview on Codacy

* http://localhost:8090/department/info
* http://localhost:8090/organization/info
### Swagger
- http://localhost:8090/swagger-ui.html
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

```
$ heroku addons:create mongolab:sandbox
```
- Deploy code
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* http://localhost:8090/department/info
* http://localhost:8090/organization/info
### Swagger
- http://localhost:8090/swagger-ui.html
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

### Test microservice status
- http://localhost:8090/employeeEntity/info
- http://localhost:8090/department/info
- http://localhost:8090/organization/info
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* http://localhost:8090/swagger-ui.html
## REST API exposed
### Eureka
- http://localhost:8761/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* http://localhost:8090/department/graphiql

Test query:
- http://localhost:8090/department/graphiql
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* http://localhost:8090/department/graphiql

Test query:
- http://localhost:8090/department/graphiql
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

```
$ heroku apps:create
```
- Add a MongoDB database to your Heroku application with MongoLab. Note that your Heroku account must have a credit card attached in order to use free add-ons other than the PostgreSQL and MySQL add-ons.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

```
$ heroku login
```
- Create a new application on Heroku
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

```
$ git push heroku master
```
- Look at your application logs to see what is happening behind the scenes.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* http://localhost:8090/mock
### Test microservice status
- http://localhost:8090/employeeEntity/info
- http://localhost:8090/department/info
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

## GraphiQL
* http://localhost:8090/employee/graphiql
### Generate mock data
- http://localhost:8090/mock
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1. `./gradlew clean bootJar jibDockerBuild`
2. `docker-compose up`
## Prerequisites
- OpenJDK 12.0.2 or higher
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


Test query:
### GraphiQL
- http://localhost:8090/employee/graphiql
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* http://localhost:8090/swagger-ui.html
## REST API exposed
### Eureka
- http://localhost:8761/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

## GraphiQL
* http://localhost:8090/employee/graphiql
### Generate mock data
- http://localhost:8090/mock
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* http://localhost:8090/organization/graphiql

Test query:
- http://localhost:8090/organization/graphiql
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

```
$ heroku logs
```
- If your application deploys without timing out then open it as follows.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

## Generate mock data
* http://localhost:8090/mock
### Test microservice status
- http://localhost:8090/employeeEntity/info
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* http://localhost:8090/organization/graphiql

Test query:
- http://localhost:8090/organization/graphiql
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* http://localhost:8090/mock
### Test microservice status
- http://localhost:8090/employeeEntity/info
- http://localhost:8090/department/info
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

### Test microservice status
- http://localhost:8090/employeeEntity/info
- http://localhost:8090/department/info
- http://localhost:8090/organization/info
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

```

## Heroku setup
- Login to your heroku account from CLI
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


Test query:
### GraphiQL
- http://localhost:8090/employee/graphiql
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

## Generate mock data
* http://localhost:8090/mock
### Test microservice status
- http://localhost:8090/employeeEntity/info
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants