Skip to content

Instantly share code, notes, and snippets.

View johnboyes's full-sized avatar

John Boyes johnboyes

View GitHub Profile

Keybase proof

I hereby claim:

  • I am johnboyes on github.
  • I am boyesterous (https://keybase.io/boyesterous) on keybase.
  • I have a public key whose fingerprint is AE26 179A A977 9DF3 58E1 6372 71BA 0DBC 7900 2158

To claim this, I am signing this object:

@johnboyes
johnboyes / consumer-driven-contracts-in-gitlab.md
Last active February 26, 2022 07:31
Consumer-driven contracts in GitLab

Consumer-driven contracts in GitLab

Proposal on how to define the relationship between the consumers, contracts and providers

  • Group the contract GitLab projects together with the consumer project in a GitLab group or subgroup (as they are consumer-driven contracts, so their natural grouping is to be located with the consumer)
  • Follow 12 factor config principles by having GitLab environment-specific variables for a given provider's endpoints
    • for example, let's say we have a consumer GitLab project called petstore-web and a provider project called petstore-service
    • let's say also that we have many environments where we want to deploy these applications, and suppose these environments include:
      • an ephemeral environment per feature branch
  • trunk
@johnboyes
johnboyes / test_pytest_splinter_example.py
Created August 13, 2019 06:53
pytest-splinter example
import pytest
from splinter import Browser
from selenium import webdriver
# Fixtures
@pytest.fixture(scope="session")

Keybase proof

I hereby claim:

  • I am johnboyes on github.
  • I am johnboyes (https://keybase.io/johnboyes) on keybase.
  • I have a public key ASAbz-x7-f4bCHoTfW-4rkyRqyyCg4t1rwljqLOw9V-FVQo

To claim this, I am signing this object: