DevOps Fundamentals



Section 4: Testing Your Application

Chapter 09: Testing APIs with Postman
Chapter 10: Static Code Analysis with SonarQube

	
Chapter 9: Testing APIs with Postman 279
Technical requirements 280
Creating a Postman collection with requests 280
Installation of Postman 282
Creating a collection 282
Table of Contents
[ vi ]
Creating our first request 284
Using environments and variables to dynamize requests 288
Writing Postman tests 290
Executing Postman request tests locally 293
Understanding the Newman concept 297
Preparing Postman collections for Newman 299
Exporting the collection 299
Exporting the environments 301
Running the Newman command line 302
Integration of Newman in the CI/CD pipeline process 305
Build and release configuration 306
Npm install 308
Npm run newman 309
Publish test results 310
The pipeline execution 311
Summary 313
Questions 313
Further reading 313



Chapter 10: Static Code Analysis with SonarQube 314
Technical requirements 315
Exploring SonarQube 315
Installing SonarQube 316
Overview of the SonarQube architecture 316
Installing SonarQube 317
Manual installation of SonarQube 318
Installation via Docker 318
Installation in Azure 319
Real-time analysis with SonarLint 323
Executing SonarQube in continuous integration 326
Configuring SonarQube 326
Creating a CI pipeline for SonarQube in Azure Pipelines 328
Summary 332
Questions 332
Further reading 332


Chapter 11: Security and Performance Tests 333
Technical requirements 334
Applying web security and penetration testing with ZAP 334
Using ZAP for security testing 335
Ways to automate the execution of ZAP 338
Running performance tests with Postman 340
Summary 342
Questions 343
Further reading 343
Table of Contents
[ vii ]
	

Eninam BAGNABANA     |         |     bagnadavid@outlook.fr     |