Skip to content

Instantly share code, notes, and snippets.

View richteri's full-sized avatar

István Richter richteri

View GitHub Profile
@richteri
richteri / n8n-kubernetes-manifest.yaml
Last active February 8, 2021 17:03
N8n on Kubernetes
apiVersion: v1
kind: Secret
metadata:
name: postgresql
stringData:
db-user: postgres
db-password: postgres
---
apiVersion: v1
kind: ConfigMap
[
{
"id": "xxx",
"subject": "Title of the issue",
"recommendedAction": "Long text that might span over multiple sections",
"priority": 1,
"severity": 2,
"work": { // is this what we call currently "holder"? yes
"id": "xxx",
"name": "xxx"
@richteri
richteri / powermockito-kb.java
Last active January 17, 2017 10:26
Snippets for Testing Legacy Code with PowerMockito
//---------------
// The @RunWith(PowerMockRunner.class) annotation tells jUnit
// that we are using an extension to handle testing of this class.
// This tells jUnit to use this test runner instead of its own test runner.
@RunWith(PowerMockRunner.class)
// The @PrepareForTest({IdentityUtilities.class, Person.class}) serves multiple purposes here.
// The first is to tell PowerMock that we need to do some preparation
// of the classes to instrument them for our testing. Classes defined using this annotation
// are typically those that needs to be byte-code manipulated. This includes final classes,
@richteri
richteri / JBehave-mapped-methods.java
Last active August 29, 2015 14:07
JBehave maps textual steps to Java methods via CandidateSteps. The scenario writer need only provide annotated methods that match, by regex patterns, the textual steps.
public class FormTest {
@Steps
FormSteps endUser;
@Given("the user is on the form page")
public void givenTheUserIsOnTheFormPage() {
endUser.on_the_form_page();
}
@richteri
richteri / bdd-story-temaplate.txt
Last active November 7, 2021 12:10
BDD Story Template
Title (one line describing the story)
Narrative:
As a [role]
I want [feature]
So that [benefit]
Acceptance Criteria: (presented as Scenarios)
Scenario: Title