GithubHelp home page GithubHelp logo

autorestgeneratedcodetester's Introduction

AutorestGeneratedCodeTester

This is a tool which generates code to test the code generated by Autorest for microservices. It has a proxy which can be accessed at http://localhost:9000/ which records all the request made to the microservice.

The proxy can be accessed using docker as shown below :

$ docker -e base=http://uri:port/to/service/to/test -p 9000:9000 your-docker-image

this will run your docker container and your proxy will be available at port localhost 9000 of the container, and it should forward to http://uri:port/to/service/to/test

The proxy can also be launched without using docker , by making the following changes in program.cs :

Change : string[] arr2 = {"http://localhost:9000/", Environment.GetEnvironmentVariable("base")};

to

string[] arr2 = {"http://localhost:9000/", "http://uri:port/to/service/to/test"};

In both the cases, the generated code can be accessed using :

$ curl http://localhost:5000/generate/csharp > MyTests.cs

Example generated code and the swagger file corresponding to it has been put up in the same repository.

autorestgeneratedcodetester's People

Contributors

abhivijay96 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.