2017 © Pedro Peláez
 

library test

Test

image

bernardosecades/test

Test

  • Tuesday, September 26, 2017
  • by bernardosecades
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Purchase Test

CI Tests, (*1)

Run project in your local

docker-compose up -d, (*2)

You can check if all is running with:, (*3)

docker-compose ps, (*4)

Note: This will stop all containers and remove them (if you have some lock file with mysql problem):, (*5)

docker stop $(docker ps -a -q) docker rm $(docker ps -a -q), (*6)

BloomRPC:, (*7)

localhost:3333, (*8)

Load in BloomRPC the file proto/protobuf/api/purchase.proto:, (*9)

Demo, (*10)

Structure folder project

.docker: we have dockerfiles for each binary, in this case only have api dockerfile, the worker folder is an example if we had other binaries., (*11)

.github/workflows: we have the workflow test.yml with two jobs executing in the pipeline of github (execute in parallel: unit and e2e test), (*12)

cmd: we have the main files for each binary, in this case only have api, the worker folder is an example if we had other binaries., (*13)

platform: - k8s: here we have folder for kubernetes with helm chart files for integration and production environment. It is empty but is to show the structure of each microservice - local: here only we have the schema.sql loaded in docker-compose to use in local environment and in the pipeline of github., (*14)

proto: we have proto file to define contracts, they are located in proto/protobuf and the folder proto/go contains protocol buffers compiled to go language., (*15)

internal: we have controllers for grpc purchase service and the package purchase. As well we have kit package with helpers to work with uuids and load fixtures in E2E/Integration tests., (*16)

Makefile

makefile help, (*17)

makefile test-unit: execute inside of container test with tag: unit., (*18)

makefile test-e2e: execute inside of container test with tag: e2e., (*19)

makefile test-all: execute inside of container test with tag: unit and e2e., (*20)

makefile lint: execut linter with fix to go language., (*21)

Compile protocol buffers

we have the folder proto, this folder can be in other repository and use it like dependency but to simplify we have all in the same repository., (*22)

Read readme file: README.md, (*23)

Inside of the folder proto we have a Makefile so to compile the purchase.proto file:, (*24)

cd proto make proto, (*25)

And this will generate the folder proto/go/protobuf/api with file purchase.pb.go., (*26)

Note: in this case we generate to go language but we can modify the Makefile to compile for java, phyton, ..., (*27)

The Versions

26/09 2017

dev-qa-feature-2

dev-qa-feature-2

Test

  Sources   Download

MIT

The Development Requires

by Avatar bernardosecades

26/09 2017

dev-feature-2

dev-feature-2

Test

  Sources   Download

MIT

The Development Requires

by Avatar bernardosecades

26/09 2017

dev-qa-feature-1

dev-qa-feature-1

Test

  Sources   Download

MIT

The Development Requires

by Avatar bernardosecades

26/09 2017

dev-feature-1

dev-feature-1

Test

  Sources   Download

MIT

The Development Requires

by Avatar bernardosecades

25/09 2017

dev-sprint-1

dev-sprint-1

Test

  Sources   Download

MIT

The Development Requires

by Avatar bernardosecades

07/04 2017

dev-master

9999999-dev

Test

  Sources   Download

MIT

The Development Requires

by Avatar bernardosecades