Slide 1

Slide 1 text

Spock environment configuration variants Author: Markus Hanses

Slide 2

Slide 2 text

2

Slide 3

Slide 3 text

Situation DEV PREVIEW LIVE Deployment Pipeline 3

Slide 4

Slide 4 text

4

Slide 5

Slide 5 text

Testautomation Testcases DEV PREVIEW LIVE Spock Specification ? ? ? 5

Slide 6

Slide 6 text

Problem Testcases DEV PREVIEW LIVE Spock Specification URL 6

Slide 7

Slide 7 text

Solution Testcases DEV PREVIEW LIVE Spock Specification URL for DEV URL for LIVE URL for PREVIEW DEV Config PREVIEW Config LIVE Config 7

Slide 8

Slide 8 text

8

Slide 9

Slide 9 text

Configuration variants ● Custom Groovy config object ● Groovy ConfigSlurper ● Groovy JSONSlurper ● snakeyml ● Spring Boot (Sidecar pattern) ...several other variants are possible! 9

Slide 10

Slide 10 text

10

Slide 11

Slide 11 text

EOP (end of presentation) 11

Slide 12

Slide 12 text

Sources [snakeyaml], https://bitbucket.org/asomov/snakeyaml/wiki/Documentation [springboot], https://spring.io/projects/spring-boot [sidecar], https://docs.microsoft.com/en-us/azure/architecture/patterns/sidecar [sample project], https://github.com/marhan/spock-configuration-samples 12