|
| 1 | +# Tracetest CLI e2e tests |
| 2 | + |
| 3 | +In this folder we have the End-to-end tests done on the CLI to guarantee that the CLI is working fine. |
| 4 | +The main idea is to test every CLI command against Tracetest server with different data stores and different Operating systems. |
| 5 | + |
| 6 | + |
| 7 | +## Implementation status |
| 8 | + |
| 9 | +| Linux | Windows | MacOS | |
| 10 | +| ------------------ | ------- | ------ | |
| 11 | +| :white_check_mark: | :soon: | :soon: | |
| 12 | + |
| 13 | +## Tracetest Data Store |
| 14 | + |
| 15 | +| Jaeger | Tempo | OpenSearch | SignalFx | OTLP | ElasticAPM | New Relic | Lightstep | Datadog | AWS X-Ray | Honeycomb | |
| 16 | +| ------------------ | ------ | ---------- | -------- | ------ | ---------- | --------- | --------- | ------- | --------- | --------- | |
| 17 | +| :white_check_mark: | :soon: | :soon: | :soon: | :soon: | :soon: | :soon: | :soon: | :soon: | :soon: | :soon: | |
| 18 | + |
| 19 | +## CLI Commands to Test |
| 20 | + |
| 21 | +### Misc and Flags |
| 22 | + |
| 23 | +| CLI Command | Tested | Test scenarios | |
| 24 | +| -------------- | ------------------ | ------------------------------------------------- | |
| 25 | +| `version` | :white_check_mark: | [VersionCommand](./testscenarios/version_test.go) | |
| 26 | +| `help` | :white_check_mark: | [HelpCommand](./testscenarios/help_test.go) | |
| 27 | +| `--help`, `-h` | :white_check_mark: | [HelpCommand](./testscenarios/help_test.go) | |
| 28 | +| `--config` | :white_check_mark: | All scenarios | |
| 29 | + |
| 30 | +### Tests and Test Runner |
| 31 | + |
| 32 | +| CLI Command | Tested | Test scenarios | |
| 33 | +| ------------------------------------------------------------------ | ------------------ | -------------- | |
| 34 | +| `test list` | :yellow_circle: | | |
| 35 | +| `test run -d [test-definition]` | :yellow_circle: | | |
| 36 | +| `test run -d [test-definition] -e [environment-id]` | :yellow_circle: | | |
| 37 | +| `test run -d [test-definition] -e [environment-definition]` | :yellow_circle: | | |
| 38 | +| `test run -d [transaction-definition]` | :yellow_circle: | | |
| 39 | +| `test run -d [transaction-definition] -e [environment-id]` | :yellow_circle: | | |
| 40 | +| `test run -d [transaction-definition] -e [environment-definition]` | :yellow_circle: | | |
| 41 | + |
| 42 | +### Resources: Config |
| 43 | + |
| 44 | +| CLI Command | Tested | Test scenarios | |
| 45 | +| ----------------------------------------------------- | ----------------| -------------- | |
| 46 | +| `apply config -f [config-file]` | :yellow_circle: | | |
| 47 | +| `delete config --id current` | :yellow_circle: | | |
| 48 | +| `export config --id current --file [config-file]` | :yellow_circle: | | |
| 49 | +| `get config --id current --output pretty` | :yellow_circle: | | |
| 50 | +| `get config --id current --output json` | :yellow_circle: | | |
| 51 | +| `get config --id current --output yaml` | :yellow_circle: | | |
| 52 | +| `list config --output pretty` | :yellow_circle: | | |
| 53 | +| `list config --output json` | :yellow_circle: | | |
| 54 | +| `list config --output yaml` | :yellow_circle: | | |
| 55 | +### Resources: Data Store |
| 56 | + |
| 57 | +| CLI Command | Tested | Test scenarios | |
| 58 | +| -------------------------------------------------------- | ------------------ | -------------- | |
| 59 | +| `apply datastore -f [data-store-file]` | :white_check_mark: | [ApplyNewDatastore](./testscenarios/datastore/apply_new_datastore_test.go) | |
| 60 | +| `delete datastore --id current` | :white_check_mark: | [DeleteDatastore](./testscenarios/datastore/delete_datastore_test.go) | |
| 61 | +| `export datastore --id current --file [data-store-file]` | :yellow_circle: | | |
| 62 | +| `get datastore --id current --output pretty` | :white_check_mark: | [ApplyNewDatastore](./testscenarios/datastore/apply_new_datastore_test.go), [DeleteDatastore](./testscenarios/datastore/delete_datastore_test.go) | |
| 63 | +| `get datastore --id current --output json` | :yellow_circle: | | |
| 64 | +| `get datastore --id current --output yaml` | :yellow_circle: | | |
| 65 | +| `list datastore --output pretty` | :white_check_mark: | [ListDatastore](./testscenarios/datastore/list_datastore_test.go) | |
| 66 | +| `list datastore --output json` | :white_check_mark: | [ListDatastore](./testscenarios/datastore/list_datastore_test.go) | |
| 67 | +| `list datastore --output yaml` | :white_check_mark: | [ListDatastore](./testscenarios/datastore/list_datastore_test.go) | |
| 68 | + |
| 69 | +### Resources: Demo |
| 70 | + |
| 71 | +| CLI Command | Tested | Test scenarios | |
| 72 | +| ---------------------------------------------------- | ------------------ | -------------- | |
| 73 | +| `apply demo -f [new-demo-file]` | :yellow_circle: | | |
| 74 | +| `apply demo -f [existing-demo-file]` | :yellow_circle: | | |
| 75 | +| `delete demo --id [existing-id]` | :yellow_circle: | | |
| 76 | +| `delete demo --id [non-existing-id]` | :yellow_circle: | | |
| 77 | +| `export demo --id current --file [demo-file]` | :yellow_circle: | | |
| 78 | +| `get demo --id [non-existing-id]` | :yellow_circle: | | |
| 79 | +| `get demo --id [existing-id] --output pretty` | :yellow_circle: | | |
| 80 | +| `get demo --id [existing-id] --output json` | :yellow_circle: | | |
| 81 | +| `get demo --id [existing-id] --output yaml` | :yellow_circle: | | |
| 82 | +| `list demo --output pretty` | :yellow_circle: | | |
| 83 | +| `list demo --output json` | :yellow_circle: | | |
| 84 | +| `list demo --output yaml` | :yellow_circle: | | |
| 85 | +| `list demo --skip 1 --take 2` | :yellow_circle: | | |
| 86 | +| `list demo --sortBy name --sortDirection desc` | :yellow_circle: | | |
| 87 | + |
| 88 | +### Resources: Environment |
| 89 | + |
| 90 | +| CLI Command | Tested | Test scenarios | |
| 91 | +| ----------------------------------------------------------- | ------------------ | -------------- | |
| 92 | +| `apply environment -f [new-environment-file]` | :yellow_circle: | | |
| 93 | +| `apply environment -f [existing-environment-file]` | :yellow_circle: | | |
| 94 | +| `delete environment --id [existing-id]` | :yellow_circle: | | |
| 95 | +| `delete environment --id [non-existing-id]` | :yellow_circle: | | |
| 96 | +| `export environment --id current --file [environment-file]` | :yellow_circle: | | |
| 97 | +| `get environment --id [non-existing-id]` | :yellow_circle: | | |
| 98 | +| `get environment --id [existing-id] --output pretty` | :yellow_circle: | | |
| 99 | +| `get environment --id [existing-id] --output json` | :yellow_circle: | | |
| 100 | +| `get environment --id [existing-id] --output yaml` | :yellow_circle: | | |
| 101 | +| `list environment --output pretty` | :yellow_circle: | | |
| 102 | +| `list environment --output json` | :yellow_circle: | | |
| 103 | +| `list environment --output yaml` | :yellow_circle: | | |
| 104 | +| `list environment --skip 1 --take 2` | :yellow_circle: | | |
| 105 | +| `list environment --sortBy name --sortDirection desc` | :yellow_circle: | | |
| 106 | + |
| 107 | +### Resources: PollingProfile |
| 108 | + |
| 109 | +| CLI Command | Tested | Test scenarios | |
| 110 | +| --------------------------------------------------------------------- | --------------- | -------------- | |
| 111 | +| `apply pollingprofile -f [pollingprofile-file]` | :yellow_circle: | | |
| 112 | +| `delete pollingprofile --id current` | :yellow_circle: | | |
| 113 | +| `export pollingprofile --id current --file [pollingprofile-file]` | :yellow_circle: | | |
| 114 | +| `get pollingprofile --id current --output pretty` | :yellow_circle: | | |
| 115 | +| `get pollingprofile --id current --output json` | :yellow_circle: | | |
| 116 | +| `get pollingprofile --id current --output yaml` | :yellow_circle: | | |
| 117 | +| `list pollingprofile --output pretty` | :yellow_circle: | | |
| 118 | +| `list pollingprofile --output json` | :yellow_circle: | | |
| 119 | +| `list pollingprofile --output yaml` | :yellow_circle: | | |
| 120 | + |
| 121 | +### Resources: Transactions |
| 122 | + |
| 123 | +| CLI Command | Tested | Test scenarios | |
| 124 | +| ----------------------------------------------------------- | ------------------ | -------------- | |
| 125 | +| `apply transaction -f [new-transaction-file]` | :yellow_circle: | | |
| 126 | +| `apply transaction -f [existing-transaction-file]` | :yellow_circle: | | |
| 127 | +| `delete transaction --id [existing-id]` | :yellow_circle: | | |
| 128 | +| `delete transaction --id [non-existing-id]` | :yellow_circle: | | |
| 129 | +| `export transaction --id current --file [transaction-file]` | :yellow_circle: | | |
| 130 | +| `get transaction --id [non-existing-id]` | :yellow_circle: | | |
| 131 | +| `get transaction --id [existing-id] --output pretty` | :yellow_circle: | | |
| 132 | +| `get transaction --id [existing-id] --output json` | :yellow_circle: | | |
| 133 | +| `get transaction --id [existing-id] --output yaml` | :yellow_circle: | | |
| 134 | +| `list transaction --output pretty` | :yellow_circle: | | |
| 135 | +| `list transaction --output json` | :yellow_circle: | | |
| 136 | +| `list transaction --output yaml` | :yellow_circle: | | |
| 137 | +| `list transaction --skip 1 --take 2` | :yellow_circle: | | |
| 138 | +| `list transaction --sortBy name --sortDirection desc` | :yellow_circle: | | |
0 commit comments