https://github.com/floatingghost/misp-testable
A self-contained docker image for integration tests against MISP
https://github.com/floatingghost/misp-testable
continuous-integration docker-image integration-testing misp misp-api
Last synced: 7 months ago
JSON representation
A self-contained docker image for integration tests against MISP
- Host: GitHub
- URL: https://github.com/floatingghost/misp-testable
- Owner: FloatingGhost
- Created: 2019-02-11T15:32:12.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-08T17:26:22.000Z (about 7 years ago)
- Last Synced: 2025-07-08T10:49:11.072Z (8 months ago)
- Topics: continuous-integration, docker-image, integration-testing, misp, misp-api
- Language: Dockerfile
- Size: 9.77 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MISP Integration test image
Let's say you make a lovely project that you're very proud of, that makes
use of MISP's API. And then you think to yourself "hm now I should probably
set up automated tests to make sure I don't break it".
Great idea. But there's a problem. You can't test against any MISP instance without
leaking API credentials, or setting up a deliberately insecure instance. Oh no.
That's where this image comes in. It's an all-in-one docker container meant to
act as a sidecar to your test environment.
## Credentials
The API key for an admin user is `testmispapikeytestmispapikeytestmispapik`
I apologise for it being so long but it has to be 40 alphanumeric for MISP to pick
it up as valid
## Usage
A full example of using this in Gitlab and Travis is available in [MISPex](https://github.com/FloatingGhost/mispex)
### Gitlab
```yaml
test:
services:
- floatingghost/misp-testable:v2.4.102
```
### Travis
```yaml
services:
- docker
before_install:
- docker pull floatingghost/misp-testable:v2.4.102
- docker run -d -p 80:80 floatingghost/misp-testable:v2.4.102
```
## Disclaimer
I shouldn't even need to include one, but let's be safe
This is a deliberately insecure image for use within CI/CD pipelines and other
integration-test environments ONLY, do *not* use it for anything permanent.