Master API testing in Go using the testing package and net/http library. Learn to create comprehensive test cases, execute API requests within tests, validate responses, and handle complex scenarios including CRUD operations and authentication. Build reliable APIs with confidence through effective automated testing practices.
Overview
Syllabus
- Unit 1: Introduction to API Testing with Go
- Basic API Test Execution with Go
- Completing an API Test with Arrange-Act-Assert Pattern in Go
- Focusing API Test on Completed Todos in Go
- Testing API Endpoints with Go's Testing Package
- Unit 2: Enhancing API Test Structure with Go's Testing Package
- Completing API Test with Go's Testing Package
- Fixing Helper Function in Go API Test
- Organizing Test Code with Helper Functions in Go
- Refactoring API Tests with Subtests and Helper Functions
- Testing Partial Updates with PATCH Requests in Go
- Unit 3: Testing CRUD Operations with Setup and Teardown in Go
- Implementing Setup and Teardown in Go Tests
- Building Setup Phase for CRUD Tests in Go
- Implementing Teardown in Go CRUD Tests
- Fixing Setup and Teardown in Go Tests
- Automating Setup and Teardown for CRUD Tests in Go
- Unit 4: Testing Authenticated API Endpoints with Go
- Testing API Key Authentication in Go
- Session Authentication Testing in Go
- Session Authentication Test Suite in Go
- Testing JWT Authentication in Go
- Testing JWT Protected Endpoints and Logout in Go