Skip to content

Bur.net

  • Home

Month: March 2016

Mocking HTTP Endpoints in Golang

March 22, 2016

I recently ran into a situation where I wanted to test an application that talked to a REST API and I wanted to mock out the server interaction. I couldn’t find many existing solutions in this space so I used httptest and testify to come up with a simple solution. tl;dr – Point your client at a server created with … More Mocking HTTP Endpoints in Golang

Leave a comment Mocking HTTP Endpoints in Golang

Social

  • View @BurDotNet’s profile on Twitter
  • View adamburnett’s profile on LinkedIn
  • View aburnett’s profile on GitHub

Recent Posts

  • Peer Programming
  • No Fargate configuration exists for given values
  • Google OAuth2 Offline Access in Single Page Apps
  • TransactionRequiredException and Spring Data
  • Beanstalk for long running jobs…but not too long.

Archives

  • November 2018
  • May 2018
  • April 2018
  • October 2017
  • June 2017
  • November 2016
  • June 2016
  • March 2016
  • February 2016
  • January 2016

Meta

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.com
Blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy