package
1.7.1
Repository: https://github.com/kubeshop/tracetest.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

Tracetest CLI e2e Tests

In this folder we have the End-to-end tests done on the CLI to guarantee that the CLI is working fine. The main idea is to test every CLI command against the Tracetest server with different data stores and different operating systems.

Implementation Status

LinuxWindowsMacOS
:white_check_mark::soon::soon:

Tracetest Data Store

JaegerTempoOpenSearchSignalFxOTLPElasticAPMNew RelicLightstepDatadogAWS X-RayHoneycombDynatrace
:white_check_mark::soon::soon::soon::soon::soon::soon::soon::soon::soon::soon::soon:

CLI Commands to Test

Misc and Flags

CLI CommandTest scenarios
versionVersionCommand
helpHelpCommand
--help, -hHelpCommand
--configAll scenarios

Run Tests and TestSuites

CLI CommandTest scenarios
run test -f [test-definition]RunTestWithGrpcTrigger
run test -f [test-definition] --vars [variableset-id]RunTestWithHttpTriggerAndVariableSetFile
run test -f [test-definition] --vars [variableset-definition]RunTestWithHttpTriggerAndVariableSetFile
run testsuite -f [testsuite-definition]RunTestSuite
run testsuite -f [testsuite-definition] --vars [variableset-id]
run testsuite -f [testsuite-definition] --vars [variableset-definition]

Resources: Config

CLI CommandTest scenarios
apply config -f [config-file]ApplyConfig
delete config --id currentDeleteConfig
get config --id current --output prettyGetConfig, ApplyConfig, DeleteConfig
get config --id current --output jsonGetConfig
get config --id current --output yamlGetConfig
list config --output prettyListConfig
list config --output jsonListConfig
list config --output yamlListConfig

Resources: Data Store

CLI CommandTest scenarios
apply datastore -f [data-store-file]ApplyDatastore
delete datastore --id currentDeleteDatastore
get datastore --id current --output prettyGetDatastore, ApplyDatastore, DeleteDatastore
get datastore --id current --output jsonGetDatastore
get datastore --id current --output yamlGetDatastore
list datastore --output prettyListDatastore
list datastore --output jsonListDatastore
list datastore --output yamlListDatastore

Resources: Demo

CLI CommandTest scenarios
apply demo -f [new-demo-file]ApplyDemo
apply demo -f [existing-demo-file]ApplyDemo
delete demo --id [existing-id]DeleteDemo
delete demo --id [non-existing-id]DeleteDemo
get demo --id [non-existing-id]GetDemo, DeleteDemo
get demo --id [existing-id] --output prettyGetDemo
get demo --id [existing-id] --output jsonGetDemo
get demo --id [existing-id] --output yamlGetDemo
list demo --output prettyListDemo
list demo --output jsonListDemo
list demo --output yamlListDemo
list demo --skip 1 --take 1ListDemo
list demo --sortBy name --sortDirection ascListDemo

Resources: VariableSet

CLI CommandTest scenarios
apply variableset -f [new-variableset-file]ApplyVariableSet
apply variableset -f [existing-variableset-file]ApplyVariableSet
delete variableset --id [existing-id]DeleteVariableSet
delete variableset --id [non-existing-id]DeleteVariableSet
get variableset --id [non-existing-id]GetVariableSet, DeleteVariableSet
get variableset --id [existing-id] --output prettyGetVariableSet
get variableset --id [existing-id] --output jsonGetVariableSet
get variableset --id [existing-id] --output yamlGetVariableSet
list variableset --output prettyListVariableSet
list variableset --output jsonListVariableSet
list variableset --output yamlListVariableSet
list variableset --skip 1 --take 2ListVariableSet
list variableset --sortBy name --sortDirection ascListVariableSet

Resources: PollingProfile

CLI CommandTest scenarios
apply pollingprofile -f [pollingprofile-file]ApplyPollingProfile
delete pollingprofile --id currentDeletePollingProfile
get pollingprofile --id current --output prettyGetPollingProfile, ApplyPollingProfile, DeletePollingProfile
get pollingprofile --id current --output jsonGetPollingProfile
get pollingprofile --id current --output yamlGetPollingProfile
list pollingprofile --output prettyListPollingProfile
list pollingprofile --output jsonListPollingProfile
list pollingprofile --output yamlListPollingProfile

Resources: TestRunner

CLI CommandTest scenarios
apply testrunner -f [testrunner-file]ApplyTestRunner
delete testrunner --id currentDeleteTestRunner
get testrunner --id current --output prettyGetTestRunner
get testrunner --id current --output jsonGetTestRunner
get testrunner --id current --output yamlGetTestRunner
list testrunner --output prettyListTestRunner
list testrunner --output jsonListTestRunner
list testrunner --output yamlListTestRunner

Resources: Analyzer

CLI CommandTest scenarios
apply analyzer -f [analyzer-file]ApplyAnalyzer
delete analyzer --id currentDeleteAnalyzer
get analyzer --id current --output prettyGetAnalyzer
get analyzer --id current --output jsonGetAnalyzer
get analyzer --id current --output yamlGetAnalyzer
list analyzer --output prettyListAnalyzer
list analyzer --output jsonListAnalyzer
list analyzer --output yamlListAnalyzer

Resources: TestSuites

CLI CommandTest scenarios
apply testsuite -f [new-testsuite-file]ApplyTestSuite
apply testsuite -f [existing-testsuite-file]ApplyTestSuite
delete testsuite --id [existing-id]DeleteTestSuite
delete testsuite --id [non-existing-id]DeleteTestSuite
get testsuite --id [non-existing-id]GetTestSuite, DeleteTestSuite
get testsuite --id [existing-id] --output prettyGetTestSuite
get testsuite --id [existing-id] --output jsonGetTestSuite
get testsuite --id [existing-id] --output yamlGetTestSuite
list testsuite --output prettyListTestSuite
list testsuite --output jsonListTestSuite
list testsuite --output yamlListTestSuite
list testsuite --skip 1 --take 2ListTestSuite
list testsuite --sortBy name --sortDirection ascListTestSuite

Resources: Tests

CLI CommandTest scenarios
apply test -f [new-test-file]ApplyTest
apply test -f [existing-test-file]ApplyTest
delete test --id [existing-id]DeleteTest
delete test --id [non-existing-id]DeleteTest
get test --id [non-existing-id]GetTest, DeleteTest
get test --id [existing-id] --output prettyGetTest
get test --id [existing-id] --output jsonGetTest
get test --id [existing-id] --output yamlGetTest
list test --output prettyListTest
list test --output jsonListTest
list test --output yamlListTest
list test --skip 1 --take 2ListTest
list test --sortBy name --sortDirection ascListTest