Testing Microservices with Docker, Azure, and Visual Studio Team Services

Play Testing Microservices with Docker, Azure, and Visual Studio Team Services
Sign in to queue


This year, I had the opportunity to represent Microsoft at the Software Quality Day Tools Challenge in Vienna again. For this event, the organizers hand out a challenge in the morning. In the afternoon, all participants have to show how they solved it with their tools. This year's challenge was structured into three parts and so is the video.

The first part demonstrates how you can generate an ASP.NET Core server from Swagger/Open API metadata. The idea of the challenge was that a team quickly needs a mock for a RESTful Web API for which somebody has already defined a Swagger definition.

In the second part, we had to show how we create a service mock from scratch without a Swagger definition. Of course, I use ASP.NET Core again to showcase that we can solve the entire challenge based on open-source and cross-platform components. In the video, I also talk about different options where we can run the mock. You see it running locally on Windows, locally in Linux-based Docker containers, and finally in Azure based on Linux containers.

Last but not least we had to show how we can test the system. For that, we got a ready-made implementation of the service that we built the mock for in part one. This implementation was based on Java, so I used Docker again to isolate it inside a container and pushed it into Azure App Service. Next, I decided to make use the Swagger definition again to generate a .NET Core client (with AutoRest) that I can use for building my unit tests. Finally, I used xUnit to keep all base components open-source and cross-platform. In the video, you see the xUnit tests running locally in Visual Studio Code. Additionally, I demo how you can automate them in a Visual Studio Team Services build.



The Discussion

  • User profile image

    Oh cmon. Why every container presentation Microsoft doing nowdays focused around Linux containers. When there is some recent Channel 9 content on finally using Windows containers.

  • User profile image

    linux daar ondermijnen ze windows met waarom omdat jan met de pet zijn privacy kwijt is he maar kijkt eens naar microsoft ata download daar komen ze de eerste tijd niet door

  • User profile image

    my real name is octocat and is 2 cent after all these years where are my gold medals i have an usher badge so they promised meevery looker would be mentioned howmuch was i gonna gett i haven't seen a cent still i'm loyal too i but the fact is you gave me thousands on software but i'm struggeling to write a new prompt cause they made a mess of it and i don't want to be the name that stands for slow broken pc s actually i have to reenter my prompt after every update you got a molth inside

  • User profile image

    thank you i can't even buy a peace of candy with give me a job not two cent

    i'm the best networkadministrator you can wish for

Add Your 2 Cents