- Node application which need redis to run functional test cases.
- docker-compose is used to spin redis container as initial setup from within test case
- have a docker-compose.yml file with redis service
FROM docker
docker exec -ti <container id|name> bash
kill -2 $(pidof node)
Creat a package-info file in the models package and put the following contents in there:
@org.hibernate.annotations.TypeDef(name = "jsonb", typeClass = JsonBinaryType.class)
package com.ourproject.model;
import com.vladmihalcea.hibernate.type.json.JsonBinaryType;
I used JsonBinaryType
in hibernate-types-52
library.
Then in the entity class, I removed columnDefinition="jsonb"
from the @Column
and only used @Type(type = "jsonb")
@Bean | |
public RestTemplate restTemplate(final LauHeaderInterceptor lauHeaderInterceptor) { | |
final RestTemplate restTemplate = new RestTemplate(); | |
restTemplate.setMessageConverters(Collections.singletonList(new MappingJackson2HttpMessageConverter())); | |
restTemplate.setErrorHandler(new ResponseErrorHandler() { | |
@Override | |
public boolean hasError(final ClientHttpResponse response) throws IOException { | |
return false; | |
} |
apply plugin: 'jsonschema2pojo' | |
// Each configuration is set to the default value | |
jsonSchema2Pojo { | |
// Whether to generate builder-style methods of the form withXxx(value) (that return this), | |
// alongside the standard, void-return setters. | |
generateBuilders = true | |
// Location of the JSON Schema file(s). This may refer to a single file or a directory of files. | |
source = files("${sourceSets.main.output.resourcesDir}/schema") |
<service> | |
<id>gpb-swift-tracker-bridge</id> | |
<name>GpbSwiftTrackerBridge</name> | |
<description>This runs Spring Boot as a Service.</description> | |
<executable>java</executable> | |
<arguments>-Xmx256m -jar "gpb-swift-tracker-bridge.jar" --server.port=9192 --spring-config-location=file://C://properties/gpb-swift-tracker-bridge.yaml</arguments> | |
<logmode>rotate</logmode> | |
<onfailure action="restart" delay="10 sec"/> | |
</service> |
5097de91d0846c5973878740dc6982d377cc48930bd9612e06703ea6e72bc1728e86f9607d748ca8066023860b95b05f5cbdba6efcaf58dfae49afc9f9d2917b |
#!groovy | |
import groovy.json.JsonOutput | |
import groovy.json.JsonSlurper | |
/* | |
Please make sure to add the following environment variables: | |
HEROKU_PREVIEW=<your heroku preview app> | |
HEROKU_PREPRODUCTION=<your heroku pre-production app> | |
HEROKU_PRODUCTION=<your heroku production app> |
import javax.net.ssl.SSLSocket; | |
import javax.net.ssl.SSLSocketFactory; | |
import java.io.*; | |
/** Establish a SSL connection to a host and port, writes a byte and | |
* prints the response. See | |
* http://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services | |
*/ | |
public class SSLPoke { | |
public static void main(String[] args) { |