X from where you are would you believe
Logic the facts and nature say thus
Are you so angry when I so insist
I can only from another X exist
Y or Y are you too the stubborn same
How dare you switch in all my cells
Do they say you are slowly fading?
Man to man keeps on evading
Who was first Eve or Adam to even care
Chance is certain the ratio is one to one
Nurture looks and shies away
Creation my feelings has nothing to say
The thread the grain of mitos of chondrion Energy for…
In the night the bats do fly
They need no eyes to see
All around is all but sound
Morning comes the day does break
See them hanging on the tree
Heads all bowed to the ground
In the night the owl hoots
Echoes chill the silent woods
Wisely hear as it speaks
In the night the rats might hide
From yellow eyes burning bright
Those talons sharp that it seeks
In the night the blind can’t see
The road the path the narrow way
The darkness covers and all it hides
In the night a light does shine Breaking…
Ages ago, someplace far, a different world and different sense. We would play marbles in the dust. Make some hole and with hand and finger try and hit the opponents one. One hand, two, fire.
An African sun and dry earth was made for children to play and run. Those marbles were everything, to possess one a sense of worth, even the cracked one, the one that is hardly round, would be worth owning a treasured trophy of a victory of an ability.
There were those not given to reading, who nevertheless had other gifts enviable traits, so one like…
The lights were bright looking up
You will feel a slow icy tingling
Up your arm and around your neck
I was awake just enough to say OK
Didn’t have time to say thank you good bye
I was gone gone gone
Next second, minute, hour in another place
The work was done the deed the need
I awoke the room had changed
O Anesthesia, how beautiful you are
I had no pain, when cut or wounded
No sound, no sight, no thought, no feeling
Time stood still, your hours passed
In a twinkling of an eye
No memory no…
Wiremock http://wiremock.org/, is a great tool to mock out real REST service dependencies to improve your integration testing without needing the full interdependent system in place.
In this specific example we look at how to very easily mock a REST call returning a PDF file using the execute method of the Spring Rest Template and basic wiremock constructs.
The code will be written using spring boot and gradle.
plugins { id 'application' id 'org.springframework.boot' version '2.3.2.RELEASE' id 'io.spring.dependency-management' version '1.0.8.RELEASE' } mainClassName="org.example.wiremock.PDFClient" group 'org.example' version '1.0-SNAPSHOT' sourceCompatibility = '1.8' repositories { mavenCentral() } dependencies { implementation 'org.springframework.boot:spring-boot-starter-web:2.3.2.RELEASE' testImplementation 'org.springframework.boot:spring-boot-starter-test:2.3.2.RELEASE' testImplementation…
Previously we ran a service using Knative Server and kicked it off with a http request.
Here we will write our own Knative services that act on events a listener and a sender both in Java using Spring Boot.
Docker Desktop (macos) 2.3.03
K8s 1.16.5
Istio 1.6.4
From https://knative.dev/development/install/any-kubernetes-cluster/#installing-the-eventing-component
Install the eventing components:
kubectl apply — filename https://github.com/knative/eventing/releases/download/v0.16.0/eventing-crds.yaml
customresourcedefinition.apiextensions.k8s.io/apiserversources.sources.knative.dev created
customresourcedefinition.apiextensions.k8s.io/brokers.eventing.knative.dev created
customresourcedefinition.apiextensions.k8s.io/channels.messaging.knative.dev created
etckubectl apply — filename https://github.com/knative/eventing/releases/download/v0.16.0/eventing-core.yaml
namespace/knative-eventing created serviceaccount/eventing-controller created clusterrolebinding.rbac.authorization.k8s.io/eventing-controller created clusterrolebinding.rbac.authorization.k8s.io/eventing-controller-resolver created clusterrolebinding.rbac.authorization.k8s.io/eventing-controller-source-observer created clusterrolebinding.rbac.authorization.k8s.io/eventing-controller-sources-controller created clusterrolebinding.rbac.authorization.k8s.io/eventing-controller-manipulator created serviceaccount/pingsource-mt-adapter created clusterrolebinding.rbac.authorization.k8s.io/knative-eventing-pingsource-mt-adapter created serviceaccount/eventing-webhook created…
AGCT to IO