An open API service indexing awesome lists of open source software.

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

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.