Skip to content
This repository has been archived by the owner on Dec 17, 2021. It is now read-only.
/ devsecops-exercise Public archive

Exercise to implement DevSecOps.

License

Notifications You must be signed in to change notification settings

Codit/devsecops-exercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevSecOps Exercise

Exercise to provide DevSecOps for a REST API to manage a warehouse which is using an in-memory data store.

Codit logo

Challenge

Now it's up to you! Read more about our challenge and get started!

Getting Started

Running it locally

You can easily run the sample locally:

  1. Change src/docker-compose.override.yml with your own configuration
  2. Navigate to src/ folder
  3. Start up with Docker Compose
$ docker-compose up
  1. Browse to http://localhost:777/api/docs/index.html

Running the tests

We provide two types of tests:

  • Integration - Sends HTTP requests to a running API to verify all operations
  • Smoke - 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

About

Exercise to implement DevSecOps.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published