Exercise to provide DevSecOps for a REST API to manage a warehouse which is using an in-memory data store.
Now it's up to you! Read more about our challenge and get started!
You can easily run the sample locally:
- Change
src/docker-compose.override.yml
with your own configuration - Navigate to
src/
folder - Start up with Docker Compose
$ docker-compose up
- Browse to http://localhost:777/api/docs/index.html
We provide two types of tests:
Integration
- Sends HTTP requests to a running API to verify all operationsSmoke
- Sends HTTP requests to a running API to verify it's up and running, without changing any data
Here is how you can run the tests locally:
$ dotnet test .\src\Codit.Exercises.DevOps.Tests\Codit.Exercises.DevOps.Tests.csproj --filter Category=Smoke
Test run for D:\Code\GitHub\devsecops-exercise\src\Codit.Exercises.DevOps.Tests\bin\Debug\netcoreapp3.1\Codit.Exercises.DevOps.Tests.dll(.NETCoreApp,Version=v3.1)
Microsoft (R) Test Execution Command Line Tool Version 16.5.0
Copyright (c) Microsoft Corporation. All rights reserved.
Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
Test Run Successful.
Total tests: 2
Passed: 2
Total time: 1,6618 Seconds