openshift-vertx-examples / vertx-crud-example-redhat Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Looking at the code for JdbcProductStore (along with testing curl requests in documentation [1]) it is apparent that the assumption is that both name and stock will always be sent in (either PUT or POST). If stock is not included, then validation breaks. I would have assumed the following behavior:
One question for Update is whether you can PUT just a stock quantity to the specific id. This would have a similar effect to just doing a PUT with name in that just the stock quantity is updated using either a fetch and update or just update strategy.
[1] https://appdev.openshift.io/docs/vertx-runtime.html#mission-crud-vertx section 3.3.6 Create and Update sections
Oddly enough, when all references to my-database in database.yaml are change to anything other than that, the verify Maven target is not successful based on not being able to connect to the database.
Rodneys-MacBook-Pro:vertx-crud-booster-redhat rruss$ .openshiftio/test.sh
imagestream.image.openshift.io "my-database" unchanged
deploymentconfig.apps.openshift.io "my-database" configured
service "my-database" unchanged
template.template.openshift.io "vertx-crud-booster" unchanged
--> Deploying template "myproject/vertx-crud-booster" to project myproject
vertx-crud-booster
---------
This template creates a Vert.x application intereacting with a database.
* With parameters:
* Source URL=https://github.com/openshiftio-vertx-boosters/vertx-crud-booster-redhat
* Source Branch=master
* Source Directory=.
* GitHub Webhook Secret=***secret*** # generated
--> Creating resources ...
error: imagestreams.image.openshift.io "crud-vertx" already exists
error: imagestreams.image.openshift.io "runtime-crud-vertx" already exists
error: buildconfigs.build.openshift.io "crud-vertx" already exists
error: secrets "my-database-secret" already exists
error: services "crud-vertx" already exists
error: deploymentconfigs.apps.openshift.io "crud-vertx" already exists
error: routes.route.openshift.io "crud-vertx" already exists
--> Failed
[ERROR] testCreatingWithNoPayload(io.openshift.example.OpenShiftIT) Time elapsed: 5.916 s <<< ERROR!
java.lang.NoClassDefFoundError: org/hamcrest/Matchers
at io.openshift.example.OpenShiftIT.testCreatingWithNoPayload(OpenShiftIT.java:150)
Caused by: java.lang.ClassNotFoundException: org.hamcrest.Matchers
at io.openshift.example.OpenShiftIT.testCreatingWithNoPayload(OpenShiftIT.java:150)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.