Skip to content

Commit

Permalink
Revert "Refactor entities (#33)" (#35)
Browse files Browse the repository at this point in the history
This reverts commit 7d9b658.
  • Loading branch information
felipehernandez authored Jul 19, 2020
1 parent 7d9b658 commit 9f65af6
Show file tree
Hide file tree
Showing 83 changed files with 914 additions and 1,704 deletions.
42 changes: 13 additions & 29 deletions .drone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,13 @@ steps:
- mkdir /folker
- mkdir /protos
- mkdir /testcode
- mkdir /credentials
- cp -a ./folker.py /
- cp -a ./folker/* /folker
- cp -a ./example/protos/* /protos
- cp -a ./example/code/* /testcode
- cp -a ./example/credentials/* /credentials
- cp -a ./folker.py /
- cp -a ./folker/* /folker/
- cp -a ./example/protos/* /protos/
- cp -a ./example/code/* /testcode/
- cd /
- sleep 5 # time for mockserver to start
- python3 folker.py -p test-profile -n 24 --trace
- python3 folker.py -t dummy -t print -n 2 --trace
- python3 folker.py -t dummy -t print --trace
- python3 folker.py -p test-profile -n 19 --trace

- name: bake-beta
image: plugins/docker
Expand All @@ -37,7 +33,7 @@ steps:
repo: folkertest/folkertest
tags:
- beta
- "0.3.${DRONE_BUILD_NUMBER}"
- "0.2.${DRONE_BUILD_NUMBER}"
when:
branch:
- development
Expand All @@ -53,42 +49,30 @@ steps:
repo: folkertest/folkertest
tags:
- latest
- "0.3.${DRONE_BUILD_NUMBER}"
- "0.2.${DRONE_BUILD_NUMBER}"
when:
branch:
- master
- release
event: push

services:
# http://mockserver:1080
- name: mockserver
# http://mockserver:1080
image: mockserver/mockserver:latest

# gcp-pubsub-emulator:8681
- name: gcp-pubsub-emulator
# gcp-pubsub-emulator:8681
image: messagebird/gcloud-pubsub-emulator:latest
environment:
PUBSUB_PROJECT1: "folker-test-gcp-test,a_topic:a_subscription"

# gcp-datastore-emulator:8684
- name: gcp-datastore-emulator
image: singularities/datastore-emulator
environment:
DATASTORE_PROJECT_ID: folker-test-gcp-test
DATASTORE_LISTEN_ADDRESS: 0.0.0.0:8684

# grpc-test-server:8682
- name: grpc-test-server
# grpc-test-server:8682
image: folkertest/grpc-test-server:latest

# graphql-test-server:8683
- name: graphql-test-server
# grpc-test-server:8682
image: folkertest/graphql-test-server:latest

# postgres-server:5432
- name: postgres-server
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: docker
POSTGRES_PASSWORD: docker
image: postgres
207 changes: 0 additions & 207 deletions doc/Documentation.md

This file was deleted.

12 changes: 0 additions & 12 deletions example/credentials/gcp/gcp-credentials.json

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ stages:
package: protos.TestProto
stub: TestServiceStub
method: hello
data: ${request}
data: request
save:
response: ${response}
log:
Expand All @@ -42,7 +42,7 @@ stages:
package: protos.TestProto
stub: TestServiceStub
method: hellos
data: ${request}
data: request
save:
response: ${response}
log:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,42 +5,29 @@ tags:
- pubsub

stages:
- name: setup
action:
type: VOID
save:
# host: localhost:8681
host: gcp-pubsub-emulator:8681

- name: check topic
action:
type: PUBSUB
method: TOPICS
host: ${host}
host: gcp-pubsub-emulator:8681
project: folker-test-gcp-test
assert:
- "'a_topic' in ${topics}"
log:
- 'Elapsed time: ${elapsed_time}'
- 'Topics: ${topics}'

- name: check subscription
action:
type: PUBSUB
method: SUBSCRIPTIONS
host: ${host}
host: gcp-pubsub-emulator:8681
project: folker-test-gcp-test
assert:
- "'a_subscription' in ${subscriptions}"
log:
- 'Elapsed time: ${elapsed_time}'
- 'Subscriptions: ${subscriptions}'

- name: publish
action:
type: PUBSUB
method: PUBLISH
host: ${host}
host: gcp-pubsub-emulator:8681
project: folker-test-gcp-test
topic: a_topic
message: hello world
Expand All @@ -52,7 +39,7 @@ stages:
action:
type: PUBSUB
method: SUBSCRIBE
host: ${host}
host: gcp-pubsub-emulator:8681
project: folker-test-gcp-test
subscription: a_subscription
ack: True
Expand Down
Loading

0 comments on commit 9f65af6

Please sign in to comment.