Skip to content

Improvements#4

Open
alabotski wants to merge 9 commits into
masterfrom
improvements
Open

Improvements#4
alabotski wants to merge 9 commits into
masterfrom
improvements

Conversation

@alabotski

Copy link
Copy Markdown
Contributor

No description provided.

@ghost

ghost commented Feb 17, 2020

Copy link
Copy Markdown

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.

@AlexOreshkevich AlexOreshkevich left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
Contributor Author

@alabotski

Copy link
Copy Markdown
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

codecov Bot commented Feb 18, 2020

Copy link
Copy Markdown

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

@AlexOreshkevich AlexOreshkevich left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@AlexOreshkevich

Copy link
Copy Markdown
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

Comment thread README.md
* http://localhost:8090/department/info
* http://localhost:8090/organization/info
### Swagger
- http://localhost:8090/swagger-ui.html

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment thread README.md
```
$ heroku addons:create mongolab:sandbox
```
- Deploy code

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment thread README.md
* http://localhost:8090/department/info
* http://localhost:8090/organization/info
### Swagger
- http://localhost:8090/swagger-ui.html

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment thread README.md
### Test microservice status
- http://localhost:8090/employeeEntity/info
- http://localhost:8090/department/info
- http://localhost:8090/organization/info

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment thread README.md
* http://localhost:8090/swagger-ui.html
## REST API exposed
### Eureka
- http://localhost:8761/

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment thread README.md
* http://localhost:8090/department/graphiql

Test query:
- http://localhost:8090/department/graphiql

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment thread README.md
* http://localhost:8090/department/graphiql

Test query:
- http://localhost:8090/department/graphiql

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment thread README.md
```
$ 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
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment thread README.md
```
$ heroku login
```
- Create a new application on Heroku

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment thread README.md
```
$ git push heroku master
```
- Look at your application logs to see what is happening behind the scenes.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment thread README.md
* http://localhost:8090/mock
### Test microservice status
- http://localhost:8090/employeeEntity/info
- http://localhost:8090/department/info

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment thread README.md
## GraphiQL
* http://localhost:8090/employee/graphiql
### Generate mock data
- http://localhost:8090/mock

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment thread README.md
1. `./gradlew clean bootJar jibDockerBuild`
2. `docker-compose up`
## Prerequisites
- OpenJDK 12.0.2 or higher

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment thread README.md

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment thread README.md
* http://localhost:8090/swagger-ui.html
## REST API exposed
### Eureka
- http://localhost:8761/

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment thread README.md
## GraphiQL
* http://localhost:8090/employee/graphiql
### Generate mock data
- http://localhost:8090/mock

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment thread README.md
* http://localhost:8090/organization/graphiql

Test query:
- http://localhost:8090/organization/graphiql

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment thread README.md
```
$ heroku logs
```
- If your application deploys without timing out then open it as follows.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment thread README.md
## Generate mock data
* http://localhost:8090/mock
### Test microservice status
- http://localhost:8090/employeeEntity/info

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment thread README.md
* http://localhost:8090/organization/graphiql

Test query:
- http://localhost:8090/organization/graphiql

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment thread README.md
* http://localhost:8090/mock
### Test microservice status
- http://localhost:8090/employeeEntity/info
- http://localhost:8090/department/info

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment thread README.md
### Test microservice status
- http://localhost:8090/employeeEntity/info
- http://localhost:8090/department/info
- http://localhost:8090/organization/info

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment thread README.md
```

## Heroku setup
- Login to your heroku account from CLI

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment thread README.md

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment thread README.md
## Generate mock data
* http://localhost:8090/mock
### Test microservice status
- http://localhost:8090/employeeEntity/info

Copy link
Copy Markdown
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.

2 participants