Skip to content

Commit

Permalink
Merge branch 'develop' into 'master'
Browse files Browse the repository at this point in the history
Improved Monitoring for Webhook

See merge request ccc/team-rundmc/whatsapp-components/whatsapp-business-api-mock!3
  • Loading branch information
ron96G committed Jun 29, 2021
2 parents de635aa + c5cd13a commit 798c624
Show file tree
Hide file tree
Showing 28 changed files with 226 additions and 675 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ main
cmd
cmd.exe
libs
*.dev
node_modules
18 changes: 10 additions & 8 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ image: golang:latest
- go get google.golang.org/protobuf/cmd/protoc-gen-go
- go get github.com/envoyproxy/protoc-gen-validate

- 'protoc
-I .
-I ${GOPATH}/src
-I ${GOPATH}/src/github.com/envoyproxy/protoc-gen-validate
--proto_path="./protobuf"
--go_out=":./"
--validate_out="lang=go:."
- 'protoc
-I .
-I ${GOPATH}/src
-I ${GOPATH}/src/github.com/envoyproxy/protoc-gen-validate
--proto_path="./protobuf"
--go_out=":./"
--validate_out="lang=go:."
meta.proto general.proto settings.proto status.proto messages.proto users.proto backup.proto internal.proto'

- chmod 777 -R model
Expand Down Expand Up @@ -93,10 +93,12 @@ build protoc:
<<: *pre_build_protoc

unit test:
allow_failure: true
stage: check
<<: *pre_build_test

scan:
allow_failure: true
stage: check
<<: *pre_build_scan

Expand All @@ -114,4 +116,4 @@ build versioned:
stage: build
variables:
TAG: v$VERSION
<<: *build_image
<<: *build_image
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: pretty-format-json
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ COPY --chown=app:app --from=appBuilder /go/src/github.com/rgumi/whatsapp-mock/ap
VOLUME [ "/home/app/data" ]

EXPOSE 8443/tcp
ENTRYPOINT ["./entrypoint.sh"]
ENTRYPOINT ["./entrypoint.sh"]
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# WhatsApp Business API Mockserver

This repository contains the mockserver for the WhatsApp Business API (WABiz).
This repository contains the mockserver for the WhatsApp Business API (WABiz).
It is used to perform integration-, system- and load-testing.


Expand Down Expand Up @@ -33,7 +33,7 @@ The following list shows the core functionality that is currently supported.
1. Generate inbound traffic with different messages and media
2. Generate stati for outbound traffic
3. Rate limiting
4. (TBD) Validate outbound traffic
4. (TBD) Validate outbound traffic
5. (TBD) strict validation (only allow outbound messages to users that have sent a inbound message)

## Supported Messages
Expand Down Expand Up @@ -62,4 +62,4 @@ Outbound types are accepted by the messages resource and validated.
```bash
cd whatsapp-mock
./build.sh
```
```
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
set -e

go get -u github.com/swaggo/swag/cmd/swag
go install google.golang.org/protobuf/cmd/protoc-gen-go
Expand Down
2 changes: 1 addition & 1 deletion cmd/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
"document": "document",
"audio": "audio"
}
}
}
Loading

0 comments on commit 798c624

Please sign in to comment.