Skip to content

perfana/test-events-test-run-config-command

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

test-events-test-run-config-command

Run a command to capture test-run configuration data and broadcast this on the event message bus.

Test-run config can be sent as key-value pair (output = key) or as json structure (output = json) or as "flattened" json structure is a key-value list (output = keys).

Json can contain include and exclude fields to indicate what to compare and what to ignore to be stored and in the compare.

Tags are used to specify the type of configuration data (e.g. GitHub or k8s).

use

<plugins>
    <plugin>
        <groupId>io.perfana</groupId>
        <artifactId>event-scheduler-maven-plugin</artifactId>
        <configuration>
            <eventSchedulerConfig>
                <debugEnabled>true</debugEnabled>
                <schedulerEnabled>true</schedulerEnabled>
                <failOnError>true</failOnError>
                <continueOnEventCheckFailure>true</continueOnEventCheckFailure>
                <eventScheduleScript>
                </eventScheduleScript>
                <testConfig>
                    <systemUnderTest>${systemUnderTest}</systemUnderTest>
                    <version>${version}</version>
                    <workload>${workload}</workload>
                    <testEnvironment>${testEnvironment}</testEnvironment>
                    <testRunId>${testRunId}</testRunId>
                    <buildResultsUrl>${buildResultsUrl}</buildResultsUrl>
                    <rampupTimeInSeconds>${rampupTimeInSeconds}</rampupTimeInSeconds>
                    <constantLoadTimeInSeconds>${constantLoadTimeInSeconds}</constantLoadTimeInSeconds>
                    <annotations>${annotations}</annotations>
                    <tags>${tags}</tags>
                </testConfig>
                <eventConfigs>
                    <eventConfig implementation="io.perfana.events.testrunconfigcommand.TestRunConfigCommandEventConfig">
                        <name>GitGetHash</name>
                        <command>git rev-parse --verify HEAD</command>
                        <output>key</output>
                        <key>https://github.com/perfana/perfana-gatling-afterburner</key>
                        <tags>GitHub</tags>
                    </eventConfig>
                    <eventConfig implementation="io.perfana.events.testrunconfigcommand.TestRunConfigCommandEventConfig">
                        <name>KubernetesGetDeployment</name>
                        <command>kubectl get deployment optimus-prime-be-afterburner -n acme -o json</command>
                        <includes>env,resources,image,replicas,strategy,kubernetes</includes>
                        <excludes>status</excludes>
                        <output>keys</output>
                        <tags>kubernetes,optimus-prime-be</tags>
                    </eventConfig>
                </eventConfigs>
            </eventSchedulerConfig>
        </configuration>
        <dependencies>
            <dependency>
                <groupId>io.perfana</groupId>
                <artifactId>test-events-test-run-config-command</artifactId>
                <version>${test-events-test-run-config-command.version}</version>
            </dependency>
            <dependency>
                <groupId>io.perfana</groupId>
                <artifactId>perfana-java-client</artifactId>
                <version>${perfana-java-client.version}</version>
            </dependency>
        </dependencies>
    </plugin>
</plugins>

See also:

About

Send test-run configuration values to the event message bus.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages