diff --git a/.github/workflows/cli_release.yaml b/.github/workflows/cli_release.yaml index 78e4a23..bc92384 100644 --- a/.github/workflows/cli_release.yaml +++ b/.github/workflows/cli_release.yaml @@ -1,4 +1,4 @@ -name: Build and publish quality-trace CLI +name: Build and publish qualitytrace CLI on: push: tags: @@ -14,16 +14,16 @@ jobs: - name: Set up Go environment uses: actions/setup-go@v4 with: - go-version: '1.20' + go-version: '1.21' - name: Build my CLI for Linux - run: go mod download && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o quality-trace-linux cli/main.go + run: go mod download && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o qualitytrace-linux cli/main.go - name: Build my CLI for macOS - run: go mod download && GOOS=darwin GOARCH=amd64 go build -o quality-trace-macos cli/main.go + run: go mod download && GOOS=darwin GOARCH=amd64 go build -o qualitytrace-macos cli/main.go - name: Build my CLI for Windows - run: go mod download && GOOS=windows GOARCH=amd64 go build -o quality-trace-windows.exe cli/main.go + run: go mod download && GOOS=windows GOARCH=amd64 go build -o qualitytrace-windows.exe cli/main.go - name: Get release name from tag id: release @@ -35,9 +35,9 @@ jobs: uses: softprops/action-gh-release@v1 with: files: | - quality-trace-linux - quality-trace-macos - quality-trace-windows.exe + qualitytrace-linux + qualitytrace-macos + qualitytrace-windows.exe tag_name: ${{ github.ref }} name: ${{ steps.release.outputs.name }} - Linux draft: false diff --git a/.github/workflows/helm_release.yaml b/.github/workflows/helm_release.yaml index e2bb0ca..315fec3 100644 --- a/.github/workflows/helm_release.yaml +++ b/.github/workflows/helm_release.yaml @@ -20,10 +20,6 @@ jobs: git config user.name "$GITHUB_ACTOR" git config user.email "$GITHUB_ACTOR@gmail.com" - - name: Add Helm repos - run: | - helm repo add bitnami https://charts.bitnami.com/bitnami - - name: Run chart-releaser uses: helm/chart-releaser-action@v1.5.0 env: diff --git a/.github/workflows/quality-trace-cli-pr.yaml b/.github/workflows/qualitytrace-cli-pr.yaml similarity index 75% rename from .github/workflows/quality-trace-cli-pr.yaml rename to .github/workflows/qualitytrace-cli-pr.yaml index b9b4f8d..a931e22 100644 --- a/.github/workflows/quality-trace-cli-pr.yaml +++ b/.github/workflows/qualitytrace-cli-pr.yaml @@ -1,4 +1,4 @@ -name: Quality-Trace-Cli Docker Image CI - PR +name: qualitytrace-cli Docker Image CI - PR on: pull_request: @@ -11,6 +11,8 @@ jobs: env: REGISTRY: ghcr.io GH_URL: https://github.com + registry_username: ${{ github.actor }} + registry_password: ${{ secrets.GITHUB_TOKEN }} steps: - name: Checkout @@ -29,11 +31,11 @@ jobs: name: Set up Go environment uses: actions/setup-go@v4 with: - go-version: '1.21.1' + go-version: '1.21' - name: Build cli - run: make dist/quality-trace + run: make dist/qualitytrace env: GO111MODULE: on @@ -42,8 +44,8 @@ jobs: uses: docker/login-action@v2 with: registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + username: ${{ env.registry_username }} + password: ${{ env.registry_password }} - @@ -56,5 +58,5 @@ jobs: push: true tags: ${{ env.REGISTRY }}/${{ github.repository }}/cli:pr-${{ github.event.pull_request.number }} build-args: | - "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" + "GITHUB_TOKEN=${{ env.registry_password }}" diff --git a/.github/workflows/quality-trace-cli-release.yaml b/.github/workflows/qualitytrace-cli-release.yaml similarity index 79% rename from .github/workflows/quality-trace-cli-release.yaml rename to .github/workflows/qualitytrace-cli-release.yaml index 184045f..11998d3 100644 --- a/.github/workflows/quality-trace-cli-release.yaml +++ b/.github/workflows/qualitytrace-cli-release.yaml @@ -1,4 +1,4 @@ -name: quality-trace-cli docker release +name: qualitytrace-cli docker release on: push: tags: @@ -16,6 +16,8 @@ jobs: env: REGISTRY: ghcr.io GH_URL: https://github.com + registry_username: ${{ github.actor }} + registry_password: ${{ secrets.GITHUB_TOKEN }} steps: - name: Set environment variable run: | @@ -28,7 +30,7 @@ jobs: uses: actions/checkout@v3 - name: Build cli - run: make dist/quality-trace + run: make dist/qualitytrace env: GO111MODULE: on @@ -36,8 +38,8 @@ jobs: uses: docker/login-action@v2 with: registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + username: ${{ env.registry_username }} + password: ${{ env.registry_password }} - name: Build image and push to GitHub Container Registry uses: docker/build-push-action@v4 @@ -56,7 +58,7 @@ jobs: COSIGN_EXPERIMENTAL: 1 - name: Verify the pushed tags - run: cosign verify ${{ env.REGISTRY }}/${{ github.repository }}/cli:${{ env.RELEASE_VERSION }} --certificate-identity ${{ env.GH_URL }}/${{ github.repository }}/.github/workflows/quality-trace-cli-release.yaml@refs/tags/${{ env.RELEASE_VERSION }} --certificate-oidc-issuer https://token.actions.githubusercontent.com + run: cosign verify ${{ env.REGISTRY }}/${{ github.repository }}/cli:${{ env.RELEASE_VERSION }} --certificate-identity ${{ env.GH_URL }}/${{ github.repository }}/.github/workflows/qualitytrace-cli-release.yaml@refs/tags/${{ env.RELEASE_VERSION }} --certificate-oidc-issuer https://token.actions.githubusercontent.com env: COSIGN_EXPERIMENTAL: 1 @@ -67,4 +69,4 @@ jobs: format: 'github' output: 'dependency-results.sbom.json' image-ref: '.' - github-pat: ${{ secrets.GITHUB_TOKEN }} # or ${{ secrets.github_pat_name }} if you're using a PAT + github-pat: ${{ env.registry_password }} # or ${{ secrets.github_pat_name }} if you're using a PAT diff --git a/.github/workflows/quality-trace-cli.yaml b/.github/workflows/qualitytrace-cli.yaml similarity index 82% rename from .github/workflows/quality-trace-cli.yaml rename to .github/workflows/qualitytrace-cli.yaml index b1e7854..a207394 100644 --- a/.github/workflows/quality-trace-cli.yaml +++ b/.github/workflows/qualitytrace-cli.yaml @@ -1,4 +1,4 @@ -name: Quality-Trace Cli Docker Image +name: qualitytrace Cli Docker Image on: push: @@ -22,6 +22,8 @@ jobs: env: REGISTRY: ghcr.io GH_URL: https://github.com + registry_username: ${{ github.actor }} + registry_password: ${{ secrets.GITHUB_TOKEN }} steps: - name: Checkout GitHub Action uses: actions/checkout@v3 @@ -33,10 +35,10 @@ jobs: - name: Set up Go environment uses: actions/setup-go@v4 with: - go-version: '1.21.1' + go-version: '1.21' - name: Build cli - run: make dist/quality-trace + run: make dist/qualitytrace env: GO111MODULE: on @@ -57,8 +59,8 @@ jobs: uses: docker/login-action@v2 with: registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + username: ${{ env.registry_username }} + password: ${{ env.registry_password }} - name: Build image and push to GitHub Container Registry uses: docker/build-push-action@v4 @@ -82,7 +84,7 @@ jobs: COSIGN_EXPERIMENTAL: 1 - name: Verify the pushed tags - run: cosign verify ${{ env.REGISTRY }}/${{ github.repository }}/cli:${{ github.run_id }} --certificate-identity ${{ env.GH_URL }}/${{ github.repository }}/.github/workflows/quality-trace-cli.yaml@refs/heads/main --certificate-oidc-issuer https://token.actions.githubusercontent.com + run: cosign verify ${{ env.REGISTRY }}/${{ github.repository }}/cli:${{ github.run_id }} --certificate-identity ${{ env.GH_URL }}/${{ github.repository }}/.github/workflows/qualitytrace-cli.yaml@refs/heads/main --certificate-oidc-issuer https://token.actions.githubusercontent.com env: COSIGN_EXPERIMENTAL: 1 @@ -93,4 +95,4 @@ jobs: format: 'github' output: 'dependency-results.sbom.json' image-ref: '.' - github-pat: ${{ secrets.GITHUB_TOKEN }} + github-pat: ${{ env.registry_password }} diff --git a/.github/workflows/quality-trace-container-pr.yml b/.github/workflows/qualitytrace-server-pr.yml similarity index 74% rename from .github/workflows/quality-trace-container-pr.yml rename to .github/workflows/qualitytrace-server-pr.yml index 63318c0..9a8f00e 100644 --- a/.github/workflows/quality-trace-container-pr.yml +++ b/.github/workflows/qualitytrace-server-pr.yml @@ -1,4 +1,4 @@ -name: Quality-Trace Docker Image CI - PR +name: qualitytrace-server Docker Image CI - PR on: pull_request: @@ -11,6 +11,8 @@ jobs: env: REGISTRY: ghcr.io GH_URL: https://github.com + registry_username: ${{ github.actor }} + registry_password: ${{ secrets.GITHUB_TOKEN }} steps: - name: Checkout @@ -29,11 +31,11 @@ jobs: name: Set up Go environment uses: actions/setup-go@v4 with: - go-version: '1.21.1' + go-version: '1.21' - name: Build server - run: make dist/quality-trace-server + run: make dist/qualitytrace-server env: GO111MODULE: on @@ -42,9 +44,8 @@ jobs: uses: docker/login-action@v2 with: registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - + username: ${{ env.registry_username }} + password: ${{ env.registry_password }} - name: Build and push on PR @@ -56,5 +57,5 @@ jobs: push: true tags: ${{ env.REGISTRY }}/${{ github.repository }}:pr-${{ github.event.pull_request.number }} build-args: | - "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" + "GITHUB_TOKEN=${{ env.registry_password }}" diff --git a/.github/workflows/quality-trace-container-release.yml b/.github/workflows/qualitytrace-server-release.yml similarity index 75% rename from .github/workflows/quality-trace-container-release.yml rename to .github/workflows/qualitytrace-server-release.yml index 1073952..b1c4e54 100644 --- a/.github/workflows/quality-trace-container-release.yml +++ b/.github/workflows/qualitytrace-server-release.yml @@ -1,4 +1,4 @@ -name: quality-trace-release +name: qualitytrace-server release on: push: tags: @@ -6,7 +6,7 @@ on: jobs: push_to_registry: name: Build and push Docker image github container registry. - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest permissions: packages: write id-token: write @@ -16,6 +16,8 @@ jobs: env: REGISTRY: ghcr.io GH_URL: https://github.com + registry_username: ${{ github.actor }} + registry_password: ${{ secrets.GITHUB_TOKEN }} steps: - name: Set environment variable run: | @@ -25,15 +27,15 @@ jobs: - name: Check out GitHub repo uses: actions/checkout@v3 - name: Build server - run: make dist/quality-trace-server + run: make dist/qualitytrace-server env: GO111MODULE: on - name: Login to GitHub Container Registry uses: docker/login-action@v2 with: registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + username: ${{ env.registry_username }} + password: ${{ env.registry_password }} - name: Build image and push to GitHub Container Registry uses: docker/build-push-action@v4 with: @@ -49,7 +51,7 @@ jobs: env: COSIGN_EXPERIMENTAL: 1 - name: Verify the pushed tags - run: cosign verify ${{ env.REGISTRY }}/${{ github.repository }}:${{ env.RELEASE_VERSION }} --certificate-identity ${{ env.GH_URL }}/${{ github.repository }}/.github/workflows/quality-trace-container-release.yml@refs/tags/${{ env.RELEASE_VERSION }} --certificate-oidc-issuer https://token.actions.githubusercontent.com + run: cosign verify ${{ env.REGISTRY }}/${{ github.repository }}:${{ env.RELEASE_VERSION }} --certificate-identity ${{ env.GH_URL }}/${{ github.repository }}/.github/workflows/qualitytrace-container-release.yml@refs/tags/${{ env.RELEASE_VERSION }} --certificate-oidc-issuer https://token.actions.githubusercontent.com env: COSIGN_EXPERIMENTAL: 1 - name: Run Trivy in GitHub SBOM mode and submit results to Dependency Graph @@ -59,4 +61,4 @@ jobs: format: 'github' output: 'dependency-results.sbom.json' image-ref: '.' - github-pat: ${{ secrets.GITHUB_TOKEN }} # or ${{ secrets.github_pat_name }} if you're using a PAT + github-pat: ${{ env.registry_password }} # or ${{ secrets.github_pat_name }} if you're using a PAT diff --git a/.github/workflows/quality-trace-container.yaml b/.github/workflows/qualitytrace-server.yaml similarity index 82% rename from .github/workflows/quality-trace-container.yaml rename to .github/workflows/qualitytrace-server.yaml index e431013..9082229 100644 --- a/.github/workflows/quality-trace-container.yaml +++ b/.github/workflows/qualitytrace-server.yaml @@ -1,4 +1,4 @@ -name: Quality-Trace Docker Image CI +name: qualitytrace-server Docker Image CI on: push: @@ -22,6 +22,8 @@ jobs: env: REGISTRY: ghcr.io GH_URL: https://github.com + registry_username: ${{ github.actor }} + registry_password: ${{ secrets.GITHUB_TOKEN }} steps: - name: Checkout GitHub Action uses: actions/checkout@v3 @@ -33,10 +35,10 @@ jobs: - name: Set up Go environment uses: actions/setup-go@v4 with: - go-version: '1.21.1' + go-version: '1.21' - name: Build server - run: make dist/quality-trace-server + run: make dist/qualitytrace-server env: GO111MODULE: on @@ -57,8 +59,8 @@ jobs: uses: docker/login-action@v2 with: registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + username: ${{ env.registry_username }} + password: ${{ env.registry_password }} - name: Build image and push to GitHub Container Registry uses: docker/build-push-action@v4 @@ -82,7 +84,7 @@ jobs: COSIGN_EXPERIMENTAL: 1 - name: Verify the pushed tags - run: cosign verify ${{ env.REGISTRY }}/${{ github.repository }}:${{ github.run_id }} --certificate-identity ${{ env.GH_URL }}/${{ github.repository }}/.github/workflows/quality-trace-container.yaml@refs/heads/main --certificate-oidc-issuer https://token.actions.githubusercontent.com + run: cosign verify ${{ env.REGISTRY }}/${{ github.repository }}:${{ github.run_id }} --certificate-identity ${{ env.GH_URL }}/${{ github.repository }}/.github/workflows/qualitytrace-container.yaml@refs/heads/main --certificate-oidc-issuer https://token.actions.githubusercontent.com env: COSIGN_EXPERIMENTAL: 1 @@ -93,4 +95,4 @@ jobs: format: 'github' output: 'dependency-results.sbom.json' image-ref: '.' - github-pat: ${{ secrets.GITHUB_TOKEN }} + github-pat: ${{ env.registry_password }} diff --git a/.gitignore b/.gitignore index 51acfa8..c9c9e20 100644 --- a/.gitignore +++ b/.gitignore @@ -25,7 +25,7 @@ dist/ # .DS_Store .DS_Store config.yml -server/qualityTrace.yaml +server/qualitytrace.yaml server/html __debug* diff --git a/.goreleaser.demo.yaml b/.goreleaser.demo.yaml index 3ac2393..ed34188 100644 --- a/.goreleaser.demo.yaml +++ b/.goreleaser.demo.yaml @@ -1,5 +1,5 @@ # yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json -project_name: qualityTrace +project_name: qualitytrace changelog: sort: asc filters: @@ -19,13 +19,13 @@ env: - TRACETEST_DEFAULT_CLOUD_ENDPOINT={{ if index .Env "TRACETEST_DEFAULT_CLOUD_ENDPOINT" }}{{ .Env.TRACETEST_DEFAULT_CLOUD_ENDPOINT }}{{ else }}{{ end }} builds: - id: server - binary: qualityTrace-server + binary: qualitytrace-server main: ./server/main.go ldflags: - - -X github.com/intelops/qualityTrace/server/version.Version={{ .Env.VERSION }} - - -X github.com/intelops/qualityTrace/server/version.Env={{ .Env.TRACETEST_ENV }} - - -X github.com/intelops/qualityTrace/server/analytics.SecretKey={{ .Env.ANALYTICS_BE_KEY }} - - -X github.com/intelops/qualityTrace/server/analytics.FrontendKey={{ .Env.ANALYTICS_FE_KEY }} + - -X github.com/intelops/qualitytrace/server/version.Version={{ .Env.VERSION }} + - -X github.com/intelops/qualitytrace/server/version.Env={{ .Env.TRACETEST_ENV }} + - -X github.com/intelops/qualitytrace/server/analytics.SecretKey={{ .Env.ANALYTICS_BE_KEY }} + - -X github.com/intelops/qualitytrace/server/analytics.FrontendKey={{ .Env.ANALYTICS_FE_KEY }} env: - CGO_ENABLED=0 goos: @@ -33,13 +33,13 @@ builds: goarch: - amd64 - id: cli - binary: qualityTrace + binary: qualitytrace main: ./cli/main.go ldflags: - - -X github.com/intelops/qualityTrace/cli/config.Version={{ .Env.VERSION }} - - -X github.com/intelops/qualityTrace/cli/config.DefaultCloudEndpoint={{ .Env.TRACETEST_DEFAULT_CLOUD_ENDPOINT }} - - -X github.com/intelops/qualityTrace/cli/config.Env={{ .Env.TRACETEST_ENV }} - - -X github.com/intelops/qualityTrace/cli/analytics.SecretKey={{ .Env.ANALYTICS_BE_KEY }} + - -X github.com/intelops/qualitytrace/cli/config.Version={{ .Env.VERSION }} + - -X github.com/intelops/qualitytrace/cli/config.DefaultCloudEndpoint={{ .Env.TRACETEST_DEFAULT_CLOUD_ENDPOINT }} + - -X github.com/intelops/qualitytrace/cli/config.Env={{ .Env.TRACETEST_ENV }} + - -X github.com/intelops/qualitytrace/cli/analytics.SecretKey={{ .Env.ANALYTICS_BE_KEY }} env: - CGO_ENABLED=0 goos: @@ -49,7 +49,7 @@ builds: dockers: - image_templates: - - 'intelops/qualityTrace:{{ .Env.VERSION }}' + - 'intelops/qualitytrace:{{ .Env.VERSION }}' extra_files: - web/build build_flag_templates: @@ -64,7 +64,7 @@ dockers: goarch: amd64 - image_templates: - - 'intelops/qualityTrace-agent:{{ .Env.VERSION }}-amd64' + - 'intelops/qualitytrace-agent:{{ .Env.VERSION }}-amd64' dockerfile: "Dockerfile.agent" extra_files: - agent/ diff --git a/.goreleaser.dev.yaml b/.goreleaser.dev.yaml index 181a657..26b4b7b 100644 --- a/.goreleaser.dev.yaml +++ b/.goreleaser.dev.yaml @@ -1,5 +1,5 @@ # yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json -project_name: qualityTrace +project_name: qualitytrace changelog: sort: asc filters: @@ -22,13 +22,13 @@ env: builds: - id: server - binary: qualityTrace-server + binary: qualitytrace-server main: ./server/main.go ldflags: - - -X github.com/intelops/qualityTrace/server/version.Version={{ .Env.VERSION }} - - -X github.com/intelops/qualityTrace/server/version.Env={{ .Env.TRACETEST_ENV }} - - -X github.com/intelops/qualityTrace/server/analytics.SecretKey={{ .Env.ANALYTICS_BE_KEY }} - - -X github.com/intelops/qualityTrace/server/analytics.FrontendKey={{ .Env.ANALYTICS_FE_KEY }} + - -X github.com/intelops/qualitytrace/server/version.Version={{ .Env.VERSION }} + - -X github.com/intelops/qualitytrace/server/version.Env={{ .Env.TRACETEST_ENV }} + - -X github.com/intelops/qualitytrace/server/analytics.SecretKey={{ .Env.ANALYTICS_BE_KEY }} + - -X github.com/intelops/qualitytrace/server/analytics.FrontendKey={{ .Env.ANALYTICS_FE_KEY }} env: - CGO_ENABLED=0 goos: @@ -36,13 +36,13 @@ builds: goarch: - amd64 - id: cli - binary: qualityTrace + binary: qualitytrace main: ./cli/main.go ldflags: - - -X github.com/intelops/qualityTrace/cli/config.Version={{ .Env.VERSION }} - - -X github.com/intelops/qualityTrace/cli/config.DefaultCloudEndpoint={{ .Env.TRACETEST_DEFAULT_CLOUD_ENDPOINT }} - - -X github.com/intelops/qualityTrace/cli/config.Env={{ .Env.TRACETEST_ENV }} - - -X github.com/intelops/qualityTrace/cli/analytics.SecretKey={{ .Env.ANALYTICS_BE_KEY }} + - -X github.com/intelops/qualitytrace/cli/config.Version={{ .Env.VERSION }} + - -X github.com/intelops/qualitytrace/cli/config.DefaultCloudEndpoint={{ .Env.TRACETEST_DEFAULT_CLOUD_ENDPOINT }} + - -X github.com/intelops/qualitytrace/cli/config.Env={{ .Env.TRACETEST_ENV }} + - -X github.com/intelops/qualitytrace/cli/analytics.SecretKey={{ .Env.ANALYTICS_BE_KEY }} env: - CGO_ENABLED=0 goos: @@ -53,9 +53,9 @@ builds: dockers: - skip_push: true image_templates: - - 'intelops/qualityTrace:{{ .Env.TAG }}' - extra_files: - - web/build + - 'intelops/qualitytrace:{{ .Env.TAG }}' + # extra_files: + # - web/build build_flag_templates: - "--pull" - "--label=org.opencontainers.image.created={{.Date}}" @@ -69,7 +69,7 @@ dockers: - skip_push: true image_templates: - - 'intelops/qualityTrace-agent:{{ .Env.VERSION }}' + - 'intelops/qualitytrace-agent:{{ .Env.VERSION }}' dockerfile: "Dockerfile.agent" extra_files: - agent/ diff --git a/.goreleaser.rc.yaml b/.goreleaser.rc.yaml index 3bf718e..2bcf30a 100644 --- a/.goreleaser.rc.yaml +++ b/.goreleaser.rc.yaml @@ -1,5 +1,5 @@ # yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json -project_name: qualityTrace +project_name: qualitytrace changelog: sort: asc filters: @@ -21,13 +21,13 @@ env: - TRACETEST_DEFAULT_CLOUD_ENDPOINT={{ if index .Env "TRACETEST_DEFAULT_CLOUD_ENDPOINT" }}{{ .Env.TRACETEST_DEFAULT_CLOUD_ENDPOINT }}{{ else }}{{ end }} builds: - id: server - binary: qualityTrace-server + binary: qualitytrace-server main: ./server/main.go ldflags: - - -X github.com/intelops/qualityTrace/server/version.Version={{ .Env.VERSION }} - - -X github.com/intelops/qualityTrace/server/version.Env={{ .Env.TRACETEST_ENV }} - - -X github.com/intelops/qualityTrace/server/analytics.SecretKey={{ .Env.ANALYTICS_BE_KEY }} - - -X github.com/intelops/qualityTrace/server/analytics.FrontendKey={{ .Env.ANALYTICS_FE_KEY }} + - -X github.com/intelops/qualitytrace/server/version.Version={{ .Env.VERSION }} + - -X github.com/intelops/qualitytrace/server/version.Env={{ .Env.TRACETEST_ENV }} + - -X github.com/intelops/qualitytrace/server/analytics.SecretKey={{ .Env.ANALYTICS_BE_KEY }} + - -X github.com/intelops/qualitytrace/server/analytics.FrontendKey={{ .Env.ANALYTICS_FE_KEY }} env: - CGO_ENABLED=0 goos: @@ -43,13 +43,13 @@ builds: - "7" - id: cli - binary: qualityTrace + binary: qualitytrace main: ./cli/main.go ldflags: - - -X github.com/intelops/qualityTrace/cli/config.Version={{ .Env.VERSION }} - - -X github.com/intelops/qualityTrace/cli/config.DefaultCloudEndpoint={{ .Env.TRACETEST_DEFAULT_CLOUD_ENDPOINT }} - - -X github.com/intelops/qualityTrace/cli/config.Env={{ .Env.TRACETEST_ENV }} - - -X github.com/intelops/qualityTrace/cli/analytics.SecretKey={{ .Env.ANALYTICS_BE_KEY }} + - -X github.com/intelops/qualitytrace/cli/config.Version={{ .Env.VERSION }} + - -X github.com/intelops/qualitytrace/cli/config.DefaultCloudEndpoint={{ .Env.TRACETEST_DEFAULT_CLOUD_ENDPOINT }} + - -X github.com/intelops/qualitytrace/cli/config.Env={{ .Env.TRACETEST_ENV }} + - -X github.com/intelops/qualitytrace/cli/analytics.SecretKey={{ .Env.ANALYTICS_BE_KEY }} env: - CGO_ENABLED=0 goos: @@ -66,7 +66,7 @@ builds: dockers: - image_templates: - - 'intelops/qualityTrace:{{ .Env.VERSION }}-amd64' + - 'intelops/qualitytrace:{{ .Env.VERSION }}-amd64' extra_files: - web/build - server/migrations @@ -83,7 +83,7 @@ dockers: use: buildx - image_templates: - - 'intelops/qualityTrace:{{ .Env.VERSION }}-arm64' + - 'intelops/qualitytrace:{{ .Env.VERSION }}-arm64' extra_files: - web/build - server/migrations @@ -101,7 +101,7 @@ dockers: # agent - image_templates: - - 'intelops/qualityTrace-agent:{{ .Env.VERSION }}-amd64' + - 'intelops/qualitytrace-agent:{{ .Env.VERSION }}-amd64' dockerfile: "Dockerfile.agent" extra_files: - agent/ @@ -118,7 +118,7 @@ dockers: use: buildx - image_templates: - - 'intelops/qualityTrace-agent:{{ .Env.VERSION }}-arm64' + - 'intelops/qualitytrace-agent:{{ .Env.VERSION }}-arm64' dockerfile: "Dockerfile.agent" extra_files: - agent/ @@ -135,16 +135,16 @@ dockers: use: buildx docker_manifests: -- name_template: 'intelops/qualityTrace:{{ .Env.VERSION }}' +- name_template: 'intelops/qualitytrace:{{ .Env.VERSION }}' image_templates: - - 'intelops/qualityTrace:{{ .Env.VERSION }}-amd64' - - 'intelops/qualityTrace:{{ .Env.VERSION }}-arm64' + - 'intelops/qualitytrace:{{ .Env.VERSION }}-amd64' + - 'intelops/qualitytrace:{{ .Env.VERSION }}-arm64' # agent -- name_template: 'intelops/qualityTrace-agent:{{ .Env.VERSION }}' +- name_template: 'intelops/qualitytrace-agent:{{ .Env.VERSION }}' image_templates: - - 'intelops/qualityTrace-agent:{{ .Env.VERSION }}-amd64' - - 'intelops/qualityTrace-agent:{{ .Env.VERSION }}-arm64' + - 'intelops/qualitytrace-agent:{{ .Env.VERSION }}-amd64' + - 'intelops/qualitytrace-agent:{{ .Env.VERSION }}-arm64' archives: - name_template: >- @@ -164,7 +164,7 @@ universal_binaries: nfpms: - vendor: Kubeshop - homepage: https://qualityTrace.kubeshop.io/ + homepage: https://qualitytrace.kubeshop.io/ maintainer: Sebastian Choren license: MIT formats: diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 61225fd..3991959 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,5 +1,5 @@ # yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json -project_name: qualityTrace +project_name: qualitytrace changelog: sort: asc filters: @@ -23,13 +23,13 @@ env: - TRACETEST_DEFAULT_CLOUD_ENDPOINT={{ if index .Env "TRACETEST_DEFAULT_CLOUD_ENDPOINT" }}{{ .Env.TRACETEST_DEFAULT_CLOUD_ENDPOINT }}{{ else }}{{ end }} builds: - id: server - binary: qualityTrace-server + binary: qualitytrace-server main: ./server/main.go ldflags: - - -X github.com/intelops/qualityTrace/server/version.Version={{ .Env.VERSION }} - - -X github.com/intelops/qualityTrace/server/version.Env={{ .Env.TRACETEST_ENV }} - - -X github.com/intelops/qualityTrace/server/analytics.SecretKey={{ .Env.ANALYTICS_BE_KEY }} - - -X github.com/intelops/qualityTrace/server/analytics.FrontendKey={{ .Env.ANALYTICS_FE_KEY }} + - -X github.com/intelops/qualitytrace/server/version.Version={{ .Env.VERSION }} + - -X github.com/intelops/qualitytrace/server/version.Env={{ .Env.TRACETEST_ENV }} + - -X github.com/intelops/qualitytrace/server/analytics.SecretKey={{ .Env.ANALYTICS_BE_KEY }} + - -X github.com/intelops/qualitytrace/server/analytics.FrontendKey={{ .Env.ANALYTICS_FE_KEY }} env: - CGO_ENABLED=0 goos: @@ -45,13 +45,13 @@ builds: - "7" - id: cli - binary: qualityTrace + binary: qualitytrace main: ./cli/main.go ldflags: - - -X github.com/intelops/qualityTrace/cli/config.Version={{ .Env.VERSION }} - - -X github.com/intelops/qualityTrace/cli/config.DefaultCloudEndpoint={{ .Env.TRACETEST_DEFAULT_CLOUD_ENDPOINT }} - - -X github.com/intelops/qualityTrace/cli/config.Env={{ .Env.TRACETEST_ENV }} - - -X github.com/intelops/qualityTrace/cli/analytics.SecretKey={{ .Env.ANALYTICS_BE_KEY }} + - -X github.com/intelops/qualitytrace/cli/config.Version={{ .Env.VERSION }} + - -X github.com/intelops/qualitytrace/cli/config.DefaultCloudEndpoint={{ .Env.TRACETEST_DEFAULT_CLOUD_ENDPOINT }} + - -X github.com/intelops/qualitytrace/cli/config.Env={{ .Env.TRACETEST_ENV }} + - -X github.com/intelops/qualitytrace/cli/analytics.SecretKey={{ .Env.ANALYTICS_BE_KEY }} env: - CGO_ENABLED=0 goos: @@ -69,14 +69,14 @@ builds: snapshot: name_template: '{{ incpatch .Version }}-next' -nightly: - publish_release: true - keep_single_release: true - name_template: 'latest' +# nightly: +# publish_release: true +# keep_single_release: true +# name_template: 'latest' dockers: - image_templates: - - 'intelops/qualityTrace:{{ .Env.VERSION }}-amd64' + - 'intelops/qualitytrace:{{ .Env.VERSION }}-amd64' extra_files: - web/build - server/migrations @@ -93,7 +93,7 @@ dockers: use: buildx - image_templates: - - 'intelops/qualityTrace:{{ .Env.VERSION }}-arm64' + - 'intelops/qualitytrace:{{ .Env.VERSION }}-arm64' extra_files: - web/build - server/migrations @@ -111,7 +111,7 @@ dockers: # agent - image_templates: - - 'intelops/qualityTrace-agent:{{ .Env.VERSION }}-amd64' + - 'intelops/qualitytrace-agent:{{ .Env.VERSION }}-amd64' dockerfile: "Dockerfile.agent" extra_files: - agent/ @@ -128,7 +128,7 @@ dockers: use: buildx - image_templates: - - 'intelops/qualityTrace-agent:{{ .Env.VERSION }}-arm64' + - 'intelops/qualitytrace-agent:{{ .Env.VERSION }}-arm64' dockerfile: "Dockerfile.agent" extra_files: - agent/ @@ -145,24 +145,24 @@ dockers: use: buildx docker_manifests: -- name_template: 'intelops/qualityTrace:{{ .Env.VERSION }}' +- name_template: 'intelops/qualitytrace:{{ .Env.VERSION }}' image_templates: - - 'intelops/qualityTrace:{{ .Env.VERSION }}-amd64' - - 'intelops/qualityTrace:{{ .Env.VERSION }}-arm64' -- name_template: '{{ if not .IsNightly }}intelops/qualityTrace:latest{{ end }}' + - 'intelops/qualitytrace:{{ .Env.VERSION }}-amd64' + - 'intelops/qualitytrace:{{ .Env.VERSION }}-arm64' +- name_template: '{{ if not .IsNightly }}intelops/qualitytrace:latest{{ end }}' image_templates: - - 'intelops/qualityTrace:{{ .Env.VERSION }}-amd64' - - 'intelops/qualityTrace:{{ .Env.VERSION }}-arm64' + - 'intelops/qualitytrace:{{ .Env.VERSION }}-amd64' + - 'intelops/qualitytrace:{{ .Env.VERSION }}-arm64' # agent -- name_template: 'intelops/qualityTrace-agent:{{ .Env.VERSION }}' +- name_template: 'intelops/qualitytrace-agent:{{ .Env.VERSION }}' image_templates: - - 'intelops/qualityTrace-agent:{{ .Env.VERSION }}-amd64' - - 'intelops/qualityTrace-agent:{{ .Env.VERSION }}-arm64' -- name_template: '{{ if not .IsNightly }}intelops/qualityTrace-agent:latest{{ end }}' + - 'intelops/qualitytrace-agent:{{ .Env.VERSION }}-amd64' + - 'intelops/qualitytrace-agent:{{ .Env.VERSION }}-arm64' +- name_template: '{{ if not .IsNightly }}intelops/qualitytrace-agent:latest{{ end }}' image_templates: - - 'intelops/qualityTrace-agent:{{ .Env.VERSION }}-amd64' - - 'intelops/qualityTrace-agent:{{ .Env.VERSION }}-arm64' + - 'intelops/qualitytrace-agent:{{ .Env.VERSION }}-amd64' + - 'intelops/qualitytrace-agent:{{ .Env.VERSION }}-arm64' archives: - name_template: >- @@ -182,7 +182,7 @@ universal_binaries: nfpms: - vendor: Kubeshop - homepage: https://qualityTrace.kubeshop.io/ + homepage: https://qualitytrace.kubeshop.io/ maintainer: Sebastian Choren license: MIT formats: @@ -211,9 +211,9 @@ publishers: brews: - repository: owner: kubeshop - name: homebrew-qualityTrace + name: homebrew-qualitytrace commit_author: name: Brew Bot email: brewbot@kubeshop.io - homepage: https://qualityTrace.kubeshop.io/ + homepage: https://qualitytrace.kubeshop.io/ license: "MIT" diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 02e3653..d7ed18a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,14 +1,14 @@ # How to Contribute -Thank you for looking at this. We, at Tracetest, are really excited to have you contribute on the project with us. +Thank you for looking at this. We, at Qualitytrace, are really excited to have you contribute on the project with us. -The main lines of communication with our team are through [Github issues](https://github.com/intelops/qualityTrace/issues/new/choose) or [Slack](https://dub.sh/qualityTrace-community). Feel free to ask any questions! +The main lines of communication with our team are through [Github issues](https://github.com/intelops/qualitytrace/issues/new/choose) or [Slack](https://dub.sh/qualitytrace-community). Feel free to ask any questions! ## Developing Development can be conducted using any GoLang and Typescript compatible IDE/editor (e.g., Jetbrains GoLand, VSCode). -There are four places where you develop new things on Tracetest: on the CLI, on the API Server, on the Web UI and on the Documentation website. +There are four places where you develop new things on Qualitytrace: on the CLI, on the API Server, on the Web UI and on the Documentation website. ### CLI @@ -16,11 +16,11 @@ Written in Golang, the CLI code is stored in the folder `./cli`. You can see wha To test its integration with our API, you can run a local API server on your machine by running one of our [examples](./examples/) with `docker compose`. For instance: ```sh -cd ./examples/qualityTrace-jaeger +cd ./examples/qualitytrace-jaeger docker compose up -d ``` -Remember that you need a file pointing to that server by configuring the CLI using the `qualityTrace configure` command or using the flag `-c` with a valid config file location, like `config.yaml` with the following content: +Remember that you need a file pointing to that server by configuring the CLI using the `qualitytrace configure` command or using the flag `-c` with a valid config file location, like `config.yaml` with the following content: ```yaml scheme: http endpoint: localhost:11633 @@ -31,7 +31,7 @@ analyticsEnabled: false Written in Golang, the API Server code is stored in `./server`. You can see what options you have to test and build the application by typing `make help` inside the folder. -To run the server along the database and the Open Telemetry collector, you can run `docker compose` at the root folder of Tracetest, by executing: +To run the server along the database and the Open Telemetry collector, you can run `docker compose` at the root folder of Qualitytrace, by executing: ```sh docker compose up postgres otel-collector ``` @@ -42,7 +42,7 @@ Written in Typescript and using Node.js tools, the Web UI code is stored in the Like the CLI, to connect to the API, you can run a local API server on your machine by running one of our [examples](./examples/) with `docker compose`. For instance: ```sh -cd ./examples/qualityTrace-jaeger +cd ./examples/qualitytrace-jaeger docker compose up -d ``` @@ -88,14 +88,14 @@ The server is responsible for serving both the API and the web UI. The easiest w We also use a few environment variables to configure the build. -It becomes evident that it's not very practical during development to keep all this things in mind. We provide 2 main ways to build, run and test Tracetest: +It becomes evident that it's not very practical during development to keep all this things in mind. We provide 2 main ways to build, run and test Qualitytrace: ### Makefile We provide a [Makefile](./Makefile) with a few targets that helps build all the parts in a development configuration without a lot of intervention. The more common used targets are: 1. **make help**: shows a list of commands with a description. -2. **make build-docker**: builds the current code (web, cli, server) and packages it all in a tagged docker image. The default image will be "intelops/qualityTrace:ev" +2. **make build-docker**: builds the current code (web, cli, server) and packages it all in a tagged docker image. The default image will be "intelops/qualitytrace:ev" 3. **make build-go**: build the cli and server only 4. **make build-web**: build the web UI only 5. **make run**: depends on the **build-docker** target. It build the image and starts a [docker compose stack](./docker-compose.yaml). The web UI will be available at `http://localhost:111633` @@ -105,7 +105,7 @@ We provide a [Makefile](./Makefile) with a few targets that helps build all the > **A note on go builds:** > When running **make build-docker**, the go binaries are built to be run inside a docker container. > Docker containers are always Linux, regardless of the host OS. -> This means that if you run **make build-docker** on a mac, the targets `dist/qualityTrace` and `dist/qualityTrace-server` won't run on the mac host. +> This means that if you run **make build-docker** on a mac, the targets `dist/qualitytrace` and `dist/qualitytrace-server` won't run on the mac host. > You need to rebuild the go binaries (using **make build-go**)after building the docker image if you want to run them directly on the host MacOS. ### run.sh script @@ -120,21 +120,21 @@ This script provides a few commands to help manage this test target deployment. **Build everything, and start clean** ```sh -./run.sh down build up qualityTrace-logs +./run.sh down build up qualitytrace-logs ``` -This command firt resets the environment (`down` == `docker compose down`), build the docker image (`build` == `make docker-build`), starts the environment (`up` == `docker compose up -d`) and finally starts following the qualityTrace logs (`qualityTrace-logs` == `docker compose -f qualityTrace`) +This command firt resets the environment (`down` == `docker compose down`), build the docker image (`build` == `make docker-build`), starts the environment (`up` == `docker compose up -d`) and finally starts following the qualitytrace logs (`qualitytrace-logs` == `docker compose -f qualitytrace`) **Run the server e2e trace based tests** ```sh -./run.sh qualityTraces +./run.sh qualitytraces ``` THis will run the server e2e trace based testing suite, also known as [dogfooding](https://es.wikipedia.org/wiki/Dogfooding). This assumes the test environment is already started. **Clean, start, run tests, and reset** ```sh -./run.sh down build up qualityTraces down +./run.sh down build up qualitytraces down ``` This resets the state, build, starts the test environment, runs the trace based test suit, and resets everything agian. diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 03caf75..0000000 --- a/Dockerfile +++ /dev/null @@ -1,15 +0,0 @@ -FROM alpine - -WORKDIR /app - -COPY ./qualityTrace-server /app/qualityTrace-server -COPY ./qualityTrace /app/qualityTrace - -COPY ./web/build ./html - -# Adding /app folder on $PATH to allow users to call qualityTrace cli on docker -ENV PATH="$PATH:/app" - -EXPOSE 11633/tcp - -ENTRYPOINT ["/app/qualityTrace-server", "serve"] diff --git a/Dockerfile.agent b/Dockerfile.agent index bc426b2..3d78113 100644 --- a/Dockerfile.agent +++ b/Dockerfile.agent @@ -5,9 +5,9 @@ ENV TRACETEST_API_KEY "" WORKDIR /app -COPY ./qualityTrace /app/qualityTrace +COPY ./qualitytrace /app/qualitytrace COPY ./agent/entrypoint.sh /app/entrypoint.sh -RUN chmod +x /app/entrypoint.sh +# RUN chmod +x /app/entrypoint.sh ENTRYPOINT ["/app/entrypoint.sh"] diff --git a/Makefile b/Makefile index d34d0c0..6a2176a 100644 --- a/Makefile +++ b/Makefile @@ -1,28 +1,27 @@ export VERSION?=dev -export TRACETEST_DEFAULT_CLOUD_ENDPOINT=https://app.qualityTrace.io -TAG?=$(VERSION) -GORELEASER_VERSION=1.23.0-pro +export TRACETEST_DEFAULT_CLOUD_ENDPOINT=https://app.qualitytrace.io +export TAG?=$(VERSION) +# GORELEASER_VERSION=1.23.0 PROJECT_ROOT=${PWD} -CURRENT_GORELEASER_VERSION := $(shell goreleaser --version | head -n 9 | tail -n 1 | tr -s ' ' | cut -d' ' -f2-) -goreleaser-version: -ifneq "$(CURRENT_GORELEASER_VERSION)" "$(GORELEASER_VERSION)" - @printf "\033[0;31m Bad goreleaser version $(CURRENT_GORELEASER_VERSION), please install $(GORELEASER_VERSION)\033[0m\n\n" - @printf "\033[0;31m Tracetest requires goreleaser pro installed (licence not necessary for local builds)\033[0m\n\n" - @printf "\033[0;33m See https://goreleaser.com/install/ \033[0m\n\n" -endif +# CURRENT_GORELEASER_VERSION := $(shell goreleaser --version | head -n 9 | tail -n 1 | tr -s ' ' | cut -d' ' -f2-) +# goreleaser-version: +# ifneq "$(CURRENT_GORELEASER_VERSION)" "$(GORELEASER_VERSION)" +# @printf "\033[0;31m Bad goreleaser version $(CURRENT_GORELEASER_VERSION), please install $(GORELEASER_VERSION)\033[0m\n\n" +# @printf "\033[0;31m Tracetest requires goreleaser pro installed (licence not necessary for local builds)\033[0m\n\n" +# @printf "\033[0;33m See https://goreleaser.com/install/ \033[0m\n\n" +# endif CLI_SRC_FILES := $(shell find cli -type f) -dist/qualityTrace: goreleaser-version generate-cli $(CLI_SRC_FILES) - goreleaser build --single-target --clean --snapshot --id cli - find ./dist -name 'qualityTrace' -exec cp {} ./dist \; +dist/qualitytrace: generate-cli $(CLI_SRC_FILES) + env GOOS=linux CGO_ENABLED=0 GO111MODULE=on go build -o qualitytrace cli/main.go SERVER_SRC_FILES := $(shell find server -type f) -dist/qualityTrace-server: goreleaser-version generate-server $(SERVER_SRC_FILES) - goreleaser build --single-target --clean --snapshot --id server - find ./dist -name 'qualityTrace-server' -exec cp {} ./dist \; +dist/qualitytrace-server: generate-server $(SERVER_SRC_FILES) + @echo "Choose a command run:" + env GOOS=linux CGO_ENABLED=0 GO111MODULE=on go build -o qualitytrace-server server/main.go web/node_modules: web/package.json web/package-lock.json cd web; npm install @@ -31,10 +30,11 @@ WEB_SRC_FILES := $(shell find web -type f -not -path "*node_modules*" -not -path web/build: web/node_modules $(WEB_SRC_FILES) cd web; npm run build -dist/qualityTrace-docker-$(TAG).tar dist/qualityTrace-agent-docker-$(TAG).tar: $(CLI_SRC_FILES) $(SERVER_SRC_FILES) $(WEB_SRC_FILES) Dockerfile Dockerfile.agent agent/entrypoint.sh +dist/qualitytrace-docker-$(TAG).tar dist/qualitytrace-agent-docker-$(TAG).tar: $(CLI_SRC_FILES) $(SERVER_SRC_FILES) $(WEB_SRC_FILES) Dockerfile Dockerfile.agent agent/entrypoint.sh + chmod +x agent/entrypoint.sh goreleaser release --clean --skip=announce --snapshot -f .goreleaser.dev.yaml - docker save --output dist/qualityTrace-docker-$(TAG).tar "intelops/qualityTrace:$(TAG)" - docker save --output dist/qualityTrace-agent-docker-$(TAG).tar "intelops/qualityTrace-agent:$(TAG)" + docker save --output dist/qualitytrace-docker-$(TAG).tar "intelops/qualitytrace:$(TAG)" + docker save --output dist/qualitytrace-agent-docker-$(TAG).tar "intelops/qualitytrace-agent:$(TAG)" help: Makefile ## show list of commands @echo "Choose a command run:" @@ -48,25 +48,25 @@ view-open-api: ## Run SwaggerUI locally to see OpenAPI documentation @docker run --rm -p 9002:8080 -v $(shell pwd)/api:/api -e SWAGGER_JSON=/api/openapi.yaml swaggerapi/swagger-ui .PHONY: run build build-go build-web build-docker -run: build-docker ## build and run qualityTrace using docker compose +run: build-docker ## build and run qualitytrace using docker compose docker compose up -build-go: dist/qualityTrace dist/qualityTrace-server ## build all go code -build-web: web/build ## build web -build-docker: goreleaser-version web/build .goreleaser.dev.yaml dist/qualityTrace-docker-$(TAG).tar dist/qualityTrace-agent-docker-$(TAG).tar ## build and tag docker image as defined in .goreleaser.dev.yaml +build-go: dist/qualitytrace dist/qualitytrace-server ## build all go code +build-web: web/build # build web +build-docker: goreleaser-version .goreleaser.dev.yaml dist/qualitytrace-docker-$(TAG).tar dist/qualitytrace-agent-docker-$(TAG).tar ## build and tag docker image as defined in .goreleaser.dev.yaml .PHONY: generate generate-server generate-cli generate-web -generate: generate-server generate-cli generate-web ## generate code entities from openapi definitions for all parts of the code +generate: generate-server generate-cli #generate-web ## generate code entities from openapi definitions for all parts of the code generate-server: server/openapi ## generate code entities from openapi definitions for server generate-cli: cli/openapi ## generate code entities from openapi definitions for cli -generate-web: web/src/types/Generated.types.ts ## generate code entities from openapi definitions for web +# generate-web: web/src/types/Generated.types.ts ## generate code entities from openapi definitions for web OPENAPI_SRC_FILES := $(shell find api -type f) OPENAPI_GENERATOR_VER=v6.3.0 OPENAPI_GENERATOR_IMAGE=openapitools/openapi-generator-cli:$(OPENAPI_GENERATOR_VER) OPENAPI_GENERATOR_CLI=docker run --rm -u ${shell id -u} -v "$(PROJECT_ROOT):/local" -w "/local" ${OPENAPI_GENERATOR_IMAGE} OPENAPI_TARGET_DIR=openapi/ -web/src/types/Generated.types.ts: $(OPENAPI_SRC_FILES) - cd web; npm run types:generate +# web/src/types/Generated.types.ts: $(OPENAPI_SRC_FILES) + # cd web; npm run types:generate cli/openapi: $(OPENAPI_SRC_FILES) $(eval BASE := ./cli) @@ -109,4 +109,4 @@ clean: ## cleans the build artifacts rm -rf dist rm -rf web/build rm -rf web/node_modules - docker image rm "intelops/qualityTrace:$(TAG)" + docker image rm "intelops/qualitytrace:$(TAG)" diff --git a/TESTING.md b/TESTING.md index f4925e4..e88ceb8 100644 --- a/TESTING.md +++ b/TESTING.md @@ -1,29 +1,29 @@ -# Testing Tracetest +# Testing Qualitytrace -On Tracetest, we work in two ways to test the entire system and guarantee that everything is working fine. One is through automatic tests, where we run unit, integration and end-to-end tests on Tracetest CLI, Web UI and Server. +On Qualitytrace, we work in two ways to test the entire system and guarantee that everything is working fine. One is through automatic tests, where we run unit, integration and end-to-end tests on Qualitytrace CLI, Web UI and Server. Another source of tests is the manual tests that we execute on each release, simulating users, and checking if everything is ok on these tests. ## Manual Tests -On our manual tests, we aim to do some [sanity checks](https://en.wikipedia.org/wiki/Sanity_check) to see if the main features are working as expected. Usually, we run it on each Tracetest release. +On our manual tests, we aim to do some [sanity checks](https://en.wikipedia.org/wiki/Sanity_check) to see if the main features are working as expected. Usually, we run it on each Qualitytrace release. -### Testing Tracetest setup +### Testing Qualitytrace setup -This is a simple test to check if Tracetest is working correctly given it was provisioned with one Tracing Data Store. +This is a simple test to check if Qualitytrace is working correctly given it was provisioned with one Tracing Data Store. The steps that we should follow are: - [ ] Open WebUI and go to `/settings` page. The provisioned Data Store should be selected. -- [ ] Run `qualityTrace export datastore --id current` and check if the data was exported correctly. -- [ ] Create a test on WebUI that calls a demo API (like [Pokeshop](https://docs.qualityTrace.io/live-examples/pokeshop/overview) or [Open Telemetry Store](https://docs.qualityTrace.io/live-examples/opentelemetry-store/overview)). This test should fetch traces correctly and run without errors. +- [ ] Run `qualitytrace export datastore --id current` and check if the data was exported correctly. +- [ ] Create a test on WebUI that calls a demo API (like [Pokeshop](https://docs.qualitytrace.io/live-examples/pokeshop/overview) or [Open Telemetry Store](https://docs.qualitytrace.io/live-examples/opentelemetry-store/overview)). This test should fetch traces correctly and run without errors. ### Checklist on version release -This is the entire checklist on what we should do to assert that Tracetest is working fine on each version release. On each version release, we can copy the contents of this checklist and open a Github Discussion to start each test. +This is the entire checklist on what we should do to assert that Qualitytrace is working fine on each version release. On each version release, we can copy the contents of this checklist and open a Github Discussion to start each test. -- [ ] Check if our release pipeline on [Release Tracetest](https://github.com/intelops/qualityTrace/actions/workflows/release-version.yml) workflow on Github Actions worked correctly. -- [ ] Double check [Detailed installation](https://docs.qualityTrace.io/getting-started/detailed-installation) doc and see if everything is documented correctly +- [ ] Check if our release pipeline on [Release Qualitytrace](https://github.com/intelops/qualitytrace/actions/workflows/release-version.yml) workflow on Github Actions worked correctly. +- [ ] Double check [Detailed installation](https://docs.qualitytrace.io/getting-started/detailed-installation) doc and see if everything is documented correctly ### Tests to validate RC @@ -34,16 +34,16 @@ This is the entire checklist on what we should do to assert that Tracetest is wo - [ ] Kubernetes and no demo API - [ ] Kubernetes and demo API -- Test Tracetest examples +- Test Qualitytrace examples - - [ ] [Amazon X-Ray example](https://github.com/intelops/qualityTrace/tree/main/examples/qualityTrace-amazon-x-ray) - - [ ] [Datadog example](https://github.com/intelops/qualityTrace/tree/main/examples/qualityTrace-datadog) - - [ ] [Dynatrace example](https://github.com/intelops/qualityTrace/tree/main/examples/qualityTrace-dynatrace) - - [ ] [Elastic APM example](https://github.com/intelops/qualityTrace/tree/main/examples/qualityTrace-elasticapm) - - [ ] [Lightstep example](https://github.com/intelops/qualityTrace/tree/main/examples/qualityTrace-lightstep) - - [ ] [New Relic example](https://github.com/intelops/qualityTrace/tree/main/examples/qualityTrace-new-relic) - - [ ] [SignalFX example](https://github.com/intelops/qualityTrace/tree/main/examples/qualityTrace-signalfx) - - [ ] [Tempo Cloud example](https://github.com/intelops/qualityTrace/tree/main/examples/quick-start-grafana-cloud-tempo-nodejs) + - [ ] [Amazon X-Ray example](https://github.com/intelops/qualitytrace/tree/main/examples/qualitytrace-amazon-x-ray) + - [ ] [Datadog example](https://github.com/intelops/qualitytrace/tree/main/examples/qualitytrace-datadog) + - [ ] [Dynatrace example](https://github.com/intelops/qualitytrace/tree/main/examples/qualitytrace-dynatrace) + - [ ] [Elastic APM example](https://github.com/intelops/qualitytrace/tree/main/examples/qualitytrace-elasticapm) + - [ ] [Lightstep example](https://github.com/intelops/qualitytrace/tree/main/examples/qualitytrace-lightstep) + - [ ] [New Relic example](https://github.com/intelops/qualitytrace/tree/main/examples/qualitytrace-new-relic) + - [ ] [SignalFX example](https://github.com/intelops/qualitytrace/tree/main/examples/qualitytrace-signalfx) + - [ ] [Tempo Cloud example](https://github.com/intelops/qualitytrace/tree/main/examples/quick-start-grafana-cloud-tempo-nodejs) - Test specific features added/changed on this release: @@ -63,12 +63,12 @@ This is the entire checklist on what we should do to assert that Tracetest is wo ## Automatic Tests -Today Tracetest has 3 main components: a WebUI, a CLI and a Server. +Today Qualitytrace has 3 main components: a WebUI, a CLI and a Server. ### Web UI - **Unit tests**: Run by executing `npm test` on `./web` folder -- **End-to-end tests**: Run using [cypress](https://www.cypress.io/) against a temporary Tracetest created on Kubernetes. +- **End-to-end tests**: Run using [cypress](https://www.cypress.io/) against a temporary Qualitytrace created on Kubernetes. ### CLI @@ -78,4 +78,4 @@ Today Tracetest has 3 main components: a WebUI, a CLI and a Server. - **Unit tests**: Run by executing `make test` on `./server` folder - **Integration tests**: Run along with some unit tests running `make test` on `./server` folder, but also done in a matrix test on Github actions, by executing the `test-examples` action. -- **End-to-end tests**: Run using Tracetest to test itself. We deploy two instances of Tracetest and use one to test API calls to another on Github actions, by executing the `trace-testing` action. +- **End-to-end tests**: Run using Qualitytrace to test itself. We deploy two instances of Qualitytrace and use one to test API calls to another on Github actions, by executing the `trace-testing` action. diff --git a/agent/Dockerfile b/agent/Dockerfile index c995264..487dab1 100644 --- a/agent/Dockerfile +++ b/agent/Dockerfile @@ -1,9 +1,9 @@ ARG TRACETEST_VERSION=latest -FROM intelops/qualityTrace:${TRACETEST_VERSION} +FROM intelops/qualitytrace:${TRACETEST_VERSION} WORKDIR /app ENV TRACETEST_API_KEY "" -ENTRYPOINT [ "qualityTrace", "start", "--api-key", "$TRACETEST_API_KEY" ] +ENTRYPOINT [ "qualitytrace", "start", "--api-key", "$TRACETEST_API_KEY" ] diff --git a/agent/LICENSE b/agent/LICENSE index c9dc6bc..c38d3fa 100644 --- a/agent/LICENSE +++ b/agent/LICENSE @@ -12,8 +12,8 @@ terms on its behalf and the right to bind that Legal Entity to this Agreement. Use of Tracetest is expressly conditioned upon Your assent to all the terms of this Agreement, as well as the other Tracetest agreements, including the Tracetest Privacy Policy and Tracetest Terms and Conditions, -accessible at: https://app.qualityTrace.io/privacy-policy.html and -https://app.qualityTrace.io/terms-of-service.html. +accessible at: https://app.qualitytrace.io/privacy-policy.html and +https://app.qualitytrace.io/terms-of-service.html. 1. Definitions. In addition to other terms defined elsewhere in this Agreement and in the other Tracetest agreements, the terms below have the following @@ -24,13 +24,13 @@ provided by Tracetest, including both Tracetest Core and Tracetest Pro, as defined below. (b) “Tracetest Core” shall mean the version and features of Tracetest designated -as free of charge at https://qualityTrace.io/pricing and available at -https://github.com/intelops/qualityTrace pursuant to the terms of the MIT license. +as free of charge at https://qualitytrace.io/pricing and available at +https://github.com/intelops/qualitytrace pursuant to the terms of the MIT license. (c) “Tracetest Pro” shall mean the version of Tracetest which includes the additional paid features of Tracetest designated at -https://qualityTrace.io/pricing and made available by Tracetest, also at -https://github.com/intelops/qualityTrace, the use of which is subject to additional +https://qualitytrace.io/pricing and made available by Tracetest, also at +https://github.com/intelops/qualitytrace, the use of which is subject to additional terms set out below. (d) “Contribution” shall mean any work of authorship, including the original @@ -149,7 +149,7 @@ agree to abide by all third party terms and conditions and licenses. 3. Support. From time to time, in its sole discretion, Tracetest may offer professional services or support for Tracetest, which may now or in the future be -subject to additional fees, as outlined at https://qualityTrace.io/pricing. +subject to additional fees, as outlined at https://qualitytrace.io/pricing. 4. Fees for Tracetest Pro or Tracetest Support. @@ -157,7 +157,7 @@ subject to additional fees, as outlined at https://qualityTrace.io/pricing. subscription agreement with Tracetest for its use (a “Paid Pro License”) and timely paying Tracetest for such Paid Pro License; provided that features of Tracetest Pro that are features of Tracetest Core and are not designated as “Pro -features” at https://qualityTrace.io/pricing may be used for free under the terms of +features” at https://qualitytrace.io/pricing may be used for free under the terms of the Agreement without a Paid Pro License. Tracetest Pro may at its discretion include within Tracetest Pro certain Source code solely intended to determine Your compliance with the Paid Pro License which may be accessed without a Paid diff --git a/agent/client/client.go b/agent/client/client.go index c6a0a04..1e52eb5 100644 --- a/agent/client/client.go +++ b/agent/client/client.go @@ -12,7 +12,7 @@ import ( "time" retry "github.com/avast/retry-go" - "github.com/intelops/qualityTrace/agent/proto" + "github.com/intelops/qualitytrace/agent/proto" "go.uber.org/zap" "google.golang.org/grpc" diff --git a/agent/client/default_listeners.go b/agent/client/default_listeners.go index 82c3190..c8df06f 100644 --- a/agent/client/default_listeners.go +++ b/agent/client/default_listeners.go @@ -3,7 +3,7 @@ package client import ( "context" - "github.com/intelops/qualityTrace/agent/proto" + "github.com/intelops/qualitytrace/agent/proto" ) func triggerListener(_ context.Context, _ *proto.TriggerRequest) error { diff --git a/agent/client/mocks/grpc_server.go b/agent/client/mocks/grpc_server.go index a35087c..3378d60 100644 --- a/agent/client/mocks/grpc_server.go +++ b/agent/client/mocks/grpc_server.go @@ -8,8 +8,8 @@ import ( "sync" "github.com/avast/retry-go" - "github.com/intelops/qualityTrace/agent/client" - "github.com/intelops/qualityTrace/agent/proto" + "github.com/intelops/qualitytrace/agent/client" + "github.com/intelops/qualitytrace/agent/proto" "google.golang.org/grpc" ) diff --git a/agent/client/workflow_listen_for_ds_connection_tests.go b/agent/client/workflow_listen_for_ds_connection_tests.go index 2d87e35..c26feb0 100644 --- a/agent/client/workflow_listen_for_ds_connection_tests.go +++ b/agent/client/workflow_listen_for_ds_connection_tests.go @@ -6,8 +6,8 @@ import ( "log" "time" - "github.com/intelops/qualityTrace/agent/proto" - "github.com/intelops/qualityTrace/agent/telemetry" + "github.com/intelops/qualitytrace/agent/proto" + "github.com/intelops/qualitytrace/agent/telemetry" "go.uber.org/zap" ) diff --git a/agent/client/workflow_listen_for_ds_connection_tests_test.go b/agent/client/workflow_listen_for_ds_connection_tests_test.go index 0f671c8..b675644 100644 --- a/agent/client/workflow_listen_for_ds_connection_tests_test.go +++ b/agent/client/workflow_listen_for_ds_connection_tests_test.go @@ -5,9 +5,9 @@ import ( "testing" "time" - "github.com/intelops/qualityTrace/agent/client" - "github.com/intelops/qualityTrace/agent/client/mocks" - "github.com/intelops/qualityTrace/agent/proto" + "github.com/intelops/qualitytrace/agent/client" + "github.com/intelops/qualitytrace/agent/client/mocks" + "github.com/intelops/qualitytrace/agent/proto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/agent/client/workflow_listen_for_otlp_connection_tests.go b/agent/client/workflow_listen_for_otlp_connection_tests.go index d2d8ba7..2f81847 100644 --- a/agent/client/workflow_listen_for_otlp_connection_tests.go +++ b/agent/client/workflow_listen_for_otlp_connection_tests.go @@ -6,8 +6,8 @@ import ( "log" "time" - "github.com/intelops/qualityTrace/agent/proto" - "github.com/intelops/qualityTrace/agent/telemetry" + "github.com/intelops/qualitytrace/agent/proto" + "github.com/intelops/qualitytrace/agent/telemetry" "go.uber.org/zap" ) diff --git a/agent/client/workflow_listen_for_otlp_connection_tests_test.go b/agent/client/workflow_listen_for_otlp_connection_tests_test.go index b7181a0..218fb95 100644 --- a/agent/client/workflow_listen_for_otlp_connection_tests_test.go +++ b/agent/client/workflow_listen_for_otlp_connection_tests_test.go @@ -5,9 +5,9 @@ import ( "testing" "time" - "github.com/intelops/qualityTrace/agent/client" - "github.com/intelops/qualityTrace/agent/client/mocks" - "github.com/intelops/qualityTrace/agent/proto" + "github.com/intelops/qualitytrace/agent/client" + "github.com/intelops/qualitytrace/agent/client/mocks" + "github.com/intelops/qualitytrace/agent/proto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/agent/client/workflow_listen_for_poll_requests.go b/agent/client/workflow_listen_for_poll_requests.go index e86d485..35358d7 100644 --- a/agent/client/workflow_listen_for_poll_requests.go +++ b/agent/client/workflow_listen_for_poll_requests.go @@ -6,8 +6,8 @@ import ( "log" "time" - "github.com/intelops/qualityTrace/agent/proto" - "github.com/intelops/qualityTrace/agent/telemetry" + "github.com/intelops/qualitytrace/agent/proto" + "github.com/intelops/qualitytrace/agent/telemetry" "go.uber.org/zap" ) diff --git a/agent/client/workflow_listen_for_poll_requests_test.go b/agent/client/workflow_listen_for_poll_requests_test.go index d2d66b5..157c9b2 100644 --- a/agent/client/workflow_listen_for_poll_requests_test.go +++ b/agent/client/workflow_listen_for_poll_requests_test.go @@ -5,9 +5,9 @@ import ( "testing" "time" - "github.com/intelops/qualityTrace/agent/client" - "github.com/intelops/qualityTrace/agent/client/mocks" - "github.com/intelops/qualityTrace/agent/proto" + "github.com/intelops/qualitytrace/agent/client" + "github.com/intelops/qualitytrace/agent/client/mocks" + "github.com/intelops/qualitytrace/agent/proto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/agent/client/workflow_listen_for_stop_requests.go b/agent/client/workflow_listen_for_stop_requests.go index c4ab13f..8d7b04f 100644 --- a/agent/client/workflow_listen_for_stop_requests.go +++ b/agent/client/workflow_listen_for_stop_requests.go @@ -6,8 +6,8 @@ import ( "log" "time" - "github.com/intelops/qualityTrace/agent/proto" - "github.com/intelops/qualityTrace/agent/telemetry" + "github.com/intelops/qualitytrace/agent/proto" + "github.com/intelops/qualitytrace/agent/telemetry" "go.uber.org/zap" ) diff --git a/agent/client/workflow_listen_for_trigger_requests.go b/agent/client/workflow_listen_for_trigger_requests.go index 1061b24..0d0ab51 100644 --- a/agent/client/workflow_listen_for_trigger_requests.go +++ b/agent/client/workflow_listen_for_trigger_requests.go @@ -6,8 +6,8 @@ import ( "log" "time" - "github.com/intelops/qualityTrace/agent/proto" - "github.com/intelops/qualityTrace/agent/telemetry" + "github.com/intelops/qualitytrace/agent/proto" + "github.com/intelops/qualitytrace/agent/telemetry" "go.uber.org/zap" ) diff --git a/agent/client/workflow_listen_for_trigger_requests_test.go b/agent/client/workflow_listen_for_trigger_requests_test.go index 9b6c1cc..ca648d6 100644 --- a/agent/client/workflow_listen_for_trigger_requests_test.go +++ b/agent/client/workflow_listen_for_trigger_requests_test.go @@ -5,9 +5,9 @@ import ( "testing" "time" - "github.com/intelops/qualityTrace/agent/client" - "github.com/intelops/qualityTrace/agent/client/mocks" - "github.com/intelops/qualityTrace/agent/proto" + "github.com/intelops/qualitytrace/agent/client" + "github.com/intelops/qualitytrace/agent/client/mocks" + "github.com/intelops/qualitytrace/agent/proto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/agent/client/workflow_ping.go b/agent/client/workflow_ping.go index 23a738a..7289501 100644 --- a/agent/client/workflow_ping.go +++ b/agent/client/workflow_ping.go @@ -5,7 +5,7 @@ import ( "log" "time" - "github.com/intelops/qualityTrace/agent/proto" + "github.com/intelops/qualitytrace/agent/proto" "go.uber.org/zap" ) diff --git a/agent/client/workflow_send_ds_connection_result.go b/agent/client/workflow_send_ds_connection_result.go index 9504780..b7d8114 100644 --- a/agent/client/workflow_send_ds_connection_result.go +++ b/agent/client/workflow_send_ds_connection_result.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/agent/proto" - "github.com/intelops/qualityTrace/agent/telemetry" + "github.com/intelops/qualitytrace/agent/proto" + "github.com/intelops/qualitytrace/agent/telemetry" ) func (c *Client) SendDataStoreConnectionResult(ctx context.Context, response *proto.DataStoreConnectionTestResponse) error { diff --git a/agent/client/workflow_send_ds_connection_result_test.go b/agent/client/workflow_send_ds_connection_result_test.go index a4d5224..4965d0b 100644 --- a/agent/client/workflow_send_ds_connection_result_test.go +++ b/agent/client/workflow_send_ds_connection_result_test.go @@ -4,9 +4,9 @@ import ( "context" "testing" - "github.com/intelops/qualityTrace/agent/client" - "github.com/intelops/qualityTrace/agent/client/mocks" - "github.com/intelops/qualityTrace/agent/proto" + "github.com/intelops/qualitytrace/agent/client" + "github.com/intelops/qualitytrace/agent/client/mocks" + "github.com/intelops/qualitytrace/agent/proto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/agent/client/workflow_send_otlp_connection_result.go b/agent/client/workflow_send_otlp_connection_result.go index ce108e1..d151bb1 100644 --- a/agent/client/workflow_send_otlp_connection_result.go +++ b/agent/client/workflow_send_otlp_connection_result.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/agent/proto" - "github.com/intelops/qualityTrace/agent/telemetry" + "github.com/intelops/qualitytrace/agent/proto" + "github.com/intelops/qualitytrace/agent/telemetry" ) func (c *Client) SendOTLPConnectionResult(ctx context.Context, response *proto.OTLPConnectionTestResponse) error { diff --git a/agent/client/workflow_send_otlp_connection_result_test.go b/agent/client/workflow_send_otlp_connection_result_test.go index 60c1274..27ab0b6 100644 --- a/agent/client/workflow_send_otlp_connection_result_test.go +++ b/agent/client/workflow_send_otlp_connection_result_test.go @@ -5,9 +5,9 @@ import ( "testing" "time" - "github.com/intelops/qualityTrace/agent/client" - "github.com/intelops/qualityTrace/agent/client/mocks" - "github.com/intelops/qualityTrace/agent/proto" + "github.com/intelops/qualitytrace/agent/client" + "github.com/intelops/qualitytrace/agent/client/mocks" + "github.com/intelops/qualitytrace/agent/proto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/agent/client/workflow_send_trace.go b/agent/client/workflow_send_trace.go index 0ce8594..7251ccc 100644 --- a/agent/client/workflow_send_trace.go +++ b/agent/client/workflow_send_trace.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/agent/proto" - "github.com/intelops/qualityTrace/agent/telemetry" + "github.com/intelops/qualitytrace/agent/proto" + "github.com/intelops/qualitytrace/agent/telemetry" ) func (c *Client) SendTrace(ctx context.Context, response *proto.PollingResponse) error { diff --git a/agent/client/workflow_send_trace_test.go b/agent/client/workflow_send_trace_test.go index dcebb2d..a92717f 100644 --- a/agent/client/workflow_send_trace_test.go +++ b/agent/client/workflow_send_trace_test.go @@ -4,9 +4,9 @@ import ( "context" "testing" - "github.com/intelops/qualityTrace/agent/client" - "github.com/intelops/qualityTrace/agent/client/mocks" - "github.com/intelops/qualityTrace/agent/proto" + "github.com/intelops/qualitytrace/agent/client" + "github.com/intelops/qualitytrace/agent/client/mocks" + "github.com/intelops/qualitytrace/agent/proto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/agent/client/workflow_send_trigger_response.go b/agent/client/workflow_send_trigger_response.go index 8f84aa0..bdb9338 100644 --- a/agent/client/workflow_send_trigger_response.go +++ b/agent/client/workflow_send_trigger_response.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/agent/proto" - "github.com/intelops/qualityTrace/agent/telemetry" + "github.com/intelops/qualitytrace/agent/proto" + "github.com/intelops/qualitytrace/agent/telemetry" ) func (c *Client) SendTriggerResponse(ctx context.Context, response *proto.TriggerResponse) error { diff --git a/agent/client/workflow_send_trigger_response_test.go b/agent/client/workflow_send_trigger_response_test.go index 57bbb9e..6cf0961 100644 --- a/agent/client/workflow_send_trigger_response_test.go +++ b/agent/client/workflow_send_trigger_response_test.go @@ -4,9 +4,9 @@ import ( "context" "testing" - "github.com/intelops/qualityTrace/agent/client" - "github.com/intelops/qualityTrace/agent/client/mocks" - "github.com/intelops/qualityTrace/agent/proto" + "github.com/intelops/qualitytrace/agent/client" + "github.com/intelops/qualitytrace/agent/client/mocks" + "github.com/intelops/qualitytrace/agent/proto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/agent/client/workflow_shutdown.go b/agent/client/workflow_shutdown.go index 0f0f12d..c31294f 100644 --- a/agent/client/workflow_shutdown.go +++ b/agent/client/workflow_shutdown.go @@ -6,7 +6,7 @@ import ( "log" "time" - "github.com/intelops/qualityTrace/agent/proto" + "github.com/intelops/qualitytrace/agent/proto" "go.uber.org/zap" ) diff --git a/agent/client/workflow_shutdown_test.go b/agent/client/workflow_shutdown_test.go index 9d4604f..4aee38c 100644 --- a/agent/client/workflow_shutdown_test.go +++ b/agent/client/workflow_shutdown_test.go @@ -5,9 +5,9 @@ import ( "testing" "time" - "github.com/intelops/qualityTrace/agent/client" - "github.com/intelops/qualityTrace/agent/client/mocks" - "github.com/intelops/qualityTrace/agent/proto" + "github.com/intelops/qualitytrace/agent/client" + "github.com/intelops/qualitytrace/agent/client/mocks" + "github.com/intelops/qualitytrace/agent/proto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/agent/client/workflow_startup.go b/agent/client/workflow_startup.go index b0cb7c6..0960b50 100644 --- a/agent/client/workflow_startup.go +++ b/agent/client/workflow_startup.go @@ -5,7 +5,7 @@ import ( "fmt" "time" - "github.com/intelops/qualityTrace/agent/proto" + "github.com/intelops/qualitytrace/agent/proto" "go.uber.org/zap" ) diff --git a/agent/client/workflow_startup_test.go b/agent/client/workflow_startup_test.go index 127d3d9..5a367da 100644 --- a/agent/client/workflow_startup_test.go +++ b/agent/client/workflow_startup_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/intelops/qualityTrace/agent/client" - "github.com/intelops/qualityTrace/agent/client/mocks" + "github.com/intelops/qualitytrace/agent/client" + "github.com/intelops/qualitytrace/agent/client/mocks" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/agent/collector/collector.go b/agent/collector/collector.go index b591784..750dd5b 100644 --- a/agent/collector/collector.go +++ b/agent/collector/collector.go @@ -8,9 +8,9 @@ import ( "syscall" "time" - "github.com/intelops/qualityTrace/agent/event" - "github.com/intelops/qualityTrace/agent/ui/dashboard/sensors" - "github.com/intelops/qualityTrace/server/otlp" + "github.com/intelops/qualitytrace/agent/event" + "github.com/intelops/qualitytrace/agent/ui/dashboard/sensors" + "github.com/intelops/qualitytrace/server/otlp" "go.opentelemetry.io/otel/trace" "go.uber.org/zap" ) diff --git a/agent/collector/collector_test.go b/agent/collector/collector_test.go index 50be003..7a9ae9c 100644 --- a/agent/collector/collector_test.go +++ b/agent/collector/collector_test.go @@ -7,9 +7,9 @@ import ( "testing" "time" - "github.com/intelops/qualityTrace/agent/collector" - "github.com/intelops/qualityTrace/agent/collector/mocks" - "github.com/intelops/qualityTrace/server/pkg/id" + "github.com/intelops/qualitytrace/agent/collector" + "github.com/intelops/qualitytrace/agent/collector/mocks" + "github.com/intelops/qualitytrace/server/pkg/id" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "go.opentelemetry.io/otel/trace" diff --git a/agent/collector/ingester.go b/agent/collector/ingester.go index e2d9138..5581e98 100644 --- a/agent/collector/ingester.go +++ b/agent/collector/ingester.go @@ -5,10 +5,10 @@ import ( "sync" "time" - "github.com/intelops/qualityTrace/agent/event" - "github.com/intelops/qualityTrace/agent/ui/dashboard/events" - "github.com/intelops/qualityTrace/agent/ui/dashboard/sensors" - "github.com/intelops/qualityTrace/server/otlp" + "github.com/intelops/qualitytrace/agent/event" + "github.com/intelops/qualitytrace/agent/ui/dashboard/events" + "github.com/intelops/qualitytrace/agent/ui/dashboard/sensors" + "github.com/intelops/qualitytrace/server/otlp" "go.opencensus.io/trace" pb "go.opentelemetry.io/proto/otlp/collector/trace/v1" v1 "go.opentelemetry.io/proto/otlp/trace/v1" diff --git a/agent/collector/mocks/tracer.go b/agent/collector/mocks/tracer.go index 5845baf..56d8f5e 100644 --- a/agent/collector/mocks/tracer.go +++ b/agent/collector/mocks/tracer.go @@ -25,7 +25,7 @@ func NewTracer(ctx context.Context, endpoint string) (trace.Tracer, error) { otel.SetTracerProvider(tracerProvider) - tracer := tracerProvider.Tracer("qualityTrace") + tracer := tracerProvider.Tracer("qualitytrace") return tracer, nil } diff --git a/agent/config/config.go b/agent/config/config.go index a0c1bcb..5e3695d 100644 --- a/agent/config/config.go +++ b/agent/config/config.go @@ -36,11 +36,11 @@ func LoadConfig() (Config, error) { viper.EnvKeyReplacer(strings.NewReplacer(".", "_")), ) - qualityTraceFolder := getTracetestFolder() + qualitytraceFolder := getQualitytraceFolder() - vp.SetEnvPrefix("qualityTrace") - vp.AddConfigPath(qualityTraceFolder) - vp.AddConfigPath("qualityTrace-agent.yaml") + vp.SetEnvPrefix("qualitytrace") + vp.AddConfigPath(qualitytraceFolder) + vp.AddConfigPath("qualitytrace-agent.yaml") vp.SetConfigName("agent") vp.SetConfigType("env") vp.AutomaticEnv() @@ -48,7 +48,7 @@ func LoadConfig() (Config, error) { vp.SetDefault("AGENT_NAME", getHostname()) vp.SetDefault("API_KEY", "") vp.SetDefault("ENVIRONMENT_ID", "") - vp.SetDefault("SERVER_URL", "https://app.qualityTrace.io") + vp.SetDefault("SERVER_URL", "https://app.qualitytrace.io") vp.SetDefault("COLLECTOR_ENDPOINT", "") vp.SetDefault("MODE", "") vp.SetDefault("OTLP_SERVER.GRPC_PORT", 4317) @@ -70,14 +70,14 @@ func LoadConfig() (Config, error) { return config, nil } -func getTracetestFolder() string { +func getQualitytraceFolder() string { homeFolder, err := os.UserHomeDir() if err != nil { // as a fallback, just return the current folder return "." } - return path.Join(homeFolder, ".qualityTrace") + return path.Join(homeFolder, ".qualitytrace") } func getHostname() string { diff --git a/agent/config/config_test.go b/agent/config/config_test.go index a0361d4..9c1cfb8 100644 --- a/agent/config/config_test.go +++ b/agent/config/config_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/intelops/qualityTrace/agent/config" + "github.com/intelops/qualitytrace/agent/config" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -19,7 +19,7 @@ func TestConfigDefaults(t *testing.T) { assert.Equal(t, "", cfg.APIKey) assert.Equal(t, hostname, cfg.Name) assert.Empty(t, cfg.EnvironmentID) - assert.Equal(t, "https://app.qualityTrace.io", cfg.ServerURL) + assert.Equal(t, "https://app.qualitytrace.io", cfg.ServerURL) assert.Equal(t, 4317, cfg.OTLPServer.GRPCPort) assert.Equal(t, 4318, cfg.OTLPServer.HTTPPort) } diff --git a/agent/entrypoint.sh b/agent/entrypoint.sh old mode 100644 new mode 100755 index 8ab46b2..961e712 --- a/agent/entrypoint.sh +++ b/agent/entrypoint.sh @@ -6,5 +6,5 @@ if [ -z "$TRACETEST_API_KEY" ]; then exit 1 fi -# Execute qualityTrace with the API key and any additional arguments -exec qualityTrace start --api-key "$TRACETEST_API_KEY" "$@" +# Execute qualitytrace with the API key and any additional arguments +exec qualitytrace start --api-key "$TRACETEST_API_KEY" "$@" diff --git a/agent/event/observer.go b/agent/event/observer.go index 6afc3c2..097080b 100644 --- a/agent/event/observer.go +++ b/agent/event/observer.go @@ -1,7 +1,7 @@ package event import ( - "github.com/intelops/qualityTrace/agent/proto" + "github.com/intelops/qualitytrace/agent/proto" v1 "go.opentelemetry.io/proto/otlp/trace/v1" ) diff --git a/agent/proto/orchestrator.proto b/agent/proto/orchestrator.proto index 0c068f8..96d3578 100644 --- a/agent/proto/orchestrator.proto +++ b/agent/proto/orchestrator.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package proto; -option go_package = "github.com/intelops/qualityTrace/agent/proto"; +option go_package = "github.com/intelops/qualitytrace/agent/proto"; // Orchestrator is the piece of software that will orchestrate the work and send // requests to the agent diff --git a/agent/runner/environment.go b/agent/runner/environment.go index 794c4ab..3e47d4d 100644 --- a/agent/runner/environment.go +++ b/agent/runner/environment.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/intelops/qualityTrace/cli/config" - "github.com/intelops/qualityTrace/cli/pkg/resourcemanager" + "github.com/intelops/qualitytrace/cli/config" + "github.com/intelops/qualitytrace/cli/pkg/resourcemanager" ) type environment struct { diff --git a/agent/runner/runner.go b/agent/runner/runner.go index bea64d0..ddc1ba1 100644 --- a/agent/runner/runner.go +++ b/agent/runner/runner.go @@ -7,13 +7,13 @@ import ( "os" "github.com/golang-jwt/jwt" - agentConfig "github.com/intelops/qualityTrace/agent/config" - "github.com/intelops/qualityTrace/agent/event" - "github.com/intelops/qualityTrace/agent/ui" + agentConfig "github.com/intelops/qualitytrace/agent/config" + "github.com/intelops/qualitytrace/agent/event" + "github.com/intelops/qualitytrace/agent/ui" - "github.com/intelops/qualityTrace/cli/config" - "github.com/intelops/qualityTrace/cli/pkg/oauth" - "github.com/intelops/qualityTrace/cli/pkg/resourcemanager" + "github.com/intelops/qualitytrace/cli/config" + "github.com/intelops/qualitytrace/cli/pkg/oauth" + "github.com/intelops/qualitytrace/cli/pkg/resourcemanager" "go.uber.org/zap" "go.uber.org/zap/zapcore" @@ -41,8 +41,8 @@ func NewRunner(configurator config.Configurator, resources *resourcemanager.Regi func (s *Runner) Run(ctx context.Context, cfg config.Config, flags agentConfig.Flags, verbose bool) error { s.ui.Banner(config.Version) - s.ui.Println(`Tracetest start launches a lightweight agent. It enables you to run tests and collect traces with Tracetest. -Once started, Tracetest Agent exposes OTLP ports 4317 and 4318 to ingest traces via gRCP and HTTP.`) + s.ui.Println(`Qualitytrace start launches a lightweight agent. It enables you to run tests and collect traces with Qualitytrace. +Once started, Qualitytrace Agent exposes OTLP ports 4317 and 4318 to ingest traces via gRCP and HTTP.`) s.ui.Println("") // print empty line if flags.Token == "" || flags.AgentApiKey != "" { @@ -160,7 +160,7 @@ func (s *Runner) authenticate(ctx context.Context, cfg agentConfig.Config, obser for !isStarted { session, err = StartSession(ctx, cfg, observer, s.logger) if err != nil && errors.Is(err, ErrOtlpServerStart) { - s.ui.Error("Tracetest Agent binds to the OpenTelemetry ports 4317 and 4318 which are used to receive trace information from your system. The agent tried to bind to these ports, but failed.") + s.ui.Error("Qualitytrace Agent binds to the OpenTelemetry ports 4317 and 4318 which are used to receive trace information from your system. The agent tried to bind to these ports, but failed.") shouldRetry := s.ui.Enter("Please stop the process currently listening on these ports and press enter to try again.") if !shouldRetry { diff --git a/agent/runner/runstrategy_dashboard.go b/agent/runner/runstrategy_dashboard.go index 403c749..06cb57a 100644 --- a/agent/runner/runstrategy_dashboard.go +++ b/agent/runner/runstrategy_dashboard.go @@ -5,15 +5,15 @@ import ( "fmt" "time" - "github.com/intelops/qualityTrace/agent/collector" - agentConfig "github.com/intelops/qualityTrace/agent/config" - "github.com/intelops/qualityTrace/agent/event" - "github.com/intelops/qualityTrace/agent/proto" - "github.com/intelops/qualityTrace/agent/ui/dashboard" - "github.com/intelops/qualityTrace/agent/ui/dashboard/events" - "github.com/intelops/qualityTrace/agent/ui/dashboard/models" - "github.com/intelops/qualityTrace/agent/ui/dashboard/sensors" - "github.com/intelops/qualityTrace/server/version" + "github.com/intelops/qualitytrace/agent/collector" + agentConfig "github.com/intelops/qualitytrace/agent/config" + "github.com/intelops/qualitytrace/agent/event" + "github.com/intelops/qualitytrace/agent/proto" + "github.com/intelops/qualitytrace/agent/ui/dashboard" + "github.com/intelops/qualitytrace/agent/ui/dashboard/events" + "github.com/intelops/qualitytrace/agent/ui/dashboard/models" + "github.com/intelops/qualitytrace/agent/ui/dashboard/sensors" + "github.com/intelops/qualitytrace/server/version" v1 "go.opentelemetry.io/proto/otlp/trace/v1" "go.uber.org/zap" ) diff --git a/agent/runner/runstrategy_desktop.go b/agent/runner/runstrategy_desktop.go index 66a83da..49eeea7 100644 --- a/agent/runner/runstrategy_desktop.go +++ b/agent/runner/runstrategy_desktop.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - agentConfig "github.com/intelops/qualityTrace/agent/config" - "github.com/intelops/qualityTrace/agent/ui/dashboard/sensors" + agentConfig "github.com/intelops/qualitytrace/agent/config" + "github.com/intelops/qualitytrace/agent/ui/dashboard/sensors" - consoleUI "github.com/intelops/qualityTrace/agent/ui" + consoleUI "github.com/intelops/qualitytrace/agent/ui" ) func (s *Runner) RunDesktopStrategy(ctx context.Context, cfg agentConfig.Config, uiEndpoint string) error { diff --git a/agent/runner/runstrategy_verbose.go b/agent/runner/runstrategy_verbose.go index 2b5c33b..b90deaf 100644 --- a/agent/runner/runstrategy_verbose.go +++ b/agent/runner/runstrategy_verbose.go @@ -7,10 +7,10 @@ import ( "os/signal" "syscall" - agentConfig "github.com/intelops/qualityTrace/agent/config" - "github.com/intelops/qualityTrace/agent/event" - "github.com/intelops/qualityTrace/agent/proto" - consoleUI "github.com/intelops/qualityTrace/agent/ui" + agentConfig "github.com/intelops/qualitytrace/agent/config" + "github.com/intelops/qualitytrace/agent/event" + "github.com/intelops/qualitytrace/agent/proto" + consoleUI "github.com/intelops/qualitytrace/agent/ui" v1 "go.opentelemetry.io/proto/otlp/trace/v1" ) diff --git a/agent/runner/session.go b/agent/runner/session.go index e5cc225..00c6e80 100644 --- a/agent/runner/session.go +++ b/agent/runner/session.go @@ -5,14 +5,14 @@ import ( "errors" "fmt" - "github.com/intelops/qualityTrace/agent/client" - "github.com/intelops/qualityTrace/agent/collector" - "github.com/intelops/qualityTrace/agent/config" - "github.com/intelops/qualityTrace/agent/event" - "github.com/intelops/qualityTrace/agent/proto" - "github.com/intelops/qualityTrace/agent/telemetry" - "github.com/intelops/qualityTrace/agent/workers" - "github.com/intelops/qualityTrace/agent/workers/poller" + "github.com/intelops/qualitytrace/agent/client" + "github.com/intelops/qualitytrace/agent/collector" + "github.com/intelops/qualitytrace/agent/config" + "github.com/intelops/qualitytrace/agent/event" + "github.com/intelops/qualitytrace/agent/proto" + "github.com/intelops/qualitytrace/agent/telemetry" + "github.com/intelops/qualitytrace/agent/workers" + "github.com/intelops/qualitytrace/agent/workers/poller" "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" diff --git a/agent/telemetry/common.go b/agent/telemetry/common.go index 07068da..95cc1ad 100644 --- a/agent/telemetry/common.go +++ b/agent/telemetry/common.go @@ -4,13 +4,13 @@ import ( "fmt" "os" - "github.com/intelops/qualityTrace/server/version" + "github.com/intelops/qualitytrace/server/version" "go.opentelemetry.io/otel/sdk/resource" semconv "go.opentelemetry.io/otel/semconv/v1.21.0" ) func getAgentServiceName(serviceName string) string { - return fmt.Sprintf("qualityTrace.agent-%s", serviceName) + return fmt.Sprintf("qualitytrace.agent-%s", serviceName) } func getResource(serviceName string) (*resource.Resource, error) { diff --git a/agent/telemetry/meter.go b/agent/telemetry/meter.go index 05f0bc5..71ee667 100644 --- a/agent/telemetry/meter.go +++ b/agent/telemetry/meter.go @@ -33,7 +33,7 @@ func GetMeter(ctx context.Context, otelExporterEndpoint, serviceName string) (me return nil, fmt.Errorf("could not create meter provider: %w", err) } - return provider.Meter("qualityTrace.agent"), nil + return provider.Meter("qualitytrace.agent"), nil } func newMeterProvider(ctx context.Context, otelExporterEndpoint, serviceName string) (metric.MeterProvider, error) { diff --git a/agent/tracedb/awsxray.go b/agent/tracedb/awsxray.go index 869f25c..3d430dd 100644 --- a/agent/tracedb/awsxray.go +++ b/agent/tracedb/awsxray.go @@ -17,10 +17,10 @@ import ( "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/xray" - "github.com/intelops/qualityTrace/agent/tracedb/connection" - "github.com/intelops/qualityTrace/server/datastore" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/agent/tracedb/connection" + "github.com/intelops/qualitytrace/server/datastore" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/traces" conventions "go.opentelemetry.io/collector/semconv/v1.6.1" "go.opentelemetry.io/otel/trace" ) @@ -101,10 +101,10 @@ func (db *awsxrayDB) TestConnection(ctx context.Context) model.ConnectionResult connection.WithAuthenticationTest(connection.NewTestStep(func(ctx context.Context) (string, error) { _, err := db.GetTraceByID(ctx, db.GetTraceID().String()) if err != nil && strings.Contains(strings.ToLower(err.Error()), "403") { - return `Tracetest tried to execute an AWS XRay API request but it failed due to authentication issues`, err + return `Qualitytrace tried to execute an AWS XRay API request but it failed due to authentication issues`, err } - return "Tracetest managed to authenticate with the AWS Services", nil + return "Qualitytrace managed to authenticate with the AWS Services", nil })), ) @@ -206,9 +206,9 @@ func generateSpan(seg *segment, parent *traces.Span) (traces.Span, error) { return span, err } - attributes.Set(traces.TracetestMetadataFieldParentID, parentID.String()) + attributes.Set(traces.QualitytraceMetadataFieldParentID, parentID.String()) } else if parent != nil { - attributes.Set(traces.TracetestMetadataFieldParentID, parent.ID.String()) + attributes.Set(traces.QualitytraceMetadataFieldParentID, parent.ID.String()) } // decode span id diff --git a/agent/tracedb/azureappinsights.go b/agent/tracedb/azureappinsights.go index e49238c..567f1e3 100644 --- a/agent/tracedb/azureappinsights.go +++ b/agent/tracedb/azureappinsights.go @@ -11,10 +11,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/monitor/azquery" - "github.com/intelops/qualityTrace/agent/tracedb/connection" - "github.com/intelops/qualityTrace/server/datastore" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/agent/tracedb/connection" + "github.com/intelops/qualitytrace/server/datastore" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/traces" "go.opentelemetry.io/otel/trace" ) @@ -87,10 +87,10 @@ func (db *azureAppInsightsDB) TestConnection(ctx context.Context) model.Connecti connection.WithAuthenticationTest(connection.NewTestStep(func(ctx context.Context) (string, error) { _, err := db.GetTraceByID(ctx, db.GetTraceID().String()) if err != nil && strings.Contains(strings.ToLower(err.Error()), "403") { - return `Tracetest tried to execute an Azure API request but it failed due to authentication issues`, err + return `Qualitytrace tried to execute an Azure API request but it failed due to authentication issues`, err } - return "Tracetest managed to authenticate with the Azure Services", nil + return "Qualitytrace managed to authenticate with the Azure Services", nil })), ) @@ -333,9 +333,9 @@ func parseAttributes(span *traces.Span, value any) error { func parseParentID(span *traces.Span, value any) error { rawParentID, ok := value.(string) if ok { - span.Attributes.Set(traces.TracetestMetadataFieldParentID, rawParentID) + span.Attributes.Set(traces.QualitytraceMetadataFieldParentID, rawParentID) } else { - span.Attributes.Set(traces.TracetestMetadataFieldParentID, "") + span.Attributes.Set(traces.QualitytraceMetadataFieldParentID, "") } return nil } diff --git a/agent/tracedb/connection/connection.go b/agent/tracedb/connection/connection.go index 0d7cdc2..376fb35 100644 --- a/agent/tracedb/connection/connection.go +++ b/agent/tracedb/connection/connection.go @@ -8,7 +8,7 @@ import ( "strings" "time" - "github.com/intelops/qualityTrace/server/model" + "github.com/intelops/qualitytrace/server/model" ) const reachabilityTimeout = 5 * time.Second diff --git a/agent/tracedb/connection/connectivity_step.go b/agent/tracedb/connection/connectivity_step.go index 301178b..957559a 100644 --- a/agent/tracedb/connection/connectivity_step.go +++ b/agent/tracedb/connection/connectivity_step.go @@ -6,7 +6,7 @@ import ( "strings" "github.com/hashicorp/go-multierror" - "github.com/intelops/qualityTrace/server/model" + "github.com/intelops/qualitytrace/server/model" ) type connectivityTestStep struct { diff --git a/agent/tracedb/connection/options.go b/agent/tracedb/connection/options.go index c8ea229..e6fc447 100644 --- a/agent/tracedb/connection/options.go +++ b/agent/tracedb/connection/options.go @@ -3,7 +3,7 @@ package connection import ( "context" - "github.com/intelops/qualityTrace/server/model" + "github.com/intelops/qualitytrace/server/model" ) func WithPortLintingTest(step TestStep) TesterOption { diff --git a/agent/tracedb/connection/port_linting.go b/agent/tracedb/connection/port_linting.go index b4ceded..9498c90 100644 --- a/agent/tracedb/connection/port_linting.go +++ b/agent/tracedb/connection/port_linting.go @@ -6,7 +6,7 @@ import ( "regexp" "strings" - "github.com/intelops/qualityTrace/server/model" + "github.com/intelops/qualitytrace/server/model" ) type portLinter struct { diff --git a/agent/tracedb/connection/port_linting_test.go b/agent/tracedb/connection/port_linting_test.go index b9391cb..54c8ace 100644 --- a/agent/tracedb/connection/port_linting_test.go +++ b/agent/tracedb/connection/port_linting_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/intelops/qualityTrace/agent/tracedb/connection" - "github.com/intelops/qualityTrace/server/model" + "github.com/intelops/qualitytrace/agent/tracedb/connection" + "github.com/intelops/qualitytrace/server/model" "github.com/stretchr/testify/assert" ) diff --git a/agent/tracedb/connection/tester.go b/agent/tracedb/connection/tester.go index edf0bb7..6def713 100644 --- a/agent/tracedb/connection/tester.go +++ b/agent/tracedb/connection/tester.go @@ -3,7 +3,7 @@ package connection import ( "context" - "github.com/intelops/qualityTrace/server/model" + "github.com/intelops/qualitytrace/server/model" ) type TestStep interface { diff --git a/agent/tracedb/connection/trace_polling_step.go b/agent/tracedb/connection/trace_polling_step.go index ee2c44c..95449ba 100644 --- a/agent/tracedb/connection/trace_polling_step.go +++ b/agent/tracedb/connection/trace_polling_step.go @@ -4,8 +4,8 @@ import ( "context" "errors" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/traces" "go.opentelemetry.io/otel/trace" ) diff --git a/agent/tracedb/datasource/datasource.go b/agent/tracedb/datasource/datasource.go index 8d0e914..b280de2 100644 --- a/agent/tracedb/datasource/datasource.go +++ b/agent/tracedb/datasource/datasource.go @@ -3,9 +3,9 @@ package datasource import ( "context" - "github.com/intelops/qualityTrace/server/datastore" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/datastore" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/traces" "google.golang.org/grpc" ) diff --git a/agent/tracedb/datasource/grpc.go b/agent/tracedb/datasource/grpc.go index 42141df..7da7eb3 100644 --- a/agent/tracedb/datasource/grpc.go +++ b/agent/tracedb/datasource/grpc.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/agent/tracedb/connection" - "github.com/intelops/qualityTrace/server/datastore" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/agent/tracedb/connection" + "github.com/intelops/qualitytrace/server/datastore" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/traces" "github.com/pkg/errors" "go.opentelemetry.io/collector/component" "go.opentelemetry.io/collector/config/configcompression" diff --git a/agent/tracedb/datasource/http.go b/agent/tracedb/datasource/http.go index b359c14..a44e198 100644 --- a/agent/tracedb/datasource/http.go +++ b/agent/tracedb/datasource/http.go @@ -12,10 +12,10 @@ import ( "strings" "github.com/goware/urlx" - "github.com/intelops/qualityTrace/agent/tracedb/connection" - "github.com/intelops/qualityTrace/server/datastore" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/agent/tracedb/connection" + "github.com/intelops/qualitytrace/server/datastore" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/traces" ) type HttpClient struct { diff --git a/agent/tracedb/elasticsearchdb.go b/agent/tracedb/elasticsearchdb.go index a1428c3..3a3f13f 100644 --- a/agent/tracedb/elasticsearchdb.go +++ b/agent/tracedb/elasticsearchdb.go @@ -14,10 +14,10 @@ import ( "github.com/elastic/go-elasticsearch/v8" "github.com/elastic/go-elasticsearch/v8/esapi" - "github.com/intelops/qualityTrace/agent/tracedb/connection" - "github.com/intelops/qualityTrace/server/datastore" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/agent/tracedb/connection" + "github.com/intelops/qualitytrace/server/datastore" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/traces" "go.opentelemetry.io/otel/trace" ) @@ -52,10 +52,10 @@ func (db *elasticsearchDB) TestConnection(ctx context.Context) model.ConnectionR connection.WithAuthenticationTest(connection.NewTestStep(func(ctx context.Context) (string, error) { _, err := getClusterInfo(db.client) if err != nil { - return "Tracetest tried to execute an ElasticSearch API request but it failed due to authentication issues", err + return "Qualitytrace tried to execute an ElasticSearch API request but it failed due to authentication issues", err } - return "Tracetest managed to authenticate with ElasticSearch", nil + return "Qualitytrace managed to authenticate with ElasticSearch", nil })), ) @@ -222,7 +222,7 @@ func convertElasticSearchSpanIntoSpan(input map[string]interface{}) traces.Span // ParentId parentId := flatInput["parent.id"] if parentId != nil { - attributes.Set(traces.TracetestMetadataFieldParentID, flatInput["parent.id"].(string)) + attributes.Set(traces.QualitytraceMetadataFieldParentID, flatInput["parent.id"].(string)) } return traces.Span{ diff --git a/agent/tracedb/jaegerdb.go b/agent/tracedb/jaegerdb.go index 82a82a9..3bd0266 100644 --- a/agent/tracedb/jaegerdb.go +++ b/agent/tracedb/jaegerdb.go @@ -6,13 +6,13 @@ import ( "io" "strings" - pb "github.com/intelops/qualityTrace/agent/internal/proto-gen-go/api_v3" - "github.com/intelops/qualityTrace/agent/tracedb/connection" - "github.com/intelops/qualityTrace/agent/tracedb/datasource" - "github.com/intelops/qualityTrace/server/datastore" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/traces" + pb "github.com/intelops/qualitytrace/agent/internal/proto-gen-go/api_v3" + "github.com/intelops/qualitytrace/agent/tracedb/connection" + "github.com/intelops/qualitytrace/agent/tracedb/datasource" + "github.com/intelops/qualitytrace/server/datastore" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/traces" v1 "go.opentelemetry.io/proto/otlp/trace/v1" "google.golang.org/grpc" "google.golang.org/grpc/status" @@ -58,10 +58,10 @@ func (jtd *jaegerTraceDB) TestConnection(ctx context.Context) model.ConnectionRe connection.WithAuthenticationTest(connection.NewTestStep(func(ctx context.Context) (string, error) { _, err := jtd.GetTraceByID(ctx, id.NewRandGenerator().TraceID().String()) if strings.Contains(err.Error(), "authentication handshake failed") { - return "Tracetest tried to execute a gRPC request but it failed due to authentication issues", err + return "Qualitytrace tried to execute a gRPC request but it failed due to authentication issues", err } - return "Tracetest managed to authenticate with Jaeger", nil + return "Qualitytrace managed to authenticate with Jaeger", nil })), ) diff --git a/agent/tracedb/opensearchdb.go b/agent/tracedb/opensearchdb.go index 1fbbb9a..e64ca3a 100644 --- a/agent/tracedb/opensearchdb.go +++ b/agent/tracedb/opensearchdb.go @@ -10,10 +10,10 @@ import ( "strings" "time" - "github.com/intelops/qualityTrace/agent/tracedb/connection" - "github.com/intelops/qualityTrace/server/datastore" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/agent/tracedb/connection" + "github.com/intelops/qualitytrace/server/datastore" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/traces" "github.com/opensearch-project/opensearch-go" "github.com/opensearch-project/opensearch-go/opensearchapi" "go.opentelemetry.io/otel/trace" @@ -50,10 +50,10 @@ func (db *opensearchDB) TestConnection(ctx context.Context) model.ConnectionResu connection.WithAuthenticationTest(connection.NewTestStep(func(ctx context.Context) (string, error) { _, err := db.GetTraceByID(ctx, trace.TraceID{}.String()) if strings.Contains(strings.ToLower(err.Error()), "unauthorized") { - return "Tracetest tried to execute an OpenSearch API request but it failed due to authentication issues", err + return "Qualitytrace tried to execute an OpenSearch API request but it failed due to authentication issues", err } - return "Tracetest managed to authenticate with OpenSearch", nil + return "Qualitytrace managed to authenticate with OpenSearch", nil })), ) @@ -169,8 +169,8 @@ func convertOpensearchSpanIntoSpan(input map[string]interface{}) traces.Span { attributes.Set(name, fmt.Sprintf("%v", attrValue)) } - attributes.Set(traces.TracetestMetadataFieldKind, input["kind"].(string)) - attributes.Set(traces.TracetestMetadataFieldKind, input["parentSpanId"].(string)) + attributes.Set(traces.QualitytraceMetadataFieldKind, input["kind"].(string)) + attributes.Set(traces.QualitytraceMetadataFieldKind, input["parentSpanId"].(string)) return traces.Span{ ID: spanId, diff --git a/agent/tracedb/otlp.go b/agent/tracedb/otlp.go index ad439b6..d4625b0 100644 --- a/agent/tracedb/otlp.go +++ b/agent/tracedb/otlp.go @@ -5,8 +5,8 @@ import ( "database/sql" "errors" - "github.com/intelops/qualityTrace/agent/tracedb/connection" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/agent/tracedb/connection" + "github.com/intelops/qualitytrace/server/traces" "go.opentelemetry.io/otel/trace" ) diff --git a/agent/tracedb/signalfxdb.go b/agent/tracedb/signalfxdb.go index 7e4ee45..30409f8 100644 --- a/agent/tracedb/signalfxdb.go +++ b/agent/tracedb/signalfxdb.go @@ -10,10 +10,10 @@ import ( "strings" "time" - "github.com/intelops/qualityTrace/agent/tracedb/connection" - "github.com/intelops/qualityTrace/server/datastore" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/agent/tracedb/connection" + "github.com/intelops/qualitytrace/server/datastore" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/traces" "go.opentelemetry.io/otel/trace" ) @@ -60,10 +60,10 @@ func (db *signalfxDB) TestConnection(ctx context.Context) model.ConnectionResult connection.WithAuthenticationTest(connection.NewTestStep(func(ctx context.Context) (string, error) { _, err := db.GetTraceByID(ctx, trace.TraceID{}.String()) if strings.Contains(strings.ToLower(err.Error()), "401") { - return "Tracetest tried to execute an signalFX API request but it failed due to authentication issues", err + return "Qualitytrace tried to execute an signalFX API request but it failed due to authentication issues", err } - return "Tracetest managed to authenticate with signalFX", nil + return "Qualitytrace managed to authenticate with signalFX", nil })), ) return tester.TestConnection(ctx) @@ -186,8 +186,8 @@ func convertSignalFXSpan(in signalFXSpan) traces.Span { attributes.Set(name, value) } - attributes.Set(traces.TracetestMetadataFieldParentID, in.ParentID) - attributes.Set(traces.TracetestMetadataFieldKind, attributes.Get("span.kind")) + attributes.Set(traces.QualitytraceMetadataFieldParentID, in.ParentID) + attributes.Set(traces.QualitytraceMetadataFieldKind, attributes.Get("span.kind")) attributes.Delete("span.kind") spanID, _ := trace.SpanIDFromHex(in.SpanID) diff --git a/agent/tracedb/sumologicdb.go b/agent/tracedb/sumologicdb.go index bfa9ee8..373fdfd 100644 --- a/agent/tracedb/sumologicdb.go +++ b/agent/tracedb/sumologicdb.go @@ -10,11 +10,11 @@ import ( "strings" "time" - "github.com/intelops/qualityTrace/agent/tracedb/connection" - "github.com/intelops/qualityTrace/server/datastore" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/agent/tracedb/connection" + "github.com/intelops/qualitytrace/server/datastore" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/traces" "go.opentelemetry.io/otel/trace" ) @@ -74,10 +74,10 @@ func (db *sumologicDB) TestConnection(ctx context.Context) model.ConnectionResul connection.WithAuthenticationTest(connection.NewTestStep(func(ctx context.Context) (string, error) { _, err := db.GetTraceByID(ctx, id.NewRandGenerator().TraceID().String()) if strings.Contains(err.Error(), "Expected 200, got 401") { - return "Tracetest tried to execute a request but it failed due to authentication issues", err + return "Qualitytrace tried to execute a request but it failed due to authentication issues", err } - return "Tracetest managed to authenticate with Sumo Logic", nil + return "Qualitytrace managed to authenticate with Sumo Logic", nil })), ) @@ -178,7 +178,7 @@ func (db *sumologicDB) convertSumoLogicSpanSummariesIntoSpans(summaries []sumolo ID: spanID, Name: summary.Name, Attributes: traces.NewAttributes(map[string]string{ - traces.TracetestMetadataFieldParentID: summary.ParentID, + traces.QualitytraceMetadataFieldParentID: summary.ParentID, }), StartTime: startTime, EndTime: endTime, @@ -282,7 +282,7 @@ func (db *sumologicDB) getAugmentedSpan(ctx context.Context, traceID string, spa endTime := startTime.Add(time.Duration(span.Duration) * time.Nanosecond) attributes := map[string]string{ - traces.TracetestMetadataFieldParentID: span.ParentID, + traces.QualitytraceMetadataFieldParentID: span.ParentID, } for name, typedValue := range span.Attributes { attributes[name] = typedValue.Value diff --git a/agent/tracedb/tempodb.go b/agent/tracedb/tempodb.go index 1ebe110..968ee35 100644 --- a/agent/tracedb/tempodb.go +++ b/agent/tracedb/tempodb.go @@ -9,13 +9,13 @@ import ( "strings" "github.com/golang/protobuf/proto" - tempopb "github.com/intelops/qualityTrace/agent/internal/proto-gen-go/tempo-idl" - "github.com/intelops/qualityTrace/agent/tracedb/connection" - "github.com/intelops/qualityTrace/agent/tracedb/datasource" - "github.com/intelops/qualityTrace/server/datastore" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/traces" + tempopb "github.com/intelops/qualitytrace/agent/internal/proto-gen-go/tempo-idl" + "github.com/intelops/qualitytrace/agent/tracedb/connection" + "github.com/intelops/qualitytrace/agent/tracedb/datasource" + "github.com/intelops/qualitytrace/server/datastore" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/traces" "github.com/pkg/errors" "go.opentelemetry.io/otel/trace" v1 "go.opentelemetry.io/proto/otlp/trace/v1" @@ -59,10 +59,10 @@ func (ttd *tempoTraceDB) TestConnection(ctx context.Context) model.ConnectionRes connection.WithAuthenticationTest(connection.NewTestStep(func(ctx context.Context) (string, error) { _, err := ttd.GetTraceByID(ctx, id.NewRandGenerator().TraceID().String()) if strings.Contains(err.Error(), "authentication handshake failed") { - return "Tracetest tried to execute a request but it failed due to authentication issues", err + return "Qualitytrace tried to execute a request but it failed due to authentication issues", err } - return "Tracetest managed to authenticate with Tempo", nil + return "Qualitytrace managed to authenticate with Tempo", nil })), ) diff --git a/agent/tracedb/tracedb.go b/agent/tracedb/tracedb.go index 24182aa..1390976 100644 --- a/agent/tracedb/tracedb.go +++ b/agent/tracedb/tracedb.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/server/datastore" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/datastore" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/traces" "go.opentelemetry.io/otel/trace" ) diff --git a/agent/tracedb/tracedb_test.go b/agent/tracedb/tracedb_test.go index 8fa0e60..b4fd243 100644 --- a/agent/tracedb/tracedb_test.go +++ b/agent/tracedb/tracedb_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/agent/tracedb" - "github.com/intelops/qualityTrace/server/datastore" + "github.com/intelops/qualitytrace/agent/tracedb" + "github.com/intelops/qualitytrace/server/datastore" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/agent/ui/dashboard/components/commands_panel.go b/agent/ui/dashboard/components/commands_panel.go index 66965db..e40ab2b 100644 --- a/agent/ui/dashboard/components/commands_panel.go +++ b/agent/ui/dashboard/components/commands_panel.go @@ -5,7 +5,7 @@ import ( "runtime" "strings" - "github.com/intelops/qualityTrace/agent/ui/dashboard/styles" + "github.com/intelops/qualitytrace/agent/ui/dashboard/styles" "github.com/rivo/tview" ) diff --git a/agent/ui/dashboard/components/header.go b/agent/ui/dashboard/components/header.go index ecb2d73..45c3b16 100644 --- a/agent/ui/dashboard/components/header.go +++ b/agent/ui/dashboard/components/header.go @@ -4,10 +4,10 @@ import ( "fmt" "time" - "github.com/intelops/qualityTrace/agent/ui/dashboard/events" - "github.com/intelops/qualityTrace/agent/ui/dashboard/models" - "github.com/intelops/qualityTrace/agent/ui/dashboard/sensors" - "github.com/intelops/qualityTrace/agent/ui/dashboard/styles" + "github.com/intelops/qualitytrace/agent/ui/dashboard/events" + "github.com/intelops/qualitytrace/agent/ui/dashboard/models" + "github.com/intelops/qualitytrace/agent/ui/dashboard/sensors" + "github.com/intelops/qualitytrace/agent/ui/dashboard/styles" "github.com/rivo/tview" ) diff --git a/agent/ui/dashboard/components/message_banner.go b/agent/ui/dashboard/components/message_banner.go index c69f691..3ab36e3 100644 --- a/agent/ui/dashboard/components/message_banner.go +++ b/agent/ui/dashboard/components/message_banner.go @@ -1,8 +1,8 @@ package components import ( - "github.com/intelops/qualityTrace/agent/ui/dashboard/events" - "github.com/intelops/qualityTrace/agent/ui/dashboard/styles" + "github.com/intelops/qualitytrace/agent/ui/dashboard/events" + "github.com/intelops/qualitytrace/agent/ui/dashboard/styles" "github.com/rivo/tview" ) diff --git a/agent/ui/dashboard/components/test_run_list.go b/agent/ui/dashboard/components/test_run_list.go index 82d3407..1990266 100644 --- a/agent/ui/dashboard/components/test_run_list.go +++ b/agent/ui/dashboard/components/test_run_list.go @@ -4,10 +4,10 @@ import ( "strings" "time" - "github.com/intelops/qualityTrace/agent/ui/dashboard/events" - "github.com/intelops/qualityTrace/agent/ui/dashboard/models" - "github.com/intelops/qualityTrace/agent/ui/dashboard/sensors" - "github.com/intelops/qualityTrace/agent/ui/dashboard/styles" + "github.com/intelops/qualitytrace/agent/ui/dashboard/events" + "github.com/intelops/qualitytrace/agent/ui/dashboard/models" + "github.com/intelops/qualitytrace/agent/ui/dashboard/sensors" + "github.com/intelops/qualitytrace/agent/ui/dashboard/styles" "github.com/rivo/tview" ) diff --git a/agent/ui/dashboard/dashboard.go b/agent/ui/dashboard/dashboard.go index 74742a8..8547deb 100644 --- a/agent/ui/dashboard/dashboard.go +++ b/agent/ui/dashboard/dashboard.go @@ -6,12 +6,12 @@ import ( "time" "github.com/gdamore/tcell/v2" - "github.com/intelops/qualityTrace/agent/ui/dashboard/components" - "github.com/intelops/qualityTrace/agent/ui/dashboard/events" - "github.com/intelops/qualityTrace/agent/ui/dashboard/models" - "github.com/intelops/qualityTrace/agent/ui/dashboard/pages" - "github.com/intelops/qualityTrace/agent/ui/dashboard/sensors" - "github.com/intelops/qualityTrace/agent/ui/dashboard/styles" + "github.com/intelops/qualitytrace/agent/ui/dashboard/components" + "github.com/intelops/qualitytrace/agent/ui/dashboard/events" + "github.com/intelops/qualitytrace/agent/ui/dashboard/models" + "github.com/intelops/qualitytrace/agent/ui/dashboard/pages" + "github.com/intelops/qualitytrace/agent/ui/dashboard/sensors" + "github.com/intelops/qualitytrace/agent/ui/dashboard/styles" "github.com/rivo/tview" ) diff --git a/agent/ui/dashboard/main/main.go b/agent/ui/dashboard/main/main.go index 7d20e3f..c4770b6 100644 --- a/agent/ui/dashboard/main/main.go +++ b/agent/ui/dashboard/main/main.go @@ -4,9 +4,9 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/agent/ui/dashboard" - "github.com/intelops/qualityTrace/agent/ui/dashboard/models" - "github.com/intelops/qualityTrace/agent/ui/dashboard/sensors" + "github.com/intelops/qualitytrace/agent/ui/dashboard" + "github.com/intelops/qualitytrace/agent/ui/dashboard/models" + "github.com/intelops/qualitytrace/agent/ui/dashboard/sensors" ) func main() { diff --git a/agent/ui/dashboard/pages/test_runs_page.go b/agent/ui/dashboard/pages/test_runs_page.go index 531a002..b8d72bd 100644 --- a/agent/ui/dashboard/pages/test_runs_page.go +++ b/agent/ui/dashboard/pages/test_runs_page.go @@ -3,11 +3,11 @@ package pages import ( "fmt" - "github.com/intelops/qualityTrace/agent/ui" - "github.com/intelops/qualityTrace/agent/ui/dashboard/components" - "github.com/intelops/qualityTrace/agent/ui/dashboard/events" - "github.com/intelops/qualityTrace/agent/ui/dashboard/models" - "github.com/intelops/qualityTrace/agent/ui/dashboard/sensors" + "github.com/intelops/qualitytrace/agent/ui" + "github.com/intelops/qualitytrace/agent/ui/dashboard/components" + "github.com/intelops/qualitytrace/agent/ui/dashboard/events" + "github.com/intelops/qualitytrace/agent/ui/dashboard/models" + "github.com/intelops/qualitytrace/agent/ui/dashboard/sensors" "github.com/rivo/tview" ) diff --git a/agent/workers/poller.go b/agent/workers/poller.go index 69ce722..5b3488a 100644 --- a/agent/workers/poller.go +++ b/agent/workers/poller.go @@ -8,17 +8,17 @@ import ( "github.com/davecgh/go-spew/spew" "github.com/fluidtruck/deepcopy" - "github.com/intelops/qualityTrace/agent/client" - "github.com/intelops/qualityTrace/agent/collector" - "github.com/intelops/qualityTrace/agent/event" - "github.com/intelops/qualityTrace/agent/proto" - "github.com/intelops/qualityTrace/agent/telemetry" - "github.com/intelops/qualityTrace/agent/tracedb" - "github.com/intelops/qualityTrace/agent/tracedb/connection" - "github.com/intelops/qualityTrace/agent/workers/poller" - "github.com/intelops/qualityTrace/server/datastore" - "github.com/intelops/qualityTrace/server/executor" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/agent/client" + "github.com/intelops/qualitytrace/agent/collector" + "github.com/intelops/qualitytrace/agent/event" + "github.com/intelops/qualitytrace/agent/proto" + "github.com/intelops/qualitytrace/agent/telemetry" + "github.com/intelops/qualitytrace/agent/tracedb" + "github.com/intelops/qualitytrace/agent/tracedb/connection" + "github.com/intelops/qualitytrace/agent/workers/poller" + "github.com/intelops/qualitytrace/server/datastore" + "github.com/intelops/qualitytrace/server/executor" + "github.com/intelops/qualitytrace/server/traces" "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" "go.uber.org/zap" @@ -101,10 +101,10 @@ func (w *PollerWorker) Poll(ctx context.Context, request *proto.PollingRequest) ctx, span := w.tracer.Start(ctx, "PollingRequest Worker operation") defer span.End() - runCounter, _ := w.meter.Int64Counter("qualityTrace.agent.pollerworker.runs") + runCounter, _ := w.meter.Int64Counter("qualitytrace.agent.pollerworker.runs") runCounter.Add(ctx, 1) - errorCounter, _ := w.meter.Int64Counter("qualityTrace.agent.pollerworker.errors") + errorCounter, _ := w.meter.Int64Counter("qualitytrace.agent.pollerworker.errors") w.logger.Debug("Received polling request", zap.Any("request", request)) w.observer.StartTracePoll(request) diff --git a/agent/workers/poller/inmemory_datastore.go b/agent/workers/poller/inmemory_datastore.go index ef6e41a..6f9e5aa 100644 --- a/agent/workers/poller/inmemory_datastore.go +++ b/agent/workers/poller/inmemory_datastore.go @@ -3,11 +3,11 @@ package poller import ( "context" - "github.com/intelops/qualityTrace/agent/collector" - "github.com/intelops/qualityTrace/agent/tracedb" - "github.com/intelops/qualityTrace/agent/tracedb/connection" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/agent/collector" + "github.com/intelops/qualitytrace/agent/tracedb" + "github.com/intelops/qualitytrace/agent/tracedb/connection" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/traces" "go.opentelemetry.io/otel/trace" ) diff --git a/agent/workers/poller_test.go b/agent/workers/poller_test.go index 187b486..527547d 100644 --- a/agent/workers/poller_test.go +++ b/agent/workers/poller_test.go @@ -7,13 +7,13 @@ import ( "testing" "time" - "github.com/intelops/qualityTrace/agent/client" - "github.com/intelops/qualityTrace/agent/client/mocks" - "github.com/intelops/qualityTrace/agent/collector" - "github.com/intelops/qualityTrace/agent/proto" - "github.com/intelops/qualityTrace/agent/workers" - "github.com/intelops/qualityTrace/agent/workers/poller" - "github.com/intelops/qualityTrace/server/pkg/id" + "github.com/intelops/qualitytrace/agent/client" + "github.com/intelops/qualitytrace/agent/client/mocks" + "github.com/intelops/qualitytrace/agent/collector" + "github.com/intelops/qualitytrace/agent/proto" + "github.com/intelops/qualitytrace/agent/workers" + "github.com/intelops/qualitytrace/agent/workers/poller" + "github.com/intelops/qualitytrace/server/pkg/id" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" v1 "go.opentelemetry.io/proto/otlp/trace/v1" diff --git a/agent/workers/stopper.go b/agent/workers/stopper.go index a47b54c..e7417e7 100644 --- a/agent/workers/stopper.go +++ b/agent/workers/stopper.go @@ -5,10 +5,10 @@ import ( "errors" "fmt" - "github.com/intelops/qualityTrace/agent/telemetry" + "github.com/intelops/qualitytrace/agent/telemetry" - "github.com/intelops/qualityTrace/agent/event" - "github.com/intelops/qualityTrace/agent/proto" + "github.com/intelops/qualitytrace/agent/event" + "github.com/intelops/qualitytrace/agent/proto" "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" "go.uber.org/zap" @@ -73,10 +73,10 @@ func (w *StopperWorker) Stop(ctx context.Context, request *proto.StopRequest) er ctx, span := w.tracer.Start(ctx, "StopRequest Worker operation") defer span.End() - runCounter, _ := w.meter.Int64Counter("qualityTrace.agent.stopworker.runs") + runCounter, _ := w.meter.Int64Counter("qualitytrace.agent.stopworker.runs") runCounter.Add(ctx, 1) - errorCounter, _ := w.meter.Int64Counter("qualityTrace.agent.stopworker.errors") + errorCounter, _ := w.meter.Int64Counter("qualitytrace.agent.stopworker.errors") w.logger.Debug("Stop request received", zap.Any("stopRequest", request)) w.observer.StartStopRequest(request) diff --git a/agent/workers/testconnnection.go b/agent/workers/testconnnection.go index b2fd86b..25570c9 100644 --- a/agent/workers/testconnnection.go +++ b/agent/workers/testconnnection.go @@ -5,13 +5,13 @@ import ( "fmt" "log" - "github.com/intelops/qualityTrace/agent/telemetry" + "github.com/intelops/qualitytrace/agent/telemetry" - "github.com/intelops/qualityTrace/agent/client" - "github.com/intelops/qualityTrace/agent/event" - "github.com/intelops/qualityTrace/agent/proto" - "github.com/intelops/qualityTrace/agent/tracedb" - "github.com/intelops/qualityTrace/server/model" + "github.com/intelops/qualitytrace/agent/client" + "github.com/intelops/qualitytrace/agent/event" + "github.com/intelops/qualitytrace/agent/proto" + "github.com/intelops/qualitytrace/agent/tracedb" + "github.com/intelops/qualitytrace/server/model" "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" "go.uber.org/zap" @@ -71,10 +71,10 @@ func (w *TestConnectionWorker) Test(ctx context.Context, request *proto.DataStor ctx, span := w.tracer.Start(ctx, "TestConnectionRequest Worker operation") defer span.End() - runCounter, _ := w.meter.Int64Counter("qualityTrace.agent.testconnectionworker.runs") + runCounter, _ := w.meter.Int64Counter("qualitytrace.agent.testconnectionworker.runs") runCounter.Add(ctx, 1) - errorCounter, _ := w.meter.Int64Counter("qualityTrace.agent.testconnectionworker.errors") + errorCounter, _ := w.meter.Int64Counter("qualitytrace.agent.testconnectionworker.errors") w.logger.Debug("Received datastore connection test request") w.observer.StartDataStoreConnection(request) diff --git a/agent/workers/trigger.go b/agent/workers/trigger.go index 6f1bdf9..b945fb0 100644 --- a/agent/workers/trigger.go +++ b/agent/workers/trigger.go @@ -4,16 +4,16 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/agent/telemetry" - - "github.com/intelops/qualityTrace/agent/client" - "github.com/intelops/qualityTrace/agent/collector" - "github.com/intelops/qualityTrace/agent/event" - "github.com/intelops/qualityTrace/agent/proto" - "github.com/intelops/qualityTrace/agent/ui/dashboard/sensors" - "github.com/intelops/qualityTrace/agent/workers/trigger" - "github.com/intelops/qualityTrace/server/executor" - "github.com/intelops/qualityTrace/server/pkg/id" + "github.com/intelops/qualitytrace/agent/telemetry" + + "github.com/intelops/qualitytrace/agent/client" + "github.com/intelops/qualitytrace/agent/collector" + "github.com/intelops/qualitytrace/agent/event" + "github.com/intelops/qualitytrace/agent/proto" + "github.com/intelops/qualitytrace/agent/ui/dashboard/sensors" + "github.com/intelops/qualitytrace/agent/workers/trigger" + "github.com/intelops/qualitytrace/server/executor" + "github.com/intelops/qualitytrace/server/pkg/id" "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" v1 "go.opentelemetry.io/proto/otlp/trace/v1" @@ -105,10 +105,10 @@ func (w *TriggerWorker) Trigger(ctx context.Context, request *proto.TriggerReque ctx, span := w.tracer.Start(ctx, "TriggerRequest Worker operation") defer span.End() - runCounter, _ := w.meter.Int64Counter("qualityTrace.agent.triggerworker.runs") + runCounter, _ := w.meter.Int64Counter("qualitytrace.agent.triggerworker.runs") runCounter.Add(ctx, 1) - errorCounter, _ := w.meter.Int64Counter("qualityTrace.agent.triggerworker.errors") + errorCounter, _ := w.meter.Int64Counter("qualitytrace.agent.triggerworker.errors") w.logger.Debug("Trigger request received", zap.Any("triggerRequest", request)) w.observer.StartTriggerExecution(request) diff --git a/agent/workers/trigger/grpc.go b/agent/workers/trigger/grpc.go index dc9bf7c..46e093c 100644 --- a/agent/workers/trigger/grpc.go +++ b/agent/workers/trigger/grpc.go @@ -153,8 +153,8 @@ func (te *grpcTriggerer) Trigger(ctx context.Context, triggerConfig Trigger, opt } response.SpanAttributes = map[string]string{ - "qualityTrace.run.trigger.grpc.response_status_code": strconv.Itoa(int(h.respCode)), - "qualityTrace.run.trigger.grpc.response_status": h.respCode.String(), + "qualitytrace.run.trigger.grpc.response_status_code": strconv.Itoa(int(h.respCode)), + "qualitytrace.run.trigger.grpc.response_status": h.respCode.String(), } return response, nil diff --git a/agent/workers/trigger/http.go b/agent/workers/trigger/http.go index a07af1e..adf2001 100644 --- a/agent/workers/trigger/http.go +++ b/agent/workers/trigger/http.go @@ -83,7 +83,7 @@ func (te *httpTriggerer) Trigger(ctx context.Context, triggerConfig Trigger, opt mapped := mapResp(resp) response.Result.HTTP = &mapped response.SpanAttributes = map[string]string{ - "qualityTrace.run.trigger.http.response_code": strconv.Itoa(resp.StatusCode), + "qualitytrace.run.trigger.http.response_code": strconv.Itoa(resp.StatusCode), } return response, nil diff --git a/agent/workers/trigger/http_test.go b/agent/workers/trigger/http_test.go index 5412f7c..924d061 100644 --- a/agent/workers/trigger/http_test.go +++ b/agent/workers/trigger/http_test.go @@ -7,9 +7,9 @@ import ( "net/http/httptest" "testing" - "github.com/intelops/qualityTrace/agent/workers/trigger" - triggerer "github.com/intelops/qualityTrace/agent/workers/trigger" - "github.com/intelops/qualityTrace/server/pkg/id" + "github.com/intelops/qualitytrace/agent/workers/trigger" + triggerer "github.com/intelops/qualitytrace/agent/workers/trigger" + "github.com/intelops/qualitytrace/server/pkg/id" "github.com/stretchr/testify/assert" "go.opentelemetry.io/otel/trace" ) diff --git a/agent/workers/trigger/instrument.go b/agent/workers/trigger/instrument.go index 048372a..23f25e7 100644 --- a/agent/workers/trigger/instrument.go +++ b/agent/workers/trigger/instrument.go @@ -33,7 +33,7 @@ func (t *instrumentedTriggerer) Trigger(ctx context.Context, triggerConfig Trigg _, span := t.tracer.Start(ctx, "Trigger test") defer span.End() - tracestate, err := trace.ParseTraceState("qualityTrace=true") + tracestate, err := trace.ParseTraceState("qualitytrace=true") if err != nil { return Response{}, fmt.Errorf("could not create tracestate: %w", err) } @@ -61,14 +61,14 @@ func (t *instrumentedTriggerer) Trigger(ctx context.Context, triggerConfig Trigg resp.TraceID = tid attrs := []attribute.KeyValue{ - attribute.String("qualityTrace.run.trace_id", tid.String()), - attribute.String("qualityTrace.run.test_id", string(opts.TestID)), - attribute.String("qualityTrace.run.type", string(t.triggerer.Type())), + attribute.String("qualitytrace.run.trace_id", tid.String()), + attribute.String("qualitytrace.run.test_id", string(opts.TestID)), + attribute.String("qualitytrace.run.type", string(t.triggerer.Type())), } if err != nil { span.RecordError(err) - attrs = append(attrs, attribute.String("qualityTrace.run.error", err.Error())) + attrs = append(attrs, attribute.String("qualitytrace.run.error", err.Error())) } for k, v := range resp.SpanAttributes { diff --git a/agent/workers/trigger/kafka.go b/agent/workers/trigger/kafka.go index 7810b4d..0722f47 100644 --- a/agent/workers/trigger/kafka.go +++ b/agent/workers/trigger/kafka.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/agent/workers/trigger/kafka" + "github.com/intelops/qualitytrace/agent/workers/trigger/kafka" "go.opentelemetry.io/otel/propagation" ) @@ -44,8 +44,8 @@ func (te *kafkaTriggerer) Trigger(ctx context.Context, triggerConfig Trigger, op } response.SpanAttributes = map[string]string{ - "qualityTrace.run.trigger.kafka.partition": result.Partition, - "qualityTrace.run.trigger.kafka.offset": result.Offset, + "qualitytrace.run.trigger.kafka.partition": result.Partition, + "qualitytrace.run.trigger.kafka.offset": result.Offset, } return response, nil diff --git a/agent/workers/trigger/trigger_json_test.go b/agent/workers/trigger/trigger_json_test.go index d8c38fd..2dd31c3 100644 --- a/agent/workers/trigger/trigger_json_test.go +++ b/agent/workers/trigger/trigger_json_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - "github.com/intelops/qualityTrace/agent/workers/trigger" + "github.com/intelops/qualitytrace/agent/workers/trigger" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/agent/workers/trigger/triggerer.go b/agent/workers/trigger/triggerer.go index f712648..396793a 100644 --- a/agent/workers/trigger/triggerer.go +++ b/agent/workers/trigger/triggerer.go @@ -6,7 +6,7 @@ import ( "fmt" "sync" - "github.com/intelops/qualityTrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/id" "go.opentelemetry.io/otel/trace" ) diff --git a/agent/workers/trigger_test.go b/agent/workers/trigger_test.go index 86a19b2..e719e3b 100644 --- a/agent/workers/trigger_test.go +++ b/agent/workers/trigger_test.go @@ -7,11 +7,11 @@ import ( "testing" "time" - "github.com/intelops/qualityTrace/agent/client" - "github.com/intelops/qualityTrace/agent/client/mocks" - "github.com/intelops/qualityTrace/agent/collector" - "github.com/intelops/qualityTrace/agent/proto" - "github.com/intelops/qualityTrace/agent/workers" + "github.com/intelops/qualitytrace/agent/client" + "github.com/intelops/qualitytrace/agent/client/mocks" + "github.com/intelops/qualitytrace/agent/collector" + "github.com/intelops/qualitytrace/agent/proto" + "github.com/intelops/qualitytrace/agent/workers" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/api/tests.yaml b/api/tests.yaml index d98d868..fb6ddd2 100644 --- a/api/tests.yaml +++ b/api/tests.yaml @@ -61,8 +61,8 @@ components: selector: span[name="user_signup" result="success"] value: "attr:myapp.signup.user_id" - name: PROFILE_URL - selector: span[qualityTrace.span.type="general" name="Tracetest trigger"] - value: "${attr:qualityTrace.response.body | json_path '.user.profileUrl' }" + selector: span[qualitytrace.span.type="general" name="Tracetest trigger"] + value: "${attr:qualitytrace.response.body | json_path '.user.profileUrl' }" summary: $ref: "#/components/schemas/TestSummary" description: summary of test data @@ -115,14 +115,14 @@ components: example: specs: - selector: - query: span[qualityTrace.span.type="http"] + query: span[qualitytrace.span.type="http"] structure: - filters: - - property: qualityTrace.span.type + - property: qualitytrace.span.type operator: "=" value: http assertions: - - attribute: qualityTrace.span.duration + - attribute: qualitytrace.span.duration comparator: "<" expected: "2000" - attribute: http.status_code @@ -280,10 +280,10 @@ components: allPassed: true results: - selector: - query: span[qualityTrace.span.type="http"] + query: span[qualitytrace.span.type="http"] structure: - filters: - - property: qualityTrace.span.type + - property: qualitytrace.span.type operator: "=" value: http results: diff --git a/api/trace.yaml b/api/trace.yaml index 81c2c16..f1113b1 100644 --- a/api/trace.yaml +++ b/api/trace.yaml @@ -43,8 +43,8 @@ components: description: attribute value example: span.name: "POST /create" - qualityTrace.span.type: "http" - qualityTrace.span.duration: "2000" + qualitytrace.span.type: "http" + qualitytrace.span.duration: "2000" children: type: array items: diff --git a/cli/.gitignore b/cli/.gitignore index 775b8c4..522f283 100644 --- a/cli/.gitignore +++ b/cli/.gitignore @@ -1,3 +1,3 @@ -qualityTrace +qualitytrace openapitools.json config.yml diff --git a/cli/analytics/analytics.go b/cli/analytics/analytics.go index 62e7396..94a5c55 100644 --- a/cli/analytics/analytics.go +++ b/cli/analytics/analytics.go @@ -13,7 +13,7 @@ func ClientID() string { } func Init() { - id, err := machineid.ProtectedID("qualityTrace") + id, err := machineid.ProtectedID("qualitytrace") if err == nil { // only use id if available. mid = id diff --git a/cli/cloud/LICENSE b/cli/cloud/LICENSE index c9dc6bc..c38d3fa 100644 --- a/cli/cloud/LICENSE +++ b/cli/cloud/LICENSE @@ -12,8 +12,8 @@ terms on its behalf and the right to bind that Legal Entity to this Agreement. Use of Tracetest is expressly conditioned upon Your assent to all the terms of this Agreement, as well as the other Tracetest agreements, including the Tracetest Privacy Policy and Tracetest Terms and Conditions, -accessible at: https://app.qualityTrace.io/privacy-policy.html and -https://app.qualityTrace.io/terms-of-service.html. +accessible at: https://app.qualitytrace.io/privacy-policy.html and +https://app.qualitytrace.io/terms-of-service.html. 1. Definitions. In addition to other terms defined elsewhere in this Agreement and in the other Tracetest agreements, the terms below have the following @@ -24,13 +24,13 @@ provided by Tracetest, including both Tracetest Core and Tracetest Pro, as defined below. (b) “Tracetest Core” shall mean the version and features of Tracetest designated -as free of charge at https://qualityTrace.io/pricing and available at -https://github.com/intelops/qualityTrace pursuant to the terms of the MIT license. +as free of charge at https://qualitytrace.io/pricing and available at +https://github.com/intelops/qualitytrace pursuant to the terms of the MIT license. (c) “Tracetest Pro” shall mean the version of Tracetest which includes the additional paid features of Tracetest designated at -https://qualityTrace.io/pricing and made available by Tracetest, also at -https://github.com/intelops/qualityTrace, the use of which is subject to additional +https://qualitytrace.io/pricing and made available by Tracetest, also at +https://github.com/intelops/qualitytrace, the use of which is subject to additional terms set out below. (d) “Contribution” shall mean any work of authorship, including the original @@ -149,7 +149,7 @@ agree to abide by all third party terms and conditions and licenses. 3. Support. From time to time, in its sole discretion, Tracetest may offer professional services or support for Tracetest, which may now or in the future be -subject to additional fees, as outlined at https://qualityTrace.io/pricing. +subject to additional fees, as outlined at https://qualitytrace.io/pricing. 4. Fees for Tracetest Pro or Tracetest Support. @@ -157,7 +157,7 @@ subject to additional fees, as outlined at https://qualityTrace.io/pricing. subscription agreement with Tracetest for its use (a “Paid Pro License”) and timely paying Tracetest for such Paid Pro License; provided that features of Tracetest Pro that are features of Tracetest Core and are not designated as “Pro -features” at https://qualityTrace.io/pricing may be used for free under the terms of +features” at https://qualitytrace.io/pricing may be used for free under the terms of the Agreement without a Paid Pro License. Tracetest Pro may at its discretion include within Tracetest Pro certain Source code solely intended to determine Your compliance with the Paid Pro License which may be accessed without a Paid diff --git a/cli/cloud/cmd/run_cmd.go b/cli/cloud/cmd/run_cmd.go index dfc7555..cd0a226 100644 --- a/cli/cloud/cmd/run_cmd.go +++ b/cli/cloud/cmd/run_cmd.go @@ -4,19 +4,19 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/cli/cloud/runner" - "github.com/intelops/qualityTrace/cli/cmdutil" - "github.com/intelops/qualityTrace/cli/config" - "github.com/intelops/qualityTrace/cli/formatters" - "github.com/intelops/qualityTrace/cli/pkg/resourcemanager" - "github.com/intelops/qualityTrace/cli/preprocessor" + "github.com/intelops/qualitytrace/cli/cloud/runner" + "github.com/intelops/qualitytrace/cli/cmdutil" + "github.com/intelops/qualitytrace/cli/config" + "github.com/intelops/qualitytrace/cli/formatters" + "github.com/intelops/qualitytrace/cli/pkg/resourcemanager" + "github.com/intelops/qualitytrace/cli/preprocessor" - cliRunner "github.com/intelops/qualityTrace/cli/runner" + cliRunner "github.com/intelops/qualitytrace/cli/runner" ) func RunMultipleFiles(ctx context.Context, httpClient *resourcemanager.HTTPClient, runParams *cmdutil.RunParameters, cliConfig *config.Config, runnerRegistry cliRunner.Registry, format string) (int, error) { if cliConfig.Jwt == "" { - return cliRunner.ExitCodeGeneralError, fmt.Errorf("you should be authenticated to run multiple files, please run 'qualityTrace configure'") + return cliRunner.ExitCodeGeneralError, fmt.Errorf("you should be authenticated to run multiple files, please run 'qualitytrace configure'") } variableSetPreprocessor := preprocessor.VariableSet(cmdutil.GetLogger()) diff --git a/cli/cloud/cmd/wait_cmd.go b/cli/cloud/cmd/wait_cmd.go index 27f9d55..f7727f2 100644 --- a/cli/cloud/cmd/wait_cmd.go +++ b/cli/cloud/cmd/wait_cmd.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/cli/cloud/runner" - "github.com/intelops/qualityTrace/cli/config" - "github.com/intelops/qualityTrace/cli/formatters" - cliRunner "github.com/intelops/qualityTrace/cli/runner" + "github.com/intelops/qualitytrace/cli/cloud/runner" + "github.com/intelops/qualitytrace/cli/config" + "github.com/intelops/qualitytrace/cli/formatters" + cliRunner "github.com/intelops/qualitytrace/cli/runner" ) func Wait(ctx context.Context, cliConfig *config.Config, runGroupID, format string) (int, error) { diff --git a/cli/cloud/runner/multifile_orchestrator.go b/cli/cloud/runner/multifile_orchestrator.go index fca0003..ac77d76 100644 --- a/cli/cloud/runner/multifile_orchestrator.go +++ b/cli/cloud/runner/multifile_orchestrator.go @@ -9,14 +9,14 @@ import ( "os" "sync" - "github.com/intelops/qualityTrace/cli/formatters" - "github.com/intelops/qualityTrace/cli/metadata" - "github.com/intelops/qualityTrace/cli/openapi" - "github.com/intelops/qualityTrace/cli/pkg/fileutil" - "github.com/intelops/qualityTrace/cli/pkg/resourcemanager" - "github.com/intelops/qualityTrace/cli/runner" - "github.com/intelops/qualityTrace/cli/varset" - "github.com/intelops/qualityTrace/server/pkg/id" + "github.com/intelops/qualitytrace/cli/formatters" + "github.com/intelops/qualitytrace/cli/metadata" + "github.com/intelops/qualitytrace/cli/openapi" + "github.com/intelops/qualitytrace/cli/pkg/fileutil" + "github.com/intelops/qualitytrace/cli/pkg/resourcemanager" + "github.com/intelops/qualitytrace/cli/runner" + "github.com/intelops/qualitytrace/cli/varset" + "github.com/intelops/qualitytrace/server/pkg/id" "go.uber.org/zap" ) diff --git a/cli/cloud/runner/rungroup.go b/cli/cloud/runner/rungroup.go index 25b2826..1e267f8 100644 --- a/cli/cloud/runner/rungroup.go +++ b/cli/cloud/runner/rungroup.go @@ -6,8 +6,8 @@ import ( "time" "github.com/davecgh/go-spew/spew" - "github.com/intelops/qualityTrace/cli/cmdutil" - "github.com/intelops/qualityTrace/cli/openapi" + "github.com/intelops/qualitytrace/cli/cmdutil" + "github.com/intelops/qualitytrace/cli/openapi" "go.uber.org/zap" ) diff --git a/cli/cmd/config.go b/cli/cmd/config.go index 75ec553..45b276f 100644 --- a/cli/cmd/config.go +++ b/cli/cmd/config.go @@ -5,11 +5,11 @@ import ( "fmt" "os" - "github.com/intelops/qualityTrace/cli/analytics" - "github.com/intelops/qualityTrace/cli/cmdutil" - "github.com/intelops/qualityTrace/cli/config" - "github.com/intelops/qualityTrace/cli/formatters" - "github.com/intelops/qualityTrace/cli/openapi" + "github.com/intelops/qualitytrace/cli/analytics" + "github.com/intelops/qualitytrace/cli/cmdutil" + "github.com/intelops/qualitytrace/cli/config" + "github.com/intelops/qualitytrace/cli/formatters" + "github.com/intelops/qualitytrace/cli/openapi" "github.com/spf13/cobra" "go.uber.org/zap" ) @@ -125,7 +125,7 @@ func loadConfig(cmd *cobra.Command, args []string) { func validateConfig(cmd *cobra.Command, args []string) { if cliConfig.IsEmpty() { cliLogger.Warn("You haven't configured your CLI, some commands might fail!") - cliLogger.Warn("Run 'qualityTrace configure' to configure your CLI") + cliLogger.Warn("Run 'qualitytrace configure' to configure your CLI") } } @@ -146,7 +146,7 @@ func validateVersionMismatch() { fmt.Fprintf(os.Stderr, versionText+` ✖️ Error: Version Mismatch The CLI version and the server version are not compatible. To fix this, you'll need to make sure that both your CLI and server are using compatible versions. -We recommend upgrading both of them to the latest available version. Check out our documentation https://docs.qualityTrace.io/configuration/upgrade for simple instructions on how to upgrade. +We recommend upgrading both of them to the latest available version. Check out our documentation https://docs.qualitytrace.io/configuration/upgrade for simple instructions on how to upgrade. Thank you for using Tracetest! We apologize for any inconvenience caused. `) ExitCLI(1) diff --git a/cli/cmd/configure_cmd.go b/cli/cmd/configure_cmd.go index 0883f69..92a0839 100644 --- a/cli/cmd/configure_cmd.go +++ b/cli/cmd/configure_cmd.go @@ -4,9 +4,9 @@ import ( "context" "net/url" - agentConfig "github.com/intelops/qualityTrace/agent/config" - "github.com/intelops/qualityTrace/cli/cmdutil" - "github.com/intelops/qualityTrace/cli/config" + agentConfig "github.com/intelops/qualitytrace/agent/config" + "github.com/intelops/qualitytrace/cli/cmdutil" + "github.com/intelops/qualitytrace/cli/config" "github.com/spf13/cobra" ) @@ -19,8 +19,8 @@ var ( var configureCmd = &cobra.Command{ GroupID: cmdGroupConfig.ID, Use: "configure", - Short: "Configure your qualityTrace CLI", - Long: "Configure your qualityTrace CLI", + Short: "Configure your qualitytrace CLI", + Long: "Configure your qualitytrace CLI", PreRun: setupLogger, Run: WithResultHandler(WithParamsHandler(configParams)(func(ctx context.Context, cmd *cobra.Command, _ []string) (string, error) { flags := agentConfig.Flags{ diff --git a/cli/cmd/dashboard_cmd.go b/cli/cmd/dashboard_cmd.go index 183e7f7..0cc7788 100644 --- a/cli/cmd/dashboard_cmd.go +++ b/cli/cmd/dashboard_cmd.go @@ -4,19 +4,19 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/cli/ui" + "github.com/intelops/qualitytrace/cli/ui" "github.com/spf13/cobra" ) var dashboardCmd = &cobra.Command{ GroupID: cmdGroupMisc.ID, Use: "dashboard", - Short: "Opens the Tracetest Dashboard URL", - Long: "Opens the Tracetest Dashboard URL", + Short: "Opens the Qualitytrace Dashboard URL", + Long: "Opens the Qualitytrace Dashboard URL", PreRun: setupCommand(), Run: WithResultHandler(func(_ context.Context, _ *cobra.Command, _ []string) (string, error) { if cliConfig.IsEmpty() { - return "", fmt.Errorf("missing Tracetest endpoint configuration") + return "", fmt.Errorf("missing Qualitytrace endpoint configuration") } ui := ui.DefaultUI diff --git a/cli/cmd/legacy_datastore_cmd.go b/cli/cmd/legacy_datastore_cmd.go index 3f5935a..8674cbf 100644 --- a/cli/cmd/legacy_datastore_cmd.go +++ b/cli/cmd/legacy_datastore_cmd.go @@ -15,9 +15,9 @@ var ( var dataStoreCmd = &cobra.Command{ GroupID: cmdGroupConfig.ID, Use: "datastore", - Short: "Manage your qualityTrace data stores", - Long: "Manage your qualityTrace data stores", - Deprecated: "Please use `qualityTrace (apply|delete|export|get|list) datastore` commands instead.", + Short: "Manage your qualitytrace data stores", + Long: "Manage your qualitytrace data stores", + Deprecated: "Please use `qualitytrace (apply|delete|export|get|list) datastore` commands instead.", PreRun: setupCommand(), Run: func(cmd *cobra.Command, args []string) { cmd.Help() @@ -27,9 +27,9 @@ var dataStoreCmd = &cobra.Command{ var dataStoreApplyCmd = &cobra.Command{ Use: "apply", - Short: "Apply (create/update) data store configuration to your Tracetest server", - Long: "Apply (create/update) data store configuration to your Tracetest server", - Deprecated: "Please use `qualityTrace apply datastore --file [path]` command instead.", + Short: "Apply (create/update) data store configuration to your Qualitytrace server", + Long: "Apply (create/update) data store configuration to your Qualitytrace server", + Deprecated: "Please use `qualitytrace apply datastore --file [path]` command instead.", PreRun: setupCommand(), Run: func(cmd *cobra.Command, args []string) { // call new apply command @@ -43,7 +43,7 @@ var dataStoreExportCmd = &cobra.Command{ Use: "export", Short: "Exports a data store configuration into a file", Long: "Exports a data store configuration into a file", - Deprecated: "Please use `qualityTrace export datastore --id [id]` command instead.", + Deprecated: "Please use `qualitytrace export datastore --id [id]` command instead.", PreRun: setupCommand(), Run: func(cmd *cobra.Command, args []string) { // call new export command @@ -56,9 +56,9 @@ var dataStoreExportCmd = &cobra.Command{ var dataStoreListCmd = &cobra.Command{ Use: "list", - Short: "List data store configurations to your qualityTrace server", - Long: "List data store configurations to your qualityTrace server", - Deprecated: "Please use `qualityTrace get datastore --id current` command instead.", + Short: "List data store configurations to your qualitytrace server", + Long: "List data store configurations to your qualitytrace server", + Deprecated: "Please use `qualitytrace get datastore --id current` command instead.", PreRun: setupCommand(), Run: func(cmd *cobra.Command, args []string) { // call new get command diff --git a/cli/cmd/legacy_environment_cmd.go b/cli/cmd/legacy_environment_cmd.go index d56c295..9698bea 100644 --- a/cli/cmd/legacy_environment_cmd.go +++ b/cli/cmd/legacy_environment_cmd.go @@ -9,9 +9,9 @@ var environmentApplyFile string var environmentCmd = &cobra.Command{ GroupID: cmdGroupConfig.ID, Use: "environment", - Short: "Manage your qualityTrace environments", - Long: "Manage your qualityTrace environments", - Deprecated: "Please use `qualityTrace (apply|delete|export|get|list) environment` commands instead.", + Short: "Manage your qualitytrace environments", + Long: "Manage your qualitytrace environments", + Deprecated: "Please use `qualitytrace (apply|delete|export|get|list) environment` commands instead.", PreRun: setupCommand(), Run: func(cmd *cobra.Command, args []string) { cmd.Help() @@ -21,9 +21,9 @@ var environmentCmd = &cobra.Command{ var environmentApplyCmd = &cobra.Command{ Use: "apply", - Short: "Create or update an environment to Tracetest", - Long: "Create or update an environment to Tracetest", - Deprecated: "Please use `qualityTrace apply environment --file [path]` command instead.", + Short: "Create or update an environment to Qualitytrace", + Long: "Create or update an environment to Qualitytrace", + Deprecated: "Please use `qualitytrace apply environment --file [path]` command instead.", PreRun: setupCommand(), Run: func(cmd *cobra.Command, args []string) { // call new apply command diff --git a/cli/cmd/legacy_test_cmd.go b/cli/cmd/legacy_test_cmd.go index f86f093..121a25f 100644 --- a/cli/cmd/legacy_test_cmd.go +++ b/cli/cmd/legacy_test_cmd.go @@ -4,16 +4,16 @@ import ( "os" "strings" - "github.com/intelops/qualityTrace/cli/pkg/resourcemanager" + "github.com/intelops/qualitytrace/cli/pkg/resourcemanager" "github.com/spf13/cobra" ) var testCmd = &cobra.Command{ GroupID: cmdGroupResources.ID, Use: "test", - Short: "Manage your qualityTrace tests", - Long: "Manage your qualityTrace tests", - Deprecated: "Please use `qualityTrace (apply|delete|export|get|list) test` commands instead.", + Short: "Manage your qualitytrace tests", + Long: "Manage your qualitytrace tests", + Deprecated: "Please use `qualitytrace (apply|delete|export|get|list) test` commands instead.", PreRun: setupCommand(), Run: func(cmd *cobra.Command, args []string) { cmd.Help() @@ -25,7 +25,7 @@ var testListCmd = &cobra.Command{ Use: "list", Short: "List all tests", Long: "List all tests", - Deprecated: "Please use `qualityTrace list test` command instead.", + Deprecated: "Please use `qualitytrace list test` command instead.", PreRun: setupCommand(), Run: func(_ *cobra.Command, _ []string) { listCmd.Run(listCmd, []string{"test"}) @@ -37,7 +37,7 @@ var testExportCmd = &cobra.Command{ Use: "export", Short: "Exports a test into a file", Long: "Exports a test into a file", - Deprecated: "Please use `qualityTrace export test` command instead.", + Deprecated: "Please use `qualitytrace export test` command instead.", PreRun: setupCommand(), Run: func(_ *cobra.Command, _ []string) { exportCmd.Run(exportCmd, []string{"test"}) @@ -54,9 +54,9 @@ var ( var testRunCmd = &cobra.Command{ Use: "run", - Short: "Run a test on your Tracetest server", - Long: "Run a test on your Tracetest server", - Deprecated: "Please use `qualityTrace run test` command instead.", + Short: "Run a test on your Qualitytrace server", + Long: "Run a test on your Qualitytrace server", + Deprecated: "Please use `qualitytrace run test` command instead.", PreRun: setupCommand(), Run: func(_ *cobra.Command, _ []string) { // map old flags to new ones diff --git a/cli/cmd/middleware.go b/cli/cmd/middleware.go index 43c8606..60ad321 100644 --- a/cli/cmd/middleware.go +++ b/cli/cmd/middleware.go @@ -6,10 +6,10 @@ import ( "fmt" "os" - "github.com/intelops/qualityTrace/cli/cmdutil" - "github.com/intelops/qualityTrace/cli/config" - "github.com/intelops/qualityTrace/cli/pkg/resourcemanager" - "github.com/intelops/qualityTrace/cli/ui" + "github.com/intelops/qualitytrace/cli/cmdutil" + "github.com/intelops/qualitytrace/cli/config" + "github.com/intelops/qualitytrace/cli/pkg/resourcemanager" + "github.com/intelops/qualitytrace/cli/ui" "github.com/spf13/cobra" ) diff --git a/cli/cmd/resource_apply_cmd.go b/cli/cmd/resource_apply_cmd.go index 47d106a..a91f7d9 100644 --- a/cli/cmd/resource_apply_cmd.go +++ b/cli/cmd/resource_apply_cmd.go @@ -4,9 +4,9 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/cli/cmdutil" - "github.com/intelops/qualityTrace/cli/pkg/fileutil" - "github.com/intelops/qualityTrace/cli/pkg/resourcemanager" + "github.com/intelops/qualitytrace/cli/cmdutil" + "github.com/intelops/qualitytrace/cli/pkg/fileutil" + "github.com/intelops/qualitytrace/cli/pkg/resourcemanager" "github.com/spf13/cobra" ) @@ -20,7 +20,7 @@ func init() { GroupID: cmdGroupResources.ID, Use: "apply " + resourceList(), Short: "Apply resources", - Long: "Apply (create/update) resources to your Tracetest server", + Long: "Apply (create/update) resources to your Qualitytrace server", PreRun: setupCommand(), Run: WithResourceMiddleware(func(ctx context.Context, _ *cobra.Command, args []string) (string, error) { resourceType := resourceParams.ResourceName diff --git a/cli/cmd/resource_delete_cmd.go b/cli/cmd/resource_delete_cmd.go index 103550f..1c8aeba 100644 --- a/cli/cmd/resource_delete_cmd.go +++ b/cli/cmd/resource_delete_cmd.go @@ -5,7 +5,7 @@ import ( "errors" "fmt" - "github.com/intelops/qualityTrace/cli/pkg/resourcemanager" + "github.com/intelops/qualitytrace/cli/pkg/resourcemanager" "github.com/spf13/cobra" ) @@ -19,7 +19,7 @@ func init() { GroupID: cmdGroupResources.ID, Use: "delete " + resourceList(), Short: "Delete resources", - Long: "Delete resources from your Tracetest server", + Long: "Delete resources from your Qualitytrace server", PreRun: setupCommand(), Run: WithResourceMiddleware(func(ctx context.Context, _ *cobra.Command, args []string) (string, error) { resourceType := resourceParams.ResourceName diff --git a/cli/cmd/resource_export_cmd.go b/cli/cmd/resource_export_cmd.go index 26412d4..208a004 100644 --- a/cli/cmd/resource_export_cmd.go +++ b/cli/cmd/resource_export_cmd.go @@ -5,8 +5,8 @@ import ( "fmt" "os" - "github.com/intelops/qualityTrace/cli/cmdutil" - "github.com/intelops/qualityTrace/cli/pkg/resourcemanager" + "github.com/intelops/qualitytrace/cli/cmdutil" + "github.com/intelops/qualitytrace/cli/pkg/resourcemanager" "github.com/spf13/cobra" ) @@ -19,7 +19,7 @@ func init() { exportCmd = &cobra.Command{ GroupID: cmdGroupResources.ID, Use: "export " + resourceList(), - Long: "Export a resource from your Tracetest server", + Long: "Export a resource from your Qualitytrace server", Short: "Export resource", PreRun: setupCommand(), Run: WithResourceMiddleware(func(ctx context.Context, _ *cobra.Command, args []string) (string, error) { diff --git a/cli/cmd/resource_get_cmd.go b/cli/cmd/resource_get_cmd.go index b6fe2d1..d5cb0af 100644 --- a/cli/cmd/resource_get_cmd.go +++ b/cli/cmd/resource_get_cmd.go @@ -4,8 +4,8 @@ import ( "context" "errors" - "github.com/intelops/qualityTrace/cli/cmdutil" - "github.com/intelops/qualityTrace/cli/pkg/resourcemanager" + "github.com/intelops/qualitytrace/cli/cmdutil" + "github.com/intelops/qualitytrace/cli/pkg/resourcemanager" "github.com/spf13/cobra" ) @@ -19,7 +19,7 @@ func init() { GroupID: cmdGroupResources.ID, Use: "get " + resourceList(), Short: "Get resource", - Long: "Get a resource from your Tracetest server", + Long: "Get a resource from your Qualitytrace server", PreRun: setupCommand(), Run: WithResourceMiddleware(func(ctx context.Context, _ *cobra.Command, args []string) (string, error) { resourceType := resourceParams.ResourceName diff --git a/cli/cmd/resource_list_cmd.go b/cli/cmd/resource_list_cmd.go index b249108..cf3d2c8 100644 --- a/cli/cmd/resource_list_cmd.go +++ b/cli/cmd/resource_list_cmd.go @@ -3,8 +3,8 @@ package cmd import ( "context" - "github.com/intelops/qualityTrace/cli/cmdutil" - "github.com/intelops/qualityTrace/cli/pkg/resourcemanager" + "github.com/intelops/qualitytrace/cli/cmdutil" + "github.com/intelops/qualitytrace/cli/pkg/resourcemanager" "github.com/spf13/cobra" ) @@ -18,7 +18,7 @@ func init() { GroupID: cmdGroupResources.ID, Use: "list " + resourceList(), Short: "List resources", - Long: "List resources from your Tracetest server", + Long: "List resources from your Qualitytrace server", PreRun: setupCommand(), Run: WithResourceMiddleware(func(ctx context.Context, _ *cobra.Command, args []string) (string, error) { resourceType := resourceParams.ResourceName diff --git a/cli/cmd/resource_run_cmd.go b/cli/cmd/resource_run_cmd.go index 371b26b..b05b92d 100644 --- a/cli/cmd/resource_run_cmd.go +++ b/cli/cmd/resource_run_cmd.go @@ -5,13 +5,13 @@ import ( "fmt" "strings" - "github.com/intelops/qualityTrace/cli/cmdutil" - "github.com/intelops/qualityTrace/cli/config" - "github.com/intelops/qualityTrace/cli/openapi" - "github.com/intelops/qualityTrace/cli/runner" + "github.com/intelops/qualitytrace/cli/cmdutil" + "github.com/intelops/qualitytrace/cli/config" + "github.com/intelops/qualitytrace/cli/openapi" + "github.com/intelops/qualitytrace/cli/runner" "github.com/spf13/cobra" - cloudCmd "github.com/intelops/qualityTrace/cli/cloud/cmd" + cloudCmd "github.com/intelops/qualitytrace/cli/cloud/cmd" ) var ( diff --git a/cli/cmd/resources.go b/cli/cmd/resources.go index afae115..34f69f1 100644 --- a/cli/cmd/resources.go +++ b/cli/cmd/resources.go @@ -8,13 +8,13 @@ import ( "time" "github.com/Jeffail/gabs/v2" - "github.com/intelops/qualityTrace/cli/analytics" - "github.com/intelops/qualityTrace/cli/cmdutil" - "github.com/intelops/qualityTrace/cli/formatters" - "github.com/intelops/qualityTrace/cli/pkg/fileutil" - "github.com/intelops/qualityTrace/cli/pkg/resourcemanager" - "github.com/intelops/qualityTrace/cli/preprocessor" - "github.com/intelops/qualityTrace/cli/runner" + "github.com/intelops/qualitytrace/cli/analytics" + "github.com/intelops/qualitytrace/cli/cmdutil" + "github.com/intelops/qualitytrace/cli/formatters" + "github.com/intelops/qualitytrace/cli/pkg/fileutil" + "github.com/intelops/qualitytrace/cli/pkg/resourcemanager" + "github.com/intelops/qualitytrace/cli/preprocessor" + "github.com/intelops/qualitytrace/cli/runner" ) var resourceParams = &resourceParameters{} @@ -339,7 +339,7 @@ func setupResources() { // When each command is run, this function is run in the PreRun stage, before any of the actual `Run` code is executed // We take this chance to configure the HTTPClient with the correct URL and headers. // To make this configuration propagate to all the resources, we need to replace the pointer to the HTTPClient. - // For more details, see https://github.com/intelops/qualityTrace/pull/2832#discussion_r1245616804 + // For more details, see https://github.com/intelops/qualitytrace/pull/2832#discussion_r1245616804 hc := resourcemanager.NewHTTPClient(fmt.Sprintf("%s%s", cliConfig.URL(), cliConfig.Path()), extraHeaders) *httpClient = *hc } diff --git a/cli/cmd/root.go b/cli/cmd/root.go index 3e0b2b9..62210a0 100644 --- a/cli/cmd/root.go +++ b/cli/cmd/root.go @@ -5,7 +5,7 @@ import ( "os" "strings" - "github.com/intelops/qualityTrace/cli/formatters" + "github.com/intelops/qualitytrace/cli/formatters" "github.com/spf13/cobra" ) @@ -23,9 +23,9 @@ var ( ) var rootCmd = &cobra.Command{ - Use: "qualityTrace", - Short: "CLI to configure, install and execute tests on a Tracetest server", - Long: `CLI to configure, install and execute tests on a Tracetest server`, + Use: "qualitytrace", + Short: "CLI to configure, install and execute tests on a Qualitytrace server", + Long: `CLI to configure, install and execute tests on a Qualitytrace server`, PreRun: setupCommand(), PostRun: teardownCommand, } diff --git a/cli/cmd/server_cmd.go b/cli/cmd/server_cmd.go index c137789..d5b7166 100644 --- a/cli/cmd/server_cmd.go +++ b/cli/cmd/server_cmd.go @@ -7,8 +7,8 @@ import ( var serverCmd = &cobra.Command{ GroupID: cmdGroupConfig.ID, Use: "server", - Short: "Manage your qualityTrace server", - Long: "Manage your qualityTrace server", + Short: "Manage your qualitytrace server", + Long: "Manage your qualitytrace server", PreRun: setupCommand(SkipVersionMismatchCheck()), Run: func(cmd *cobra.Command, args []string) { cmd.Help() diff --git a/cli/cmd/server_install_cmd.go b/cli/cmd/server_install_cmd.go index 7364235..34083a9 100644 --- a/cli/cmd/server_install_cmd.go +++ b/cli/cmd/server_install_cmd.go @@ -1,8 +1,8 @@ package cmd import ( - "github.com/intelops/qualityTrace/cli/cmdutil" - "github.com/intelops/qualityTrace/cli/installer" + "github.com/intelops/qualitytrace/cli/cmdutil" + "github.com/intelops/qualitytrace/cli/installer" "github.com/spf13/cobra" "golang.org/x/exp/slices" ) @@ -16,8 +16,8 @@ var installerParams = &installerParameters{ var serverInstallCmd = &cobra.Command{ Use: "install", - Short: "Install a new Tracetest server", - Long: "Install a new Tracetest server", + Short: "Install a new Qualitytrace server", + Long: "Install a new Qualitytrace server", PreRun: setupCommand(SkipConfigValidation(), SkipVersionMismatchCheck()), Run: func(_ *cobra.Command, _ []string) { installer.Force = installerParams.Force @@ -32,11 +32,11 @@ var serverInstallCmd = &cobra.Command{ func init() { serverInstallCmd.Flags().BoolVarP(&installerParams.Force, "force", "f", false, "Overwrite existing files") - serverInstallCmd.Flags().StringVar(&installerParams.KubernetesContext, "kubernetes-context", "", "Kubernetes context used to install Tracetest. It will be only used if 'run-environment' is set as 'kubernetes'.") + serverInstallCmd.Flags().StringVar(&installerParams.KubernetesContext, "kubernetes-context", "", "Kubernetes context used to install Qualitytrace. It will be only used if 'run-environment' is set as 'kubernetes'.") // these commands will not have shorthand parameters to avoid colision with existing ones in other commands - serverInstallCmd.Flags().Var(&installerParams.InstallationMode, "mode", "Indicate the type of demo environment to be installed with Tracetest. It can be 'with-demo' or 'just-qualityTrace'.") - serverInstallCmd.Flags().Var(&installerParams.RunEnvironment, "run-environment", "Type of environment were Tracetest will be installed. It can be 'docker' or 'kubernetes'.") + serverInstallCmd.Flags().Var(&installerParams.InstallationMode, "mode", "Indicate the type of demo environment to be installed with Qualitytrace. It can be 'with-demo' or 'just-qualitytrace'.") + serverInstallCmd.Flags().Var(&installerParams.RunEnvironment, "run-environment", "Type of environment were Qualitytrace will be installed. It can be 'docker' or 'kubernetes'.") serverCmd.AddCommand(serverInstallCmd) } @@ -74,7 +74,7 @@ func (p installerParameters) Validate(cmd *cobra.Command, args []string) []cmdut if cmd.Flags().Lookup("mode").Changed && slices.Contains(AllowedInstallationMode, p.InstallationMode) { errors = append(errors, cmdutil.ParamError{ Parameter: "mode", - Message: "mode must be one of 'not-chosen', 'with-demo' or 'just-qualityTrace'", + Message: "mode must be one of 'not-chosen', 'with-demo' or 'just-qualitytrace'", }) } diff --git a/cli/cmd/start_cmd.go b/cli/cmd/start_cmd.go index bbd5d4e..6c2b55e 100644 --- a/cli/cmd/start_cmd.go +++ b/cli/cmd/start_cmd.go @@ -4,10 +4,10 @@ import ( "context" "os" - agentConfig "github.com/intelops/qualityTrace/agent/config" - "github.com/intelops/qualityTrace/agent/runner" - "github.com/intelops/qualityTrace/agent/ui" - "github.com/intelops/qualityTrace/cli/config" + agentConfig "github.com/intelops/qualitytrace/agent/config" + "github.com/intelops/qualitytrace/agent/runner" + "github.com/intelops/qualitytrace/agent/ui" + "github.com/intelops/qualitytrace/cli/config" "github.com/spf13/cobra" ) @@ -22,8 +22,8 @@ var ( var startCmd = &cobra.Command{ GroupID: cmdGroupConfig.ID, Use: "start", - Short: "Start Tracetest", - Long: "Start using Tracetest", + Short: "Start Qualitytrace", + Long: "Start using Qualitytrace", PreRun: setupCommand(SkipConfigValidation(), SkipVersionMismatchCheck()), Run: WithResultHandler((func(ctx context.Context, _ *cobra.Command, _ []string) (string, error) { flags := agentConfig.Flags{ diff --git a/cli/cmd/wait_cmd.go b/cli/cmd/wait_cmd.go index a2c4391..1942e73 100644 --- a/cli/cmd/wait_cmd.go +++ b/cli/cmd/wait_cmd.go @@ -3,8 +3,8 @@ package cmd import ( "context" - "github.com/intelops/qualityTrace/cli/cloud/cmd" - "github.com/intelops/qualityTrace/cli/cmdutil" + "github.com/intelops/qualitytrace/cli/cloud/cmd" + "github.com/intelops/qualitytrace/cli/cmdutil" "github.com/spf13/cobra" ) diff --git a/cli/cmdutil/resources.go b/cli/cmdutil/resources.go index 789b236..32145e2 100644 --- a/cli/cmdutil/resources.go +++ b/cli/cmdutil/resources.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/intelops/qualityTrace/cli/pkg/fileutil" + "github.com/intelops/qualitytrace/cli/pkg/fileutil" ) func GetResourceTypeFromFile(filePath string) (string, error) { diff --git a/cli/cmdutil/run_params.go b/cli/cmdutil/run_params.go index 70cd275..99ac652 100644 --- a/cli/cmdutil/run_params.go +++ b/cli/cmdutil/run_params.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/intelops/qualityTrace/cli/openapi" + "github.com/intelops/qualitytrace/cli/openapi" "github.com/spf13/cobra" ) diff --git a/cli/config/api.go b/cli/config/api.go index 0b4ffed..86db8f5 100644 --- a/cli/config/api.go +++ b/cli/config/api.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" - "github.com/intelops/qualityTrace/cli/analytics" - "github.com/intelops/qualityTrace/cli/openapi" + "github.com/intelops/qualitytrace/cli/analytics" + "github.com/intelops/qualitytrace/cli/openapi" ) type ListArgs struct { diff --git a/cli/config/config.go b/cli/config/config.go index f9bd5d0..9b1a540 100644 --- a/cli/config/config.go +++ b/cli/config/config.go @@ -17,8 +17,8 @@ import ( var ( Version = "dev" Env = "dev" - DefaultCloudEndpoint = "http://app.qualityTrace.io" - DefaultCloudDomain = "qualityTrace.io" + DefaultCloudEndpoint = "http://app.qualitytrace.io" + DefaultCloudDomain = "qualitytrace.io" DefaultCloudPath = "/" ) @@ -103,14 +103,14 @@ func LoadConfig(configFile string) (Config, error) { return Config{}, fmt.Errorf("could not get user home path") } - globalConfigPath := filepath.Join(homePath, ".qualityTrace/config.yml") + globalConfigPath := filepath.Join(homePath, ".qualitytrace/config.yml") return loadConfig(globalConfigPath) } func loadConfig(configFile string) (Config, error) { viper.SetConfigFile(configFile) viper.SetConfigType("yaml") - viper.SetEnvPrefix("qualityTrace") + viper.SetEnvPrefix("qualitytrace") viper.SetEnvKeyReplacer(strings.NewReplacer(".", "_")) viper.AutomaticEnv() @@ -222,7 +222,7 @@ func GetConfigurationPath() (string, error) { return "", fmt.Errorf("could not get user home dir: %w", err) } - configPath = path.Join(homePath, ".qualityTrace/config.yml") + configPath = path.Join(homePath, ".qualitytrace/config.yml") } return configPath, nil diff --git a/cli/config/configurator.go b/cli/config/configurator.go index e48e162..0f64a08 100644 --- a/cli/config/configurator.go +++ b/cli/config/configurator.go @@ -8,11 +8,11 @@ import ( "strings" "github.com/golang-jwt/jwt" - agentConfig "github.com/intelops/qualityTrace/agent/config" - "github.com/intelops/qualityTrace/cli/analytics" - "github.com/intelops/qualityTrace/cli/pkg/oauth" - "github.com/intelops/qualityTrace/cli/pkg/resourcemanager" - cliUI "github.com/intelops/qualityTrace/cli/ui" + agentConfig "github.com/intelops/qualitytrace/agent/config" + "github.com/intelops/qualitytrace/cli/analytics" + "github.com/intelops/qualitytrace/cli/pkg/oauth" + "github.com/intelops/qualitytrace/cli/pkg/resourcemanager" + cliUI "github.com/intelops/qualitytrace/cli/ui" "go.uber.org/zap" ) @@ -36,7 +36,7 @@ func NewConfigurator(resources *resourcemanager.Registry) Configurator { resources: resources, ui: ui, onFinish: func(_ context.Context, _ Config) { - ui.Success("Successfully configured Tracetest CLI") + ui.Success("Successfully configured Qualitytrace CLI") ui.Finish() }, errorHandlerFn: func(ctx context.Context, err error) { @@ -142,7 +142,7 @@ func (c Configurator) getServerURL(prev *Config) (string, error) { // if flag was passed, don't show prompt if c.flags.ServerURL == "" { - serverURL = c.ui.TextInput("What qualityTrace server do you want to use?", c.lastUsedURL(prev)) + serverURL = c.ui.TextInput("What qualitytrace server do you want to use?", c.lastUsedURL(prev)) } if err := validateServerURL(serverURL); err != nil { @@ -219,7 +219,7 @@ func (c Configurator) populateConfigWithVersionInfo(ctx context.Context, cfg Con if useDevVersion && Version == "dev" { c.populateConfigWithDevConfig(ctx, &cfg) - c.ui.Success("Configured Tracetest CLI in development mode") + c.ui.Success("Configured Qualitytrace CLI in development mode") return cfg, nil, false } @@ -238,7 +238,7 @@ func (c Configurator) populateConfigWithVersionInfo(ctx context.Context, cfg Con return Config{}, fmt.Errorf("could not save configuration: %w", err), false } - c.ui.Success("Successfully configured Tracetest CLI") + c.ui.Success("Successfully configured Qualitytrace CLI") return cfg, nil, true } diff --git a/cli/config/selector.go b/cli/config/selector.go index aa33df7..5a6d081 100644 --- a/cli/config/selector.go +++ b/cli/config/selector.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/intelops/qualityTrace/cli/pkg/resourcemanager" - cliUI "github.com/intelops/qualityTrace/cli/ui" + "github.com/intelops/qualitytrace/cli/pkg/resourcemanager" + cliUI "github.com/intelops/qualitytrace/cli/ui" ) type Entry struct { diff --git a/cli/config/version.go b/cli/config/version.go index a9e89fd..95a874b 100644 --- a/cli/config/version.go +++ b/cli/config/version.go @@ -6,7 +6,7 @@ import ( "fmt" "github.com/Masterminds/semver/v3" - "github.com/intelops/qualityTrace/cli/openapi" + "github.com/intelops/qualitytrace/cli/openapi" "github.com/pterm/pterm" ) diff --git a/cli/examples/grpc.yaml b/cli/examples/grpc.yaml index 1dfdd31..95b7763 100644 --- a/cli/examples/grpc.yaml +++ b/cli/examples/grpc.yaml @@ -47,6 +47,6 @@ trigger: "id": 52 } specs: -- selector: span[qualityTrace.span.type="rpc"] +- selector: span[qualitytrace.span.type="rpc"] assertions: - - qualityTrace.selected_spans.count = 1 + - qualitytrace.selected_spans.count = 1 diff --git a/cli/formatters/multiple_runs.go b/cli/formatters/multiple_runs.go index 2d0b1a9..9e5ae34 100644 --- a/cli/formatters/multiple_runs.go +++ b/cli/formatters/multiple_runs.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "github.com/intelops/qualityTrace/cli/openapi" + "github.com/intelops/qualitytrace/cli/openapi" "github.com/pterm/pterm" ) diff --git a/cli/formatters/test_run.go b/cli/formatters/test_run.go index cae935d..bd0d3ea 100644 --- a/cli/formatters/test_run.go +++ b/cli/formatters/test_run.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/intelops/qualityTrace/cli/openapi" + "github.com/intelops/qualitytrace/cli/openapi" "github.com/pterm/pterm" "golang.org/x/exp/slices" ) @@ -151,7 +151,7 @@ func (f testRun) formatFailedTest(test openapi.Test, run openapi.TestRun) string for _, result := range specResult.Results { for _, spanResult := range result.SpanResults { - // meta assertions such as qualityTrace.selected_spans.count don't have a spanID, + // meta assertions such as qualitytrace.selected_spans.count don't have a spanID, // so they will be treated differently. To overcome them, we will place all // meta assertions under the "spanID = "meta" spanID := "meta" diff --git a/cli/formatters/test_run_test.go b/cli/formatters/test_run_test.go index 376c57a..28d7cbd 100644 --- a/cli/formatters/test_run_test.go +++ b/cli/formatters/test_run_test.go @@ -3,8 +3,8 @@ package formatters_test import ( "testing" - "github.com/intelops/qualityTrace/cli/formatters" - "github.com/intelops/qualityTrace/cli/openapi" + "github.com/intelops/qualitytrace/cli/formatters" + "github.com/intelops/qualitytrace/cli/openapi" "github.com/stretchr/testify/assert" ) @@ -84,7 +84,7 @@ func TestSuccessfulTestRunOutputWithResult(t *testing.T) { }, Results: []openapi.AssertionResult{ { - Assertion: openapi.PtrString(`attr:qualityTrace.span.duration <= 200ms`), + Assertion: openapi.PtrString(`attr:qualitytrace.span.duration <= 200ms`), AllPassed: openapi.PtrBool(true), SpanResults: []openapi.AssertionSpanResult{ { @@ -139,7 +139,7 @@ func TestFailingTestOutput(t *testing.T) { }, Results: []openapi.AssertionResult{ { - Assertion: openapi.PtrString(`attr:qualityTrace.span.duration <= 200ms`), + Assertion: openapi.PtrString(`attr:qualitytrace.span.duration <= 200ms`), AllPassed: openapi.PtrBool(true), SpanResults: []openapi.AssertionSpanResult{ { @@ -170,7 +170,7 @@ func TestFailingTestOutput(t *testing.T) { }, }, { - Assertion: openapi.PtrString(`attr:qualityTrace.span.duration <= 200ms`), + Assertion: openapi.PtrString(`attr:qualitytrace.span.duration <= 200ms`), AllPassed: openapi.PtrBool(true), SpanResults: []openapi.AssertionSpanResult{ { @@ -193,11 +193,11 @@ func TestFailingTestOutput(t *testing.T) { expectedOutput := `✘ Testcase 2 (http://localhost:11633/test/9876543/run/1/test) - trace id: cb5e80748cc06f8a63f6b96c056defec ✔ Validate span duration ✔ #123456 - ✔ attr:qualityTrace.span.duration <= 200ms (157ms) + ✔ attr:qualitytrace.span.duration <= 200ms (157ms) ✘ span[name = "my other span"] ✘ #456789 ✘ attr:http.status = 200 (404) (http://localhost:11633/test/9876543/run/1/test?selectedAssertion=1&selectedSpan=456789) - ✔ attr:qualityTrace.span.duration <= 200ms (68ms) + ✔ attr:qualitytrace.span.duration <= 200ms (68ms) ` assert.Equal(t, expectedOutput, output) } @@ -231,7 +231,7 @@ func TestFailingTestOutputWithPadding(t *testing.T) { }, Results: []openapi.AssertionResult{ { - Assertion: openapi.PtrString(`attr:qualityTrace.span.duration <= 200ms`), + Assertion: openapi.PtrString(`attr:qualitytrace.span.duration <= 200ms`), AllPassed: openapi.PtrBool(true), SpanResults: []openapi.AssertionSpanResult{ { @@ -262,7 +262,7 @@ func TestFailingTestOutputWithPadding(t *testing.T) { }, }, { - Assertion: openapi.PtrString(`attr:qualityTrace.span.duration <= 200ms`), + Assertion: openapi.PtrString(`attr:qualitytrace.span.duration <= 200ms`), AllPassed: openapi.PtrBool(true), SpanResults: []openapi.AssertionSpanResult{ { @@ -285,11 +285,11 @@ func TestFailingTestOutputWithPadding(t *testing.T) { expectedOutput := ` ✘ Testcase 2 (http://localhost:11633/test/9876543/run/1/test) - trace id: cb5e80748cc06f8a63f6b96c056defec ✔ Validate span duration ✔ #123456 - ✔ attr:qualityTrace.span.duration <= 200ms (157ms) + ✔ attr:qualitytrace.span.duration <= 200ms (157ms) ✘ span[name = "my other span"] ✘ #456789 ✘ attr:http.status = 200 (404) (http://localhost:11633/test/9876543/run/1/test?selectedAssertion=1&selectedSpan=456789) - ✔ attr:qualityTrace.span.duration <= 200ms (68ms) + ✔ attr:qualitytrace.span.duration <= 200ms (68ms) ` assert.Equal(t, expectedOutput, output) } diff --git a/cli/formatters/testsuite.go b/cli/formatters/testsuite.go index f439799..27f950d 100644 --- a/cli/formatters/testsuite.go +++ b/cli/formatters/testsuite.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "github.com/intelops/qualityTrace/cli/openapi" + "github.com/intelops/qualitytrace/cli/openapi" "github.com/pterm/pterm" ) diff --git a/cli/installer/cmd.go b/cli/installer/cmd.go index 85533c0..f8d3ecc 100644 --- a/cli/installer/cmd.go +++ b/cli/installer/cmd.go @@ -7,7 +7,7 @@ import ( "os/exec" "strings" - "github.com/intelops/qualityTrace/cli/ui" + "github.com/intelops/qualitytrace/cli/ui" ) type cmd struct { diff --git a/cli/installer/configuration.go b/cli/installer/configuration.go index 3489fe8..e5d508a 100644 --- a/cli/installer/configuration.go +++ b/cli/installer/configuration.go @@ -3,7 +3,7 @@ package installer import ( "fmt" - cliUI "github.com/intelops/qualityTrace/cli/ui" + cliUI "github.com/intelops/qualitytrace/cli/ui" ) type configuration struct { diff --git a/cli/installer/docker_compose.go b/cli/installer/docker_compose.go index a162aed..d684cd5 100644 --- a/cli/installer/docker_compose.go +++ b/cli/installer/docker_compose.go @@ -13,8 +13,8 @@ import ( "github.com/compose-spec/compose-go/loader" "github.com/compose-spec/compose-go/types" - cliConfig "github.com/intelops/qualityTrace/cli/config" - cliUI "github.com/intelops/qualityTrace/cli/ui" + cliConfig "github.com/intelops/qualitytrace/cli/config" + cliUI "github.com/intelops/qualitytrace/cli/ui" "golang.org/x/exp/slices" "gopkg.in/yaml.v3" ) @@ -32,7 +32,7 @@ var dockerCompose = installer{ }, configs: []configurator{ configureDockerCompose, - configureTracetest, + configureQualitytrace, configureDemoApp, configureDockerComposeOutput, }, @@ -47,15 +47,15 @@ func configureDockerCompose(conf configuration, ui cliUI.UI) configuration { } func configureDockerComposeOutput(conf configuration, ui cliUI.UI) configuration { - conf.set("output.dir", "qualityTrace/") + conf.set("output.dir", "qualitytrace/") return conf } const ( dockerComposeFilename = "docker-compose.yaml" - qualityTraceConfigFilename = "qualityTrace.yaml" - qualityTraceProvisionFilename = "qualityTrace-provision.yaml" + qualitytraceConfigFilename = "qualitytrace.yaml" + qualitytraceProvisionFilename = "qualitytrace-provision.yaml" otelCollectorConfigFilename = "collector.config.yaml" ) @@ -67,7 +67,7 @@ func dockerComposeInstaller(config configuration, ui cliUI.UI) { ui.Exit(err.Error()) } - qualityTraceConfigFile := getTracetestConfigFileContents("postgres", "postgres", "postgres", ui, config) + qualitytraceConfigFile := getQualitytraceConfigFileContents("postgres", "postgres", "postgres", ui, config) dockerComposeFile := getDockerComposeFileContents(ui, config) dockerComposeFName := filepath.Join(dir, dockerComposeFilename) @@ -80,19 +80,19 @@ func dockerComposeInstaller(config configuration, ui cliUI.UI) { createDir(ui, dir) saveFile(ui, dockerComposeFName, dockerComposeFile) - saveFile(ui, filepath.Join(dir, qualityTraceConfigFilename), qualityTraceConfigFile) + saveFile(ui, filepath.Join(dir, qualitytraceConfigFilename), qualitytraceConfigFile) - qualityTraceProvisionFile := getTracetestProvisionFileContents(ui, config) - saveFile(ui, filepath.Join(dir, qualityTraceProvisionFilename), qualityTraceProvisionFile) + qualitytraceProvisionFile := getQualitytraceProvisionFileContents(ui, config) + saveFile(ui, filepath.Join(dir, qualitytraceProvisionFilename), qualitytraceProvisionFile) - if !config.Bool("installer.only_qualityTrace") { + if !config.Bool("installer.only_qualitytrace") { collectorConfigFile := getCollectorConfigFileContents(ui, config) saveFile(ui, filepath.Join(dir, otelCollectorConfigFilename), collectorConfigFile) } ui.Success("Install successful!") ui.Println(fmt.Sprintf(` -To start qualityTrace: +To start qualitytrace: %s @@ -107,7 +107,7 @@ Happy TraceTesting =) func getDockerComposeFileContents(ui cliUI.UI, config configuration) []byte { project := getCompleteProject(ui, config) - include := []string{"qualityTrace", "postgres"} + include := []string{"qualitytrace", "postgres"} if config.Bool("demo.enable.pokeshop") { include = append(include, "cache", "queue", "stream", "demo-api", "demo-worker", "demo-rpc", "demo-streaming-worker", "otel-collector") @@ -116,13 +116,13 @@ func getDockerComposeFileContents(ui cliUI.UI, config configuration) []byte { // filter and update project filterAndFixContainers(ui, project, include) - // set version for qualityTrace container - if err := fixTracetestContainer(config, project, cliConfig.Version); err != nil { - ui.Exit(fmt.Sprintf("cannot configure qualityTrace container: %s", err.Error())) + // set version for qualitytrace container + if err := fixQualitytraceContainer(config, project, cliConfig.Version); err != nil { + ui.Exit(fmt.Sprintf("cannot configure qualitytrace container: %s", err.Error())) } //remove provision parameters if we will not install a tracing backend - if !config.Bool("qualityTrace.backend.install") { + if !config.Bool("qualitytrace.backend.install") { removeProvisioningInfo(ui, project) } @@ -173,7 +173,7 @@ func filterAndFixContainers(ui cliUI.UI, project *types.Project, included []stri } func removeProvisioningInfo(ui cliUI.UI, project *types.Project) { - const serviceName = "qualityTrace" + const serviceName = "qualitytrace" tts, err := project.GetService(serviceName) if err != nil { @@ -206,9 +206,9 @@ func getCollectorConfigFileContents(ui cliUI.UI, config configuration) []byte { exporter := "otlp/1" exporters := msa{ "otlp/1": msa{ - "endpoint": config.String("qualityTrace.backend.endpoint"), + "endpoint": config.String("qualitytrace.backend.endpoint"), "tls": msa{ - "insecure": config.Bool("qualityTrace.backend.tls.insecure"), + "insecure": config.Bool("qualitytrace.backend.tls.insecure"), }, }, } @@ -249,8 +249,8 @@ func saveFile(ui cliUI.UI, fname string, contents []byte) { } } -func fixTracetestContainer(config configuration, project *types.Project, version string) error { - const serviceName = "qualityTrace" +func fixQualitytraceContainer(config configuration, project *types.Project, version string) error { + const serviceName = "qualitytrace" tts, err := project.GetService(serviceName) if err != nil { return err @@ -260,11 +260,11 @@ func fixTracetestContainer(config configuration, project *types.Project, version version = "latest" } - tts.Image = "intelops/qualityTrace:" + version + tts.Image = "intelops/qualitytrace:" + version tts.Build = nil - tts.Volumes[0].Source = qualityTraceConfigFilename - qualityTraceDevEnv := "${TRACETEST_DEV}" - tts.Environment["TRACETEST_DEV"] = &qualityTraceDevEnv + tts.Volumes[0].Source = qualitytraceConfigFilename + tracetestDevEnv := "${TRACETEST_DEV}" + tts.Environment["TRACETEST_DEV"] = &tracetestDevEnv replaceService(project, serviceName, tts) @@ -286,7 +286,7 @@ func getFileContentsForVersion(path, version string) ([]byte, error) { if version == "dev" { version = "main" } - url := fmt.Sprintf("https://raw.githubusercontent.com/intelops/qualityTrace/%s/%s", version, path) + url := fmt.Sprintf("https://raw.githubusercontent.com/intelops/qualitytrace/%s/%s", version, path) resp, err := http.Get(url) if err != nil { return nil, fmt.Errorf("cannot download file: %w", err) @@ -303,13 +303,13 @@ func getFileContentsForVersion(path, version string) ([]byte, error) { } func getCompleteProject(ui cliUI.UI, config configuration) *types.Project { - qualityTraceDCContents, err := getFileContentsForVersion("examples/collector/docker-compose.yml", cliConfig.Version) + qualitytraceDCContents, err := getFileContentsForVersion("examples/collector/docker-compose.yml", cliConfig.Version) if err != nil { ui.Exit(fmt.Errorf("cannot get docker-compose file: %w", err).Error()) } configFiles := []types.ConfigFile{ - {Filename: "docker-compose.yaml", Content: qualityTraceDCContents}, + {Filename: "docker-compose.yaml", Content: qualitytraceDCContents}, } if config.Bool("demo.enable.pokeshop") { @@ -326,13 +326,13 @@ func getCompleteProject(ui cliUI.UI, config configuration) *types.Project { } project, err := loader.LoadWithContext(context.Background(), types.ConfigDetails{ - WorkingDir: fmt.Sprintf("%s/qualityTrace", workingDir), + WorkingDir: fmt.Sprintf("%s/qualitytrace", workingDir), ConfigFiles: configFiles, Environment: map[string]string{ "TRACETEST_DEV": "", }, }, func(o *loader.Options) { - o.SetProjectName("qualityTrace", true) + o.SetProjectName("qualitytrace", true) }) if err != nil { ui.Exit(fmt.Errorf("cannot parse docker-compose file: %w", err).Error()) diff --git a/cli/installer/installer.go b/cli/installer/installer.go index b9d97cb..422c5dd 100644 --- a/cli/installer/installer.go +++ b/cli/installer/installer.go @@ -1,8 +1,8 @@ package installer import ( - cliConfig "github.com/intelops/qualityTrace/cli/config" - cliUI "github.com/intelops/qualityTrace/cli/ui" + cliConfig "github.com/intelops/qualitytrace/cli/config" + cliUI "github.com/intelops/qualitytrace/cli/ui" ) var ( @@ -12,7 +12,7 @@ var ( KubernetesContext = "" ) -const createIssueMsg = "If you need help, please create an issue: https://github.com/intelops/qualityTrace/issues/new/choose" +const createIssueMsg = "If you need help, please create an issue: https://github.com/intelops/qualitytrace/issues/new/choose" func Start() { ui := cliUI.DefaultUI @@ -20,31 +20,31 @@ func Start() { ui.Banner(cliConfig.Version) ui.Println(` -Hi! Welcome to the TraceTest server installer. I'll help you set up your TraceTest server by asking you a few questions -and configuring your system with all the requirements, so you can start TraceTesting right away! +Hi! Welcome to the Qualitytrace server installer. I'll help you set up your Qualitytrace server by asking you a few questions +and configuring your system with all the requirements, so you can start Qualitytraceing right away! -To get more info about TraceTest, you can check our docs at https://kubeshop.github.io/qualityTrace/ +To get more info about Qualitytrace, you can check our docs at https://intelops.github.io/qualitytrace/ -If you have any issues, please let us know by creating an issue (https://github.com/intelops/qualityTrace/issues/new/choose) -or reach us on Slack https://dub.sh/qualityTrace-community +If you have any issues, please let us know by creating an issue (https://github.com/intelops/qualitytrace/issues/new/choose) +or reach us on Slack https://dub.sh/qualitytrace-community `) if RunEnvironment == DockerRunEnvironmentType { // check if docker was previously chosen as a CLI arg - ui.Println("How do you want to run TraceTest?") + ui.Println("How do you want to run Qualitytrace?") ui.Println(" > Using Docker Compose") dockerCompose.Install(ui) return } if RunEnvironment == KubernetesRunEnvironmentType { // check if kubernetes was previously chosen as a CLI arg - ui.Println("How do you want to run TraceTest?") + ui.Println("How do you want to run Qualitytrace?") ui.Println(" > Using Kubernetes") kubernetes.Install(ui) return } - option := ui.Select("How do you want to run TraceTest?", []cliUI.Option{ + option := ui.Select("How do you want to run Qualitytrace?", []cliUI.Option{ {Text: "Using Docker Compose", Fn: dockerCompose.Install}, {Text: "Using Kubernetes", Fn: kubernetes.Install}, }, 0) @@ -65,7 +65,7 @@ func (i installer) PreCheck(ui cliUI.UI) { pc(ui) } - ui.Title("Your system is ready! Now, let's configure TraceTest") + ui.Title("Your system is ready! Now, let's configure Qualitytrace") } func (i installer) Configure(ui cliUI.UI) configuration { @@ -86,7 +86,7 @@ func (i installer) Install(ui cliUI.UI) { conf := i.Configure(ui) - ui.Title("Thanks! We are ready to install TraceTest now") + ui.Title("Thanks! We are ready to install Qualitytrace now") i.installFn(conf, ui) } @@ -96,24 +96,24 @@ type preChecker func(ui cliUI.UI) func setInstallationType(ui cliUI.UI, config configuration) { if InstallationMode == WithoutDemoInstallationModeType { // check if it was previously chosen ui.Println("Do you have OpenTelemetry based tracing already set up, or would you like us to install a demo tracing environment and app?") - ui.Println(" > I have a tracing environment already. Just install Tracetest") - config.set("installer.only_qualityTrace", true) + ui.Println(" > I have a tracing environment already. Just install Qualitytrace") + config.set("installer.only_qualitytrace", true) return } if InstallationMode == WithDemoInstallationModeType { // check if it was previously chosen ui.Println("Do you have OpenTelemetry based tracing already set up, or would you like us to install a demo tracing environment and app?") - ui.Println(" > Just learning tracing! Install Tracetest, OpenTelemetry Collector and the sample app.") - config.set("installer.only_qualityTrace", false) + ui.Println(" > Just learning tracing! Install Qualitytrace, OpenTelemetry Collector and the sample app.") + config.set("installer.only_qualitytrace", false) return } option := ui.Select("Do you have OpenTelemetry based tracing already set up, or would you like us to install a demo tracing environment and app?", []cliUI.Option{ - {Text: "I have a tracing environment already. Just install Tracetest", Fn: func(ui cliUI.UI) { - config.set("installer.only_qualityTrace", true) + {Text: "I have a tracing environment already. Just install Qualitytrace", Fn: func(ui cliUI.UI) { + config.set("installer.only_qualitytrace", true) }}, - {Text: "Just learning tracing! Install Tracetest, OpenTelemetry Collector and the sample app.", Fn: func(ui cliUI.UI) { - config.set("installer.only_qualityTrace", false) + {Text: "Just learning tracing! Install Qualitytrace, OpenTelemetry Collector and the sample app.", Fn: func(ui cliUI.UI) { + config.set("installer.only_qualitytrace", false) }}, }, 0) diff --git a/cli/installer/kubernetes.go b/cli/installer/kubernetes.go index 06b5f2e..4431599 100644 --- a/cli/installer/kubernetes.go +++ b/cli/installer/kubernetes.go @@ -8,8 +8,8 @@ import ( "regexp" "strings" - cliConfig "github.com/intelops/qualityTrace/cli/config" - cliUI "github.com/intelops/qualityTrace/cli/ui" + cliConfig "github.com/intelops/qualitytrace/cli/config" + cliUI "github.com/intelops/qualitytrace/cli/ui" ) var kubernetes = installer{ @@ -21,7 +21,7 @@ var kubernetes = installer{ }, configs: []configurator{ configureKubernetes, - configureTracetest, + configureQualitytrace, configureIngress, configureDemoApp, }, @@ -67,10 +67,10 @@ func installSed(ui cliUI.UI) { func kubernetesInstaller(config configuration, ui cliUI.UI) { execCmdIgnoreErrors(kubectlCmd(config, "create namespace "+config.String("k8s.namespace"))) - if !config.Bool("installer.only_qualityTrace") { + if !config.Bool("installer.only_qualitytrace") { installCollector(config, ui) } - installTracetest(config, ui) + installQualitytrace(config, ui) } func installCollector(config configuration, ui cliUI.UI) { @@ -82,25 +82,25 @@ func installCollector(config configuration, ui cliUI.UI) { ui.Println(ui.Green("✔ collector ready")) } -func installTracetest(conf configuration, ui cliUI.UI) { +func installQualitytrace(conf configuration, ui cliUI.UI) { setupHelmRepo(conf, ui) - installTracetestChart(conf, ui) - fixTracetestConfiguration(conf, ui) + installQualitytraceChart(conf, ui) + fixQualitytraceConfiguration(conf, ui) - if !conf.Bool("installer.only_qualityTrace") { + if !conf.Bool("installer.only_qualitytrace") { installOtelCollector(conf, ui) } - execCmd(kubectlNamespaceCmd(conf, "delete pods -l app.kubernetes.io/name=qualityTrace"), ui) + execCmd(kubectlNamespaceCmd(conf, "delete pods -l app.kubernetes.io/name=qualitytrace"), ui) - if !conf.Bool("installer.only_qualityTrace") { + if !conf.Bool("installer.only_qualitytrace") { installDemo(conf, ui) } ui.Success("Install successful!") ui.Println(fmt.Sprintf(` -To access qualityTrace: +To access qualitytrace: %s @@ -108,15 +108,15 @@ Then, use your browser to navigate to: http://localhost:11633 -Happy TraceTesting =) -`, kubectlNamespaceCmd(conf, "port-forward svc/qualityTrace 11633"))) +Happy Qualitytracing =) +`, kubectlNamespaceCmd(conf, "port-forward svc/qualitytrace 11633"))) } func installDemo(conf configuration, ui cliUI.UI) { helm := helmCmd(conf, "") script := strings.ReplaceAll(demoScript, "#helm#", helm) - script = fmt.Sprintf(script, conf.String("qualityTrace.backend.endpoint.collector")) + script = fmt.Sprintf(script, conf.String("qualitytrace.backend.endpoint.collector")) execCmd(script, ui) } @@ -138,18 +138,18 @@ func installOtelCollector(conf configuration, ui cliUI.UI) { execCmd(kubectlNamespaceCmd(conf, "delete pods -l app.kubernetes.io/name=otel-collector"), ui) } -func fixTracetestConfiguration(conf configuration, ui cliUI.UI) { - c := getTracetestConfigFileContents("qualityTrace-postgresql", "qualityTrace", "not-secure-database-password", ui, conf) - ttc := createTmpFile("qualityTrace-config", string(c), ui) +func fixQualitytraceConfiguration(conf configuration, ui cliUI.UI) { + c := getQualitytraceConfigFileContents("qualitytrace-postgresql", "qualitytrace", "not-secure-database-password", ui, conf) + ttc := createTmpFile("qualitytrace-config", string(c), ui) defer os.Remove(ttc.Name()) - p := getTracetestProvisionFileContents(ui, conf) - ttp := createTmpFile("qualityTrace-provisioning", string(p), ui) + p := getQualitytraceProvisionFileContents(ui, conf) + ttp := createTmpFile("qualitytrace-provisioning", string(p), ui) defer os.Remove(ttp.Name()) execCmd( kubectlNamespaceCmd(conf, - "create configmap qualityTrace --from-file="+ttc.Name()+" --from-file="+ttp.Name()+" -o yaml --dry-run=client", + "create configmap qualitytrace --from-file="+ttc.Name()+" --from-file="+ttp.Name()+" -o yaml --dry-run=client", "| sed 's#"+path.Base(ttc.Name())+"#config.yaml#'", "| sed 's#"+path.Base(ttp.Name())+"#provisioning.yaml#' |", kubectlNamespaceCmd(conf, "replace -f -"), @@ -158,9 +158,9 @@ func fixTracetestConfiguration(conf configuration, ui cliUI.UI) { ) } -func installTracetestChart(conf configuration, ui cliUI.UI) { +func installQualitytraceChart(conf configuration, ui cliUI.UI) { cmd := []string{ - "upgrade --install qualityTrace intelops/qualityTrace", + "upgrade --install qualitytrace intelops/qualitytrace", "--namespace " + conf.String("k8s.namespace") + " --create-namespace", } @@ -169,7 +169,7 @@ func installTracetestChart(conf configuration, ui cliUI.UI) { } if os.Getenv("TRACETEST_DEV") != "" { - cmd = append(cmd, "--set env.qualityTraceDev=true") + cmd = append(cmd, "--set env.tracetestDev=true") } execCmd(helmCmd(conf, cmd...), ui) @@ -196,7 +196,7 @@ func helmCmd(config configuration, cmd ...string) string { } const ( - collectorYaml = "https://raw.githubusercontent.com/intelops/qualityTrace/main/k8s/collector.yml" + collectorYaml = "https://raw.githubusercontent.com/intelops/qualitytrace/main/k8s/collector.yml" demoScript = ` tmpdir=$(mktemp -d) @@ -281,7 +281,7 @@ func getKubernetesContextArray(kubeconfig string) ([][]string, error) { output = string(newStringBytes) csvReader := csv.NewReader(strings.NewReader(output)) - // Related to issue: https://github.com/intelops/qualityTrace/issues/2723 + // Related to issue: https://github.com/intelops/qualitytrace/issues/2723 csvReader.FieldsPerRecord = -1 // Disable fields length validation records, err := csvReader.ReadAll() if err != nil { @@ -312,14 +312,14 @@ func getKubernetesContext(conf configuration, ui cliUI.UI) string { } if KubernetesContext != "" && kubernetesContextExists(KubernetesContext, contexts) { - ui.Println("On which kubectl context do you want to install Tracetest?") + ui.Println("On which kubectl context do you want to install Qualitytrace?") ui.Println(fmt.Sprintf(" > %s", KubernetesContext)) return KubernetesContext } if len(contexts) == 1 { - ui.Println("On which kubectl context do you want to install Tracetest?") + ui.Println("On which kubectl context do you want to install Qualitytrace?") ui.Println(fmt.Sprintf(" > %s", contexts[0].name)) return contexts[0].name @@ -334,7 +334,7 @@ func getKubernetesContext(conf configuration, ui cliUI.UI) string { options = append(options, cliUI.Option{Text: c.name, Fn: func(ui cliUI.UI) {}}) } - selected := ui.Select("On which kubectl context do you want to install Tracetest?", options, defaultIndex) + selected := ui.Select("On which kubectl context do you want to install Qualitytrace?", options, defaultIndex) return selected.Text } @@ -344,12 +344,12 @@ func configureKubernetes(conf configuration, ui cliUI.UI) configuration { context := getKubernetesContext(conf, ui) conf.set("k8s.context", context) - conf.set("k8s.namespace", "qualityTrace") + conf.set("k8s.namespace", "qualitytrace") return conf } func configureIngress(conf configuration, ui cliUI.UI) configuration { - conf.set("k8s.ingress-host", "qualityTrace") + conf.set("k8s.ingress-host", "qualitytrace") return conf } diff --git a/cli/installer/tracetest.go b/cli/installer/tracetest.go index efc4149..24c93ad 100644 --- a/cli/installer/tracetest.go +++ b/cli/installer/tracetest.go @@ -7,11 +7,11 @@ import ( "fmt" - cliUI "github.com/intelops/qualityTrace/cli/ui" + cliUI "github.com/intelops/qualitytrace/cli/ui" ) func configureDemoApp(conf configuration, ui cliUI.UI) configuration { - conf.set("demo.enable.pokeshop", !conf.Bool("installer.only_qualityTrace")) + conf.set("demo.enable.pokeshop", !conf.Bool("installer.only_qualitytrace")) conf.set("demo.enable.otel", false) switch conf.String("installer") { @@ -36,37 +36,37 @@ func configureDemoApp(conf configuration, ui cliUI.UI) configuration { return conf } -func configureTracetest(conf configuration, ui cliUI.UI) configuration { +func configureQualitytrace(conf configuration, ui cliUI.UI) configuration { conf = configureBackend(conf, ui) - conf.set("qualityTrace.analytics", true) + conf.set("qualitytrace.analytics", true) return conf } func configureBackend(conf configuration, ui cliUI.UI) configuration { - installBackend := !conf.Bool("installer.only_qualityTrace") - conf.set("qualityTrace.backend.install", installBackend) + installBackend := !conf.Bool("installer.only_qualitytrace") + conf.set("qualitytrace.backend.install", installBackend) if !installBackend { - conf.set("qualityTrace.backend.type", "") + conf.set("qualitytrace.backend.type", "") return conf } // default values switch conf.String("installer") { case "docker-compose": - conf.set("qualityTrace.backend.type", "otlp") - conf.set("qualityTrace.backend.tls.insecure", true) - conf.set("qualityTrace.backend.endpoint.collector", "http://otel-collector:4317") - conf.set("qualityTrace.backend.endpoint", "qualityTrace:4317") + conf.set("qualitytrace.backend.type", "otlp") + conf.set("qualitytrace.backend.tls.insecure", true) + conf.set("qualitytrace.backend.endpoint.collector", "http://otel-collector:4317") + conf.set("qualitytrace.backend.endpoint", "qualitytrace:4317") case "kubernetes": - conf.set("qualityTrace.backend.type", "otlp") - conf.set("qualityTrace.backend.tls.insecure", true) - conf.set("qualityTrace.backend.endpoint.collector", "http://otel-collector.qualityTrace:4317") - conf.set("qualityTrace.backend.endpoint", "qualityTrace:4317") + conf.set("qualitytrace.backend.type", "otlp") + conf.set("qualitytrace.backend.tls.insecure", true) + conf.set("qualitytrace.backend.endpoint.collector", "http://otel-collector.qualitytrace:4317") + conf.set("qualitytrace.backend.endpoint", "qualitytrace:4317") default: - conf.set("qualityTrace.backend.type", "") + conf.set("qualitytrace.backend.type", "") } return conf @@ -75,7 +75,7 @@ func configureBackend(conf configuration, ui cliUI.UI) configuration { //go:embed templates/config.yaml.tpl var configTemplate string -func getTracetestConfigFileContents(pHost, pUser, pPasswd string, ui cliUI.UI, config configuration) []byte { +func getQualitytraceConfigFileContents(pHost, pUser, pPasswd string, ui cliUI.UI, config configuration) []byte { vals := map[string]string{ "pHost": pHost, "pUser": pUser, @@ -96,18 +96,18 @@ func getTracetestConfigFileContents(pHost, pUser, pPasswd string, ui cliUI.UI, c //go:embed templates/provision.yaml.tpl var provisionTemplate string -func getTracetestProvisionFileContents(ui cliUI.UI, config configuration) []byte { +func getQualitytraceProvisionFileContents(ui cliUI.UI, config configuration) []byte { vals := map[string]string{ - "installBackend": fmt.Sprintf("%t", config.Bool("qualityTrace.backend.install")), - "backendType": config.String("qualityTrace.backend.type"), - "backendEndpoint": config.String("qualityTrace.backend.endpoint.query"), - "backendInsecure": config.String("qualityTrace.backend.tls.insecure"), - "backendAddresses": config.String("qualityTrace.backend.addresses"), - "backendIndex": config.String("qualityTrace.backend.index"), - "backendToken": config.String("qualityTrace.backend.token"), - "backendRealm": config.String("qualityTrace.backend.realm"), - - "analyticsEnabled": fmt.Sprintf("%t", config.Bool("qualityTrace.analytics")), + "installBackend": fmt.Sprintf("%t", config.Bool("qualitytrace.backend.install")), + "backendType": config.String("qualitytrace.backend.type"), + "backendEndpoint": config.String("qualitytrace.backend.endpoint.query"), + "backendInsecure": config.String("qualitytrace.backend.tls.insecure"), + "backendAddresses": config.String("qualitytrace.backend.addresses"), + "backendIndex": config.String("qualitytrace.backend.index"), + "backendToken": config.String("qualitytrace.backend.token"), + "backendRealm": config.String("qualitytrace.backend.realm"), + + "analyticsEnabled": fmt.Sprintf("%t", config.Bool("qualitytrace.analytics")), "enablePokeshopDemo": fmt.Sprintf("%t", config.Bool("demo.enable.pokeshop")), "enableOtelDemo": fmt.Sprintf("%t", config.Bool("demo.enable.otel")), diff --git a/cli/installer/types.go b/cli/installer/types.go index 0dd1a3c..2c96f0d 100644 --- a/cli/installer/types.go +++ b/cli/installer/types.go @@ -40,7 +40,7 @@ var _ pflag.Value = (*InstallationModeType)(nil) const ( WithDemoInstallationModeType InstallationModeType = "with-demo" - WithoutDemoInstallationModeType InstallationModeType = "just-qualityTrace" + WithoutDemoInstallationModeType InstallationModeType = "just-qualitytrace" NotChosenInstallationModeType InstallationModeType = "none" // stands for "no option chosen" ) @@ -50,14 +50,14 @@ func (e *InstallationModeType) String() string { func (e *InstallationModeType) Set(v string) error { switch v { - case "with-demo", "just-qualityTrace": + case "with-demo", "just-qualitytrace": *e = InstallationModeType(v) return nil default: - return errors.New(`must be "with-demo" or "just-qualityTrace"`) + return errors.New(`must be "with-demo" or "just-qualitytrace"`) } } func (e *InstallationModeType) Type() string { - return "(with-demo|just-qualityTrace)" + return "(with-demo|just-qualitytrace)" } diff --git a/cli/installer/util.go b/cli/installer/util.go index 30b4990..081ec96 100644 --- a/cli/installer/util.go +++ b/cli/installer/util.go @@ -4,7 +4,7 @@ import ( "os" "runtime" - cliUI "github.com/intelops/qualityTrace/cli/ui" + cliUI "github.com/intelops/qualitytrace/cli/ui" ) func exitOption(msg string) func(ui cliUI.UI) { diff --git a/cli/installer/windows.go b/cli/installer/windows.go index 93792dc..1e7ba54 100644 --- a/cli/installer/windows.go +++ b/cli/installer/windows.go @@ -3,7 +3,7 @@ package installer import ( "runtime" - cliUI "github.com/intelops/qualityTrace/cli/ui" + cliUI "github.com/intelops/qualitytrace/cli/ui" ) func isWindows() bool { @@ -37,5 +37,5 @@ func wslChecker(ui cliUI.UI) { } ui.Warning("I didn't find WSL installed in your system") - ui.Exit("WSL is a requirement for running Tracetest on Windows. Install it before proceeding: https://learn.microsoft.com/en-us/windows/wsl/install") + ui.Exit("WSL is a requirement for running Qualitytrace on Windows. Install it before proceeding: https://learn.microsoft.com/en-us/windows/wsl/install") } diff --git a/cli/main.go b/cli/main.go index 3ea6ab9..d16da7d 100644 --- a/cli/main.go +++ b/cli/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/intelops/qualityTrace/cli/cmd" + "github.com/intelops/qualitytrace/cli/cmd" ) func main() { diff --git a/cli/metadata/metadata.go b/cli/metadata/metadata.go index 409ff04..561babb 100644 --- a/cli/metadata/metadata.go +++ b/cli/metadata/metadata.go @@ -2,12 +2,12 @@ package metadata import ( cienvironment "github.com/cucumber/ci-environment/go" - "github.com/intelops/qualityTrace/cli/config" + "github.com/intelops/qualitytrace/cli/config" ) var ( - qualityTraceSource = "qualityTrace.source" - qualityTraceCliVersion = "qualityTrace.cli.version" + qualitytraceSource = "qualitytrace.source" + qualitytraceCliVersion = "qualitytrace.cli.version" gitRemote = "git.GitRemote" gitBranch = "git.branch" gitTag = "git.tag" @@ -31,8 +31,8 @@ func GetMetadata() Metadata { // TODO: add more metadata after getting the response from the k6 team // https://github.com/grafana/k6/issues/1320#issuecomment-2032734378 metadata := Metadata{} - metadata[qualityTraceSource] = "cli" - metadata[qualityTraceCliVersion] = config.Version + metadata[qualitytraceSource] = "cli" + metadata[qualitytraceCliVersion] = config.Version ci := cienvironment.DetectCIEnvironment() if ci == nil { diff --git a/cli/pkg/fileutil/file.go b/cli/pkg/fileutil/file.go index fbd92a4..bec6a77 100644 --- a/cli/pkg/fileutil/file.go +++ b/cli/pkg/fileutil/file.go @@ -42,7 +42,7 @@ func ReadDirFileNames(path string) []string { var result []string for _, file := range files { - // TODO: add validation for file extensions, qualityTrace runnable definitions (?) + // TODO: add validation for file extensions, qualitytrace runnable definitions (?) if file.IsDir() { result = append(result, ReadDirFileNames(filepath.Join(path, file.Name()))...) } else { diff --git a/cli/pkg/fileutil/file_test.go b/cli/pkg/fileutil/file_test.go index 65b26f2..4f032dd 100644 --- a/cli/pkg/fileutil/file_test.go +++ b/cli/pkg/fileutil/file_test.go @@ -3,7 +3,7 @@ package fileutil_test import ( "testing" - "github.com/intelops/qualityTrace/cli/pkg/fileutil" + "github.com/intelops/qualitytrace/cli/pkg/fileutil" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/cli/pkg/oauth/oauth.go b/cli/pkg/oauth/oauth.go index aa56434..471d911 100644 --- a/cli/pkg/oauth/oauth.go +++ b/cli/pkg/oauth/oauth.go @@ -8,7 +8,7 @@ import ( "net/http" "sync" - "github.com/intelops/qualityTrace/cli/ui" + "github.com/intelops/qualitytrace/cli/ui" "go.uber.org/zap" ) diff --git a/cli/pkg/resourcemanager/apply.go b/cli/pkg/resourcemanager/apply.go index b9b8e29..82c5acd 100644 --- a/cli/pkg/resourcemanager/apply.go +++ b/cli/pkg/resourcemanager/apply.go @@ -9,7 +9,7 @@ import ( "net/http/httputil" "github.com/Jeffail/gabs/v2" - "github.com/intelops/qualityTrace/cli/pkg/fileutil" + "github.com/intelops/qualitytrace/cli/pkg/fileutil" "go.uber.org/zap" ) diff --git a/cli/pkg/resourcemanager/client.go b/cli/pkg/resourcemanager/client.go index b0fbd30..b88bce1 100644 --- a/cli/pkg/resourcemanager/client.go +++ b/cli/pkg/resourcemanager/client.go @@ -9,7 +9,7 @@ import ( "path" "strings" - "github.com/intelops/qualityTrace/cli/cmdutil" + "github.com/intelops/qualitytrace/cli/cmdutil" "go.uber.org/zap" "golang.org/x/text/cases" "golang.org/x/text/language" diff --git a/cli/pkg/resourcemanager/format.go b/cli/pkg/resourcemanager/format.go index 1706b65..7bbc343 100644 --- a/cli/pkg/resourcemanager/format.go +++ b/cli/pkg/resourcemanager/format.go @@ -65,7 +65,7 @@ func (j jsonFormat) String() string { func (j jsonFormat) BuildRequest(req *http.Request, _ Verb) error { req.Header.Set("Accept", j.ContentType()) - req.Header.Set("X-Tracetest-Augmented", "true") + req.Header.Set("X-Qualitytrace-Augmented", "true") return nil } diff --git a/cli/pkg/resourcemanager/util_test.go b/cli/pkg/resourcemanager/util_test.go index 16ceb4b..57fc1de 100644 --- a/cli/pkg/resourcemanager/util_test.go +++ b/cli/pkg/resourcemanager/util_test.go @@ -3,7 +3,7 @@ package resourcemanager_test import ( "testing" - "github.com/intelops/qualityTrace/cli/pkg/resourcemanager" + "github.com/intelops/qualitytrace/cli/pkg/resourcemanager" "gotest.tools/v3/assert" ) diff --git a/cli/preprocessor/preprocessor.go b/cli/preprocessor/preprocessor.go index 26f3734..2243529 100644 --- a/cli/preprocessor/preprocessor.go +++ b/cli/preprocessor/preprocessor.go @@ -3,7 +3,7 @@ package preprocessor import ( "context" - "github.com/intelops/qualityTrace/cli/pkg/fileutil" + "github.com/intelops/qualitytrace/cli/pkg/fileutil" ) type Preprocessor interface { diff --git a/cli/preprocessor/test.go b/cli/preprocessor/test.go index 54ad749..dae1be3 100644 --- a/cli/preprocessor/test.go +++ b/cli/preprocessor/test.go @@ -5,9 +5,9 @@ import ( "fmt" "github.com/goccy/go-yaml" - "github.com/intelops/qualityTrace/cli/cmdutil" - "github.com/intelops/qualityTrace/cli/openapi" - "github.com/intelops/qualityTrace/cli/pkg/fileutil" + "github.com/intelops/qualitytrace/cli/cmdutil" + "github.com/intelops/qualitytrace/cli/openapi" + "github.com/intelops/qualitytrace/cli/pkg/fileutil" "go.uber.org/zap" ) diff --git a/cli/preprocessor/testsuite.go b/cli/preprocessor/testsuite.go index bb8d963..6c31925 100644 --- a/cli/preprocessor/testsuite.go +++ b/cli/preprocessor/testsuite.go @@ -5,9 +5,9 @@ import ( "fmt" "github.com/goccy/go-yaml" - "github.com/intelops/qualityTrace/cli/cmdutil" - "github.com/intelops/qualityTrace/cli/openapi" - "github.com/intelops/qualityTrace/cli/pkg/fileutil" + "github.com/intelops/qualitytrace/cli/cmdutil" + "github.com/intelops/qualitytrace/cli/openapi" + "github.com/intelops/qualitytrace/cli/pkg/fileutil" "go.uber.org/zap" ) diff --git a/cli/preprocessor/variableset.go b/cli/preprocessor/variableset.go index 9694bde..ff91bde 100644 --- a/cli/preprocessor/variableset.go +++ b/cli/preprocessor/variableset.go @@ -5,8 +5,8 @@ import ( "fmt" "github.com/goccy/go-yaml" - "github.com/intelops/qualityTrace/cli/cmdutil" - "github.com/intelops/qualityTrace/cli/pkg/fileutil" + "github.com/intelops/qualitytrace/cli/cmdutil" + "github.com/intelops/qualitytrace/cli/pkg/fileutil" "go.uber.org/zap" ) diff --git a/cli/runner/orchestrator.go b/cli/runner/orchestrator.go index b2d4894..4074c5a 100644 --- a/cli/runner/orchestrator.go +++ b/cli/runner/orchestrator.go @@ -11,12 +11,12 @@ import ( "time" "github.com/davecgh/go-spew/spew" - "github.com/intelops/qualityTrace/cli/metadata" - "github.com/intelops/qualityTrace/cli/openapi" - "github.com/intelops/qualityTrace/cli/pkg/fileutil" - "github.com/intelops/qualityTrace/cli/pkg/resourcemanager" - "github.com/intelops/qualityTrace/cli/variable" - "github.com/intelops/qualityTrace/cli/varset" + "github.com/intelops/qualitytrace/cli/metadata" + "github.com/intelops/qualitytrace/cli/openapi" + "github.com/intelops/qualitytrace/cli/pkg/fileutil" + "github.com/intelops/qualitytrace/cli/pkg/resourcemanager" + "github.com/intelops/qualitytrace/cli/variable" + "github.com/intelops/qualitytrace/cli/varset" "go.uber.org/zap" ) @@ -46,7 +46,7 @@ type RunOptions struct { // ResourceType defines what is the type of resource that is being run. It's value // is filled automatically when the user define the type of resource that will be run - // when they enter: qualityTrace run --id + // when they enter: qualitytrace run --id ResourceType string } diff --git a/cli/runner/registry.go b/cli/runner/registry.go index 68292ef..6a0ef4a 100644 --- a/cli/runner/registry.go +++ b/cli/runner/registry.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/intelops/qualityTrace/cli/cmdutil" + "github.com/intelops/qualitytrace/cli/cmdutil" "go.uber.org/zap" ) diff --git a/cli/runner/resource_fetcher.go b/cli/runner/resource_fetcher.go index 47066c1..8ff4c54 100644 --- a/cli/runner/resource_fetcher.go +++ b/cli/runner/resource_fetcher.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/cli/pkg/fileutil" - "github.com/intelops/qualityTrace/cli/variable" + "github.com/intelops/qualitytrace/cli/pkg/fileutil" + "github.com/intelops/qualitytrace/cli/variable" "go.uber.org/zap" ) diff --git a/cli/runner/test_runner.go b/cli/runner/test_runner.go index ba1872d..89b22c9 100644 --- a/cli/runner/test_runner.go +++ b/cli/runner/test_runner.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/cli/formatters" - "github.com/intelops/qualityTrace/cli/openapi" - "github.com/intelops/qualityTrace/cli/pkg/fileutil" - "github.com/intelops/qualityTrace/cli/pkg/resourcemanager" + "github.com/intelops/qualitytrace/cli/formatters" + "github.com/intelops/qualitytrace/cli/openapi" + "github.com/intelops/qualitytrace/cli/pkg/fileutil" + "github.com/intelops/qualitytrace/cli/pkg/resourcemanager" ) type testFormatter interface { diff --git a/cli/runner/testsuite_runner.go b/cli/runner/testsuite_runner.go index 226fbbd..80e701e 100644 --- a/cli/runner/testsuite_runner.go +++ b/cli/runner/testsuite_runner.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/cli/formatters" - "github.com/intelops/qualityTrace/cli/openapi" - "github.com/intelops/qualityTrace/cli/pkg/fileutil" - "github.com/intelops/qualityTrace/cli/pkg/resourcemanager" + "github.com/intelops/qualitytrace/cli/formatters" + "github.com/intelops/qualitytrace/cli/openapi" + "github.com/intelops/qualitytrace/cli/pkg/fileutil" + "github.com/intelops/qualitytrace/cli/pkg/resourcemanager" ) type testSuiteFormatter interface { diff --git a/cli/runner/variableset_fetcher.go b/cli/runner/variableset_fetcher.go index f0bde67..e68b6e4 100644 --- a/cli/runner/variableset_fetcher.go +++ b/cli/runner/variableset_fetcher.go @@ -5,9 +5,9 @@ import ( "errors" "fmt" - "github.com/intelops/qualityTrace/cli/openapi" - "github.com/intelops/qualityTrace/cli/pkg/fileutil" - "github.com/intelops/qualityTrace/cli/pkg/resourcemanager" + "github.com/intelops/qualitytrace/cli/openapi" + "github.com/intelops/qualitytrace/cli/pkg/fileutil" + "github.com/intelops/qualitytrace/cli/pkg/resourcemanager" "go.uber.org/zap" "gopkg.in/yaml.v2" ) diff --git a/cli/testdata/definitions/valid_http_test_definition.yml b/cli/testdata/definitions/valid_http_test_definition.yml index f19967e..b956fff 100644 --- a/cli/testdata/definitions/valid_http_test_definition.yml +++ b/cli/testdata/definitions/valid_http_test_definition.yml @@ -5,7 +5,7 @@ spec: trigger: type: http httpRequest: - url: http://pokemon-demo.qualityTrace.io/pokemon/import + url: http://pokemon-demo.qualitytrace.io/pokemon/import method: POST headers: - key: Content-Type @@ -19,7 +19,7 @@ spec: specs: - selector: span[name = "POST /pokemon/import"] assertions: - - qualityTrace.span.duration <= 100ms + - qualitytrace.span.duration <= 100ms - http.status_code = 200 - selector: span[name = "send message to queue"] assertions: @@ -35,5 +35,5 @@ spec: on database"] assertions: - db.repository.operation = "create" - - qualityTrace.span.duration <= 100ms - - 'qualityTrace.response.body contains "\"id\": 52"' + - qualitytrace.span.duration <= 100ms + - 'qualitytrace.response.body contains "\"id\": 52"' diff --git a/cli/testdata/definitions/valid_http_test_definition_with_env_variables.yml b/cli/testdata/definitions/valid_http_test_definition_with_env_variables.yml index 672bf20..804a610 100644 --- a/cli/testdata/definitions/valid_http_test_definition_with_env_variables.yml +++ b/cli/testdata/definitions/valid_http_test_definition_with_env_variables.yml @@ -5,7 +5,7 @@ spec: trigger: type: http httpRequest: - url: http://pokemon-demo.qualityTrace.io/pokemon/import + url: http://pokemon-demo.qualitytrace.io/pokemon/import method: POST headers: - key: Content-Type diff --git a/cli/testdata/definitions/valid_http_test_definition_with_id.yml b/cli/testdata/definitions/valid_http_test_definition_with_id.yml index 19084c9..91df7b7 100644 --- a/cli/testdata/definitions/valid_http_test_definition_with_id.yml +++ b/cli/testdata/definitions/valid_http_test_definition_with_id.yml @@ -6,7 +6,7 @@ spec: trigger: type: http httpRequest: - url: http://pokemon-demo.qualityTrace.io/pokemon/import + url: http://pokemon-demo.qualitytrace.io/pokemon/import method: POST headers: - key: Content-Type @@ -15,7 +15,7 @@ spec: specs: - selector: span[name = "POST /pokemon/import"] assertions: - - qualityTrace.span.duration <= 100ms + - qualitytrace.span.duration <= 100ms - http.status_code = 200 - selector: span[name = "send message to queue"] assertions: @@ -29,4 +29,4 @@ spec: - selector: span[name = "consume message from queue"]:last span[name = "save pokemon on database"] assertions: - db.repository.operation = "create" - - qualityTrace.span.duration <= 100ms + - qualitytrace.span.duration <= 100ms diff --git a/cli/ui/ui.go b/cli/ui/ui.go index 07ab4db..d2d987d 100644 --- a/cli/ui/ui.go +++ b/cli/ui/ui.go @@ -53,7 +53,7 @@ func (ui ptermUI) Banner(version string) { pterm.Print("\n\n") pterm.DefaultBigText. - WithLetters(putils.LettersFromString("TraceTest")). + WithLetters(putils.LettersFromString("Qualitytrace")). Render() pterm.Print(fmt.Sprintf("Version: %s", version)) diff --git a/cli/variable/injector_test.go b/cli/variable/injector_test.go index 5b4e7ff..444c224 100644 --- a/cli/variable/injector_test.go +++ b/cli/variable/injector_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/cli/variable" - "github.com/intelops/qualityTrace/server/model/yaml" + "github.com/intelops/qualitytrace/cli/variable" + "github.com/intelops/qualitytrace/server/model/yaml" "github.com/stretchr/testify/assert" ) @@ -52,8 +52,8 @@ func TestInjectorWithStruct(t *testing.T) { { Selector: "http.url = \"${POKEMON_API_URL}\"", Assertions: []string{ - "qualityTrace.span.duration < 100", - `qualityTrace.response.body contains '"id": ${EXPECTED_POKEMON_ID}'`, + "qualitytrace.span.duration < 100", + `qualitytrace.response.body contains '"id": ${EXPECTED_POKEMON_ID}'`, }, }, }, @@ -75,8 +75,8 @@ func TestInjectorWithStruct(t *testing.T) { { Selector: "http.url = \"http://pokemon.api:11633\"", Assertions: []string{ - "qualityTrace.span.duration < 100", - `qualityTrace.response.body contains '"id": 521'`, + "qualitytrace.span.duration < 100", + `qualitytrace.response.body contains '"id": 521'`, }, }, }, diff --git a/cli/varset/varset.go b/cli/varset/varset.go index 109af5d..2076643 100644 --- a/cli/varset/varset.go +++ b/cli/varset/varset.go @@ -3,9 +3,9 @@ package varset import ( "fmt" - "github.com/intelops/qualityTrace/cli/openapi" - "github.com/intelops/qualityTrace/cli/pkg/resourcemanager" - "github.com/intelops/qualityTrace/cli/ui" + "github.com/intelops/qualitytrace/cli/openapi" + "github.com/intelops/qualitytrace/cli/pkg/resourcemanager" + "github.com/intelops/qualitytrace/cli/ui" ) var jsonFormat = resourcemanager.Formats.Get(resourcemanager.FormatJSON) diff --git a/demo/create-pokemon.yaml b/demo/create-pokemon.yaml index dc2316f..fff633e 100644 --- a/demo/create-pokemon.yaml +++ b/demo/create-pokemon.yaml @@ -13,7 +13,7 @@ spec: specs: - selector: span[name = "non existent"] assertions: - - attr:qualityTrace.selected_spans.count > 0 - - selector: span[name = "Tracetest trigger"] + - attr:qualitytrace.selected_spans.count > 0 + - selector: span[name = "Qualitytrace trigger"] assertions: - - attr:qualityTrace.selected_spans.count > 0 + - attr:qualitytrace.selected_spans.count > 0 diff --git a/docker-compose.nats.yaml b/docker-compose.nats.yaml index e144aa0..3e0143a 100644 --- a/docker-compose.nats.yaml +++ b/docker-compose.nats.yaml @@ -12,25 +12,25 @@ services: volumes: - /var/run/docker.sock:/var/run/docker.sock - qualityTrace: + qualitytrace: labels: - "traefik.enable=true" - - "traefik.http.routers.qualityTrace.rule=Host(`localhost`)" - - "traefik.http.services.qualityTrace.loadbalancer.server.port=11633" + - "traefik.http.routers.qualitytrace.rule=Host(`localhost`)" + - "traefik.http.services.qualitytrace.loadbalancer.server.port=11633" deploy: replicas: 3 restart: unless-stopped - image: intelops/qualityTrace:${TAG:-latest} + image: intelops/qualitytrace:${TAG:-latest} extra_hosts: - "host.docker.internal:host-gateway" build: context: . volumes: - type: bind - source: ./local-config/qualityTrace.config.nats.yaml - target: /app/qualityTrace.yaml + source: ./local-config/qualitytrace.config.nats.yaml + target: /app/qualitytrace.yaml - type: bind - source: ./local-config/qualityTrace.provision.yaml + source: ./local-config/qualitytrace.provision.yaml target: /app/provisioning.yaml expose: - 11633 @@ -76,7 +76,7 @@ services: volumes: - ./local-config/collector.config.yaml:/otel-local-config.yaml depends_on: - - qualityTrace + - qualitytrace nats: image: nats:2.10-alpine diff --git a/docker-compose.yaml b/docker-compose.yaml index b611394..228c96b 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,18 +1,18 @@ version: "3.2" services: - qualityTrace: + qualitytrace: restart: unless-stopped - image: intelops/qualityTrace:${TAG:-latest} + image: intelops/qualitytrace:${TAG:-latest} extra_hosts: - "host.docker.internal:host-gateway" - build: - context: . + # build: + # context: . volumes: - type: bind - source: ./local-config/qualityTrace.config.yaml - target: /app/qualityTrace.yaml + source: ./local-config/qualitytrace.config.yaml + target: /app/qualitytrace.yaml - type: bind - source: ./local-config/qualityTrace.provision.yaml + source: ./local-config/qualitytrace.provision.yaml target: /app/provisioning.yaml ports: - 11633:11633 @@ -27,9 +27,9 @@ services: condition: service_healthy environment: TRACETEST_DEV: ${TRACETEST_DEV} - TRACETEST_TESTPIPELINES_TRIGGEREXECUTE_ENABLED: ${TRACETEST_TESTPIPELINES_TRIGGEREXECUTE_ENABLED} - TRACETEST_TESTPIPELINES_TRACEFETCH_ENABLED: ${TRACETEST_TESTPIPELINES_TRACEFETCH_ENABLED} - TRACETEST_DATASTOREPIPELINES_TESTCONNECTION_ENABLED: ${TRACETEST_DATASTOREPIPELINES_TESTCONNECTION_ENABLED} + # TRACETEST_TESTPIPELINES_TRIGGEREXECUTE_ENABLED: ${TRACETEST_TESTPIPELINES_TRIGGEREXECUTE_ENABLED} + # TRACETEST_TESTPIPELINES_TRACEFETCH_ENABLED: ${TRACETEST_TESTPIPELINES_TRACEFETCH_ENABLED} + # TRACETEST_DATASTOREPIPELINES_TESTCONNECTION_ENABLED: ${TRACETEST_DATASTOREPIPELINES_TESTCONNECTION_ENABLED} postgres: image: postgres:15.2 @@ -58,4 +58,4 @@ services: volumes: - ./local-config/collector.config.yaml:/otel-local-config.yaml depends_on: - - qualityTrace + - qualitytrace diff --git a/dockerfiles/cli/Dockerfile b/dockerfiles/cli/Dockerfile new file mode 100644 index 0000000..794c59d --- /dev/null +++ b/dockerfiles/cli/Dockerfile @@ -0,0 +1,10 @@ +FROM alpine + +WORKDIR /app + +COPY ./qualitytrace /app/qualitytrace + +# Adding /app folder on $PATH to allow users to call qualitytrace cli on docker +ENV PATH="$PATH:/app" + +ENTRYPOINT ["/app/qualitytrace"] diff --git a/dockerfiles/server/Dockerfile b/dockerfiles/server/Dockerfile new file mode 100644 index 0000000..c9ceb37 --- /dev/null +++ b/dockerfiles/server/Dockerfile @@ -0,0 +1,11 @@ +FROM alpine + +WORKDIR /app + +COPY ./qualitytrace-server /app/qualitytrace-server + +# COPY ./web/build ./html + +EXPOSE 11633/tcp + +ENTRYPOINT ["/app/qualitytrace-server", "serve"] diff --git a/docs/algolia.config.crawler.js b/docs/algolia.config.crawler.js index 3b97ca1..1cf71b7 100644 --- a/docs/algolia.config.crawler.js +++ b/docs/algolia.config.crawler.js @@ -1,16 +1,16 @@ new Crawler({ rateLimit: 8, maxDepth: 10, - startUrls: ["https://docs.qualityTrace.io/"], + startUrls: ["https://docs.qualitytrace.io/"], renderJavaScript: false, sitemaps: [], ignoreCanonicalTo: false, - discoveryPatterns: ["https://docs.qualityTrace.io/**"], + discoveryPatterns: ["https://docs.qualitytrace.io/**"], schedule: "at 1:39 PM on Friday", actions: [ { - indexName: "qualityTrace", - pathsToMatch: ["https://docs.qualityTrace.io/**"], + indexName: "qualitytrace", + pathsToMatch: ["https://docs.qualitytrace.io/**"], recordExtractor: ({ helpers }) => { return helpers.docsearch({ recordProps: { @@ -33,7 +33,7 @@ new Crawler({ }, ], initialIndexSettings: { - qualityTrace: { + qualitytrace: { attributesForFaceting: ["type", "lang"], attributesToRetrieve: [ "hierarchy", diff --git a/docs/algolia.config.json b/docs/algolia.config.json index abe65ec..0fc77d1 100644 --- a/docs/algolia.config.json +++ b/docs/algolia.config.json @@ -1,7 +1,7 @@ { - "index_name": "docs_qualityTrace", + "index_name": "docs_qualitytrace", "sitemap_urls": [ - "https://docs.qualityTrace.io/sitemap.xml" + "https://docs.qualitytrace.io/sitemap.xml" ], "sitemap_alternate_links": true, "stop_urls": [ diff --git a/docs/docs/analyzer/concepts.mdx b/docs/docs/analyzer/concepts.mdx index e37b9e9..85709d9 100644 --- a/docs/docs/analyzer/concepts.mdx +++ b/docs/docs/analyzer/concepts.mdx @@ -3,7 +3,7 @@ id: concepts title: Trace Analyzer Concepts description: The Tracetest Analyzer analyzes OpenTelemetry traces to help teams improve instrumentation data, find potential problems, and provide tips to fix the problems. keywords: - - qualityTrace + - qualitytrace - trace-based testing - observability - distributed tracing @@ -57,7 +57,7 @@ There are two main rule types: - Single Trace. Encapsulated to the current trace, no external data is required. :::note -[This documentation will be focused on single trace rules for timing purposes.](../configuration/qualityTrace-analyzer) +[This documentation will be focused on single trace rules for timing purposes.](../configuration/qualitytrace-analyzer) ::: ### Analyzer Resource diff --git a/docs/docs/analyzer/plugins/common-problems.mdx b/docs/docs/analyzer/plugins/common-problems.mdx index 821ea65..e558900 100644 --- a/docs/docs/analyzer/plugins/common-problems.mdx +++ b/docs/docs/analyzer/plugins/common-problems.mdx @@ -3,7 +3,7 @@ id: common-problems title: Common Problems description: The Common Problems plugin analyzes spans part of a trace to identify errors. The Tracetest Analyzer analyzes OpenTelemetry traces. keywords: - - qualityTrace + - qualitytrace - trace-based testing - observability - distributed tracing diff --git a/docs/docs/analyzer/plugins/otel-semantic-conventions.mdx b/docs/docs/analyzer/plugins/otel-semantic-conventions.mdx index 117c7b1..af01ca1 100644 --- a/docs/docs/analyzer/plugins/otel-semantic-conventions.mdx +++ b/docs/docs/analyzer/plugins/otel-semantic-conventions.mdx @@ -3,7 +3,7 @@ id: otel-semantic-conventions title: OTel Semantic Conventions description: The OpenTelemetry Semantic Conventions plugin analyzes spans part of a trace in order to identify problematic patterns. The Tracetest Analyzer analyzes OpenTelemetry traces. keywords: - - qualityTrace + - qualitytrace - trace-based testing - observability - distributed tracing diff --git a/docs/docs/analyzer/plugins/security.mdx b/docs/docs/analyzer/plugins/security.mdx index b6ce20f..487dbe4 100644 --- a/docs/docs/analyzer/plugins/security.mdx +++ b/docs/docs/analyzer/plugins/security.mdx @@ -3,7 +3,7 @@ id: security title: Security description: The Security plugin is responsible for analyzing spans part of a trace to identify security problems. The Tracetest Analyzer analyzes OpenTelemetry traces. keywords: - - qualityTrace + - qualitytrace - trace-based testing - observability - distributed tracing diff --git a/docs/docs/analyzer/rules/attribute-naming.mdx b/docs/docs/analyzer/rules/attribute-naming.mdx index c748eae..a008557 100644 --- a/docs/docs/analyzer/rules/attribute-naming.mdx +++ b/docs/docs/analyzer/rules/attribute-naming.mdx @@ -3,7 +3,7 @@ id: attribute-naming title: attribute-naming description: Enforce attribute keys to follow common specifications | The Tracetest Analyzer analyzes OpenTelemetry traces keywords: - - qualityTrace + - qualitytrace - trace-based testing - observability - distributed tracing diff --git a/docs/docs/analyzer/rules/no-api-key-leak.mdx b/docs/docs/analyzer/rules/no-api-key-leak.mdx index 1e22adc..a54a947 100644 --- a/docs/docs/analyzer/rules/no-api-key-leak.mdx +++ b/docs/docs/analyzer/rules/no-api-key-leak.mdx @@ -3,7 +3,7 @@ id: no-api-key-leak title: no-api-key-leak description: Disallow leaked API keys for HTTP spans | The Tracetest Analyzer analyzes OpenTelemetry traces keywords: - - qualityTrace + - qualitytrace - trace-based testing - observability - distributed tracing diff --git a/docs/docs/analyzer/rules/no-empty-attributes.mdx b/docs/docs/analyzer/rules/no-empty-attributes.mdx index 6009e2c..f73e2f9 100644 --- a/docs/docs/analyzer/rules/no-empty-attributes.mdx +++ b/docs/docs/analyzer/rules/no-empty-attributes.mdx @@ -3,7 +3,7 @@ id: no-empty-attributes title: no-empty-attributes description: Disallow empty attribute values | The Tracetest Analyzer analyzes OpenTelemetry traces keywords: - - qualityTrace + - qualitytrace - trace-based testing - observability - distributed tracing diff --git a/docs/docs/analyzer/rules/prefer-dns.mdx b/docs/docs/analyzer/rules/prefer-dns.mdx index 5549af6..5b44bb1 100644 --- a/docs/docs/analyzer/rules/prefer-dns.mdx +++ b/docs/docs/analyzer/rules/prefer-dns.mdx @@ -3,7 +3,7 @@ id: prefer-dns title: prefer-dns description: Enforce usage of DNS instead of IP addresses | The Tracetest Analyzer analyzes OpenTelemetry traces keywords: - - qualityTrace + - qualitytrace - trace-based testing - observability - distributed tracing diff --git a/docs/docs/analyzer/rules/required-attributes.mdx b/docs/docs/analyzer/rules/required-attributes.mdx index 4171dd6..81e428c 100644 --- a/docs/docs/analyzer/rules/required-attributes.mdx +++ b/docs/docs/analyzer/rules/required-attributes.mdx @@ -3,7 +3,7 @@ id: required-attributes title: required-attributes description: Enforce required attributes by span type | The Tracetest Analyzer analyzes OpenTelemetry traces keywords: - - qualityTrace + - qualitytrace - trace-based testing - observability - distributed tracing diff --git a/docs/docs/analyzer/rules/secure-https-protocol.mdx b/docs/docs/analyzer/rules/secure-https-protocol.mdx index 458284c..20461b6 100644 --- a/docs/docs/analyzer/rules/secure-https-protocol.mdx +++ b/docs/docs/analyzer/rules/secure-https-protocol.mdx @@ -3,7 +3,7 @@ id: secure-https-protocol title: secure-https-protocol description: Enforce usage of secure protocol for HTTP server spans | The Tracetest Analyzer analyzes OpenTelemetry traces keywords: - - qualityTrace + - qualitytrace - trace-based testing - observability - distributed tracing diff --git a/docs/docs/analyzer/rules/span-naming.mdx b/docs/docs/analyzer/rules/span-naming.mdx index 638d0eb..913cd0b 100644 --- a/docs/docs/analyzer/rules/span-naming.mdx +++ b/docs/docs/analyzer/rules/span-naming.mdx @@ -3,7 +3,7 @@ id: span-naming title: span-naming description: Enforce span names that identify a class of Spans, rather than individual Span instances | The Tracetest Analyzer analyzes OpenTelemetry traces keywords: - - qualityTrace + - qualitytrace - trace-based testing - observability - distributed tracing diff --git a/docs/docs/ci-cd-automation/github-actions-pipeline.mdx b/docs/docs/ci-cd-automation/github-actions-pipeline.mdx index 9d491e8..a424e27 100644 --- a/docs/docs/ci-cd-automation/github-actions-pipeline.mdx +++ b/docs/docs/ci-cd-automation/github-actions-pipeline.mdx @@ -3,7 +3,7 @@ id: github-actions-pipeline title: GitHub Actions Pipeline description: Quick start how to configure GitHub Actions to run Tracetest trace-based tests against a Node.js app with OpenTelemetry instrumentation and traces. keywords: - - qualityTrace + - qualitytrace - trace-based testing - observability - distributed tracing @@ -12,10 +12,10 @@ image: https://res.cloudinary.com/djwdcmwdz/image/upload/v1698686403/docs/Blog_T --- :::note -[Check out the source code on GitHub here.](https://github.com/intelops/qualityTrace/tree/main/examples/quick-start-github-actions) +[Check out the source code on GitHub here.](https://github.com/intelops/qualitytrace/tree/main/examples/quick-start-github-actions) ::: -[Tracetest](https://qualityTrace.io/) is a testing tool based on [OpenTelemetry](https://opentelemetry.io/) that allows you to test your distributed application. It allows you to use data from distributed traces generated by OpenTelemetry to validate and assert if your application has the desired behavior defined by your test definitions. +[Tracetest](https://qualitytrace.io/) is a testing tool based on [OpenTelemetry](https://opentelemetry.io/) that allows you to test your distributed application. It allows you to use data from distributed traces generated by OpenTelemetry to validate and assert if your application has the desired behavior defined by your test definitions. ## GitHub Actions Workflow for Running Tracetest tests against a sample Node.js app with OpenTelemetry @@ -54,24 +54,24 @@ jobs: uses: actions/checkout@v1 - name: Start containers - run: docker compose -f "docker-compose.yaml" -f "qualityTrace/docker-compose.yaml" up -d --build + run: docker compose -f "docker-compose.yaml" -f "qualitytrace/docker-compose.yaml" up -d --build - name: Install Tracetest CLI shell: bash - run: curl -L https://raw.githubusercontent.com/intelops/qualityTrace/main/install-cli.sh | bash + run: curl -L https://raw.githubusercontent.com/intelops/qualitytrace/main/install-cli.sh | bash - name: Configure Tracetest CLI - run: qualityTrace configure -g --server-url http://localhost:11633 + run: qualitytrace configure -g --server-url http://localhost:11633 - name: Run tests via the Tracetest CLI run: | - qualityTrace run test -f ./qualityTrace/tests/test-api.yaml - qualityTrace run test -f ./qualityTrace/tests/test-api-and-av.yaml - qualityTrace run testsuite -f ./qualityTrace/tests/testsuite-api.yaml + qualitytrace run test -f ./qualitytrace/tests/test-api.yaml + qualitytrace run test -f ./qualitytrace/tests/test-api-and-av.yaml + qualitytrace run testsuite -f ./qualitytrace/tests/testsuite-api.yaml - name: Stop containers if: always() - run: docker compose -f "docker-compose.yaml" -f "qualityTrace/docker-compose.yaml" down -v + run: docker compose -f "docker-compose.yaml" -f "qualitytrace/docker-compose.yaml" down -v ``` And, the other is a scheduled test run. @@ -94,24 +94,24 @@ jobs: uses: actions/checkout@v1 - name: Start containers - run: docker compose -f "docker-compose.yaml" -f "qualityTrace/docker-compose.yaml" up -d --build + run: docker compose -f "docker-compose.yaml" -f "qualitytrace/docker-compose.yaml" up -d --build - name: Install Tracetest CLI shell: bash - run: curl -L https://raw.githubusercontent.com/intelops/qualityTrace/main/install-cli.sh | bash + run: curl -L https://raw.githubusercontent.com/intelops/qualitytrace/main/install-cli.sh | bash - name: Configure Tracetest CLI - run: qualityTrace configure -g --server-url http://localhost:11633 + run: qualitytrace configure -g --server-url http://localhost:11633 - name: Run tests via the Tracetest CLI run: | - qualityTrace run test -f ./qualityTrace/tests/test-api.yaml - qualityTrace run test -f ./qualityTrace/tests/test-api-and-av.yaml - qualityTrace run testsuite -f ./qualityTrace/tests/testsuite-api.yaml + qualitytrace run test -f ./qualitytrace/tests/test-api.yaml + qualitytrace run test -f ./qualitytrace/tests/test-api-and-av.yaml + qualitytrace run testsuite -f ./qualitytrace/tests/testsuite-api.yaml - name: Stop containers if: always() - run: docker compose -f "docker-compose.yaml" -f "qualityTrace/docker-compose.yaml" down -v + run: docker compose -f "docker-compose.yaml" -f "qualitytrace/docker-compose.yaml" down -v ``` ## Project structure @@ -124,13 +124,13 @@ The `docker-compose.yaml` file and `Dockerfile` in the root directory are for th ### 2. Tracetest -The `docker-compose.yaml` file, `collector.config.yaml`, `qualityTrace-provision.yaml`, and `qualityTrace.config.yaml` in the `qualityTrace` directory are for the setting up Tracetest and the OpenTelemetry Collector. +The `docker-compose.yaml` file, `collector.config.yaml`, `qualitytrace-provision.yaml`, and `qualitytrace.config.yaml` in the `qualitytrace` directory are for the setting up Tracetest and the OpenTelemetry Collector. -The `qualityTrace` directory is self-contained and will run all the prerequisites for enabling OpenTelemetry traces and trace-based testing with Tracetest. +The `qualitytrace` directory is self-contained and will run all the prerequisites for enabling OpenTelemetry traces and trace-based testing with Tracetest. ### Docker Compose Network -All `services` in the `docker-compose.yaml` are on the same network and will be reachable by hostname from within other services. E.g. `qualityTrace:4317` in the `collector.config.yaml` will map to the `qualityTrace` service, where the port `4317` is the port where Tracetest accepts traces. +All `services` in the `docker-compose.yaml` are on the same network and will be reachable by hostname from within other services. E.g. `qualitytrace:4317` in the `collector.config.yaml` will map to the `qualitytrace` service, where the port `4317` is the port where Tracetest accepts traces. ## Node.js app @@ -261,24 +261,24 @@ Let's fix this by configuring Tracetest and OpenTelemetry Collector. ## Tracetest -The `docker-compose.yaml` in the `qualityTrace` directory is configured with three services. +The `docker-compose.yaml` in the `qualitytrace` directory is configured with three services. - **Postgres** - Postgres is a prerequisite for Tracetest to work. It stores trace data when running the trace-based tests. - [**OpenTelemetry Collector**](https://opentelemetry.io/docs/collector/) - A vendor-agnostic implementation of how to receive, process and export telemetry data. -- [**Tracetest**](https://qualityTrace.io/) - Trace-based testing that generates end-to-end tests automatically from traces. +- [**Tracetest**](https://qualitytrace.io/) - Trace-based testing that generates end-to-end tests automatically from traces. ```yaml version: "3" services: - qualityTrace: - image: intelops/qualityTrace:latest + qualitytrace: + image: intelops/qualitytrace:latest platform: linux/amd64 volumes: - type: bind - source: ./qualityTrace/qualityTrace-config.yaml - target: /app/qualityTrace.yaml + source: ./qualitytrace/qualitytrace-config.yaml + target: /app/qualitytrace.yaml - type: bind - source: ./qualityTrace/qualityTrace-provision.yaml + source: ./qualitytrace/qualitytrace-provision.yaml target: /app/provisioning.yaml ports: - 11633:11633 @@ -313,12 +313,12 @@ services: - "--config" - "/otel-local-config.yaml" volumes: - - ./qualityTrace/collector.config.yaml:/otel-local-config.yaml + - ./qualitytrace/collector.config.yaml:/otel-local-config.yaml ``` -Tracetest depends on both Postgres and the OpenTelemetry Collector. Both Tracetest and the OpenTelemetry Collector require config files to be loaded via a volume. The volumes are mapped from the root directory into the `qualityTrace` directory and the respective config files. +Tracetest depends on both Postgres and the OpenTelemetry Collector. Both Tracetest and the OpenTelemetry Collector require config files to be loaded via a volume. The volumes are mapped from the root directory into the `qualitytrace` directory and the respective config files. -The `qualityTrace-config.yaml` file contains the basic setup of connecting Tracetest to the Postgres instance. +The `qualitytrace-config.yaml` file contains the basic setup of connecting Tracetest to the Postgres instance. ```yaml postgres: @@ -330,7 +330,7 @@ postgres: params: sslmode=disable ``` -The `qualityTrace-provision.yaml` file provisions the trace data store and polling to store in the Postgres database. The data store is set to OTLP meaning the traces will be stored in Tracetest itself. +The `qualitytrace-provision.yaml` file provisions the trace data store and polling to store in the Postgres database. The data store is set to OTLP meaning the traces will be stored in Tracetest itself. ```yaml --- @@ -353,7 +353,7 @@ spec: But how are traces sent to Tracetest? -The `collector.config.yaml` explains that. It receives traces via either `grpc` or `http`. Then, exports them to Tracetest's otlp endpoint `qualityTrace:4317`. +The `collector.config.yaml` explains that. It receives traces via either `grpc` or `http`. Then, exports them to Tracetest's otlp endpoint `qualitytrace:4317`. ```yaml receivers: @@ -370,9 +370,9 @@ exporters: logging: loglevel: debug otlp/1: - endpoint: qualityTrace:4317 + endpoint: qualitytrace:4317 # Send traces to Tracetest. - # Read more in docs here: https://docs.qualityTrace.io/configuration/connecting-to-data-stores/opentelemetry-collector + # Read more in docs here: https://docs.qualitytrace.io/configuration/connecting-to-data-stores/opentelemetry-collector tls: insecure: true @@ -389,23 +389,23 @@ service: To start both the Node.js services and Tracetest we will run this command: ```bash -docker-compose -f docker-compose.yaml -f qualityTrace/docker-compose.yaml up # add --build if the images are not built already +docker-compose -f docker-compose.yaml -f qualitytrace/docker-compose.yaml up # add --build if the images are not built already ``` This will start your Tracetest instance on `http://localhost:11633/`. ## Run Tracetest tests with the Tracetest CLI -First, [install the CLI](https://docs.qualityTrace.io/getting-started/installation#install-the-qualityTrace-cli). +First, [install the CLI](https://docs.qualitytrace.io/getting-started/installation#install-the-qualitytrace-cli). Then, configure the CLI: ```bash -qualityTrace configure --server-url http://localhost:11633 +qualitytrace configure --server-url http://localhost:11633 ``` Once configured, you can run a test against the Tracetest instance via the terminal. -Check out the `test-api.yaml` file in the `./qualityTrace/tests` directory. +Check out the `test-api.yaml` file in the `./qualitytrace/tests` directory. ```yaml type: Test @@ -422,10 +422,10 @@ spec: - key: Content-Type value: application/json specs: - - selector: span[qualityTrace.span.type="http" name="GET /books" http.target="/books" http.method="GET"] + - selector: span[qualitytrace.span.type="http" name="GET /books" http.target="/books" http.method="GET"] assertions: - attr:http.status_code = 200 - - selector: span[qualityTrace.span.type="general" name="Books List"] + - selector: span[qualitytrace.span.type="general" name="Books List"] assertions: - attr:books.list.count = 4 ``` @@ -433,17 +433,17 @@ spec: To run the test, run this command in the terminal: ```bash -qualityTrace run test -f ./qualityTrace/tests/test-api.yaml +qualitytrace run test -f ./qualitytrace/tests/test-api.yaml ``` This test will fail just like the sample above due to the `attr:books.list.count = 4` assertion. ``` ✘ http://app:8080 (http://localhost:11633/test/W656Q0c4g/run/5/test) - ✔ span[qualityTrace.span.type="http" name="GET /books" http.target="/books" http.method="GET"] + ✔ span[qualitytrace.span.type="http" name="GET /books" http.target="/books" http.method="GET"] ✔ #994c63e0ea35e632 ✔ attr:http.status_code = 200 (200) - ✘ span[qualityTrace.span.type="general" name="Books List"] + ✘ span[qualitytrace.span.type="general" name="Books List"] ✘ #5ab1856c32b0d5c8 ✘ attr:books.list.count = 4 (3) (http://localhost:11633/test/W656Q0c4g/run/5/test?selectedAssertion=1&selectedSpan=5ab1856c32b0d5c8) ``` @@ -454,12 +454,12 @@ The tests will pass if you change the assertion to: attr: books.list.count = 3; ``` -There are two more files in the `./qualityTrace/tests` directory that we use in the GitHub Actions Workflow. +There are two more files in the `./qualitytrace/tests` directory that we use in the GitHub Actions Workflow. The test `test-api-and-av.yaml` also includes assertions for the `availability` service. ```yaml -# ./qualityTrace/tests/test-api-and-av.yaml +# ./qualitytrace/tests/test-api-and-av.yaml type: Test spec: @@ -475,17 +475,17 @@ spec: - key: Content-Type value: application/json specs: - - selector: span[qualityTrace.span.type="http" name="GET /books" http.target="/books" + - selector: span[qualitytrace.span.type="http" name="GET /books" http.target="/books" http.method="GET"] assertions: - - attr:qualityTrace.span.duration < 500ms - - selector: span[qualityTrace.span.type="general" name="Books List"] + - attr:qualitytrace.span.duration < 500ms + - selector: span[qualitytrace.span.type="general" name="Books List"] assertions: - attr:books.list.count = 3 - - selector: span[qualityTrace.span.type="http" name="GET /availability/:bookId" http.method="GET"] + - selector: span[qualitytrace.span.type="http" name="GET /availability/:bookId" http.method="GET"] assertions: - attr:http.host = "availability:8080" - - selector: span[qualityTrace.span.type="general" name="Availablity check"] + - selector: span[qualitytrace.span.type="general" name="Availablity check"] assertions: - attr:isAvailable = "true" ``` @@ -493,7 +493,7 @@ spec: The testsuite `testsuite-api.yaml` will run both the tests above. ```yaml -# ./qualityTrace/tests/testsuite-api.yaml +# ./qualitytrace/tests/testsuite-api.yaml type: TestSuite spec: @@ -504,4 +504,4 @@ spec: - phAZcrT4B ``` -Feel free to check out our [docs](https://docs.qualityTrace.io/), and join our [Slack Community](https://dub.sh/qualityTrace-community) for more info! +Feel free to check out our [docs](https://docs.qualitytrace.io/), and join our [Slack Community](https://dub.sh/qualitytrace-community) for more info! diff --git a/docs/docs/ci-cd-automation/overview.mdx b/docs/docs/ci-cd-automation/overview.mdx index bdc5c21..da2208e 100644 --- a/docs/docs/ci-cd-automation/overview.mdx +++ b/docs/docs/ci-cd-automation/overview.mdx @@ -3,7 +3,7 @@ id: overview title: CI/CD Automation description: Overview of running automated trace-based testing with Tracetest in CI/CD pipelines. keywords: - - qualityTrace + - qualitytrace - trace-based testing - observability - distributed tracing @@ -20,15 +20,15 @@ You can find guides for: - [Tekton](/ci-cd-automation/tekton-pipeline) :::note -If you want to see more examples with other CI/CD tools, let us know by [opening an issue in GitHub](https://github.com/intelops/qualityTrace/issues/new/choose)! +If you want to see more examples with other CI/CD tools, let us know by [opening an issue in GitHub](https://github.com/intelops/qualitytrace/issues/new/choose)! ::: Tracetest is designed to work with all CI/CD platforms and automation tools. To enable Tracetest to run in CI/CD environments, make sure to [install the Tracetest CLI](../getting-started/installation.mdx) and configure it to access your [Tracetest server](../core/configuration/server.mdx). To read more about integrating Tracetest with CI/CD tools, check out tutorials in our blog: -- [Integrating Tracetest with GitHub Actions in a CI pipeline](https://kubeshop.io/blog/integrating-qualityTrace-with-github-actions-in-a-ci-pipeline) -- [50% Faster CI Pipelines with GitHub Actions](https://qualityTrace.io/blog/50-faster-ci-pipelines-with-github-actions) +- [Integrating Tracetest with GitHub Actions in a CI pipeline](https://kubeshop.io/blog/integrating-qualitytrace-with-github-actions-in-a-ci-pipeline) +- [50% Faster CI Pipelines with GitHub Actions](https://qualitytrace.io/blog/50-faster-ci-pipelines-with-github-actions) ## Running Tracetest CLI from Docker @@ -38,9 +38,9 @@ Many integrations with CI/CD tools can be accomplished by running the [Tracetest Use the command below, substituting the following placeholders: -- `your-qualityTrace-server-url` - the URL to the running Tracetest server you wish to execute the test on. Example: `http://localhost:11633/` +- `your-qualitytrace-server-url` - the URL to the running Tracetest server you wish to execute the test on. Example: `http://localhost:11633/` - `file-path` - The path to the saved Tracetest test. Example: `./mytest.yaml` ```bash wordWrap=true -docker run --rm -it -v$(pwd):$(pwd) -w $(pwd) --network host --entrypoint qualityTrace intelops/qualityTrace:latest -s run test --file +docker run --rm -it -v$(pwd):$(pwd) -w $(pwd) --network host --entrypoint qualitytrace intelops/qualitytrace:latest -s run test --file ``` diff --git a/docs/docs/ci-cd-automation/tekton-pipeline.mdx b/docs/docs/ci-cd-automation/tekton-pipeline.mdx index 9c39547..9825c0c 100644 --- a/docs/docs/ci-cd-automation/tekton-pipeline.mdx +++ b/docs/docs/ci-cd-automation/tekton-pipeline.mdx @@ -3,7 +3,7 @@ id: tekton-pipeline title: Tekton Cloud-native Pipeline description: Use Tracetest with Tekton to add trace-based testing to Kubernetes-native CI/CD pipelines. Run scheduled and synthetic tests against trace data. keywords: - - qualityTrace + - qualitytrace - trace-based testing - observability - distributed tracing @@ -12,14 +12,14 @@ image: https://res.cloudinary.com/djwdcmwdz/image/upload/v1698686403/docs/Blog_T --- :::note -[Check out the source code on GitHub here.](https://github.com/intelops/qualityTrace/tree/main/examples/quick-start-tekton) +[Check out the source code on GitHub here.](https://github.com/intelops/qualitytrace/tree/main/examples/quick-start-tekton) ::: ## Running Event-driven Trace-based Tests [Tekton](https://tekton.dev/) is a powerful and flexible open-source framework for creating CI/CD systems, allowing developers to build, test, and deploy across cloud providers and on-premise systems. -[Tracetest](https://qualityTrace.io/) is a testing tool based on [OpenTelemetry](https://opentelemetry.io/) that allows you to test your distributed application. It allows you to use data from distributed traces generated by OpenTelemetry to validate and assert if your application has the desired behavior defined by your test definitions. +[Tracetest](https://qualitytrace.io/) is a testing tool based on [OpenTelemetry](https://opentelemetry.io/) that allows you to test your distributed application. It allows you to use data from distributed traces generated by OpenTelemetry to validate and assert if your application has the desired behavior defined by your test definitions. ## Why do we want to run Tracetest with Tekton? @@ -74,17 +74,17 @@ https://storage.googleapis.com/tekton-releases/triggers/latest/interceptors.yaml ## 2. Install Tracetest CLI -Install Tracetest CLI by following [these instructions](https://docs.qualityTrace.io/getting-started/installation) for your OS. +Install Tracetest CLI by following [these instructions](https://docs.qualitytrace.io/getting-started/installation) for your OS. ```bash # MacOS example -brew install intelops/qualityTrace/qualityTrace +brew install intelops/qualitytrace/qualitytrace ``` ## 3. Install Tracetest in Your Kubernetes Cluster ```bash -qualityTrace server install +qualitytrace server install ``` ```text title="Expected output" @@ -106,39 +106,39 @@ Select `Just learning tracing! Install Tracetest, OpenTelemetry Collector and th Confirm that Tracetest is running: ```bash -kubectl get all -n qualityTrace +kubectl get all -n qualitytrace ``` ```text title="Expected output" NAME READY STATUS RESTARTS AGE pod/otel-collector-7f4d87489f-vp6zn 1/1 Running 0 5m41s -pod/qualityTrace-78b9c84c57-t4prx 1/1 Running 3 (4m15s ago) 5m29s -pod/qualityTrace-postgresql-0 1/1 Running 0 5m42s +pod/qualitytrace-78b9c84c57-t4prx 1/1 Running 3 (4m15s ago) 5m29s +pod/qualitytrace-postgresql-0 1/1 Running 0 5m42s NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE service/otel-collector ClusterIP 10.96.173.226 4317/TCP 5m46s -service/qualityTrace ClusterIP 10.96.248.146 11633/TCP,4317/TCP 5m42s -service/qualityTrace-postgresql ClusterIP 10.96.155.147 5432/TCP 5m42s -service/qualityTrace-postgresql-hl ClusterIP None 5432/TCP 5m42s +service/qualitytrace ClusterIP 10.96.248.146 11633/TCP,4317/TCP 5m42s +service/qualitytrace-postgresql ClusterIP 10.96.155.147 5432/TCP 5m42s +service/qualitytrace-postgresql-hl ClusterIP None 5432/TCP 5m42s NAME READY UP-TO-DATE AVAILABLE AGE deployment.apps/otel-collector 1/1 1 1 5m46s -deployment.apps/qualityTrace 1/1 1 1 5m42s +deployment.apps/qualitytrace 1/1 1 1 5m42s NAME DESIRED CURRENT READY AGE replicaset.apps/otel-collector-7f4d87489f 1 1 1 5m46s -replicaset.apps/qualityTrace-78b9c84c57 1 1 1 5m42s +replicaset.apps/qualitytrace-78b9c84c57 1 1 1 5m42s NAME READY AGE -statefulset.apps/qualityTrace-postgresql 1/1 5m42s +statefulset.apps/qualitytrace-postgresql 1/1 5m42s ``` -By default, Tracetest is installed in the `qualityTrace` namespace. +By default, Tracetest is installed in the `qualitytrace` namespace. To explore the Tracetest Web UI, run the command: ```bash -kubectl --kubeconfig /.kube/config --context --namespace qualityTrace port-forward svc/qualityTrace 11633 +kubectl --kubeconfig /.kube/config --context --namespace qualitytrace port-forward svc/qualitytrace 11633 ``` ![Tracetest Web UI](https://res.cloudinary.com/djwdcmwdz/image/upload/v1679064296/Blogposts/Docs/screely-1679064291876_jxlhmn.png) @@ -156,13 +156,13 @@ Proceed to add a test spec to assert all database queries return within 500 ms. In the span selector make sure to add this selector: ```css -span[qualityTrace.span.type="database"] +span[qualitytrace.span.type="database"] ``` In the assertion field add: ```css -attr:qualityTrace.span.duration < 500ms +attr:qualitytrace.span.duration < 500ms ``` Save the test spec and publish the test. @@ -187,7 +187,7 @@ Click the ⚙️ button in the top right. Then click `Test Definition`. This will open a YAML definition for the test run. -![qualityTrace test yaml file](https://res.cloudinary.com/djwdcmwdz/image/upload/v1679071430/Blogposts/Docs/screely-1679071422136_ygbo8q.png) +![qualitytrace test yaml file](https://res.cloudinary.com/djwdcmwdz/image/upload/v1679071430/Blogposts/Docs/screely-1679071422136_ygbo8q.png) Save this into a file called `test-api.yaml`: @@ -207,19 +207,19 @@ spec: value: application/json specs: - name: Database queries less than 500 ms - selector: span[qualityTrace.span.type="database"] + selector: span[qualitytrace.span.type="database"] assertions: - - attr:qualityTrace.span.duration < 500ms + - attr:qualitytrace.span.duration < 500ms ``` -Create another YAML file, name it `install-and-run-qualityTrace.yaml`. +Create another YAML file, name it `install-and-run-qualitytrace.yaml`. This contains the Tekton `Task` definition. ```yaml apiVersion: tekton.dev/v1beta1 kind: Task metadata: - name: install-and-run-qualityTrace + name: install-and-run-qualitytrace spec: steps: - name: create-test-files @@ -242,19 +242,19 @@ spec: value: application/json specs: - name: Database queries less than 500 ms - selector: span[qualityTrace.span.type="database"] + selector: span[qualitytrace.span.type="database"] assertions: - - attr:qualityTrace.span.duration < 500ms + - attr:qualitytrace.span.duration < 500ms EOF volumeMounts: - name: custom mountPath: /workspace - - name: install-and-run-qualityTrace - image: intelops/qualityTrace:v0.11.9 # The official Tracetest image comes with the Tracetest CLI installed + - name: install-and-run-qualitytrace + image: intelops/qualitytrace:v0.11.9 # The official Tracetest image comes with the Tracetest CLI installed script: | # Configure and Run Tracetest CLI - qualityTrace configure -g --server-url http://qualityTrace.qualityTrace.svc.cluster.local:11633/ - qualityTrace run test -f /workspace/test-api.yaml + qualitytrace configure -g --server-url http://qualitytrace.qualitytrace.svc.cluster.local:11633/ + qualitytrace run test -f /workspace/test-api.yaml volumeMounts: - name: custom mountPath: /workspace @@ -263,49 +263,49 @@ spec: emptyDir: {} ``` -Make sure to use the Tracetest service as the endpoint for your `qualityTrace configure` command. This may vary depending on your installation. +Make sure to use the Tracetest service as the endpoint for your `qualitytrace configure` command. This may vary depending on your installation. ```bash -http://qualityTrace.qualityTrace.svc.cluster.local:11633/ +http://qualitytrace.qualitytrace.svc.cluster.local:11633/ ``` ## 6. Run the Tracetest Trace-based Test in Tekton with a TaskRun Finally, to run the test, create a `TaskRun`. -Create a file called `install-and-run-qualityTrace-run-yaml`. +Create a file called `install-and-run-qualitytrace-run-yaml`. ```yaml apiVersion: tekton.dev/v1beta1 kind: TaskRun metadata: - name: install-and-run-qualityTrace-run + name: install-and-run-qualitytrace-run spec: taskRef: - name: install-and-run-qualityTrace + name: install-and-run-qualitytrace ``` ```bash -kubectl apply -f ./install-and-run-qualityTrace-run-yaml +kubectl apply -f ./install-and-run-qualitytrace-run-yaml ``` Here's how to check the logs: ```bash -kubectl logs --selector=tekton.dev/taskRun=install-and-run-qualityTrace-run +kubectl logs --selector=tekton.dev/taskRun=install-and-run-qualitytrace-run ``` You can also trigger a Task with the Tekton CLI. ```bash -tkn task start install-and-run-qualityTrace +tkn task start install-and-run-qualitytrace ``` ```text title="Expected output" -TaskRun started: install-and-run-qualityTrace-run-xmhfg +TaskRun started: install-and-run-qualitytrace-run-xmhfg In order to track the TaskRun progress run: -tkn taskrun logs install-and-run-qualityTrace-run-xmhfg -f -n default +tkn taskrun logs install-and-run-qualitytrace-run-xmhfg -f -n default ``` To preview which tasks failed or succeeded, use this command: @@ -316,11 +316,11 @@ tkn taskrun list ```text title="Expected output" NAME STARTED DURATION STATUS -install-and-run-qualityTrace-run 3 minutes ago 23s Succeeded -install-and-run-qualityTrace-run-nmptn 7 minutes ago 33s Failed -install-and-run-qualityTrace-run-bhf7v 20 minutes ago 23s Succeeded -install-and-run-qualityTrace-run-wm8bj 21 minutes ago 22s Succeeded -install-and-run-qualityTrace-run-dbrbt 23 minutes ago 24s Failed +install-and-run-qualitytrace-run 3 minutes ago 23s Succeeded +install-and-run-qualitytrace-run-nmptn 7 minutes ago 33s Failed +install-and-run-qualitytrace-run-bhf7v 20 minutes ago 23s Succeeded +install-and-run-qualitytrace-run-wm8bj 21 minutes ago 22s Succeeded +install-and-run-qualitytrace-run-dbrbt 23 minutes ago 24s Failed ``` ## 7. Trigger Trace-based Tests with an EventListener @@ -329,27 +329,27 @@ By using Tektons's [triggers](https://tekton.dev/docs/getting-started/triggers/) ### Create a TriggerTemplate and TriggerBinding -```yaml title="install-and-run-qualityTrace-trigger-binding.yaml" +```yaml title="install-and-run-qualitytrace-trigger-binding.yaml" apiVersion: triggers.tekton.dev/v1beta1 kind: TriggerTemplate metadata: - name: install-and-run-qualityTrace-template + name: install-and-run-qualitytrace-template spec: resourcetemplates: - apiVersion: tekton.dev/v1beta1 kind: TaskRun metadata: - generateName: install-and-run-qualityTrace-run- + generateName: install-and-run-qualitytrace-run- spec: taskRef: - name: install-and-run-qualityTrace + name: install-and-run-qualitytrace ``` -```yaml title="install-and-run-qualityTrace-trigger-template.yaml" +```yaml title="install-and-run-qualitytrace-trigger-template.yaml" apiVersion: triggers.tekton.dev/v1beta1 kind: TriggerBinding metadata: - name: install-and-run-qualityTrace-binding + name: install-and-run-qualitytrace-binding spec: params: - name: run @@ -357,25 +357,25 @@ spec: ``` ```bash -kubectl apply -f install-and-run-qualityTrace-trigger-binding.yaml -kubectl apply -f install-and-run-qualityTrace-trigger-template.yaml +kubectl apply -f install-and-run-qualitytrace-trigger-binding.yaml +kubectl apply -f install-and-run-qualitytrace-trigger-template.yaml ``` ### Create an EventListener -```yaml title="install-and-run-qualityTrace-listener.yaml" +```yaml title="install-and-run-qualitytrace-listener.yaml" apiVersion: triggers.tekton.dev/v1beta1 kind: EventListener metadata: - name: install-and-run-qualityTrace-listener + name: install-and-run-qualitytrace-listener spec: serviceAccountName: tekton-robot triggers: - - name: install-and-run-qualityTrace-trigger + - name: install-and-run-qualitytrace-trigger bindings: - - ref: install-and-run-qualityTrace-binding + - ref: install-and-run-qualitytrace-binding template: - ref: install-and-run-qualityTrace-template + ref: install-and-run-qualitytrace-template ``` The EventListener requires a service account to run. To create the service account for this example create a file named `tekton-robot-rbac.yaml` and add the following: @@ -414,7 +414,7 @@ roleRef: ```bash kubectl apply -f tekton-robot-rbac.yaml -kubectl apply -f install-and-run-qualityTrace-listener.yaml +kubectl apply -f install-and-run-qualitytrace-listener.yaml ``` Enable port forwarding. @@ -440,18 +440,18 @@ tkn taskrun list ```text title="Expected output" NAME STARTED DURATION STATUS -install-and-run-qualityTrace-run-69zrz 4 seconds ago --- Running(Pending) +install-and-run-qualitytrace-run-69zrz 4 seconds ago --- Running(Pending) ``` Finally, check the logs: ```bash -tkn taskrun logs -f install-and-run-qualityTrace-run-69zrz +tkn taskrun logs -f install-and-run-qualitytrace-run-69zrz ``` ```text title="Expected output" -[install-and-run-qualityTrace] ✔ Pokeshop - List (http://qualityTrace.qualityTrace.svc.cluster.local:11633/test/RUkKQ_aVR/run/5/test) -[install-and-run-qualityTrace] ✔ Database queries less than 500 ms +[install-and-run-qualitytrace] ✔ Pokeshop - List (http://qualitytrace.qualitytrace.svc.cluster.local:11633/test/RUkKQ_aVR/run/5/test) +[install-and-run-qualitytrace] ✔ Database queries less than 500 ms ``` ## Next Steps diff --git a/docs/docs/ci-cd-automation/testkube-pipeline.mdx b/docs/docs/ci-cd-automation/testkube-pipeline.mdx index 5398115..7e51bb8 100644 --- a/docs/docs/ci-cd-automation/testkube-pipeline.mdx +++ b/docs/docs/ci-cd-automation/testkube-pipeline.mdx @@ -3,7 +3,7 @@ id: testkube-pipeline title: Testkube Kubernetes-native Test Runner Pipeline description: Use Tracetest with Testkube to add trace-based testing to Kubernetes-native CI/CD pipelines. Run scheduled and synthetic tests against trace data. keywords: - - qualityTrace + - qualitytrace - trace-based testing - observability - distributed tracing @@ -18,11 +18,11 @@ image: https://res.cloudinary.com/djwdcmwdz/image/upload/v1698686403/docs/Blog_T ## Running Scheduled Trace-based Tests -[Tracetest](https://app.qualityTrace.io/) is a testing tool based on [OpenTelemetry](https://opentelemetry.io/) that allows you to test your distributed application. It uses data from distributed traces generated by OpenTelemetry to validate and assert if your application has the desired behavior described by your test definitions. +[Tracetest](https://app.qualitytrace.io/) is a testing tool based on [OpenTelemetry](https://opentelemetry.io/) that allows you to test your distributed application. It uses data from distributed traces generated by OpenTelemetry to validate and assert if your application has the desired behavior described by your test definitions. [Testkube](https://testkube.io/) is a Kubernetes-native testing framework for Testers and Developers that allows you to automate the executions of your existing testing tools inside your Kubernetes cluster, removing all the complexity from your CI/CD/GitOps pipelines. -By using the [Testkube Tracetest Executor](https://docs.testkube.io/test-types/executor-qualityTrace) you can unlock Testkube's capacity in conjunction with Tracetest, and leverage the work you have already done to instrument your services. +By using the [Testkube Tracetest Executor](https://docs.testkube.io/test-types/executor-qualitytrace) you can unlock Testkube's capacity in conjunction with Tracetest, and leverage the work you have already done to instrument your services.
`, + value: ``, }, { type: "search", position: "right", }, { - href: "https://app.qualityTrace.io", + href: "https://app.qualitytrace.io", label: "Sign In", position: "right", className: "sign-in-button", @@ -227,11 +227,11 @@ const config = { items: [ { label: "Slack", - href: "https://dub.sh/qualityTrace-community", + href: "https://dub.sh/qualitytrace-community", }, { label: "Twitter", - href: "https://twitter.com/qualityTrace_io", + href: "https://twitter.com/qualitytrace_io", }, { label: "LinkedIn", @@ -244,15 +244,15 @@ const config = { items: [ { label: "Home", - to: "https://qualityTrace.io", + to: "https://qualitytrace.io", }, { label: "Blog", - to: "https://qualityTrace.io/blog", + to: "https://qualitytrace.io/blog", }, { label: "GitHub", - href: "https://github.com/intelops/qualityTrace", + href: "https://github.com/intelops/qualitytrace", }, ], }, @@ -270,7 +270,7 @@ const config = { // Public API key: it is safe to commit it apiKey: "663c91299e298ff34c5a7a18f4451d1a", - indexName: "qualityTrace", + indexName: "qualitytrace", contextualSearch: false, diff --git a/docs/package-lock.json b/docs/package-lock.json index e5015e0..2359fa9 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -1,11 +1,11 @@ { - "name": "qualityTrace-docs", + "name": "qualitytrace-docs", "version": "0.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "qualityTrace-docs", + "name": "qualitytrace-docs", "version": "0.0.0", "dependencies": { "@docusaurus/core": "^3.1.1", diff --git a/docs/package.json b/docs/package.json index 189800d..9de60bf 100644 --- a/docs/package.json +++ b/docs/package.json @@ -1,5 +1,5 @@ { - "name": "qualityTrace-docs", + "name": "qualitytrace-docs", "version": "0.0.0", "private": true, "scripts": { diff --git a/docs/sidebars.js b/docs/sidebars.js index 2ce5521..d10b5ed 100644 --- a/docs/sidebars.js +++ b/docs/sidebars.js @@ -127,7 +127,7 @@ const sidebars = { items: [ { type: "doc", - id: "examples-tutorials/recipes/testing-kafka-go-api-with-opentelemetry-qualityTrace", + id: "examples-tutorials/recipes/testing-kafka-go-api-with-opentelemetry-qualitytrace", label: "Testing Kafka", }, ], @@ -138,17 +138,17 @@ const sidebars = { items: [ { type: "doc", - id: "examples-tutorials/recipes/testing-vercel-functions-with-opentelemetry-qualityTrace", + id: "examples-tutorials/recipes/testing-vercel-functions-with-opentelemetry-qualitytrace", label: "Testing Vercel Functions", }, { type: "doc", - id: "examples-tutorials/recipes/testing-lambda-functions-with-opentelemetry-qualityTrace", + id: "examples-tutorials/recipes/testing-lambda-functions-with-opentelemetry-qualitytrace", label: "Testing AWS Lambda Functions", }, { type: "doc", - id: "examples-tutorials/recipes/testing-cloudflare-workers-with-opentelemetry-qualityTrace", + id: "examples-tutorials/recipes/testing-cloudflare-workers-with-opentelemetry-qualitytrace", label: "Testing Cloudflare Workers", }, ], @@ -159,7 +159,7 @@ const sidebars = { items: [ { type: "doc", - id: "examples-tutorials/recipes/running-playwright-performance-tests-with-artillery-and-qualityTrace", + id: "examples-tutorials/recipes/running-playwright-performance-tests-with-artillery-and-qualitytrace", label: "Performance Testing with Distributed Tracing using Artillery, Playwright and Tracetest", }, ], @@ -170,7 +170,7 @@ const sidebars = { items: [ { type: "doc", - id: "examples-tutorials/recipes/testing-distributed-services-with-tyk-opentelemetry-qualityTrace", + id: "examples-tutorials/recipes/testing-distributed-services-with-tyk-opentelemetry-qualitytrace", label: "Testing Distributed Services with Tyk, OpenTelemetry, and Tracetest", }, ], @@ -181,17 +181,17 @@ const sidebars = { items: [ { type: "doc", - id: "examples-tutorials/recipes/running-qualityTrace-without-a-trace-data-store", + id: "examples-tutorials/recipes/running-qualitytrace-without-a-trace-data-store", label: "Node.js and OpenTelemetry", }, { type: "doc", - id: "examples-tutorials/recipes/running-qualityTrace-without-a-trace-data-store-with-manual-instrumentation", + id: "examples-tutorials/recipes/running-qualitytrace-without-a-trace-data-store-with-manual-instrumentation", label: "Node.js and OpenTelemetry Manual Instrumentation", }, { type: "doc", - id: "examples-tutorials/recipes/running-python-app-with-opentelemetry-collector-and-qualityTrace", + id: "examples-tutorials/recipes/running-python-app-with-opentelemetry-collector-and-qualitytrace", label: "Python and OpenTelemetry Manual Instrumentation", }, ], @@ -202,32 +202,32 @@ const sidebars = { items: [ { type: "doc", - id: "examples-tutorials/recipes/running-qualityTrace-with-lightstep", + id: "examples-tutorials/recipes/running-qualitytrace-with-lightstep", label: "OpenTelemetry Demo and Lightstep", }, { type: "doc", - id: "examples-tutorials/recipes/running-qualityTrace-with-new-relic", + id: "examples-tutorials/recipes/running-qualitytrace-with-new-relic", label: "OpenTelemetry Demo and New Relic", }, { type: "doc", - id: "examples-tutorials/recipes/running-qualityTrace-with-datadog", + id: "examples-tutorials/recipes/running-qualitytrace-with-datadog", label: "OpenTelemetry Demo and Datadog", }, { type: "doc", - id: "examples-tutorials/recipes/running-qualityTrace-with-dynatrace", + id: "examples-tutorials/recipes/running-qualitytrace-with-dynatrace", label: "OpenTelemetry Demo and Dynatrace", }, { type: "doc", - id: "examples-tutorials/recipes/running-qualityTrace-with-honeycomb", + id: "examples-tutorials/recipes/running-qualitytrace-with-honeycomb", label: "Node.js and Honeycomb", }, { type: "doc", - id: "examples-tutorials/recipes/running-qualityTrace-with-signoz-pokeshop", + id: "examples-tutorials/recipes/running-qualitytrace-with-signoz-pokeshop", label: "Pokeshop API and SigNoz", }, ], @@ -238,23 +238,23 @@ const sidebars = { items: [ { type: "doc", - id: "examples-tutorials/recipes/running-qualityTrace-with-aws-x-ray", + id: "examples-tutorials/recipes/running-qualitytrace-with-aws-x-ray", label: "Node.js and AWS X-Ray (Node.js SDK)", }, { type: "doc", - id: "examples-tutorials/recipes/running-qualityTrace-with-aws-x-ray-adot", + id: "examples-tutorials/recipes/running-qualitytrace-with-aws-x-ray-adot", label: "Node.js with AWS X-Ray (Node.js SDK) and AWS Distro for OpenTelemetry", }, { type: "doc", - id: "examples-tutorials/recipes/running-qualityTrace-with-aws-x-ray-pokeshop", + id: "examples-tutorials/recipes/running-qualitytrace-with-aws-x-ray-pokeshop", label: "Pokeshop API with AWS X-Ray (Node.js SDK) and AWS Distro for OpenTelemetry", }, { type: "doc", - id: "examples-tutorials/recipes/running-qualityTrace-with-step-functions-terraform", + id: "examples-tutorials/recipes/running-qualitytrace-with-step-functions-terraform", label: ".NET Step Functions with AWS X-Ray, AWS Distro for OpenTelemetry, and Terraform", }, ], @@ -265,17 +265,17 @@ const sidebars = { items: [ { type: "doc", - id: "examples-tutorials/recipes/running-qualityTrace-with-azure-app-insights", + id: "examples-tutorials/recipes/running-qualitytrace-with-azure-app-insights", label: "Node.js and Azure Application Insights (Node.js SDK)", }, { type: "doc", - id: "examples-tutorials/recipes/running-qualityTrace-with-azure-app-insights-collector", + id: "examples-tutorials/recipes/running-qualitytrace-with-azure-app-insights-collector", label: "Node.js and Azure Application Insights with OpenTelemetry Collector", }, { type: "doc", - id: "examples-tutorials/recipes/running-qualityTrace-with-azure-app-insights-pokeshop", + id: "examples-tutorials/recipes/running-qualitytrace-with-azure-app-insights-pokeshop", label: "Pokeshop API and Azure Application Insights with OpenTelemetry Collector", }, ], @@ -286,7 +286,7 @@ const sidebars = { items: [ { type: "doc", - id: "examples-tutorials/recipes/running-qualityTrace-with-elasticapm", + id: "examples-tutorials/recipes/running-qualitytrace-with-elasticapm", label: "Node.js and Elastic APM", }, ], @@ -297,7 +297,7 @@ const sidebars = { items: [ { type: "doc", - id: "examples-tutorials/recipes/running-qualityTrace-with-tempo", + id: "examples-tutorials/recipes/running-qualitytrace-with-tempo", label: "Node.js and Grafana Tempo", }, ], @@ -308,12 +308,12 @@ const sidebars = { items: [ { type: "doc", - id: "examples-tutorials/recipes/running-qualityTrace-with-jaeger", + id: "examples-tutorials/recipes/running-qualitytrace-with-jaeger", label: "Node.js and Jaeger", }, { type: "doc", - id: "examples-tutorials/recipes/running-qualityTrace-with-aws-terraform", + id: "examples-tutorials/recipes/running-qualitytrace-with-aws-terraform", label: "Serverless Node.js and Jaeger with Terraform", }, ], @@ -324,7 +324,7 @@ const sidebars = { items: [ { type: "doc", - id: "examples-tutorials/recipes/running-qualityTrace-with-opensearch", + id: "examples-tutorials/recipes/running-qualitytrace-with-opensearch", label: "Node.js and OpenSearch", }, ], @@ -335,7 +335,7 @@ const sidebars = { items: [ { type: "doc", - id: "examples-tutorials/recipes/running-qualityTrace-with-sumologic", + id: "examples-tutorials/recipes/running-qualitytrace-with-sumologic", label: "Node.js and Sumo Logic", }, ], @@ -668,7 +668,7 @@ const sidebars = { }, { type: "doc", - id: "configuration/qualityTrace-analyzer", + id: "configuration/qualitytrace-analyzer", label: "Tracetest Analyzer", }, { @@ -688,7 +688,7 @@ const sidebars = { }, { type: "doc", - id: "configuration/sampling-qualityTrace-spans", + id: "configuration/sampling-qualitytrace-spans", label: "Sampling Tracetest Spans", }, ], diff --git a/docs/src/components/CoreGettingStartedGuide/index.tsx b/docs/src/components/CoreGettingStartedGuide/index.tsx index a6cccb6..a8887be 100644 --- a/docs/src/components/CoreGettingStartedGuide/index.tsx +++ b/docs/src/components/CoreGettingStartedGuide/index.tsx @@ -35,7 +35,7 @@ const CoreGettingStartedGuides = [ }, { name: '🤩 Open Source', - url: 'https://github.com/intelops/qualityTrace', + url: 'https://github.com/intelops/qualitytrace', description: ( Check out the Tracetest GitHub repo! Please consider giving us a star! ⭐️ diff --git a/docs/src/components/GtagInstallCliTabs.jsx b/docs/src/components/GtagInstallCliTabs.jsx index 3ff3d8c..f7fc37b 100644 --- a/docs/src/components/GtagInstallCliTabs.jsx +++ b/docs/src/components/GtagInstallCliTabs.jsx @@ -19,7 +19,7 @@ export default function GtagInstallCliTabs() { language="bash" title="Terminal" > - {`brew install intelops/qualityTrace/qualityTrace`} + {`brew install intelops/qualitytrace/qualitytrace`}
@@ -29,7 +29,7 @@ export default function GtagInstallCliTabs() { language="bash" title="Terminal" > - {`curl -L https://raw.githubusercontent.com/intelops/qualityTrace/main/install-cli.sh | bash`} + {`curl -L https://raw.githubusercontent.com/intelops/qualitytrace/main/install-cli.sh | bash`} @@ -39,7 +39,7 @@ export default function GtagInstallCliTabs() { language="bash" title="Terminal" > - {`choco source add --name=kubeshop_repo --source=https://chocolatey.kubeshop.io/chocolatey ; choco install qualityTrace`} + {`choco source add --name=kubeshop_repo --source=https://chocolatey.kubeshop.io/chocolatey ; choco install qualitytrace`} diff --git a/docs/src/components/WelcomeGuide/index.tsx b/docs/src/components/WelcomeGuide/index.tsx index 5e7ef57..fd0dd8f 100644 --- a/docs/src/components/WelcomeGuide/index.tsx +++ b/docs/src/components/WelcomeGuide/index.tsx @@ -17,7 +17,7 @@ const WelcomeGuides = [ }, { name: '🤩 Open Source', - url: 'https://github.com/intelops/qualityTrace', + url: 'https://github.com/intelops/qualitytrace', description: ( Check out the Tracetest GitHub repo! Please consider giving us a star! ⭐️ diff --git a/docs/static/CNAME b/docs/static/CNAME index a3e2a18..14168f4 100644 --- a/docs/static/CNAME +++ b/docs/static/CNAME @@ -1 +1 @@ -docs.qualityTrace.io +docs.qualitytrace.io diff --git a/docs/vercel.json b/docs/vercel.json index 7d80b91..cb093b8 100644 --- a/docs/vercel.json +++ b/docs/vercel.json @@ -73,7 +73,7 @@ }, { "destination": "/ci-cd-automation/tekton-pipeline", - "source": "/examples-tutorials/recipes/running-qualityTrace-with-tekton", + "source": "/examples-tutorials/recipes/running-qualitytrace-with-tekton", "statusCode": 301 }, { @@ -118,12 +118,12 @@ }, { "destination": "/ci-cd-automation/tekton-pipeline", - "source": "/examples-tutorials/recipes/running-qualityTrace-with-tekton/", + "source": "/examples-tutorials/recipes/running-qualitytrace-with-tekton/", "statusCode": 301 }, { "destination": "/ci-cd-automation/tekton-pipeline", - "source": "/examples-tutorials/recipes/running-qualityTrace-with-tekton", + "source": "/examples-tutorials/recipes/running-qualitytrace-with-tekton", "statusCode": 301 }, { @@ -138,12 +138,12 @@ }, { "destination": "/web-ui/creating-tests", - "source": "/using-qualityTrace/create-test/", + "source": "/using-qualitytrace/create-test/", "statusCode": 301 }, { "destination": "/web-ui/creating-tests", - "source": "/using-qualityTrace/create-test", + "source": "/using-qualitytrace/create-test", "statusCode": 301 }, { diff --git a/go.mod b/go.mod index 1f1ff8b..2bc8693 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/intelops/qualityTrace +module github.com/intelops/qualitytrace go 1.21 diff --git a/install-cli.sh b/install-cli.sh index 8dcf9d8..2a47f88 100644 --- a/install-cli.sh +++ b/install-cli.sh @@ -21,7 +21,7 @@ get_latest_version() { ensure_dependency_exist "curl" - curl --silent "https://api.github.com/repos/intelops/qualityTrace/releases/latest" | + curl --silent "https://api.github.com/repos/intelops/qualitytrace/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' } @@ -60,7 +60,7 @@ get_download_link() { pkg=$1 - echo "https://github.com/intelops/qualityTrace/releases/download/${version}/qualityTrace_${raw_version}_${os}_${arch}.${pkg}" + echo "https://github.com/intelops/qualitytrace/releases/download/${version}/qualitytrace_${raw_version}_${os}_${arch}.${pkg}" } download_file() { @@ -83,8 +83,8 @@ install_tar() { echo "Extracting file" tar -xf $file_path -C /tmp - echo "Installing to /usr/local/bin/qualityTrace" - $SUDO mv /tmp/qualityTrace /usr/local/bin/qualityTrace + echo "Installing to /usr/local/bin/qualitytrace" + $SUDO mv /tmp/qualitytrace /usr/local/bin/qualitytrace rm -f $file_path } @@ -109,24 +109,24 @@ install_rpm() { install_apt() { $SUDO apt-get update $SUDO apt-get install -y apt-transport-https ca-certificates - echo "deb [trusted=yes] https://apt.fury.io/qualityTrace/ /" | $SUDO tee /etc/apt/sources.list.d/fury.list + echo "deb [trusted=yes] https://apt.fury.io/qualitytrace/ /" | $SUDO tee /etc/apt/sources.list.d/fury.list $SUDO apt-get update - $SUDO apt-get install -y qualityTrace + $SUDO apt-get install -y qualitytrace } install_yum() { - cat < ()?" echo "Examples:" - echo "./script qualityTrace my-api-key" + echo "./script qualitytrace my-api-key" echo "./script my-namespace my-api-key v0.13.9" exit 1 @@ -22,5 +22,5 @@ if [ -z "${API_KEY}" ]; then showUsageAndExit fi -kubectl create -n $NAMESPACE secret generic qualityTrace-agent-secret --from-literal=api-key=$API_KEY +kubectl create -n $NAMESPACE secret generic qualitytrace-agent-secret --from-literal=api-key=$API_KEY curl $FILE_PATH | sed "s/:TAG/:$AGENT_VERSION/g" | kubectl apply -n $NAMESPACE -f - diff --git a/k8s/agent/deploy-agent.yaml b/k8s/agent/deploy-agent.yaml index 7243b58..23070f3 100644 --- a/k8s/agent/deploy-agent.yaml +++ b/k8s/agent/deploy-agent.yaml @@ -2,26 +2,26 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: qualityTrace-agent + name: qualitytrace-agent labels: - app: qualityTrace-agent + app: qualitytrace-agent spec: selector: matchLabels: - app: qualityTrace-agent + app: qualitytrace-agent template: metadata: labels: - app: qualityTrace-agent + app: qualitytrace-agent spec: containers: - - name: qualityTrace-agent - image: intelops/qualityTrace-agent:TAG + - name: qualitytrace-agent + image: intelops/qualitytrace-agent:TAG env: - name: TRACETEST_API_KEY valueFrom: secretKeyRef: - name: qualityTrace-agent-secret + name: qualitytrace-agent-secret key: api-key ports: @@ -36,12 +36,12 @@ spec: apiVersion: v1 kind: Service metadata: - name: qualityTrace-agent + name: qualitytrace-agent labels: - app: qualityTrace-agent + app: qualitytrace-agent spec: selector: - app: qualityTrace-agent + app: qualitytrace-agent ports: - name: grpc-collector-entrypoint protocol: TCP diff --git a/k8s/collector.yml b/k8s/collector.yml index 2c606b4..16edf38 100644 --- a/k8s/collector.yml +++ b/k8s/collector.yml @@ -23,7 +23,7 @@ data: logging: logLevel: debug jaeger: - endpoint: jaeger-collector.qualityTrace:14250 + endpoint: jaeger-collector.qualitytrace:14250 tls: insecure: true diff --git a/k8s/deploy-collector.sh b/k8s/deploy-collector.sh index 7d4d38e..7ad0be4 100644 --- a/k8s/deploy-collector.sh +++ b/k8s/deploy-collector.sh @@ -1,2 +1,2 @@ #!/bin/sh -envsubst < k8s/collector.yml | kubectl apply -n qualityTrace -f - +envsubst < k8s/collector.yml | kubectl apply -n qualitytrace -f - diff --git a/k8s/deploy.sh b/k8s/deploy.sh index 66d3fe8..3327c08 100644 --- a/k8s/deploy.sh +++ b/k8s/deploy.sh @@ -35,7 +35,7 @@ fi helm repo add kubeshop https://kubeshop.github.io/helm-charts helm repo update -helm upgrade --install $NAME intelops/qualityTrace \ +helm upgrade --install $NAME intelops/qualitytrace \ --namespace $NAME --create-namespace \ --set image.tag=$TAG \ --set image.pullPolicy=Always \ @@ -47,10 +47,10 @@ kubectl --namespace $NAME create configmap $NAME --from-file=$CONFIG_FILE --from | sed 's#'$(basename $CONFIG_FILE)'#config.yaml#' \ | kubectl --namespace $NAME replace -f - -kubectl --namespace $NAME delete pods -l app.kubernetes.io/name=qualityTrace +kubectl --namespace $NAME delete pods -l app.kubernetes.io/name=qualitytrace TIME_OUT=30m -CONDITION='[[ $(kubectl get pods --namespace '$NAME' -lapp.kubernetes.io/name=qualityTrace -o jsonpath="{.items[*].status.phase}") = "Running" ]]' +CONDITION='[[ $(kubectl get pods --namespace '$NAME' -lapp.kubernetes.io/name=qualitytrace -o jsonpath="{.items[*].status.phase}") = "Running" ]]' IF_TRUE='echo "pods ready"' IF_FALSE='echo "pods not ready. retrying"' diff --git a/k8s/provisioning.yaml b/k8s/provisioning.yaml index 28d70a2..5429332 100644 --- a/k8s/provisioning.yaml +++ b/k8s/provisioning.yaml @@ -38,6 +38,6 @@ spec: type: jaeger default: true jaeger: - endpoint: jaeger-query.qualityTrace:16685 + endpoint: jaeger-query.qualitytrace:16685 tls: insecure: true diff --git a/k8s/tracetest.beta.yaml b/k8s/qualitytrace.beta.yaml similarity index 70% rename from k8s/tracetest.beta.yaml rename to k8s/qualitytrace.beta.yaml index 5afbe04..a536e61 100644 --- a/k8s/tracetest.beta.yaml +++ b/k8s/qualitytrace.beta.yaml @@ -1,9 +1,9 @@ postgres: host: ${NAME}-postgresql - user: qualityTrace + user: qualitytrace password: not-secure-database-password port: 5432 - dbname: qualityTrace + dbname: qualitytrace params: sslmode=disable experimentalFeatures: [] @@ -11,12 +11,12 @@ experimentalFeatures: [] telemetry: exporters: collector: - serviceName: qualityTrace + serviceName: qualitytrace sampling: 100 # 100% exporter: type: collector collector: - endpoint: otel-collector.qualityTrace:4317 + endpoint: otel-collector.qualitytrace:4317 server: telemetry: diff --git a/k8s/tracetest.integration.yaml b/k8s/qualitytrace.integration.yaml similarity index 83% rename from k8s/tracetest.integration.yaml rename to k8s/qualitytrace.integration.yaml index 1382a0b..26fcb4b 100644 --- a/k8s/tracetest.integration.yaml +++ b/k8s/qualitytrace.integration.yaml @@ -1,9 +1,9 @@ postgres: host: ${NAME}-postgresql - user: qualityTrace + user: qualitytrace password: not-secure-database-password port: 5432 - dbname: qualityTrace + dbname: qualitytrace params: sslmode=disable poolingConfig: @@ -30,18 +30,18 @@ telemetry: jaeger: type: jaeger jaeger: - endpoint: jaeger-query.qualityTrace:16685 + endpoint: jaeger-query.qualitytrace:16685 tls: insecure: true exporters: collector: - serviceName: qualityTrace + serviceName: qualitytrace sampling: 100 # 100% exporter: type: collector collector: - endpoint: otel-collector.qualityTrace:4317 + endpoint: otel-collector.qualitytrace:4317 server: telemetry: diff --git a/k8s/tracetest.demo.yaml b/k8s/qualitytracetrace.demo.yaml similarity index 83% rename from k8s/tracetest.demo.yaml rename to k8s/qualitytracetrace.demo.yaml index 08e9e3a..4d61016 100644 --- a/k8s/tracetest.demo.yaml +++ b/k8s/qualitytracetrace.demo.yaml @@ -1,9 +1,9 @@ postgres: host: ${NAME}-postgresql - user: qualityTrace + user: qualitytrace password: not-secure-database-password port: 5432 - dbname: qualityTrace + dbname: qualitytrace params: sslmode=disable poolingConfig: @@ -30,18 +30,18 @@ telemetry: jaeger: type: jaeger jaeger: - endpoint: jaeger-query.qualityTrace:16685 + endpoint: jaeger-query.qualitytrace:16685 tls: insecure: true exporters: collector: - serviceName: qualityTrace + serviceName: qualitytrace sampling: 100 # 100% exporter: type: collector collector: - endpoint: otel-collector.qualityTrace:4317 + endpoint: otel-collector.qualitytrace:4317 server: telemetry: diff --git a/local-config/collector.config.yaml b/local-config/collector.config.yaml index a128ca0..5d7e490 100644 --- a/local-config/collector.config.yaml +++ b/local-config/collector.config.yaml @@ -13,7 +13,7 @@ exporters: loglevel: debug otlp/1: - endpoint: qualityTrace:4317 + endpoint: qualitytrace:4317 tls: insecure: true diff --git a/local-config/dogfood.Dockerfile b/local-config/dogfood.Dockerfile index 9580a4c..c092279 100644 --- a/local-config/dogfood.Dockerfile +++ b/local-config/dogfood.Dockerfile @@ -3,8 +3,8 @@ FROM alpine RUN apk --update add bash jq curl WORKDIR /app -COPY ./dist/qualityTrace /app/qualityTrace -COPY ./testing/server-qualityTraceing ./qualityTraceing +COPY ./dist/qualitytrace /app/qualitytrace +COPY ./testing/server-qualitytraceing ./qualitytraceing -WORKDIR /app/qualityTraceing -CMD ["/bin/sh", "/app/qualityTraceing/run.bash"] +WORKDIR /app/qualitytraceing +CMD ["/bin/sh", "/app/qualitytraceing/run.bash"] diff --git a/local-config/dogfood/collector.config.yaml b/local-config/dogfood/collector.config.yaml index 3fb6748..70f7064 100644 --- a/local-config/dogfood/collector.config.yaml +++ b/local-config/dogfood/collector.config.yaml @@ -19,7 +19,7 @@ exporters: endpoint: jaeger:14250 tls: insecure: true - otlp/qualityTrace: + otlp/qualitytrace: endpoint: host.docker.internal:4317 tls: insecure: true @@ -29,4 +29,4 @@ service: traces: receivers: [otlp] processors: [probabilistic_sampler, batch] - exporters: [jaeger, otlp/qualityTrace, logging] + exporters: [jaeger, otlp/qualitytrace, logging] diff --git a/local-config/dogfood/tracetest.config.yaml b/local-config/dogfood/qualitytrace.config.yaml similarity index 91% rename from local-config/dogfood/tracetest.config.yaml rename to local-config/dogfood/qualitytrace.config.yaml index 30fbcfd..dc63c70 100644 --- a/local-config/dogfood/tracetest.config.yaml +++ b/local-config/dogfood/qualitytrace.config.yaml @@ -9,7 +9,7 @@ postgres: telemetry: exporters: collector: - serviceName: qualityTrace + serviceName: qualitytrace sampling: 100 # 100% exporter: type: collector diff --git a/local-config/dogfood/tracetest.provision.yaml b/local-config/dogfood/qualitytrace.provision.yaml similarity index 100% rename from local-config/dogfood/tracetest.provision.yaml rename to local-config/dogfood/qualitytrace.provision.yaml diff --git a/local-config/tempo-cloud/tracetest.config.yaml b/local-config/jaeger/qualitytrace.config.yaml similarity index 91% rename from local-config/tempo-cloud/tracetest.config.yaml rename to local-config/jaeger/qualitytrace.config.yaml index f69c053..77c7ffa 100644 --- a/local-config/tempo-cloud/tracetest.config.yaml +++ b/local-config/jaeger/qualitytrace.config.yaml @@ -9,7 +9,7 @@ postgres: telemetry: exporters: collector: - serviceName: qualityTrace + serviceName: qualitytrace sampling: 100 # 100% exporter: type: collector diff --git a/local-config/jaeger/tracetest.provision.yaml b/local-config/jaeger/qualitytrace.provision.yaml similarity index 100% rename from local-config/jaeger/tracetest.provision.yaml rename to local-config/jaeger/qualitytrace.provision.yaml diff --git a/local-config/tracetest.config.nats.yaml b/local-config/qualitytrace.config.nats.yaml similarity index 91% rename from local-config/tracetest.config.nats.yaml rename to local-config/qualitytrace.config.nats.yaml index 12757ca..c116052 100644 --- a/local-config/tracetest.config.nats.yaml +++ b/local-config/qualitytrace.config.nats.yaml @@ -12,7 +12,7 @@ nats: telemetry: exporters: collector: - serviceName: qualityTrace + serviceName: qualitytrace sampling: 100 # 100% exporter: type: collector diff --git a/local-config/tracetest.config.yaml b/local-config/qualitytrace.config.yaml similarity index 91% rename from local-config/tracetest.config.yaml rename to local-config/qualitytrace.config.yaml index c57f255..be4583b 100644 --- a/local-config/tracetest.config.yaml +++ b/local-config/qualitytrace.config.yaml @@ -9,7 +9,7 @@ postgres: telemetry: exporters: collector: - serviceName: qualityTrace + serviceName: qualitytrace sampling: 100 # 100% exporter: type: collector diff --git a/local-config/tracetest.provision.yaml b/local-config/qualitytrace.provision.yaml similarity index 100% rename from local-config/tracetest.provision.yaml rename to local-config/qualitytrace.provision.yaml diff --git a/local-config/jaeger/tracetest.config.yaml b/local-config/tempo-cloud/qualitytrace.config.yaml similarity index 91% rename from local-config/jaeger/tracetest.config.yaml rename to local-config/tempo-cloud/qualitytrace.config.yaml index f69c053..77c7ffa 100644 --- a/local-config/jaeger/tracetest.config.yaml +++ b/local-config/tempo-cloud/qualitytrace.config.yaml @@ -9,7 +9,7 @@ postgres: telemetry: exporters: collector: - serviceName: qualityTrace + serviceName: qualitytrace sampling: 100 # 100% exporter: type: collector diff --git a/local-config/tempo-cloud/tracetest.provision.yaml b/local-config/tempo-cloud/qualitytrace.provision.yaml similarity index 100% rename from local-config/tempo-cloud/tracetest.provision.yaml rename to local-config/tempo-cloud/qualitytrace.provision.yaml diff --git a/run.sh b/run.sh index b6974eb..6b6db22 100644 --- a/run.sh +++ b/run.sh @@ -11,12 +11,12 @@ if [ "$NATS" == "true" ]; then fi help_message() { - echo "usage: ./run.sh [cypress|qualityTraces|up|stop|build|down|qualityTrace-logs|logs|ps|restart]" + echo "usage: ./run.sh [cypress|qualitytraces|up|stop|build|down|qualitytrace-logs|logs|ps|restart]" } restart() { - docker compose $opts kill qualityTrace - docker compose $opts up -d qualityTrace + docker compose $opts kill qualitytrace + docker compose $opts up -d qualitytrace docker compose $opts restart otel-collector } @@ -24,8 +24,8 @@ logs() { docker compose $opts logs -f } -qualityTrace-logs() { - docker compose $opts logs -f qualityTrace +qualitytrace-logs() { + docker compose $opts logs -f qualitytrace } ps() { @@ -41,7 +41,7 @@ build() { make build-docker # the previous commands builds the cli binary for linux (because its the os in docker) # if the script is run on another os, like macos, we need to rebuild for the binary to match the os - make dist/qualityTrace + make dist/qualitytrace } up() { @@ -72,19 +72,19 @@ cypress() { npm run cy:run } -qualityTraces() { +qualitytraces() { - echo "Running qualityTraces" + echo "Running qualitytraces" SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) - export TRACETEST_CLI=${SCRIPT_DIR}/dist/qualityTrace + export TRACETEST_CLI=${SCRIPT_DIR}/dist/qualitytrace export TARGET_URL=http://localhost:11633 export TRACETEST_ENDPOINT=localhost:11633 export DEMO_APP_URL=http://demo-api:8081 export DEMO_APP_GRPC_URL=demo-rpc:8082 - cd testing/server-qualityTraceing + cd testing/server-qualitytraceing ./run.bash } @@ -100,8 +100,8 @@ while [[ $# -gt 0 ]]; do CMD+=("cypress-ci") shift ;; - qualityTraces) - CMD+=("qualityTraces") + qualitytraces) + CMD+=("qualitytraces") shift ;; up) @@ -120,8 +120,8 @@ while [[ $# -gt 0 ]]; do CMD+=("down") shift ;; - qualityTrace-logs) - CMD+=("qualityTrace-logs") + qualitytrace-logs) + CMD+=("qualitytrace-logs") shift ;; logs) diff --git a/scripts/choco/tools/chocolateyinstall.ps1 b/scripts/choco/tools/chocolateyinstall.ps1 index 516cb48..de9e003 100644 --- a/scripts/choco/tools/chocolateyinstall.ps1 +++ b/scripts/choco/tools/chocolateyinstall.ps1 @@ -1,6 +1,6 @@ $ErrorActionPreference = 'Stop'; # stop on all errors $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" -$url64 = "https://github.com/intelops/qualityTrace/releases/download/v${env:chocolateyPackageVersion}/qualityTrace_${env:chocolateyPackageVersion}_windows_amd64.tar.gz" # 64bit URL here (HTTPS preferred) or remove - if installer contains both (very rare), use $url +$url64 = "https://github.com/intelops/qualitytrace/releases/download/v${env:chocolateyPackageVersion}/qualitytrace_${env:chocolateyPackageVersion}_windows_amd64.tar.gz" # 64bit URL here (HTTPS preferred) or remove - if installer contains both (very rare), use $url $packageArgs = @{ packageName = $env:ChocolateyPackageName @@ -12,4 +12,4 @@ $packageArgs = @{ } Install-ChocolateyZipPackage @packageArgs -Get-ChocolateyUnzip -FileFullPath "$toolsDir/qualityTrace_${env:chocolateyPackageVersion}_windows_amd64.tar" -Destination $toolsDir +Get-ChocolateyUnzip -FileFullPath "$toolsDir/qualitytrace_${env:chocolateyPackageVersion}_windows_amd64.tar" -Destination $toolsDir diff --git a/scripts/choco/tools/chocolateyuninstall.ps1 b/scripts/choco/tools/chocolateyuninstall.ps1 index e0a541a..6d7e585 100644 --- a/scripts/choco/tools/chocolateyuninstall.ps1 +++ b/scripts/choco/tools/chocolateyuninstall.ps1 @@ -1,7 +1,7 @@ $ErrorActionPreference = 'Stop'; $packageArgs = @{ packageName = $env:ChocolateyPackageName - softwareName = 'qualityTrace*' + softwareName = 'qualitytrace*' fileType = 'exe' # MSI silentArgs = "/qn /norestart" diff --git a/scripts/choco/tracetest.nuspec b/scripts/choco/tracetest.nuspec index 51540a6..8f9a8a1 100644 --- a/scripts/choco/tracetest.nuspec +++ b/scripts/choco/tracetest.nuspec @@ -1,12 +1,12 @@ - qualityTrace + qualitytrace %version% - qualityTrace + qualitytrace Kubeshop - https://qualityTrace.io - qualityTrace opentelemetry trace-based-testing testing + https://qualitytrace.io + qualitytrace opentelemetry trace-based-testing testing Tracetest - the best way to develop and test your distributed system with OpenTelemetry Tracetest - the best way to develop and test your distributed system with OpenTelemetry diff --git a/scripts/fury-upload.sh b/scripts/fury-upload.sh index 5646ac0..a5d753f 100644 --- a/scripts/fury-upload.sh +++ b/scripts/fury-upload.sh @@ -5,7 +5,7 @@ if [ "$DISABLED" == 'true' ]; then exit 0; fi if [ "${1: -4}" == ".deb" ] || [ "${1: -4}" == ".rpm" ]; then cd dist echo "uploading $1" - status="$(curl -s -q -o /dev/null -w "%{http_code}" -F package="@$1" "https://$FURY_TOKEN@push.fury.io/qualityTrace/")" + status="$(curl -s -q -o /dev/null -w "%{http_code}" -F package="@$1" "https://$FURY_TOKEN@push.fury.io/qualitytrace/")" echo "got: $status" if [ "$status" == "200" ] || [ "$status" == "409" ]; then exit 0 diff --git a/server/.dockerignore b/server/.dockerignore index f2a0f98..83ee6e7 100644 --- a/server/.dockerignore +++ b/server/.dockerignore @@ -1,4 +1,4 @@ config.yaml config.yaml.sample coverage.out -qualityTrace-server +qualitytrace-server diff --git a/server/.gitignore b/server/.gitignore index 11f52fb..eb947e2 100644 --- a/server/.gitignore +++ b/server/.gitignore @@ -1,3 +1,3 @@ # Binary files -qualityTrace-server +qualitytrace-server config.yaml diff --git a/server/Makefile b/server/Makefile index 9ec80f8..983a789 100644 --- a/server/Makefile +++ b/server/Makefile @@ -1,10 +1,10 @@ VERSION ?= "dev" TRACETEST_ENV ?= "dev" GO_LDFLAGS := $(shell echo \ - -X "'github.com/intelops/qualityTrace/server/version.Version=$(VERSION)'" \ - -X "'github.com/intelops/qualityTrace/server/version.Env=$(TRACETEST_ENV)'" \ - -X "'github.com/intelops/qualityTrace/server/analytics.SecretKey=$(ANALYTICS_BE_KEY)'" \ - -X "'github.com/intelops/qualityTrace/server/analytics.FrontendKey=$(ANALYTICS_FE_KEY)'" \ + -X "'github.com/intelops/qualitytrace/server/version.Version=$(VERSION)'" \ + -X "'github.com/intelops/qualitytrace/server/version.Env=$(TRACETEST_ENV)'" \ + -X "'github.com/intelops/qualitytrace/server/analytics.SecretKey=$(ANALYTICS_BE_KEY)'" \ + -X "'github.com/intelops/qualitytrace/server/analytics.FrontendKey=$(ANALYTICS_FE_KEY)'" \ | sed 's/ / /g') .PHONY: help diff --git a/server/README.md b/server/README.md index 63f6e1d..bc00611 100644 --- a/server/README.md +++ b/server/README.md @@ -8,7 +8,7 @@ - Resource package names must be in **singular**. - Resource files must be named `{resource_name}_entities.go` and `{resource_name}_repository.go` > This format makes it easy to fuzzy search files -- `{resource_name}_entities.go` must contain only one "main" entity and zero or more sub-entities (i.e. [demoresource](https://github.com/intelops/qualityTrace/blob/main/server/config/demoresource/demo_resource.go)) +- `{resource_name}_entities.go` must contain only one "main" entity and zero or more sub-entities (i.e. [demoresource](https://github.com/intelops/qualitytrace/blob/main/server/config/demoresource/demo_resource.go)) - Resource packages can have one or more "main" entities, each living on its own file. For example, the `transactions` package could have `transaction_entities.go` and `transaction_runs_entities.go` - Resource packages can have "subpackages". All the same rules apply. The package must **NOT** be prefixed with the parent package (i.e. `test/trigger` is good, `test/testtrigger` is bad), with the exception of generic names (i.e. `test/util` should be `test/testutil`) diff --git a/server/analytics/analytics_test.go b/server/analytics/analytics_test.go index 938d6d0..3942e87 100644 --- a/server/analytics/analytics_test.go +++ b/server/analytics/analytics_test.go @@ -3,7 +3,7 @@ package analytics_test import ( "testing" - "github.com/intelops/qualityTrace/server/analytics" + "github.com/intelops/qualitytrace/server/analytics" "github.com/stretchr/testify/assert" ) diff --git a/server/app/app.go b/server/app/app.go index c934f1f..585c022 100644 --- a/server/app/app.go +++ b/server/app/app.go @@ -10,38 +10,38 @@ import ( "github.com/gorilla/handlers" "github.com/gorilla/mux" - "github.com/intelops/qualityTrace/agent/tracedb" - "github.com/intelops/qualityTrace/server/analytics" - "github.com/intelops/qualityTrace/server/assertions/comparator" - "github.com/intelops/qualityTrace/server/config" - "github.com/intelops/qualityTrace/server/config/demo" - "github.com/intelops/qualityTrace/server/datastore" - "github.com/intelops/qualityTrace/server/executor" - "github.com/intelops/qualityTrace/server/executor/pollingprofile" - "github.com/intelops/qualityTrace/server/executor/testrunner" - "github.com/intelops/qualityTrace/server/executor/trigger" - httpServer "github.com/intelops/qualityTrace/server/http" - "github.com/intelops/qualityTrace/server/http/mappings" - "github.com/intelops/qualityTrace/server/http/middleware" - "github.com/intelops/qualityTrace/server/http/websocket" - "github.com/intelops/qualityTrace/server/linter/analyzer" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/openapi" - "github.com/intelops/qualityTrace/server/otlp" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/pkg/pipeline" - "github.com/intelops/qualityTrace/server/provisioning" - "github.com/intelops/qualityTrace/server/resourcemanager" - "github.com/intelops/qualityTrace/server/subscription" - "github.com/intelops/qualityTrace/server/telemetry" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/testconnection" - "github.com/intelops/qualityTrace/server/testdb" - "github.com/intelops/qualityTrace/server/testsuite" - "github.com/intelops/qualityTrace/server/traces" - "github.com/intelops/qualityTrace/server/variableset" - "github.com/intelops/qualityTrace/server/version" - "github.com/intelops/qualityTrace/server/wizard" + "github.com/intelops/qualitytrace/agent/tracedb" + "github.com/intelops/qualitytrace/server/analytics" + "github.com/intelops/qualitytrace/server/assertions/comparator" + "github.com/intelops/qualitytrace/server/config" + "github.com/intelops/qualitytrace/server/config/demo" + "github.com/intelops/qualitytrace/server/datastore" + "github.com/intelops/qualitytrace/server/executor" + "github.com/intelops/qualitytrace/server/executor/pollingprofile" + "github.com/intelops/qualitytrace/server/executor/testrunner" + "github.com/intelops/qualitytrace/server/executor/trigger" + httpServer "github.com/intelops/qualitytrace/server/http" + "github.com/intelops/qualitytrace/server/http/mappings" + "github.com/intelops/qualitytrace/server/http/middleware" + "github.com/intelops/qualitytrace/server/http/websocket" + "github.com/intelops/qualitytrace/server/linter/analyzer" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/openapi" + "github.com/intelops/qualitytrace/server/otlp" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/pipeline" + "github.com/intelops/qualitytrace/server/provisioning" + "github.com/intelops/qualitytrace/server/resourcemanager" + "github.com/intelops/qualitytrace/server/subscription" + "github.com/intelops/qualitytrace/server/telemetry" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/testconnection" + "github.com/intelops/qualitytrace/server/testdb" + "github.com/intelops/qualitytrace/server/testsuite" + "github.com/intelops/qualitytrace/server/traces" + "github.com/intelops/qualitytrace/server/variableset" + "github.com/intelops/qualitytrace/server/version" + "github.com/intelops/qualitytrace/server/wizard" "github.com/jackc/pgx/v5/pgxpool" "github.com/nats-io/nats.go" "go.opentelemetry.io/otel/metric" @@ -49,7 +49,7 @@ import ( ) var ( - pgChannelName = "qualityTrace_queue" + pgChannelName = "qualitytrace_queue" ) var EmptyDemoEnabled []string @@ -71,7 +71,7 @@ func New(config *config.AppConfig) (*App, error) { } func (app *App) Version() string { - return fmt.Sprintf("qualityTrace-server %s (%s)", version.Version, version.Env) + return fmt.Sprintf("qualitytrace-server %s (%s)", version.Version, version.Env) } func (app *App) Stop() { @@ -356,8 +356,8 @@ func (app *App) Start(opts ...appOption) error { registerTestRunner(testRunnerRepo, apiRouter, provisioner, tracer) registerTestResource(testRepo, apiRouter, provisioner, tracer) - isTracetestDev := os.Getenv("TRACETEST_DEV") != "" - registerSPAHandler(router, app.cfg, configFromDB.IsAnalyticsEnabled(), serverID, isTracetestDev) + isQualitytraceDev := os.Getenv("QUALITYTRACE_DEV") != "" + registerSPAHandler(router, app.cfg, configFromDB.IsAnalyticsEnabled(), serverID, isQualitytraceDev) if isNewInstall { provision(provisioner, app.provisioningFile) @@ -379,7 +379,7 @@ func (app *App) Start(opts ...appOption) error { return nil } -func registerSPAHandler(router *mux.Router, cfg httpServerConfig, analyticsEnabled bool, serverID string, isTracetestDev bool) { +func registerSPAHandler(router *mux.Router, cfg httpServerConfig, analyticsEnabled bool, serverID string, isQualitytraceDev bool) { router. PathPrefix(cfg.ServerPathPrefix()). Handler( @@ -389,7 +389,7 @@ func registerSPAHandler(router *mux.Router, cfg httpServerConfig, analyticsEnabl serverID, version.Version, version.Env, - isTracetestDev, + isQualitytraceDev, ), ) } @@ -408,7 +408,7 @@ func registerOtlpServer( httpOtlpServer := otlp.NewHttpServer(":4318", ingester) go grpcOtlpServer.Start() go httpOtlpServer.Start() - + fmt.Println("OTLP server started on :4317 (grpc) and :4318 (http)") app.registerStopFn(func() { @@ -657,7 +657,7 @@ func tracesConversionConfig() traces.ConversionConfig { tcc := traces.NewConversionConfig() // hardcoded for now. In the future we will get those values from the database tcc.AddTimeFields( - "qualityTrace.span.duration", + "qualitytrace.span.duration", ) return tcc diff --git a/server/app/ds_test_connection_pipeline.go b/server/app/ds_test_connection_pipeline.go index 0b22971..fa80ac5 100644 --- a/server/app/ds_test_connection_pipeline.go +++ b/server/app/ds_test_connection_pipeline.go @@ -1,10 +1,10 @@ package app import ( - "github.com/intelops/qualityTrace/agent/tracedb" - "github.com/intelops/qualityTrace/server/config" - "github.com/intelops/qualityTrace/server/pkg/pipeline" - "github.com/intelops/qualityTrace/server/testconnection" + "github.com/intelops/qualitytrace/agent/tracedb" + "github.com/intelops/qualitytrace/server/config" + "github.com/intelops/qualitytrace/server/pkg/pipeline" + "github.com/intelops/qualitytrace/server/testconnection" "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" ) diff --git a/server/app/test_pipeline.go b/server/app/test_pipeline.go index a29ceec..449584e 100644 --- a/server/app/test_pipeline.go +++ b/server/app/test_pipeline.go @@ -2,20 +2,20 @@ package app import ( "github.com/jackc/pgx/v5/pgxpool" - "github.com/intelops/qualityTrace/agent/tracedb" - "github.com/intelops/qualityTrace/server/config" - "github.com/intelops/qualityTrace/server/datastore" - "github.com/intelops/qualityTrace/server/executor" - "github.com/intelops/qualityTrace/server/executor/pollingprofile" - "github.com/intelops/qualityTrace/server/executor/testrunner" - "github.com/intelops/qualityTrace/server/executor/tracepollerworker" - "github.com/intelops/qualityTrace/server/executor/trigger" - "github.com/intelops/qualityTrace/server/linter/analyzer" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/pkg/pipeline" - "github.com/intelops/qualityTrace/server/subscription" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/testconnection" + "github.com/intelops/qualitytrace/agent/tracedb" + "github.com/intelops/qualitytrace/server/config" + "github.com/intelops/qualitytrace/server/datastore" + "github.com/intelops/qualitytrace/server/executor" + "github.com/intelops/qualitytrace/server/executor/pollingprofile" + "github.com/intelops/qualitytrace/server/executor/testrunner" + "github.com/intelops/qualitytrace/server/executor/tracepollerworker" + "github.com/intelops/qualitytrace/server/executor/trigger" + "github.com/intelops/qualitytrace/server/linter/analyzer" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/pkg/pipeline" + "github.com/intelops/qualitytrace/server/subscription" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/testconnection" "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" ) diff --git a/server/app/test_suite_pipeline.go b/server/app/test_suite_pipeline.go index 7cc6b3f..db6245a 100644 --- a/server/app/test_suite_pipeline.go +++ b/server/app/test_suite_pipeline.go @@ -1,10 +1,10 @@ package app import ( - "github.com/intelops/qualityTrace/server/executor" - "github.com/intelops/qualityTrace/server/pkg/pipeline" - "github.com/intelops/qualityTrace/server/subscription" - "github.com/intelops/qualityTrace/server/testsuite" + "github.com/intelops/qualitytrace/server/executor" + "github.com/intelops/qualitytrace/server/pkg/pipeline" + "github.com/intelops/qualitytrace/server/subscription" + "github.com/intelops/qualitytrace/server/testsuite" "go.opentelemetry.io/otel/metric" ) diff --git a/server/arch.yaml b/server/arch.yaml index 3d163d9..65efbd7 100644 --- a/server/arch.yaml +++ b/server/arch.yaml @@ -1,4 +1,4 @@ -name: qualityTrace +name: qualitytrace style: core: diff --git a/server/assertions/comparator/basic_test.go b/server/assertions/comparator/basic_test.go index ac88f87..a4f9e70 100644 --- a/server/assertions/comparator/basic_test.go +++ b/server/assertions/comparator/basic_test.go @@ -3,7 +3,7 @@ package comparator_test import ( "testing" - "github.com/intelops/qualityTrace/server/assertions/comparator" + "github.com/intelops/qualitytrace/server/assertions/comparator" "github.com/stretchr/testify/assert" ) @@ -135,7 +135,7 @@ func TestComparators(t *testing.T) { {"hello", "ll"}, {"hello", "lo"}, - // https://github.com/intelops/qualityTrace/issues/617 + // https://github.com/intelops/qualitytrace/issues/617 {`{"id":52}`, "52"}, }, expectNoMatch: []compInput{ diff --git a/server/assertions/comparator/comparators_test.go b/server/assertions/comparator/comparators_test.go index cd6b83d..48f1f2c 100644 --- a/server/assertions/comparator/comparators_test.go +++ b/server/assertions/comparator/comparators_test.go @@ -3,7 +3,7 @@ package comparator_test import ( "testing" - "github.com/intelops/qualityTrace/server/assertions/comparator" + "github.com/intelops/qualitytrace/server/assertions/comparator" "github.com/stretchr/testify/assert" ) diff --git a/server/assertions/selectors/builder.go b/server/assertions/selectors/builder.go index 6c20ab7..7f2cb90 100644 --- a/server/assertions/selectors/builder.go +++ b/server/assertions/selectors/builder.go @@ -4,8 +4,8 @@ import ( "fmt" "github.com/alecthomas/participle/v2" - "github.com/intelops/qualityTrace/server/assertions/comparator" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/assertions/comparator" + "github.com/intelops/qualitytrace/server/traces" ) var defaultParser *SelectorParser diff --git a/server/assertions/selectors/builder_test.go b/server/assertions/selectors/builder_test.go index ff679a1..24049a9 100644 --- a/server/assertions/selectors/builder_test.go +++ b/server/assertions/selectors/builder_test.go @@ -3,7 +3,7 @@ package selectors_test import ( "testing" - "github.com/intelops/qualityTrace/server/assertions/selectors" + "github.com/intelops/qualitytrace/server/assertions/selectors" "github.com/stretchr/testify/assert" ) @@ -16,17 +16,17 @@ func TestSimpleSelectorBuilder(t *testing.T) { }{ { Name: "Selector with single attribute", - Expression: "span[qualityTrace.span.type=\"http\"]", + Expression: "span[qualitytrace.span.type=\"http\"]", ShouldSucceed: true, }, { Name: "Selector with multiple attributes", - Expression: "span[service.name=\"Pokeshop\" qualityTrace.error=true]", + Expression: "span[service.name=\"Pokeshop\" qualitytrace.error=true]", ShouldSucceed: true, }, { Name: "Selector with child selector", - Expression: "span[qualityTrace.span.duration=0.5] span[qualityTrace.span.type contains \"http\"]", + Expression: "span[qualitytrace.span.duration=0.5] span[qualitytrace.span.type contains \"http\"]", ShouldSucceed: true, }, { @@ -36,7 +36,7 @@ func TestSimpleSelectorBuilder(t *testing.T) { }, { Name: "Selector with invalid syntax", - Expression: "span.qualityTrace.span.type=\"http\"", + Expression: "span.qualitytrace.span.type=\"http\"", ShouldSucceed: false, }, } diff --git a/server/assertions/selectors/parser_test.go b/server/assertions/selectors/parser_test.go index 017b57c..f8d0789 100644 --- a/server/assertions/selectors/parser_test.go +++ b/server/assertions/selectors/parser_test.go @@ -3,7 +3,7 @@ package selectors_test import ( "testing" - "github.com/intelops/qualityTrace/server/assertions/selectors" + "github.com/intelops/qualitytrace/server/assertions/selectors" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -40,13 +40,13 @@ func TestParserSingleSpanIntProperty(t *testing.T) { } func TestParserSingleSpanMultipleAttributes(t *testing.T) { - expression := "span[service.name=\"Pokeshop\" qualityTrace.span.type=\"http\"]" + expression := "span[service.name=\"Pokeshop\" qualitytrace.span.type=\"http\"]" selector := parseExpressionOrFail(t, expression) assert.Equal(t, "service.name", selector.SpanSelectors[0].Filters[0].Property) assert.Equal(t, "\"Pokeshop\"", *selector.SpanSelectors[0].Filters[0].Value.String) - assert.Equal(t, "qualityTrace.span.type", selector.SpanSelectors[0].Filters[1].Property) + assert.Equal(t, "qualitytrace.span.type", selector.SpanSelectors[0].Filters[1].Property) assert.Equal(t, "\"http\"", *selector.SpanSelectors[0].Filters[1].Value.String) } @@ -61,11 +61,11 @@ func TestParserSingleSpanUsingContainsComparator(t *testing.T) { } func TestParserSingleSpanWithNthChild(t *testing.T) { - expression := "span[qualityTrace.span.type=\"http\"]:nth_child(2)" + expression := "span[qualitytrace.span.type=\"http\"]:nth_child(2)" selector := parseExpressionOrFail(t, expression) - assert.Equal(t, "qualityTrace.span.type", selector.SpanSelectors[0].Filters[0].Property) + assert.Equal(t, "qualitytrace.span.type", selector.SpanSelectors[0].Filters[0].Property) assert.Equal(t, "=", selector.SpanSelectors[0].Filters[0].Operator) assert.Equal(t, "\"http\"", *selector.SpanSelectors[0].Filters[0].Value.String) assert.Equal(t, "nth_child", selector.SpanSelectors[0].PseudoClass.Type) @@ -73,41 +73,41 @@ func TestParserSingleSpanWithNthChild(t *testing.T) { } func TestParserWithSpanHierarchy(t *testing.T) { - expression := "span[service.name=\"Pokeshop\"] span[qualityTrace.span.type=\"http\"]" + expression := "span[service.name=\"Pokeshop\"] span[qualitytrace.span.type=\"http\"]" selector := parseExpressionOrFail(t, expression) assert.Equal(t, "service.name", selector.SpanSelectors[0].Filters[0].Property) - assert.Equal(t, "qualityTrace.span.type", selector.SpanSelectors[0].ChildSelector.Filters[0].Property) + assert.Equal(t, "qualitytrace.span.type", selector.SpanSelectors[0].ChildSelector.Filters[0].Property) assert.Equal(t, "\"http\"", *selector.SpanSelectors[0].ChildSelector.Filters[0].Value.String) } func TestParserWithMultipleSpans(t *testing.T) { - expression := "span[qualityTrace.span.type=\"http\"], span[qualityTrace.span.type=\"grpc\"]" + expression := "span[qualitytrace.span.type=\"http\"], span[qualitytrace.span.type=\"grpc\"]" selector := parseExpressionOrFail(t, expression) - assert.Equal(t, "qualityTrace.span.type", selector.SpanSelectors[0].Filters[0].Property) + assert.Equal(t, "qualitytrace.span.type", selector.SpanSelectors[0].Filters[0].Property) assert.Equal(t, "\"http\"", *selector.SpanSelectors[0].Filters[0].Value.String) assert.Nil(t, selector.SpanSelectors[0].ChildSelector) - assert.Equal(t, "qualityTrace.span.type", selector.SpanSelectors[1].Filters[0].Property) + assert.Equal(t, "qualitytrace.span.type", selector.SpanSelectors[1].Filters[0].Property) assert.Equal(t, "\"grpc\"", *selector.SpanSelectors[1].Filters[0].Value.String) assert.Nil(t, selector.SpanSelectors[0].ChildSelector) } func TestParserWithMultipleSpansAndHierarchy(t *testing.T) { - expression := "span[qualityTrace.span.type=\"http\"], span[service.name=\"Pokeshop\"] span[qualityTrace.span.type=\"grpc\"]" + expression := "span[qualitytrace.span.type=\"http\"], span[service.name=\"Pokeshop\"] span[qualitytrace.span.type=\"grpc\"]" selector := parseExpressionOrFail(t, expression) - assert.Equal(t, "qualityTrace.span.type", selector.SpanSelectors[0].Filters[0].Property) + assert.Equal(t, "qualitytrace.span.type", selector.SpanSelectors[0].Filters[0].Property) assert.Equal(t, "\"http\"", *selector.SpanSelectors[0].Filters[0].Value.String) assert.Nil(t, selector.SpanSelectors[0].ChildSelector) assert.Equal(t, "service.name", selector.SpanSelectors[1].Filters[0].Property) assert.Equal(t, "\"Pokeshop\"", *selector.SpanSelectors[1].Filters[0].Value.String) assert.NotNil(t, selector.SpanSelectors[1].ChildSelector) - assert.Equal(t, "qualityTrace.span.type", selector.SpanSelectors[1].ChildSelector.Filters[0].Property) + assert.Equal(t, "qualitytrace.span.type", selector.SpanSelectors[1].ChildSelector.Filters[0].Property) assert.Equal(t, "\"grpc\"", *selector.SpanSelectors[1].ChildSelector.Filters[0].Value.String) } diff --git a/server/assertions/selectors/pseudo_classes.go b/server/assertions/selectors/pseudo_classes.go index 92382fe..f1efe62 100644 --- a/server/assertions/selectors/pseudo_classes.go +++ b/server/assertions/selectors/pseudo_classes.go @@ -1,6 +1,6 @@ package selectors -import "github.com/intelops/qualityTrace/server/traces" +import "github.com/intelops/qualitytrace/server/traces" type PseudoClass interface { Name() string diff --git a/server/assertions/selectors/search.go b/server/assertions/selectors/search.go index 78474ce..f2a78c0 100644 --- a/server/assertions/selectors/search.go +++ b/server/assertions/selectors/search.go @@ -1,7 +1,7 @@ package selectors import ( - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/traces" "go.opentelemetry.io/otel/trace" ) diff --git a/server/assertions/selectors/selector.go b/server/assertions/selectors/selector.go index ee28523..a0508f7 100644 --- a/server/assertions/selectors/selector.go +++ b/server/assertions/selectors/selector.go @@ -4,8 +4,8 @@ import ( "fmt" "strconv" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/traces" ) func FromSpanQuery(sq test.SpanQuery) Selector { diff --git a/server/assertions/selectors/selector_test.go b/server/assertions/selectors/selector_test.go index 9908731..51b179e 100644 --- a/server/assertions/selectors/selector_test.go +++ b/server/assertions/selectors/selector_test.go @@ -3,9 +3,9 @@ package selectors_test import ( "testing" - "github.com/intelops/qualityTrace/server/assertions/selectors" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/assertions/selectors" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/traces" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "go.opentelemetry.io/otel/trace" @@ -25,7 +25,7 @@ var pokeshopTrace = traces.Trace{ ID: postImportSpanID, Attributes: traces.NewAttributes(map[string]string{ "service.name": "Pokeshop", - "qualityTrace.span.type": "http", + "qualitytrace.span.type": "http", "http.status_code": "201", }), Name: "POST /import", @@ -35,7 +35,7 @@ var pokeshopTrace = traces.Trace{ Kind: "db", Attributes: traces.NewAttributes(map[string]string{ "service.name": "Pokeshop", - "qualityTrace.span.type": "db", + "qualitytrace.span.type": "db", "db.statement": "INSERT INTO pokemon (id) values (?)", }), Name: "Insert pokemon into database", @@ -45,7 +45,7 @@ var pokeshopTrace = traces.Trace{ Kind: "general", Attributes: traces.NewAttributes(map[string]string{ "service.name": "Pokeshop-worker", - "qualityTrace.span.type": "http", + "qualitytrace.span.type": "http", "http.status_code": "200", }), Name: "Get pokemon from external API", @@ -55,7 +55,7 @@ var pokeshopTrace = traces.Trace{ ID: updatePokemonDatabaseSpanID, Attributes: traces.NewAttributes(map[string]string{ "service.name": "Pokeshop-worker", - "qualityTrace.span.type": "db", + "qualitytrace.span.type": "db", "db.statement": "UPDATE pokemon (name = ?) WHERE id = ?", }), Name: "Update pokemon on database", @@ -104,32 +104,32 @@ func TestSelector(t *testing.T) { }, { Name: "SelectorWithMultipleAttributes", - Expression: `span[service.name="Pokeshop" qualityTrace.span.type="db"]`, + Expression: `span[service.name="Pokeshop" qualitytrace.span.type="db"]`, ExpectedSpanIds: []trace.SpanID{insertPokemonDatabaseSpanID}, }, { Name: "SelectorWithChildSelector", - Expression: `span[service.name="Pokeshop-worker"] span[qualityTrace.span.type="db"]`, + Expression: `span[service.name="Pokeshop-worker"] span[qualitytrace.span.type="db"]`, ExpectedSpanIds: []trace.SpanID{updatePokemonDatabaseSpanID}, }, { Name: "SelectorToSelectAllChildrenSpans", - Expression: `span[service.name="Pokeshop" qualityTrace.span.type="http"] span[]`, + Expression: `span[service.name="Pokeshop" qualitytrace.span.type="http"] span[]`, ExpectedSpanIds: []trace.SpanID{insertPokemonDatabaseSpanID, getPokemonFromExternalAPISpanID, updatePokemonDatabaseSpanID}, }, { Name: "SelectorWithFirstPseudoClass", - Expression: `span[qualityTrace.span.type="db"]:first`, + Expression: `span[qualitytrace.span.type="db"]:first`, ExpectedSpanIds: []trace.SpanID{insertPokemonDatabaseSpanID}, }, { Name: "SelectorWithFirstPseudoClass", - Expression: `span[qualityTrace.span.type="db"]:last`, + Expression: `span[qualitytrace.span.type="db"]:last`, ExpectedSpanIds: []trace.SpanID{updatePokemonDatabaseSpanID}, }, { Name: "SelectorWithNthChildPseudoClass", - Expression: `span[qualityTrace.span.type="db"]:nth_child(2)`, + Expression: `span[qualitytrace.span.type="db"]:nth_child(2)`, ExpectedSpanIds: []trace.SpanID{updatePokemonDatabaseSpanID}, }, { diff --git a/server/cmd/root.go b/server/cmd/root.go index e1d3a93..2211739 100644 --- a/server/cmd/root.go +++ b/server/cmd/root.go @@ -5,8 +5,8 @@ import ( "log" "os" - "github.com/intelops/qualityTrace/server/app" - "github.com/intelops/qualityTrace/server/config" + "github.com/intelops/qualitytrace/server/app" + "github.com/intelops/qualitytrace/server/config" "github.com/spf13/cobra" ) @@ -15,8 +15,8 @@ var ( appInstance *app.App rootCmd = &cobra.Command{ - Use: "qualityTrace-server", - Short: "qualityTrace server", + Use: "qualitytrace-server", + Short: "qualitytrace server", PersistentPreRunE: func(cmd *cobra.Command, args []string) error { var err error appInstance, err = app.New(cfg) diff --git a/server/cmd/serve.go b/server/cmd/serve.go index c2a86ed..d305491 100644 --- a/server/cmd/serve.go +++ b/server/cmd/serve.go @@ -6,9 +6,9 @@ import ( "sync" "syscall" - "github.com/intelops/qualityTrace/server/app" - "github.com/intelops/qualityTrace/server/config" - "github.com/intelops/qualityTrace/server/telemetry" + "github.com/intelops/qualitytrace/server/app" + "github.com/intelops/qualitytrace/server/config" + "github.com/intelops/qualitytrace/server/telemetry" "github.com/spf13/cobra" ) @@ -21,7 +21,7 @@ var provisioningFile string var serveCmd = &cobra.Command{ Use: "serve", - Short: "Start Tracetest server", + Short: "Start Qualitytrace server", RunE: func(cmd *cobra.Command, args []string) error { cfg.Watch(func(updated *config.AppConfig) { appInstance.HotReload() diff --git a/server/cmd/version.go b/server/cmd/version.go index 6a4ed28..2cad3d1 100644 --- a/server/cmd/version.go +++ b/server/cmd/version.go @@ -12,7 +12,7 @@ func init() { var versionCmd = &cobra.Command{ Use: "version", - Short: "Print version information of Tracetest server", + Short: "Print version information of Qualitytrace server", Run: func(cmd *cobra.Command, args []string) { fmt.Println(appInstance.Version()) fmt.Println("This is a temporary print") diff --git a/server/config.yaml.sample b/server/config.yaml.sample index 81869e9..de1f916 100644 --- a/server/config.yaml.sample +++ b/server/config.yaml.sample @@ -43,7 +43,7 @@ telemetry: exporters: collector: - serviceName: qualityTrace + serviceName: qualitytrace sampling: 100 # 100% exporter: type: collector diff --git a/server/config/appconfig.go b/server/config/appconfig.go index 47ba1cf..4eb12e5 100644 --- a/server/config/appconfig.go +++ b/server/config/appconfig.go @@ -107,11 +107,11 @@ func (cfg *AppConfig) loadConfig() error { } func (cfg *AppConfig) configureConfigFile() { - cfg.vp.SetConfigName("qualityTrace") + cfg.vp.SetConfigName("qualitytrace") // intentionally removed this line, because it allows to have config files without extensions // cfg.vp.SetConfigType("yaml") - cfg.vp.AddConfigPath("/etc/qualityTrace") - cfg.vp.AddConfigPath("$HOME/.qualityTrace") + cfg.vp.AddConfigPath("/etc/qualitytrace") + cfg.vp.AddConfigPath("$HOME/.qualitytrace") cfg.vp.AddConfigPath(".") } diff --git a/server/config/appconfig_test.go b/server/config/appconfig_test.go index 70f78d9..28fa2c8 100644 --- a/server/config/appconfig_test.go +++ b/server/config/appconfig_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/intelops/qualityTrace/server/config" + "github.com/intelops/qualitytrace/server/config" "github.com/spf13/pflag" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -63,9 +63,9 @@ func TestFlags(t *testing.T) { cfg := configFromFile(t, "./testdata/basic.yaml") - assert.Equal(t, "postgres://postgres:postgres@postgres:5432/qualityTrace?sslmode=disable", cfg.PostgresConnString()) + assert.Equal(t, "postgres://postgres:postgres@postgres:5432/qualitytrace?sslmode=disable", cfg.PostgresConnString()) - assert.Equal(t, "/qualityTrace", cfg.ServerPathPrefix()) + assert.Equal(t, "/qualitytrace", cfg.ServerPathPrefix()) assert.Equal(t, 9999, cfg.ServerPort()) }) @@ -77,8 +77,8 @@ func TestFlags(t *testing.T) { t.Run("OK", func(t *testing.T) { // copy an example config file to the default location - err := copyFile("./testdata/basic.yaml", "./qualityTrace.yaml") - defer os.Remove("./qualityTrace.yaml") + err := copyFile("./testdata/basic.yaml", "./qualitytrace.yaml") + defer os.Remove("./qualitytrace.yaml") require.NoError(t, err) @@ -91,8 +91,8 @@ func TestFlags(t *testing.T) { t.Run("MustHaveExtension", func(t *testing.T) { // copy an example config file to the default location - err := copyFile("./testdata/basic.yaml", "./qualityTrace") - defer os.Remove("./qualityTrace") + err := copyFile("./testdata/basic.yaml", "./qualitytrace") + defer os.Remove("./qualitytrace") require.NoError(t, err) diff --git a/server/config/config_entities.go b/server/config/config_entities.go index 8d4e620..1bdc7a4 100644 --- a/server/config/config_entities.go +++ b/server/config/config_entities.go @@ -3,7 +3,7 @@ package config import ( "os" - "github.com/intelops/qualityTrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/id" ) type Config struct { diff --git a/server/config/config_entities_test.go b/server/config/config_entities_test.go index e2d4211..0605ed9 100644 --- a/server/config/config_entities_test.go +++ b/server/config/config_entities_test.go @@ -5,8 +5,8 @@ import ( "os" "testing" - "github.com/intelops/qualityTrace/server/config" - "github.com/intelops/qualityTrace/server/testmock" + "github.com/intelops/qualitytrace/server/config" + "github.com/intelops/qualitytrace/server/testmock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" diff --git a/server/config/config_repository.go b/server/config/config_repository.go index 0bcfed3..f238e30 100644 --- a/server/config/config_repository.go +++ b/server/config/config_repository.go @@ -6,7 +6,7 @@ import ( "errors" "fmt" - "github.com/intelops/qualityTrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/id" ) type option func(*Repository) diff --git a/server/config/config_repository_test.go b/server/config/config_repository_test.go index 0968e6d..27754dc 100644 --- a/server/config/config_repository_test.go +++ b/server/config/config_repository_test.go @@ -5,9 +5,9 @@ import ( "testing" "github.com/gorilla/mux" - "github.com/intelops/qualityTrace/server/config" - "github.com/intelops/qualityTrace/server/resourcemanager" - rmtests "github.com/intelops/qualityTrace/server/resourcemanager/testutil" + "github.com/intelops/qualitytrace/server/config" + "github.com/intelops/qualitytrace/server/resourcemanager" + rmtests "github.com/intelops/qualitytrace/server/resourcemanager/testutil" ) func TestConfigResource(t *testing.T) { diff --git a/server/config/demo/demo_entities.go b/server/config/demo/demo_entities.go index 89e4de6..f260fdb 100644 --- a/server/config/demo/demo_entities.go +++ b/server/config/demo/demo_entities.go @@ -1,7 +1,7 @@ package demo import ( - "github.com/intelops/qualityTrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/id" ) type DemoType string diff --git a/server/config/demo/demo_repository.go b/server/config/demo/demo_repository.go index 4a392d9..b7d7183 100644 --- a/server/config/demo/demo_repository.go +++ b/server/config/demo/demo_repository.go @@ -7,8 +7,8 @@ import ( "errors" "fmt" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/pkg/sqlutil" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/sqlutil" ) type Repository struct { diff --git a/server/config/demo/demo_repository_test.go b/server/config/demo/demo_repository_test.go index ec5a935..c251153 100644 --- a/server/config/demo/demo_repository_test.go +++ b/server/config/demo/demo_repository_test.go @@ -6,10 +6,10 @@ import ( "testing" "github.com/gorilla/mux" - "github.com/intelops/qualityTrace/server/config/demo" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/resourcemanager" - rmtests "github.com/intelops/qualityTrace/server/resourcemanager/testutil" + "github.com/intelops/qualitytrace/server/config/demo" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/resourcemanager" + rmtests "github.com/intelops/qualitytrace/server/resourcemanager/testutil" ) func TestPokeshopDemoResource(t *testing.T) { diff --git a/server/config/demo/main_test.go b/server/config/demo/main_test.go index c411426..451817b 100644 --- a/server/config/demo/main_test.go +++ b/server/config/demo/main_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/intelops/qualityTrace/server/testmock" + "github.com/intelops/qualitytrace/server/testmock" ) func TestMain(m *testing.M) { diff --git a/server/config/demo_test.go b/server/config/demo_test.go index 55c8ee2..f7271cc 100644 --- a/server/config/demo_test.go +++ b/server/config/demo_test.go @@ -3,7 +3,7 @@ package config_test import ( "testing" - "github.com/intelops/qualityTrace/server/config" + "github.com/intelops/qualitytrace/server/config" "gotest.tools/v3/assert" ) diff --git a/server/config/deprecation_test.go b/server/config/deprecation_test.go index e297786..14fe613 100644 --- a/server/config/deprecation_test.go +++ b/server/config/deprecation_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "github.com/intelops/qualityTrace/server/config" + "github.com/intelops/qualitytrace/server/config" "github.com/stretchr/testify/assert" ) diff --git a/server/config/exporters_test.go b/server/config/exporters_test.go index 6aefcd9..b61de44 100644 --- a/server/config/exporters_test.go +++ b/server/config/exporters_test.go @@ -3,14 +3,14 @@ package config_test import ( "testing" - "github.com/intelops/qualityTrace/server/config" + "github.com/intelops/qualitytrace/server/config" "github.com/stretchr/testify/assert" ) func TestExporter(t *testing.T) { t.Run("OK", func(t *testing.T) { expectedExporter := &config.TelemetryExporterOption{ - ServiceName: "qualityTrace", + ServiceName: "qualitytrace", Sampling: 100, Exporter: config.ExporterConfig{ Type: "collector", diff --git a/server/config/machine_id.go b/server/config/machine_id.go index 31758bf..3fd4443 100644 --- a/server/config/machine_id.go +++ b/server/config/machine_id.go @@ -18,7 +18,7 @@ func GetMachineID() string { } func getMachineID() string { - id, err := machineid.ProtectedID("qualityTrace") + id, err := machineid.ProtectedID("qualitytrace") if err == nil { return id } diff --git a/server/config/main_test.go b/server/config/main_test.go index d1259c9..54b801c 100644 --- a/server/config/main_test.go +++ b/server/config/main_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/intelops/qualityTrace/server/testmock" + "github.com/intelops/qualitytrace/server/testmock" ) func TestMain(m *testing.M) { diff --git a/server/config/server.go b/server/config/server.go index b9fbf19..49b2d4b 100644 --- a/server/config/server.go +++ b/server/config/server.go @@ -32,7 +32,7 @@ var serverOptions = options{ }, { key: "postgres.dbname", - defaultValue: "qualityTrace", + defaultValue: "qualitytrace", description: "Postgres DB database name", }, { @@ -48,12 +48,12 @@ var serverOptions = options{ { key: "server.httpPort", defaultValue: 11633, - description: "Tracetest server HTTP Port", + description: "Qualitytrace server HTTP Port", }, { key: "server.pathPrefix", defaultValue: "", - description: "Tracetest server HTTP Path prefix", + description: "Qualitytrace server HTTP Path prefix", }, { key: "experimentalFeatures", diff --git a/server/config/server_test.go b/server/config/server_test.go index 12f72f6..633c721 100644 --- a/server/config/server_test.go +++ b/server/config/server_test.go @@ -3,7 +3,7 @@ package config_test import ( "testing" - "github.com/intelops/qualityTrace/server/config" + "github.com/intelops/qualitytrace/server/config" "gotest.tools/v3/assert" ) @@ -11,7 +11,7 @@ func TestServerConfig(t *testing.T) { t.Run("DefaultValues", func(t *testing.T) { cfg, _ := config.New() - assert.Equal(t, "postgres://postgres:postgres@postgres:5432/qualityTrace?sslmode=disable", cfg.PostgresConnString()) + assert.Equal(t, "postgres://postgres:postgres@postgres:5432/qualitytrace?sslmode=disable", cfg.PostgresConnString()) assert.Equal(t, 11633, cfg.ServerPort()) assert.Equal(t, "", cfg.ServerPathPrefix()) @@ -38,7 +38,7 @@ func TestServerConfig(t *testing.T) { "--experimentalFeatures", "a", "--experimentalFeatures", "b", "--internalTelemetry.enabled", "true", - "--internalTelemetry.otelCollectorEndpoint", "otel-collector.qualityTrace", + "--internalTelemetry.otelCollectorEndpoint", "otel-collector.qualitytrace", "--testPipelines.triggerExecute.enabled", "false", "--testPipelines.traceFetch.enabled", "false", } @@ -53,7 +53,7 @@ func TestServerConfig(t *testing.T) { assert.DeepEqual(t, []string{"a", "b"}, cfg.ExperimentalFeatures()) assert.Equal(t, true, cfg.InternalTelemetryEnabled()) - assert.Equal(t, "otel-collector.qualityTrace", cfg.InternalTelemetryOtelCollectorAddress()) + assert.Equal(t, "otel-collector.qualitytrace", cfg.InternalTelemetryOtelCollectorAddress()) assert.Equal(t, false, cfg.TestPipelineTriggerExecutionEnabled()) assert.Equal(t, false, cfg.TestPipelineTraceFetchingEnabled()) @@ -71,7 +71,7 @@ func TestServerConfig(t *testing.T) { "TRACETEST_SERVER_PATHPREFIX": "/prefix", "TRACETEST_EXPERIMENTALFEATURES": "a b", "TRACETEST_INTERNALTELEMETRY_ENABLED": "true", - "TRACETEST_INTERNALTELEMETRY_OTELCOLLECTORENDPOINT": "otel-collector.qualityTrace", + "TRACETEST_INTERNALTELEMETRY_OTELCOLLECTORENDPOINT": "otel-collector.qualitytrace", "TRACETEST_TESTPIPELINES_TRIGGEREXECUTE_ENABLED": "false", "TRACETEST_TESTPIPELINES_TRACEFETCH_ENABLED": "false", } @@ -86,7 +86,7 @@ func TestServerConfig(t *testing.T) { assert.DeepEqual(t, []string{"a", "b"}, cfg.ExperimentalFeatures()) assert.Equal(t, true, cfg.InternalTelemetryEnabled()) - assert.Equal(t, "otel-collector.qualityTrace", cfg.InternalTelemetryOtelCollectorAddress()) + assert.Equal(t, "otel-collector.qualitytrace", cfg.InternalTelemetryOtelCollectorAddress()) assert.Equal(t, false, cfg.TestPipelineTriggerExecutionEnabled()) assert.Equal(t, false, cfg.TestPipelineTraceFetchingEnabled()) diff --git a/server/config/testdata/basic.yaml b/server/config/testdata/basic.yaml index e7662e9..e049e53 100644 --- a/server/config/testdata/basic.yaml +++ b/server/config/testdata/basic.yaml @@ -3,8 +3,8 @@ postgres: user: postgres password: postgres port: 5432 - dbname: qualityTrace + dbname: qualitytrace params: sslmode=disable server: - pathPrefix: /qualityTrace + pathPrefix: /qualitytrace httpPort: 9999 diff --git a/server/config/testdata/exporter_config.yaml b/server/config/testdata/exporter_config.yaml index 757a01a..9152906 100644 --- a/server/config/testdata/exporter_config.yaml +++ b/server/config/testdata/exporter_config.yaml @@ -1,7 +1,7 @@ telemetry: exporters: otelcollector: - serviceName: qualityTrace + serviceName: qualitytrace sampling: 100 exporter: type: collector diff --git a/server/datastore/datastore_entities.go b/server/datastore/datastore_entities.go index 1b0e4fc..ffe9cbb 100644 --- a/server/datastore/datastore_entities.go +++ b/server/datastore/datastore_entities.go @@ -6,7 +6,7 @@ import ( "time" "github.com/goccy/go-yaml" - "github.com/intelops/qualityTrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/id" "golang.org/x/exp/slices" ) diff --git a/server/datastore/datastore_repository.go b/server/datastore/datastore_repository.go index 6903a2a..b33cb1d 100644 --- a/server/datastore/datastore_repository.go +++ b/server/datastore/datastore_repository.go @@ -8,8 +8,8 @@ import ( "fmt" "time" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/pkg/sqlutil" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/sqlutil" ) func NewRepository(db *sql.DB) *Repository { diff --git a/server/datastore/datastore_repository_test.go b/server/datastore/datastore_repository_test.go index 5403026..67a4316 100644 --- a/server/datastore/datastore_repository_test.go +++ b/server/datastore/datastore_repository_test.go @@ -6,10 +6,10 @@ import ( "testing" "github.com/gorilla/mux" - datastore "github.com/intelops/qualityTrace/server/datastore" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/resourcemanager" - rmtests "github.com/intelops/qualityTrace/server/resourcemanager/testutil" + datastore "github.com/intelops/qualitytrace/server/datastore" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/resourcemanager" + rmtests "github.com/intelops/qualitytrace/server/resourcemanager/testutil" "github.com/stretchr/testify/require" ) diff --git a/server/datastore/main_test.go b/server/datastore/main_test.go index 7acbef5..d0db292 100644 --- a/server/datastore/main_test.go +++ b/server/datastore/main_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/intelops/qualityTrace/server/testmock" + "github.com/intelops/qualitytrace/server/testmock" ) func TestMain(m *testing.M) { diff --git a/server/executor/assertion_executor.go b/server/executor/assertion_executor.go index 1400ada..8a1c935 100644 --- a/server/executor/assertion_executor.go +++ b/server/executor/assertion_executor.go @@ -3,11 +3,11 @@ package executor import ( "context" - "github.com/intelops/qualityTrace/server/assertions/selectors" - "github.com/intelops/qualityTrace/server/expression" - "github.com/intelops/qualityTrace/server/pkg/maps" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/assertions/selectors" + "github.com/intelops/qualitytrace/server/expression" + "github.com/intelops/qualitytrace/server/pkg/maps" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/traces" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/trace" ) @@ -98,7 +98,7 @@ func (e instrumentedAssertionExecutor) Assert(ctx context.Context, defs test.Spe result, allPassed := e.assertionExecutor.Assert(ctx, defs, trace, ds) span.SetAttributes( - attribute.Bool("qualityTrace.run.assertion_runner.all_assertions_passed", allPassed), + attribute.Bool("qualitytrace.run.assertion_runner.all_assertions_passed", allPassed), ) return result, allPassed diff --git a/server/executor/assertion_runner.go b/server/executor/assertion_runner.go index 5b37c82..66e0d5c 100644 --- a/server/executor/assertion_runner.go +++ b/server/executor/assertion_runner.go @@ -6,14 +6,14 @@ import ( "fmt" "log" - "github.com/intelops/qualityTrace/server/expression" - "github.com/intelops/qualityTrace/server/http/middleware" - "github.com/intelops/qualityTrace/server/model/events" - "github.com/intelops/qualityTrace/server/pkg/maps" - "github.com/intelops/qualityTrace/server/pkg/pipeline" - "github.com/intelops/qualityTrace/server/subscription" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/variableset" + "github.com/intelops/qualitytrace/server/expression" + "github.com/intelops/qualitytrace/server/http/middleware" + "github.com/intelops/qualitytrace/server/model/events" + "github.com/intelops/qualitytrace/server/pkg/maps" + "github.com/intelops/qualitytrace/server/pkg/pipeline" + "github.com/intelops/qualitytrace/server/subscription" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/variableset" ) type defaultAssertionRunner struct { diff --git a/server/executor/assetion_executor_test.go b/server/executor/assetion_executor_test.go index 520a1ef..7657a05 100644 --- a/server/executor/assetion_executor_test.go +++ b/server/executor/assetion_executor_test.go @@ -4,13 +4,13 @@ import ( "context" "testing" - "github.com/intelops/qualityTrace/server/assertions/comparator" - "github.com/intelops/qualityTrace/server/executor" - "github.com/intelops/qualityTrace/server/expression" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/pkg/maps" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/assertions/comparator" + "github.com/intelops/qualitytrace/server/executor" + "github.com/intelops/qualitytrace/server/expression" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/maps" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/traces" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "go.opentelemetry.io/otel/trace" @@ -32,7 +32,7 @@ func TestAssertion(t *testing.T) { { Selector: test.SpanQuery(`span[service.name="Pokeshop"]`), Assertions: []test.Assertion{ - `attr:qualityTrace.span.duration = 2000ns`, + `attr:qualitytrace.span.duration = 2000ns`, }, }, }, @@ -41,14 +41,14 @@ func TestAssertion(t *testing.T) { ID: spanID, Attributes: traces.NewAttributes(map[string]string{ "service.name": "Pokeshop", - "qualityTrace.span.duration": "2000", + "qualitytrace.span.duration": "2000", }), }, }, expectedAllPassed: true, expectedResult: (maps.Ordered[test.SpanQuery, []test.AssertionResult]{}).MustAdd(`span[service.name="Pokeshop"]`, []test.AssertionResult{ { - Assertion: `attr:qualityTrace.span.duration = 2000ns`, + Assertion: `attr:qualitytrace.span.duration = 2000ns`, Results: []test.SpanAssertionResult{ { SpanID: &spanID, @@ -65,13 +65,13 @@ func TestAssertion(t *testing.T) { { Selector: test.SpanQuery(`span[service.name="Pokeshop"]`), Assertions: []test.Assertion{ - `attr:qualityTrace.selected_spans.count = 1`, + `attr:qualitytrace.selected_spans.count = 1`, }, }, { Selector: test.SpanQuery(`span[service.name="NotExists"]`), Assertions: []test.Assertion{ - `attr:qualityTrace.selected_spans.count = 0`, + `attr:qualitytrace.selected_spans.count = 0`, }, }, }, @@ -80,14 +80,14 @@ func TestAssertion(t *testing.T) { ID: spanID, Attributes: traces.NewAttributes(map[string]string{ "service.name": "Pokeshop", - "qualityTrace.span.duration": "2000", + "qualitytrace.span.duration": "2000", }), }, }, expectedAllPassed: true, expectedResult: (maps.Ordered[test.SpanQuery, []test.AssertionResult]{}).MustAdd(`span[service.name="Pokeshop"]`, []test.AssertionResult{ { - Assertion: `attr:qualityTrace.selected_spans.count = 1`, + Assertion: `attr:qualitytrace.selected_spans.count = 1`, Results: []test.SpanAssertionResult{ { SpanID: &spanID, @@ -98,7 +98,7 @@ func TestAssertion(t *testing.T) { }, }).MustAdd(`span[service.name="NotExists"]`, []test.AssertionResult{ { - Assertion: `attr:qualityTrace.selected_spans.count = 0`, + Assertion: `attr:qualitytrace.selected_spans.count = 0`, Results: []test.SpanAssertionResult{ { SpanID: nil, @@ -109,7 +109,7 @@ func TestAssertion(t *testing.T) { }, }), }, - // https://github.com/intelops/qualityTrace/issues/617 + // https://github.com/intelops/qualitytrace/issues/617 { name: "ContainsWithJSON", testDef: test.Specs{ @@ -117,7 +117,7 @@ func TestAssertion(t *testing.T) { Selector: test.SpanQuery(`span[service.name="Pokeshop"]`), Assertions: []test.Assertion{ `attr:http.response.body contains 52`, - `attr:qualityTrace.span.duration <= 21ms`, + `attr:qualitytrace.span.duration <= 21ms`, }, }, }, @@ -127,7 +127,7 @@ func TestAssertion(t *testing.T) { Attributes: traces.NewAttributes(map[string]string{ "service.name": "Pokeshop", "http.response.body": `{"id":52}`, - "qualityTrace.span.duration": "21000000", + "qualitytrace.span.duration": "21000000", }), }, }, @@ -144,7 +144,7 @@ func TestAssertion(t *testing.T) { }, }, { - Assertion: `attr:qualityTrace.span.duration <= 21ms`, + Assertion: `attr:qualitytrace.span.duration <= 21ms`, Results: []test.SpanAssertionResult{ { SpanID: &spanID, @@ -155,14 +155,14 @@ func TestAssertion(t *testing.T) { }, }), }, - // https://github.com/intelops/qualityTrace/issues/1203 + // https://github.com/intelops/qualitytrace/issues/1203 { name: "DurationComparison", testDef: test.Specs{ { Selector: test.SpanQuery(`span[service.name="Pokeshop"]`), Assertions: []test.Assertion{ - `attr:qualityTrace.span.duration <= 25ms`, + `attr:qualitytrace.span.duration <= 25ms`, }, }, }, @@ -172,14 +172,14 @@ func TestAssertion(t *testing.T) { Attributes: traces.NewAttributes(map[string]string{ "service.name": "Pokeshop", "http.response.body": `{"id":52}`, - "qualityTrace.span.duration": "25187564", // 25ms + "qualitytrace.span.duration": "25187564", // 25ms }), }, }, expectedAllPassed: true, expectedResult: (maps.Ordered[test.SpanQuery, []test.AssertionResult]{}).MustAdd(`span[service.name="Pokeshop"]`, []test.AssertionResult{ { - Assertion: `attr:qualityTrace.span.duration <= 25ms`, + Assertion: `attr:qualitytrace.span.duration <= 25ms`, Results: []test.SpanAssertionResult{ { SpanID: &spanID, @@ -190,14 +190,14 @@ func TestAssertion(t *testing.T) { }, }), }, - // https://github.com/intelops/qualityTrace/issues/1421 + // https://github.com/intelops/qualitytrace/issues/1421 { name: "FailedAssertionsConvertDurationFieldsIntoDurationFormat", testDef: test.Specs{ { Selector: test.SpanQuery(`span[service.name="Pokeshop"]`), Assertions: []test.Assertion{ - `attr:qualityTrace.span.duration <= 25ms`, + `attr:qualitytrace.span.duration <= 25ms`, }, }, }, @@ -207,14 +207,14 @@ func TestAssertion(t *testing.T) { Attributes: traces.NewAttributes(map[string]string{ "service.name": "Pokeshop", "http.response.body": `{"id":52}`, - "qualityTrace.span.duration": "35000000", // 35ms + "qualitytrace.span.duration": "35000000", // 35ms }), }, }, expectedAllPassed: false, expectedResult: (maps.Ordered[test.SpanQuery, []test.AssertionResult]{}).MustAdd(`span[service.name="Pokeshop"]`, []test.AssertionResult{ { - Assertion: `attr:qualityTrace.span.duration <= 25ms`, + Assertion: `attr:qualitytrace.span.duration <= 25ms`, Results: []test.SpanAssertionResult{ { SpanID: &spanID, diff --git a/server/executor/default_poller_executor.go b/server/executor/default_poller_executor.go index 6646459..02ad386 100644 --- a/server/executor/default_poller_executor.go +++ b/server/executor/default_poller_executor.go @@ -5,13 +5,13 @@ import ( "fmt" "log" - "github.com/intelops/qualityTrace/agent/tracedb" - "github.com/intelops/qualityTrace/server/datastore" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/model/events" - "github.com/intelops/qualityTrace/server/resourcemanager" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/agent/tracedb" + "github.com/intelops/qualitytrace/server/datastore" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/model/events" + "github.com/intelops/qualitytrace/server/resourcemanager" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/traces" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/trace" ) @@ -40,19 +40,19 @@ func (pe InstrumentedPollerExecutor) ExecuteRequest(ctx context.Context, job *Jo } attrs := []attribute.KeyValue{ - attribute.String("qualityTrace.run.trace_poller.trace_id", job.Run.TraceID.String()), - attribute.String("qualityTrace.run.trace_poller.span_id", job.Run.SpanID.String()), - attribute.Bool("qualityTrace.run.trace_poller.succesful", res.Finished()), - attribute.String("qualityTrace.run.trace_poller.test_id", string(job.Test.ID)), - attribute.Int("qualityTrace.run.trace_poller.amount_retrieved_spans", spanCount), + attribute.String("qualitytrace.run.trace_poller.trace_id", job.Run.TraceID.String()), + attribute.String("qualitytrace.run.trace_poller.span_id", job.Run.SpanID.String()), + attribute.Bool("qualitytrace.run.trace_poller.succesful", res.Finished()), + attribute.String("qualitytrace.run.trace_poller.test_id", string(job.Test.ID)), + attribute.Int("qualitytrace.run.trace_poller.amount_retrieved_spans", spanCount), } if res.reason != "" { - attrs = append(attrs, attribute.String("qualityTrace.run.trace_poller.finish_reason", res.reason)) + attrs = append(attrs, attribute.String("qualitytrace.run.trace_poller.finish_reason", res.reason)) } if err != nil { - attrs = append(attrs, attribute.String("qualityTrace.run.trace_poller.error", err.Error())) + attrs = append(attrs, attribute.String("qualitytrace.run.trace_poller.error", err.Error())) span.RecordError(err) } @@ -148,7 +148,7 @@ func (pe DefaultPollerExecutor) ExecuteRequest(ctx context.Context, job *Job) (P log.Printf("[PollerExecutor] Test %s Run %d: Sorting complete", job.Test.ID, job.Run.ID) if !job.Run.Trace.HasRootSpan() { - newRoot := test.NewTracetestRootSpan(job.Run) + newRoot := test.NewQualitytraceRootSpan(job.Run) job.Run.Trace = job.Run.Trace.InsertRootSpan(newRoot) } else { job.Run.Trace.RootSpan = traces.AugmentRootSpan(job.Run.Trace.RootSpan, job.Run.TriggerResult) diff --git a/server/executor/eventemitter.go b/server/executor/eventemitter.go index 905f555..b593788 100644 --- a/server/executor/eventemitter.go +++ b/server/executor/eventemitter.go @@ -4,7 +4,7 @@ import ( "context" "sync" - "github.com/intelops/qualityTrace/server/model" + "github.com/intelops/qualitytrace/server/model" ) type EventEmitter interface { diff --git a/server/executor/eventemitter_test.go b/server/executor/eventemitter_test.go index b944ada..5937abd 100644 --- a/server/executor/eventemitter_test.go +++ b/server/executor/eventemitter_test.go @@ -6,13 +6,13 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/agent/workers/trigger" - "github.com/intelops/qualityTrace/server/executor" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/subscription" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/testdb" + "github.com/intelops/qualitytrace/agent/workers/trigger" + "github.com/intelops/qualitytrace/server/executor" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/subscription" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/testdb" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/server/executor/linter_runner.go b/server/executor/linter_runner.go index 757bfe1..ce4d9c1 100644 --- a/server/executor/linter_runner.go +++ b/server/executor/linter_runner.go @@ -5,13 +5,13 @@ import ( "fmt" "log" - "github.com/intelops/qualityTrace/server/http/middleware" - "github.com/intelops/qualityTrace/server/linter" - "github.com/intelops/qualityTrace/server/linter/analyzer" - "github.com/intelops/qualityTrace/server/model/events" - "github.com/intelops/qualityTrace/server/pkg/pipeline" - "github.com/intelops/qualityTrace/server/subscription" - "github.com/intelops/qualityTrace/server/test" + "github.com/intelops/qualitytrace/server/http/middleware" + "github.com/intelops/qualitytrace/server/linter" + "github.com/intelops/qualitytrace/server/linter/analyzer" + "github.com/intelops/qualitytrace/server/model/events" + "github.com/intelops/qualitytrace/server/pkg/pipeline" + "github.com/intelops/qualitytrace/server/subscription" + "github.com/intelops/qualitytrace/server/test" ) type AnalyzerGetter interface { diff --git a/server/executor/main_test.go b/server/executor/main_test.go index 9b19753..0082937 100644 --- a/server/executor/main_test.go +++ b/server/executor/main_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/intelops/qualityTrace/server/testmock" + "github.com/intelops/qualitytrace/server/testmock" ) func TestMain(m *testing.M) { diff --git a/server/executor/outputs_processor.go b/server/executor/outputs_processor.go index 8247d2b..1fe0caa 100644 --- a/server/executor/outputs_processor.go +++ b/server/executor/outputs_processor.go @@ -5,11 +5,11 @@ import ( "encoding/json" "fmt" - "github.com/intelops/qualityTrace/server/assertions/selectors" - "github.com/intelops/qualityTrace/server/expression" - "github.com/intelops/qualityTrace/server/pkg/maps" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/assertions/selectors" + "github.com/intelops/qualitytrace/server/expression" + "github.com/intelops/qualitytrace/server/pkg/maps" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/traces" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" "go.opentelemetry.io/otel/trace" @@ -45,7 +45,7 @@ func (op instrumentedOutputProcessor) process(ctx context.Context, outputs test. } span.SetAttributes( - attribute.String("qualityTrace.run.output_processor.outputs", string(encoded)), + attribute.String("qualitytrace.run.output_processor.outputs", string(encoded)), ) return result, err diff --git a/server/executor/poller_executor_test.go b/server/executor/poller_executor_test.go index 7b8fe9b..e62d8b0 100644 --- a/server/executor/poller_executor_test.go +++ b/server/executor/poller_executor_test.go @@ -5,20 +5,20 @@ import ( "testing" "time" - "github.com/intelops/qualityTrace/agent/tracedb" - "github.com/intelops/qualityTrace/agent/tracedb/connection" - "github.com/intelops/qualityTrace/agent/workers/trigger" - "github.com/intelops/qualityTrace/server/config" - "github.com/intelops/qualityTrace/server/datastore" - "github.com/intelops/qualityTrace/server/executor" - "github.com/intelops/qualityTrace/server/executor/pollingprofile" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/subscription" - "github.com/intelops/qualityTrace/server/telemetry" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/testdb" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/agent/tracedb" + "github.com/intelops/qualitytrace/agent/tracedb/connection" + "github.com/intelops/qualitytrace/agent/workers/trigger" + "github.com/intelops/qualitytrace/server/config" + "github.com/intelops/qualitytrace/server/datastore" + "github.com/intelops/qualitytrace/server/executor" + "github.com/intelops/qualitytrace/server/executor/pollingprofile" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/subscription" + "github.com/intelops/qualitytrace/server/telemetry" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/testdb" + "github.com/intelops/qualitytrace/server/traces" "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" @@ -35,7 +35,7 @@ func Test_PollerExecutor_ExecuteRequest_NoRootSpan_NoSpanCase(t *testing.T) { // Scenario: Trace without any spans, even root span // Given the trigger execution returns 0 spans - // And qualityTrace does not send the root span + // And qualitytrace does not send the root span // When the server do the polling process // Then it will not send a finished flag // And it will return a connection error on every call @@ -71,7 +71,7 @@ func Test_PollerExecutor_ExecuteRequest_NoRootSpan_OneSpanCase(t *testing.T) { // Scenario: Trace with only 1 span, without root span // Given the trigger execution returns 1 span on the second iteration // And find no trace on the first iteration - // And qualityTrace does not send the root span + // And qualitytrace does not send the root span // When the server do the polling process // Then it should stop at the third iteration // And it should handle the trace error on first iteration @@ -121,7 +121,7 @@ func Test_PollerExecutor_ExecuteRequest_NoRootSpan_TwoSpansCase(t *testing.T) { // Scenario: Trace with 2 span, without root span // Given the trigger execution returns 1 span on second iteration and another one on third iteration // And find no trace on the first iteration - // And qualityTrace does not send the root span + // And qualitytrace does not send the root span // When the server do the polling process // Then it should stop at the fourth iteration // And it should handle the trace error on first iteration @@ -153,7 +153,7 @@ func Test_PollerExecutor_ExecuteRequest_NoRootSpan_TwoSpansCase(t *testing.T) { EndTime: firstSpan.EndTime.Add(retryDelay), Attributes: traces.NewAttributes(map[string]string{ "testSpan": "true", - traces.TracetestMetadataFieldParentID: firstSpan.ID.String(), + traces.QualitytraceMetadataFieldParentID: firstSpan.ID.String(), }), Children: []*traces.Span{}, } @@ -187,7 +187,7 @@ func Test_PollerExecutor_ExecuteRequest_WithRootSpan_NoSpanCase(t *testing.T) { // Scenario: Trace without any spans, only root span // Given the trigger execution returns 0 spans - // And qualityTrace sent the root span + // And qualitytrace sent the root span // When the server do the polling process // Then it should stop on third iteration // And it should handle the trace error on first iteration @@ -237,7 +237,7 @@ func Test_PollerExecutor_ExecuteRequest_WithRootSpan_OneSpanCase(t *testing.T) { // Scenario: Trace with only 1 span, plus a root span // Given the trigger execution returns 1 span on second iteration // And find no trace on the first iteration - // And qualityTrace sent the root span + // And qualitytrace sent the root span // When the server do the polling process // Then it should stop at the second iteration // And it should handle the trace error on first iteration @@ -269,7 +269,7 @@ func Test_PollerExecutor_ExecuteRequest_WithRootSpan_OneSpanCase(t *testing.T) { EndTime: time.Now().Add(retryDelay), Attributes: traces.NewAttributes(map[string]string{ "testSpan": "true", - traces.TracetestMetadataFieldParentID: rootSpanID.String(), + traces.QualitytraceMetadataFieldParentID: rootSpanID.String(), }), Children: []*traces.Span{}, }, @@ -300,7 +300,7 @@ func Test_PollerExecutor_ExecuteRequest_WithRootSpan_OneDelayedSpanCase(t *testi // Scenario: Trace with only 1 delayed span, plus a root span // Given the trigger execution returns 1 span on fourth iteration // And find no trace on the first iteration - // And qualityTrace sent the root span + // And qualitytrace sent the root span // When the server do the polling process // Then it should stop at the fifth iteration // And it should handle the trace error on first iteration @@ -330,7 +330,7 @@ func Test_PollerExecutor_ExecuteRequest_WithRootSpan_OneDelayedSpanCase(t *testi EndTime: time.Now().Add(retryDelay), Attributes: traces.NewAttributes(map[string]string{ "testSpan": "true", - traces.TracetestMetadataFieldParentID: rootSpan.ID.String(), + traces.QualitytraceMetadataFieldParentID: rootSpan.ID.String(), }), Children: []*traces.Span{}, } @@ -367,7 +367,7 @@ func Test_PollerExecutor_ExecuteRequest_WithRootSpan_TwoSpansCase(t *testing.T) // Scenario: Trace with 2 span, plus a root span // Given the trigger execution returns 1 span on second iteration and another one on third iteration // And find no trace on the first iteration - // And qualityTrace sent the root span + // And qualitytrace sent the root span // When the server do the polling process // Then it should stop at the third iteration // And it should handle the trace error on first iteration @@ -399,7 +399,7 @@ func Test_PollerExecutor_ExecuteRequest_WithRootSpan_TwoSpansCase(t *testing.T) EndTime: time.Now().Add(retryDelay), Attributes: traces.NewAttributes(map[string]string{ "testSpan": "true", - traces.TracetestMetadataFieldParentID: rootSpan.ID.String(), + traces.QualitytraceMetadataFieldParentID: rootSpan.ID.String(), }), Children: []*traces.Span{}, } @@ -411,7 +411,7 @@ func Test_PollerExecutor_ExecuteRequest_WithRootSpan_TwoSpansCase(t *testing.T) EndTime: firstSpan.EndTime.Add(retryDelay), Attributes: traces.NewAttributes(map[string]string{ "testSpan": "true", - traces.TracetestMetadataFieldParentID: firstSpan.ID.String(), + traces.QualitytraceMetadataFieldParentID: firstSpan.ID.String(), }), Children: []*traces.Span{}, } diff --git a/server/executor/pollingprofile/main_test.go b/server/executor/pollingprofile/main_test.go index 6df8561..7a50570 100644 --- a/server/executor/pollingprofile/main_test.go +++ b/server/executor/pollingprofile/main_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/intelops/qualityTrace/server/testmock" + "github.com/intelops/qualitytrace/server/testmock" ) func TestMain(m *testing.M) { diff --git a/server/executor/pollingprofile/polling_profile_entities.go b/server/executor/pollingprofile/polling_profile_entities.go index eecf000..2c713b4 100644 --- a/server/executor/pollingprofile/polling_profile_entities.go +++ b/server/executor/pollingprofile/polling_profile_entities.go @@ -5,8 +5,8 @@ import ( "math" "time" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/resourcemanager" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/resourcemanager" ) type Strategy string diff --git a/server/executor/pollingprofile/polling_profile_repository.go b/server/executor/pollingprofile/polling_profile_repository.go index 9f7ed89..8a8ef56 100644 --- a/server/executor/pollingprofile/polling_profile_repository.go +++ b/server/executor/pollingprofile/polling_profile_repository.go @@ -7,8 +7,8 @@ import ( "errors" "fmt" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/pkg/sqlutil" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/sqlutil" ) func NewRepository(db *sql.DB) *Repository { diff --git a/server/executor/pollingprofile/polling_profile_repository_test.go b/server/executor/pollingprofile/polling_profile_repository_test.go index ed7bdda..5604630 100644 --- a/server/executor/pollingprofile/polling_profile_repository_test.go +++ b/server/executor/pollingprofile/polling_profile_repository_test.go @@ -5,10 +5,10 @@ import ( "testing" "github.com/gorilla/mux" - "github.com/intelops/qualityTrace/server/executor/pollingprofile" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/resourcemanager" - rmtests "github.com/intelops/qualityTrace/server/resourcemanager/testutil" + "github.com/intelops/qualitytrace/server/executor/pollingprofile" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/resourcemanager" + rmtests "github.com/intelops/qualitytrace/server/resourcemanager/testutil" ) func TestPollingProfileResource(t *testing.T) { diff --git a/server/executor/queue.go b/server/executor/queue.go index 50aa8fd..7b65469 100644 --- a/server/executor/queue.go +++ b/server/executor/queue.go @@ -10,14 +10,14 @@ import ( "strconv" "strings" - "github.com/intelops/qualityTrace/server/datastore" - "github.com/intelops/qualityTrace/server/executor/pollingprofile" - "github.com/intelops/qualityTrace/server/http/middleware" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/pkg/pipeline" - "github.com/intelops/qualityTrace/server/subscription" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/testsuite" + "github.com/intelops/qualitytrace/server/datastore" + "github.com/intelops/qualitytrace/server/executor/pollingprofile" + "github.com/intelops/qualitytrace/server/http/middleware" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/pipeline" + "github.com/intelops/qualitytrace/server/subscription" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/testsuite" "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/propagation" @@ -25,7 +25,7 @@ import ( ) const ( - JobCountHeader string = "X-Tracetest-Job-Count" + JobCountHeader string = "X-Qualitytrace-Job-Count" ) type headers map[string]string diff --git a/server/executor/run_updater.go b/server/executor/run_updater.go index 510721d..6812d96 100644 --- a/server/executor/run_updater.go +++ b/server/executor/run_updater.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/server/subscription" - "github.com/intelops/qualityTrace/server/test" + "github.com/intelops/qualitytrace/server/subscription" + "github.com/intelops/qualitytrace/server/test" ) type RunUpdater interface { diff --git a/server/executor/selector_based_poller_executor.go b/server/executor/selector_based_poller_executor.go index c6f383c..cfa8f1a 100644 --- a/server/executor/selector_based_poller_executor.go +++ b/server/executor/selector_based_poller_executor.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/server/model/events" + "github.com/intelops/qualitytrace/server/model/events" ) const ( diff --git a/server/executor/selector_based_poller_executor_test.go b/server/executor/selector_based_poller_executor_test.go index faf9715..64b303b 100644 --- a/server/executor/selector_based_poller_executor_test.go +++ b/server/executor/selector_based_poller_executor_test.go @@ -4,11 +4,11 @@ import ( "context" "testing" - "github.com/intelops/qualityTrace/server/executor" - "github.com/intelops/qualityTrace/server/executor/pollingprofile" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/executor" + "github.com/intelops/qualitytrace/server/executor/pollingprofile" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/traces" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" ) @@ -68,7 +68,7 @@ func TestSelectorBasedPollerExecutor(t *testing.T) { selectorBasedPoller := executor.NewSelectorBasedPoller(defaultPoller, eventEmitter) specs := test.Specs{ - {Selector: test.SpanQuery(`span[name = "Tracetest trigger"]`), Assertions: []test.Assertion{}}, + {Selector: test.SpanQuery(`span[name = "Qualitytrace trigger"]`), Assertions: []test.Assertion{}}, {Selector: test.SpanQuery(`span[name = "GET /api/tests"]`), Assertions: []test.Assertion{}}, } testObj := test.Test{Specs: specs} @@ -90,7 +90,7 @@ func TestSelectorBasedPollerExecutor(t *testing.T) { selectorBasedPoller := executor.NewSelectorBasedPoller(defaultPoller, eventEmitter) specs := test.Specs{ - {Selector: test.SpanQuery(`span[name = "Tracetest trigger"]`), Assertions: []test.Assertion{}}, + {Selector: test.SpanQuery(`span[name = "Qualitytrace trigger"]`), Assertions: []test.Assertion{}}, {Selector: test.SpanQuery(`span[name = "GET /api/tests"]`), Assertions: []test.Assertion{}}, } testObj := test.Test{Specs: specs} @@ -128,18 +128,18 @@ func TestSelectorBasedPollerExecutor(t *testing.T) { selectorBasedPoller := executor.NewSelectorBasedPoller(defaultPoller, eventEmitter) specs := test.Specs{ - {Selector: test.SpanQuery(`span[name = "Tracetest trigger"]`), Assertions: []test.Assertion{}}, + {Selector: test.SpanQuery(`span[name = "Qualitytrace trigger"]`), Assertions: []test.Assertion{}}, {Selector: test.SpanQuery(`span[name = "GET /api/tests"]`), Assertions: []test.Assertion{}}, } testObj := test.Test{Specs: specs} - rootSpan := traces.Span{ID: randomIDGenerator.SpanID(), Name: "Tracetest trigger", Attributes: traces.NewAttributes()} + rootSpan := traces.Span{ID: randomIDGenerator.SpanID(), Name: "Qualitytrace trigger", Attributes: traces.NewAttributes()} trace := traces.NewTrace(randomIDGenerator.TraceID().String(), []traces.Span{ rootSpan, { ID: randomIDGenerator.SpanID(), Name: "GET /api/tests", - Attributes: traces.NewAttributes(map[string]string{traces.TracetestMetadataFieldParentID: rootSpan.ID.String()}), + Attributes: traces.NewAttributes(map[string]string{traces.QualitytraceMetadataFieldParentID: rootSpan.ID.String()}), }, }) run := test.Run{Trace: &trace} diff --git a/server/executor/test_pipeline.go b/server/executor/test_pipeline.go index f198ab5..6ff9ba5 100644 --- a/server/executor/test_pipeline.go +++ b/server/executor/test_pipeline.go @@ -5,15 +5,15 @@ import ( "fmt" "log" - "github.com/intelops/qualityTrace/server/executor/pollingprofile" - "github.com/intelops/qualityTrace/server/executor/testrunner" - "github.com/intelops/qualityTrace/server/http/middleware" - "github.com/intelops/qualityTrace/server/model/events" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/pkg/pipeline" - "github.com/intelops/qualityTrace/server/subscription" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/variableset" + "github.com/intelops/qualitytrace/server/executor/pollingprofile" + "github.com/intelops/qualitytrace/server/executor/testrunner" + "github.com/intelops/qualitytrace/server/http/middleware" + "github.com/intelops/qualitytrace/server/model/events" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/pipeline" + "github.com/intelops/qualitytrace/server/subscription" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/variableset" "go.opentelemetry.io/otel/trace" ) diff --git a/server/executor/test_suite_run_updater.go b/server/executor/test_suite_run_updater.go index bdee5eb..7709406 100644 --- a/server/executor/test_suite_run_updater.go +++ b/server/executor/test_suite_run_updater.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/server/subscription" - "github.com/intelops/qualityTrace/server/testsuite" + "github.com/intelops/qualitytrace/server/subscription" + "github.com/intelops/qualitytrace/server/testsuite" ) type TestSuiteRunUpdater interface { diff --git a/server/executor/test_suite_runner.go b/server/executor/test_suite_runner.go index 4cf1899..79353a6 100644 --- a/server/executor/test_suite_runner.go +++ b/server/executor/test_suite_runner.go @@ -5,13 +5,13 @@ import ( "fmt" "log" - "github.com/intelops/qualityTrace/server/executor/testrunner" - "github.com/intelops/qualityTrace/server/pkg/maps" - "github.com/intelops/qualityTrace/server/pkg/pipeline" - "github.com/intelops/qualityTrace/server/subscription" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/testsuite" - "github.com/intelops/qualityTrace/server/variableset" + "github.com/intelops/qualitytrace/server/executor/testrunner" + "github.com/intelops/qualitytrace/server/pkg/maps" + "github.com/intelops/qualitytrace/server/pkg/pipeline" + "github.com/intelops/qualitytrace/server/subscription" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/testsuite" + "github.com/intelops/qualitytrace/server/variableset" ) type testSuiteRunRepository interface { diff --git a/server/executor/test_suite_runner_test.go b/server/executor/test_suite_runner_test.go index 8684b63..c126bb9 100644 --- a/server/executor/test_suite_runner_test.go +++ b/server/executor/test_suite_runner_test.go @@ -8,17 +8,17 @@ import ( "testing" "time" - "github.com/intelops/qualityTrace/server/executor" - "github.com/intelops/qualityTrace/server/executor/testrunner" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/pkg/maps" - "github.com/intelops/qualityTrace/server/pkg/pipeline" - "github.com/intelops/qualityTrace/server/subscription" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/testmock" - "github.com/intelops/qualityTrace/server/testsuite" - "github.com/intelops/qualityTrace/server/variableset" + "github.com/intelops/qualitytrace/server/executor" + "github.com/intelops/qualitytrace/server/executor/testrunner" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/maps" + "github.com/intelops/qualitytrace/server/pkg/pipeline" + "github.com/intelops/qualitytrace/server/subscription" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/testmock" + "github.com/intelops/qualitytrace/server/testsuite" + "github.com/intelops/qualitytrace/server/variableset" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "go.opentelemetry.io/otel/metric/noop" @@ -145,7 +145,7 @@ func runTestSuiteRunnerTest(t *testing.T, withErrors bool, assert func(t *testin metadata := test.RunMetadata{ "environment": "production", - "service": "qualityTrace", + "service": "qualitytrace", } envRepository := variableset.NewRepository(rawDB) diff --git a/server/executor/test_suites_pipeline.go b/server/executor/test_suites_pipeline.go index 31cd246..4ae12f9 100644 --- a/server/executor/test_suites_pipeline.go +++ b/server/executor/test_suites_pipeline.go @@ -3,11 +3,11 @@ package executor import ( "context" - "github.com/intelops/qualityTrace/server/executor/testrunner" - "github.com/intelops/qualityTrace/server/pkg/pipeline" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/testsuite" - "github.com/intelops/qualityTrace/server/variableset" + "github.com/intelops/qualitytrace/server/executor/testrunner" + "github.com/intelops/qualitytrace/server/pkg/pipeline" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/testsuite" + "github.com/intelops/qualitytrace/server/variableset" ) type TestSuitesPipeline struct { diff --git a/server/executor/testrunner/main_test.go b/server/executor/testrunner/main_test.go index 92faecd..0616af2 100644 --- a/server/executor/testrunner/main_test.go +++ b/server/executor/testrunner/main_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/intelops/qualityTrace/server/testmock" + "github.com/intelops/qualitytrace/server/testmock" ) func TestMain(m *testing.M) { diff --git a/server/executor/testrunner/testrunner_entities.go b/server/executor/testrunner/testrunner_entities.go index e8b89e5..b7b7fa9 100644 --- a/server/executor/testrunner/testrunner_entities.go +++ b/server/executor/testrunner/testrunner_entities.go @@ -1,7 +1,7 @@ package testrunner import ( - "github.com/intelops/qualityTrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/id" "golang.org/x/exp/slices" ) diff --git a/server/executor/testrunner/testrunner_entities_test.go b/server/executor/testrunner/testrunner_entities_test.go index 21f9eb8..15bf700 100644 --- a/server/executor/testrunner/testrunner_entities_test.go +++ b/server/executor/testrunner/testrunner_entities_test.go @@ -3,7 +3,7 @@ package testrunner_test import ( "testing" - "github.com/intelops/qualityTrace/server/executor/testrunner" + "github.com/intelops/qualitytrace/server/executor/testrunner" "github.com/stretchr/testify/assert" ) diff --git a/server/executor/testrunner/testrunner_repository.go b/server/executor/testrunner/testrunner_repository.go index d849c45..bfbe54b 100644 --- a/server/executor/testrunner/testrunner_repository.go +++ b/server/executor/testrunner/testrunner_repository.go @@ -7,8 +7,8 @@ import ( "errors" "fmt" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/pkg/sqlutil" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/sqlutil" ) func NewRepository(db *sql.DB) *Repository { diff --git a/server/executor/testrunner/testrunner_repository_test.go b/server/executor/testrunner/testrunner_repository_test.go index dd01fb1..5df5232 100644 --- a/server/executor/testrunner/testrunner_repository_test.go +++ b/server/executor/testrunner/testrunner_repository_test.go @@ -5,9 +5,9 @@ import ( "testing" "github.com/gorilla/mux" - "github.com/intelops/qualityTrace/server/executor/testrunner" - "github.com/intelops/qualityTrace/server/resourcemanager" - rmtests "github.com/intelops/qualityTrace/server/resourcemanager/testutil" + "github.com/intelops/qualitytrace/server/executor/testrunner" + "github.com/intelops/qualitytrace/server/resourcemanager" + rmtests "github.com/intelops/qualitytrace/server/resourcemanager/testutil" ) func TestTestRunnerResource(t *testing.T) { diff --git a/server/executor/trace_poller.go b/server/executor/trace_poller.go index a2e3827..a9764ec 100644 --- a/server/executor/trace_poller.go +++ b/server/executor/trace_poller.go @@ -7,13 +7,13 @@ import ( "log" "time" - "github.com/intelops/qualityTrace/agent/tracedb/connection" - "github.com/intelops/qualityTrace/server/executor/pollingprofile" - "github.com/intelops/qualityTrace/server/http/middleware" - "github.com/intelops/qualityTrace/server/model/events" - "github.com/intelops/qualityTrace/server/pkg/pipeline" - "github.com/intelops/qualityTrace/server/subscription" - "github.com/intelops/qualityTrace/server/test" + "github.com/intelops/qualitytrace/agent/tracedb/connection" + "github.com/intelops/qualitytrace/server/executor/pollingprofile" + "github.com/intelops/qualitytrace/server/http/middleware" + "github.com/intelops/qualitytrace/server/model/events" + "github.com/intelops/qualitytrace/server/pkg/pipeline" + "github.com/intelops/qualitytrace/server/subscription" + "github.com/intelops/qualitytrace/server/test" v1 "go.opentelemetry.io/proto/otlp/trace/v1" ) diff --git a/server/executor/tracepollerworker/common.go b/server/executor/tracepollerworker/common.go index e589008..d8f306c 100644 --- a/server/executor/tracepollerworker/common.go +++ b/server/executor/tracepollerworker/common.go @@ -6,14 +6,14 @@ import ( "fmt" "log" - "github.com/intelops/qualityTrace/agent/tracedb" - "github.com/intelops/qualityTrace/agent/tracedb/connection" - "github.com/intelops/qualityTrace/server/datastore" - "github.com/intelops/qualityTrace/server/executor" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/pkg/pipeline" - "github.com/intelops/qualityTrace/server/resourcemanager" - "github.com/intelops/qualityTrace/server/subscription" + "github.com/intelops/qualitytrace/agent/tracedb" + "github.com/intelops/qualitytrace/agent/tracedb/connection" + "github.com/intelops/qualitytrace/server/datastore" + "github.com/intelops/qualitytrace/server/executor" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/pkg/pipeline" + "github.com/intelops/qualitytrace/server/resourcemanager" + "github.com/intelops/qualitytrace/server/subscription" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/trace" @@ -54,7 +54,7 @@ func handleError(ctx context.Context, job executor.Job, err error, state *worker log.Printf("[TracePoller] Test %s Run %d, Error: %s", job.Test.ID, job.Run.ID, err.Error()) span.RecordError(err) - span.SetAttributes(attribute.String("qualityTrace.run.trace_poller.error", err.Error())) + span.SetAttributes(attribute.String("qualitytrace.run.trace_poller.error", err.Error())) } func handleDBError(err error) { @@ -72,18 +72,18 @@ func populateSpan(span trace.Span, job executor.Job, reason string, done *bool) } attrs := []attribute.KeyValue{ - attribute.String("qualityTrace.run.trace_poller.trace_id", job.Run.TraceID.String()), - attribute.String("qualityTrace.run.trace_poller.span_id", job.Run.SpanID.String()), - attribute.String("qualityTrace.run.trace_poller.test_id", string(job.Test.ID)), - attribute.Int("qualityTrace.run.trace_poller.amount_retrieved_spans", spanCount), + attribute.String("qualitytrace.run.trace_poller.trace_id", job.Run.TraceID.String()), + attribute.String("qualitytrace.run.trace_poller.span_id", job.Run.SpanID.String()), + attribute.String("qualitytrace.run.trace_poller.test_id", string(job.Test.ID)), + attribute.Int("qualitytrace.run.trace_poller.amount_retrieved_spans", spanCount), } if done != nil { - attrs = append(attrs, attribute.Bool("qualityTrace.run.trace_poller.succesful", *done)) + attrs = append(attrs, attribute.Bool("qualitytrace.run.trace_poller.succesful", *done)) } if reason != "" { - attrs = append(attrs, attribute.String("qualityTrace.run.trace_poller.finish_reason", reason)) + attrs = append(attrs, attribute.String("qualitytrace.run.trace_poller.finish_reason", reason)) } span.SetAttributes(attrs...) diff --git a/server/executor/tracepollerworker/evaluator_worker.go b/server/executor/tracepollerworker/evaluator_worker.go index f2b5d0f..fadd9cf 100644 --- a/server/executor/tracepollerworker/evaluator_worker.go +++ b/server/executor/tracepollerworker/evaluator_worker.go @@ -7,16 +7,16 @@ import ( "log" "time" - "github.com/intelops/qualityTrace/agent/tracedb" - "github.com/intelops/qualityTrace/server/datastore" - "github.com/intelops/qualityTrace/server/executor" - "github.com/intelops/qualityTrace/server/http/middleware" - "github.com/intelops/qualityTrace/server/model/events" - "github.com/intelops/qualityTrace/server/pkg/pipeline" - "github.com/intelops/qualityTrace/server/resourcemanager" - "github.com/intelops/qualityTrace/server/subscription" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/agent/tracedb" + "github.com/intelops/qualitytrace/server/datastore" + "github.com/intelops/qualitytrace/server/executor" + "github.com/intelops/qualitytrace/server/http/middleware" + "github.com/intelops/qualitytrace/server/model/events" + "github.com/intelops/qualitytrace/server/pkg/pipeline" + "github.com/intelops/qualitytrace/server/resourcemanager" + "github.com/intelops/qualitytrace/server/subscription" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/traces" "go.opentelemetry.io/otel/trace" ) @@ -185,7 +185,7 @@ func (w *tracePollerEvaluatorWorker) donePolling(ctx context.Context, reason str log.Printf("[TracePoller] Test %s Run %d: Sorting complete", job.Test.ID, job.Run.ID) if !job.Run.Trace.HasRootSpan() { - newRoot := test.NewTracetestRootSpan(job.Run) + newRoot := test.NewQualitytraceRootSpan(job.Run) job.Run.Trace = job.Run.Trace.InsertRootSpan(newRoot) } else { job.Run.Trace.RootSpan = traces.AugmentRootSpan(job.Run.Trace.RootSpan, job.Run.TriggerResult) diff --git a/server/executor/tracepollerworker/fetcher_worker.go b/server/executor/tracepollerworker/fetcher_worker.go index aa2e37a..67b5436 100644 --- a/server/executor/tracepollerworker/fetcher_worker.go +++ b/server/executor/tracepollerworker/fetcher_worker.go @@ -4,12 +4,12 @@ import ( "context" "log" - "github.com/intelops/qualityTrace/agent/tracedb" - "github.com/intelops/qualityTrace/server/datastore" - "github.com/intelops/qualityTrace/server/executor" - "github.com/intelops/qualityTrace/server/pkg/pipeline" - "github.com/intelops/qualityTrace/server/resourcemanager" - "github.com/intelops/qualityTrace/server/subscription" + "github.com/intelops/qualitytrace/agent/tracedb" + "github.com/intelops/qualitytrace/server/datastore" + "github.com/intelops/qualitytrace/server/executor" + "github.com/intelops/qualitytrace/server/pkg/pipeline" + "github.com/intelops/qualitytrace/server/resourcemanager" + "github.com/intelops/qualitytrace/server/subscription" "go.opentelemetry.io/otel/trace" ) diff --git a/server/executor/tracepollerworker/selector_based_polling_stop_strategy.go b/server/executor/tracepollerworker/selector_based_polling_stop_strategy.go index 1e8ea5c..415fdbd 100644 --- a/server/executor/tracepollerworker/selector_based_polling_stop_strategy.go +++ b/server/executor/tracepollerworker/selector_based_polling_stop_strategy.go @@ -4,11 +4,11 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/agent/tracedb" - "github.com/intelops/qualityTrace/server/assertions/selectors" - "github.com/intelops/qualityTrace/server/executor" - "github.com/intelops/qualityTrace/server/model/events" - "github.com/intelops/qualityTrace/server/test" + "github.com/intelops/qualitytrace/agent/tracedb" + "github.com/intelops/qualitytrace/server/assertions/selectors" + "github.com/intelops/qualitytrace/server/executor" + "github.com/intelops/qualitytrace/server/model/events" + "github.com/intelops/qualitytrace/server/test" ) type SelectorBasedPollingStopStrategy struct { diff --git a/server/executor/tracepollerworker/span_count_polling_stop_strategy.go b/server/executor/tracepollerworker/span_count_polling_stop_strategy.go index f6c8d68..df432bb 100644 --- a/server/executor/tracepollerworker/span_count_polling_stop_strategy.go +++ b/server/executor/tracepollerworker/span_count_polling_stop_strategy.go @@ -5,8 +5,8 @@ import ( "fmt" "log" - "github.com/intelops/qualityTrace/agent/tracedb" - "github.com/intelops/qualityTrace/server/executor" + "github.com/intelops/qualitytrace/agent/tracedb" + "github.com/intelops/qualitytrace/server/executor" ) type SpanCountPollingStopStrategy struct{} diff --git a/server/executor/tracepollerworker/starter_worker.go b/server/executor/tracepollerworker/starter_worker.go index ed4ae4b..40880fb 100644 --- a/server/executor/tracepollerworker/starter_worker.go +++ b/server/executor/tracepollerworker/starter_worker.go @@ -7,15 +7,15 @@ import ( "log" "sync" - "github.com/intelops/qualityTrace/agent/tracedb" - "github.com/intelops/qualityTrace/server/datastore" - "github.com/intelops/qualityTrace/server/executor" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/model/events" - "github.com/intelops/qualityTrace/server/pkg/pipeline" - "github.com/intelops/qualityTrace/server/resourcemanager" - "github.com/intelops/qualityTrace/server/subscription" - "github.com/intelops/qualityTrace/server/testconnection" + "github.com/intelops/qualitytrace/agent/tracedb" + "github.com/intelops/qualitytrace/server/datastore" + "github.com/intelops/qualitytrace/server/executor" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/model/events" + "github.com/intelops/qualitytrace/server/pkg/pipeline" + "github.com/intelops/qualitytrace/server/resourcemanager" + "github.com/intelops/qualitytrace/server/subscription" + "github.com/intelops/qualitytrace/server/testconnection" "go.opentelemetry.io/otel/trace" ) diff --git a/server/executor/trigger/grpc.go b/server/executor/trigger/grpc.go index a0c41f5..e3425ae 100644 --- a/server/executor/trigger/grpc.go +++ b/server/executor/trigger/grpc.go @@ -11,8 +11,8 @@ import ( "github.com/fullstorydev/grpcurl" "github.com/golang/protobuf/jsonpb" "github.com/golang/protobuf/proto" - "github.com/intelops/qualityTrace/agent/workers/trigger" - "github.com/intelops/qualityTrace/server/test" + "github.com/intelops/qualitytrace/agent/workers/trigger" + "github.com/intelops/qualitytrace/server/test" "github.com/jhump/protoreflect/desc" "go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc" "google.golang.org/grpc" @@ -94,8 +94,8 @@ func (te *grpcTriggerer) Trigger(ctx context.Context, test test.Test, opts *Trig } response.SpanAttributes = map[string]string{ - "qualityTrace.run.trigger.grpc.response_status_code": strconv.Itoa(int(h.respCode)), - "qualityTrace.run.trigger.grpc.response_status": h.respCode.String(), + "qualitytrace.run.trigger.grpc.response_status_code": strconv.Itoa(int(h.respCode)), + "qualitytrace.run.trigger.grpc.response_status": h.respCode.String(), } return response, nil diff --git a/server/executor/trigger/http.go b/server/executor/trigger/http.go index e2bc4f0..68c227a 100644 --- a/server/executor/trigger/http.go +++ b/server/executor/trigger/http.go @@ -13,9 +13,9 @@ import ( "time" "github.com/goware/urlx" - "github.com/intelops/qualityTrace/agent/workers/trigger" - "github.com/intelops/qualityTrace/server/expression" - "github.com/intelops/qualityTrace/server/test" + "github.com/intelops/qualitytrace/agent/workers/trigger" + "github.com/intelops/qualitytrace/server/expression" + "github.com/intelops/qualitytrace/server/test" "go.opentelemetry.io/otel/propagation" "go.opentelemetry.io/otel/trace" ) @@ -51,7 +51,7 @@ func newSpanContext(ctx context.Context) trace.SpanContext { sid = spanCtx.SpanID() } - tracestate, _ := trace.ParseTraceState("qualityTrace=true") + tracestate, _ := trace.ParseTraceState("qualitytrace=true") var tf trace.TraceFlags return trace.NewSpanContext(trace.SpanContextConfig{ TraceID: tid, @@ -110,7 +110,7 @@ func (te *httpTriggerer) Trigger(ctx context.Context, test test.Test, opts *Trig mapped := mapResp(resp) response.Result.HTTP = &mapped response.SpanAttributes = map[string]string{ - "qualityTrace.run.trigger.http.response_code": strconv.Itoa(resp.StatusCode), + "qualitytrace.run.trigger.http.response_code": strconv.Itoa(resp.StatusCode), } return response, nil diff --git a/server/executor/trigger/http_test.go b/server/executor/trigger/http_test.go index 0f0ee7c..71597ea 100644 --- a/server/executor/trigger/http_test.go +++ b/server/executor/trigger/http_test.go @@ -7,10 +7,10 @@ import ( "net/http/httptest" "testing" - "github.com/intelops/qualityTrace/agent/workers/trigger" - triggerer "github.com/intelops/qualityTrace/server/executor/trigger" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/test" + "github.com/intelops/qualitytrace/agent/workers/trigger" + triggerer "github.com/intelops/qualitytrace/server/executor/trigger" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/test" "github.com/stretchr/testify/assert" "go.opentelemetry.io/otel/trace" ) diff --git a/server/executor/trigger/instrument.go b/server/executor/trigger/instrument.go index 1f8dbc4..3724e40 100644 --- a/server/executor/trigger/instrument.go +++ b/server/executor/trigger/instrument.go @@ -4,9 +4,9 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/agent/workers/trigger" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/agent/workers/trigger" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/traces" "go.opentelemetry.io/contrib/propagators/aws/xray" "go.opentelemetry.io/contrib/propagators/b3" "go.opentelemetry.io/contrib/propagators/jaeger" @@ -42,7 +42,7 @@ func (t *instrumentedTriggerer) Trigger(ctx context.Context, test test.Test, opt _, span := t.tracer.Start(ctx, "Trigger test") defer span.End() - tracestate, err := trace.ParseTraceState("qualityTrace=true") + tracestate, err := trace.ParseTraceState("qualitytrace=true") if err != nil { return Response{}, fmt.Errorf("could not create tracestate: %w", err) } @@ -62,7 +62,7 @@ func (t *instrumentedTriggerer) Trigger(ctx context.Context, test test.Test, opt triggerSpanCtx, triggerSpan := t.triggerSpanTracer.Start(triggerCtx, traces.TriggerSpanName) defer triggerSpan.End() - triggerSpan.SpanContext().TraceState().Insert("qualityTrace", "true") + triggerSpan.SpanContext().TraceState().Insert("qualitytrace", "true") tid := triggerSpan.SpanContext().TraceID() sid := triggerSpan.SpanContext().SpanID() @@ -73,15 +73,15 @@ func (t *instrumentedTriggerer) Trigger(ctx context.Context, test test.Test, opt resp.SpanID = sid attrs := []attribute.KeyValue{ - attribute.String("qualityTrace.run.trigger.trace_id", tid.String()), - attribute.String("qualityTrace.run.trigger.span_id", sid.String()), - attribute.String("qualityTrace.run.trigger.test_id", string(test.ID)), - attribute.String("qualityTrace.run.trigger.type", string(t.triggerer.Type())), + attribute.String("qualitytrace.run.trigger.trace_id", tid.String()), + attribute.String("qualitytrace.run.trigger.span_id", sid.String()), + attribute.String("qualitytrace.run.trigger.test_id", string(test.ID)), + attribute.String("qualitytrace.run.trigger.type", string(t.triggerer.Type())), } if err != nil { span.RecordError(err) - attrs = append(attrs, attribute.String("qualityTrace.run.trigger.error", err.Error())) + attrs = append(attrs, attribute.String("qualitytrace.run.trigger.error", err.Error())) } for k, v := range resp.SpanAttributes { diff --git a/server/executor/trigger/kafka.go b/server/executor/trigger/kafka.go index fac95e9..686309e 100644 --- a/server/executor/trigger/kafka.go +++ b/server/executor/trigger/kafka.go @@ -4,9 +4,9 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/agent/workers/trigger" - "github.com/intelops/qualityTrace/agent/workers/trigger/kafka" - "github.com/intelops/qualityTrace/server/test" + "github.com/intelops/qualitytrace/agent/workers/trigger" + "github.com/intelops/qualitytrace/agent/workers/trigger/kafka" + "github.com/intelops/qualitytrace/server/test" "go.opentelemetry.io/otel/propagation" ) @@ -47,8 +47,8 @@ func (t *KafkaTriggerer) Trigger(ctx context.Context, test test.Test, opts *Trig } response.SpanAttributes = map[string]string{ - "qualityTrace.run.trigger.kafka.partition": result.Partition, - "qualityTrace.run.trigger.kafka.offset": result.Offset, + "qualitytrace.run.trigger.kafka.partition": result.Partition, + "qualitytrace.run.trigger.kafka.offset": result.Offset, } return response, nil diff --git a/server/executor/trigger/traceid.go b/server/executor/trigger/traceid.go index 79f4890..3fec7db 100644 --- a/server/executor/trigger/traceid.go +++ b/server/executor/trigger/traceid.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/agent/workers/trigger" - "github.com/intelops/qualityTrace/server/test" + "github.com/intelops/qualitytrace/agent/workers/trigger" + "github.com/intelops/qualitytrace/server/test" ) const TRACEID_EXPRESSION = "${env:TRACE_ID}" diff --git a/server/executor/trigger/triggerer.go b/server/executor/trigger/triggerer.go index 063c884..a86cea5 100644 --- a/server/executor/trigger/triggerer.go +++ b/server/executor/trigger/triggerer.go @@ -6,9 +6,9 @@ import ( "fmt" "sync" - "github.com/intelops/qualityTrace/agent/workers/trigger" - "github.com/intelops/qualityTrace/server/expression" - "github.com/intelops/qualityTrace/server/test" + "github.com/intelops/qualitytrace/agent/workers/trigger" + "github.com/intelops/qualitytrace/server/expression" + "github.com/intelops/qualitytrace/server/test" "go.opentelemetry.io/otel/trace" ) diff --git a/server/executor/trigger_executer_worker.go b/server/executor/trigger_executer_worker.go index d76cd56..5688421 100644 --- a/server/executor/trigger_executer_worker.go +++ b/server/executor/trigger_executer_worker.go @@ -8,11 +8,11 @@ import ( "os" "strings" - "github.com/intelops/qualityTrace/agent/workers/trigger" - triggerer "github.com/intelops/qualityTrace/server/executor/trigger" - "github.com/intelops/qualityTrace/server/model/events" - "github.com/intelops/qualityTrace/server/pkg/pipeline" - "github.com/intelops/qualityTrace/server/test" + "github.com/intelops/qualitytrace/agent/workers/trigger" + triggerer "github.com/intelops/qualitytrace/server/executor/trigger" + "github.com/intelops/qualitytrace/server/model/events" + "github.com/intelops/qualitytrace/server/pkg/pipeline" + "github.com/intelops/qualitytrace/server/test" "go.opentelemetry.io/otel/trace" ) diff --git a/server/executor/trigger_resolver_worker.go b/server/executor/trigger_resolver_worker.go index 4ab4ff4..c590462 100644 --- a/server/executor/trigger_resolver_worker.go +++ b/server/executor/trigger_resolver_worker.go @@ -4,13 +4,13 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/agent/tracedb" - "github.com/intelops/qualityTrace/server/datastore" - triggerer "github.com/intelops/qualityTrace/server/executor/trigger" - "github.com/intelops/qualityTrace/server/expression" - "github.com/intelops/qualityTrace/server/model/events" - "github.com/intelops/qualityTrace/server/pkg/pipeline" - "github.com/intelops/qualityTrace/server/test" + "github.com/intelops/qualitytrace/agent/tracedb" + "github.com/intelops/qualitytrace/server/datastore" + triggerer "github.com/intelops/qualitytrace/server/executor/trigger" + "github.com/intelops/qualitytrace/server/expression" + "github.com/intelops/qualitytrace/server/model/events" + "github.com/intelops/qualitytrace/server/pkg/pipeline" + "github.com/intelops/qualitytrace/server/test" "go.opentelemetry.io/otel/trace" ) diff --git a/server/executor/trigger_result_processor_worker.go b/server/executor/trigger_result_processor_worker.go index 1c7d6db..41e8ae1 100644 --- a/server/executor/trigger_result_processor_worker.go +++ b/server/executor/trigger_result_processor_worker.go @@ -4,13 +4,13 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/agent/workers/trigger" - "github.com/intelops/qualityTrace/server/http/middleware" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/model/events" - "github.com/intelops/qualityTrace/server/pkg/pipeline" - "github.com/intelops/qualityTrace/server/subscription" - "github.com/intelops/qualityTrace/server/test" + "github.com/intelops/qualitytrace/agent/workers/trigger" + "github.com/intelops/qualitytrace/server/http/middleware" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/model/events" + "github.com/intelops/qualitytrace/server/pkg/pipeline" + "github.com/intelops/qualitytrace/server/subscription" + "github.com/intelops/qualitytrace/server/test" "go.opentelemetry.io/otel/trace" ) diff --git a/server/executor/worker_metric_middleware.go b/server/executor/worker_metric_middleware.go index a60e110..eadd290 100644 --- a/server/executor/worker_metric_middleware.go +++ b/server/executor/worker_metric_middleware.go @@ -5,7 +5,7 @@ import ( "fmt" "time" - "github.com/intelops/qualityTrace/server/pkg/pipeline" + "github.com/intelops/qualitytrace/server/pkg/pipeline" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/metric" ) @@ -30,7 +30,7 @@ func NewWorkerMetricMiddlewareBuilder(meter metric.Meter) WorkerMiddlewareBuilde } func (b *metricWorkerMiddlewareBuilder) New(name string, next pipeline.StepProcessor[Job]) pipeline.StepProcessor[Job] { - metricPrefix := fmt.Sprintf("qualityTrace.worker.%s", name) + metricPrefix := fmt.Sprintf("qualitytrace.worker.%s", name) latencyHistogram, _ := b.meter.Int64Histogram(fmt.Sprintf("%s.latency", metricPrefix)) diff --git a/server/expression/attribute.go b/server/expression/attribute.go index 937c54f..7fcab58 100644 --- a/server/expression/attribute.go +++ b/server/expression/attribute.go @@ -3,7 +3,7 @@ package expression import "strings" const ( - metaPrefix = "qualityTrace.selected_spans." + metaPrefix = "qualitytrace.selected_spans." metaPrefixLen = len(metaPrefix) ) diff --git a/server/expression/benchmark_test.go b/server/expression/benchmark_test.go index 1dd3a1f..77c8958 100644 --- a/server/expression/benchmark_test.go +++ b/server/expression/benchmark_test.go @@ -3,8 +3,8 @@ package expression_test import ( "testing" - "github.com/intelops/qualityTrace/server/expression" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/expression" + "github.com/intelops/qualitytrace/server/traces" ) func BenchmarkSimpleExpressions(b *testing.B) { diff --git a/server/expression/comparison.go b/server/expression/comparison.go index 53d7e73..94f5655 100644 --- a/server/expression/comparison.go +++ b/server/expression/comparison.go @@ -3,9 +3,9 @@ package expression import ( "fmt" - "github.com/intelops/qualityTrace/server/assertions/comparator" - "github.com/intelops/qualityTrace/server/expression/types" - "github.com/intelops/qualityTrace/server/expression/value" + "github.com/intelops/qualitytrace/server/assertions/comparator" + "github.com/intelops/qualitytrace/server/expression/types" + "github.com/intelops/qualitytrace/server/expression/value" ) func compare(comparatorName string, leftValue, rightValue value.Value) error { diff --git a/server/expression/data_store.go b/server/expression/data_store.go index d8cfac6..d66f9ea 100644 --- a/server/expression/data_store.go +++ b/server/expression/data_store.go @@ -4,8 +4,8 @@ import ( "fmt" "strconv" - "github.com/intelops/qualityTrace/server/traces" - "github.com/intelops/qualityTrace/server/variableset" + "github.com/intelops/qualitytrace/server/traces" + "github.com/intelops/qualitytrace/server/variableset" ) type DataStore interface { @@ -14,7 +14,7 @@ type DataStore interface { } var attributeAlias = map[string]string{ - "name": "qualityTrace.span.name", + "name": "qualitytrace.span.name", } type AttributeDataStore struct { diff --git a/server/expression/executor.go b/server/expression/executor.go index a5d405d..e8e9988 100644 --- a/server/expression/executor.go +++ b/server/expression/executor.go @@ -5,10 +5,10 @@ import ( "fmt" "strconv" - "github.com/intelops/qualityTrace/server/expression/functions" - "github.com/intelops/qualityTrace/server/expression/types" - "github.com/intelops/qualityTrace/server/expression/value" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/expression/functions" + "github.com/intelops/qualitytrace/server/expression/types" + "github.com/intelops/qualitytrace/server/expression/value" + "github.com/intelops/qualitytrace/server/traces" ) var ErrNoMatch error = errors.New("no match") @@ -47,7 +47,7 @@ func (e Executor) Statement(statement string) (string, string, error) { return "", "", err } - // https://github.com/intelops/qualityTrace/issues/1203 + // https://github.com/intelops/qualitytrace/issues/1203 if leftValue.Type() == types.TypeDuration || rightValue.Type() == types.TypeDuration { leftValue = value.New(types.TypedValue{ Value: getRoundedDurationValue(leftValue.String()), diff --git a/server/expression/executor_test.go b/server/expression/executor_test.go index 976efe6..d41d616 100644 --- a/server/expression/executor_test.go +++ b/server/expression/executor_test.go @@ -7,10 +7,10 @@ import ( "testing" "time" - "github.com/intelops/qualityTrace/server/expression" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/traces" - "github.com/intelops/qualityTrace/server/variableset" + "github.com/intelops/qualitytrace/server/expression" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/traces" + "github.com/intelops/qualitytrace/server/variableset" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -187,18 +187,18 @@ func TestFilterExecution(t *testing.T) { Attributes: traces.NewAttributes(), } - jsonResponseSpan.Attributes.Set("qualityTrace.response.body", `{"results":[{"count(*)":{"result":3}}]}`) + jsonResponseSpan.Attributes.Set("qualitytrace.response.body", `{"results":[{"count(*)":{"result":3}}]}`) testCases := []executorTestCase{ { Name: "should_extract_id_from_json", - Query: `attr:qualityTrace.response.body | json_path '.id' = 8`, + Query: `attr:qualitytrace.response.body | json_path '.id' = 8`, ShouldPass: true, AttributeDataStore: expression.AttributeDataStore{ Span: traces.Span{ ID: id.NewRandGenerator().SpanID(), Attributes: traces.NewAttributes(map[string]string{ - "qualityTrace.response.body": `{"id": 8, "name": "john doe"}`, + "qualitytrace.response.body": `{"id": 8, "name": "john doe"}`, }), }, }, @@ -225,7 +225,7 @@ func TestFilterExecution(t *testing.T) { }, { Name: "should_unescape_filter_arg", - Query: `attr:qualityTrace.response.body | json_path '$.results[0][\'count(*)\'].result' = 3`, + Query: `attr:qualitytrace.response.body | json_path '$.results[0][\'count(*)\'].result' = 3`, ShouldPass: true, AttributeDataStore: expression.AttributeDataStore{ Span: jsonResponseSpan, @@ -240,7 +240,7 @@ func TestMetaAttributesExecution(t *testing.T) { testCases := []executorTestCase{ { Name: "should_support_count_meta_attribute", - Query: `attr:qualityTrace.selected_spans.count = 3`, + Query: `attr:qualitytrace.selected_spans.count = 3`, ShouldPass: true, AttributeDataStore: expression.AttributeDataStore{}, MetaAttributesDataStore: expression.MetaAttributesDataStore{ @@ -254,7 +254,7 @@ func TestMetaAttributesExecution(t *testing.T) { }, { Name: "should_support_count_meta_attribute", - Query: `"Selected matched ${attr:qualityTrace.selected_spans.count} spans" = "Selected matched 2 spans"`, + Query: `"Selected matched ${attr:qualitytrace.selected_spans.count} spans" = "Selected matched 2 spans"`, ShouldPass: true, AttributeDataStore: expression.AttributeDataStore{}, MetaAttributesDataStore: expression.MetaAttributesDataStore{ @@ -432,12 +432,12 @@ func TestJSONExecution(t *testing.T) { }, { Name: "should_identify_json_input_from_attribute", - Query: `attr:qualityTrace.response.body contains '{"name": "john"}'`, + Query: `attr:qualitytrace.response.body contains '{"name": "john"}'`, ShouldPass: true, AttributeDataStore: expression.AttributeDataStore{ Span: traces.Span{ ID: id.NewRandGenerator().SpanID(), - Attributes: traces.NewAttributes().Set("qualityTrace.response.body", `{"name": "john", "age": 32, "email": "john@company.com"}`), + Attributes: traces.NewAttributes().Set("qualitytrace.response.body", `{"name": "john", "age": 32, "email": "john@company.com"}`), }, }, }, @@ -534,13 +534,13 @@ func TestResolveStatementFilterExecution(t *testing.T) { testCases := []executorTestCase{ { Name: "should_extract_id_from_json", - Query: `attr:qualityTrace.response.body`, + Query: `attr:qualitytrace.response.body`, ShouldPass: true, AttributeDataStore: expression.AttributeDataStore{ Span: traces.Span{ ID: id.NewRandGenerator().SpanID(), Attributes: traces.NewAttributes(map[string]string{ - "qualityTrace.response.body": `{"id": 8, "name": "john doe"}`, + "qualitytrace.response.body": `{"id": 8, "name": "john doe"}`, }), }, }, diff --git a/server/expression/filters.go b/server/expression/filters.go index fd840e4..ad74308 100644 --- a/server/expression/filters.go +++ b/server/expression/filters.go @@ -3,8 +3,8 @@ package expression import ( "fmt" - "github.com/intelops/qualityTrace/server/expression/filters" - "github.com/intelops/qualityTrace/server/expression/value" + "github.com/intelops/qualitytrace/server/expression/filters" + "github.com/intelops/qualitytrace/server/expression/value" ) type filterFn func(input value.Value, args ...string) (value.Value, error) diff --git a/server/expression/filters/get_index.go b/server/expression/filters/get_index.go index 0778f16..c6a5c97 100644 --- a/server/expression/filters/get_index.go +++ b/server/expression/filters/get_index.go @@ -4,7 +4,7 @@ import ( "fmt" "strconv" - "github.com/intelops/qualityTrace/server/expression/value" + "github.com/intelops/qualitytrace/server/expression/value" ) func GetIndex(input value.Value, args ...string) (value.Value, error) { diff --git a/server/expression/filters/get_index_test.go b/server/expression/filters/get_index_test.go index def81dc..3b11807 100644 --- a/server/expression/filters/get_index_test.go +++ b/server/expression/filters/get_index_test.go @@ -3,9 +3,9 @@ package filters_test import ( "testing" - "github.com/intelops/qualityTrace/server/expression/filters" - "github.com/intelops/qualityTrace/server/expression/types" - "github.com/intelops/qualityTrace/server/expression/value" + "github.com/intelops/qualitytrace/server/expression/filters" + "github.com/intelops/qualitytrace/server/expression/types" + "github.com/intelops/qualitytrace/server/expression/value" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/server/expression/filters/json_path.go b/server/expression/filters/json_path.go index ff49c4c..1c0d6f0 100644 --- a/server/expression/filters/json_path.go +++ b/server/expression/filters/json_path.go @@ -3,7 +3,7 @@ package filters import ( "fmt" - "github.com/intelops/qualityTrace/server/expression/value" + "github.com/intelops/qualitytrace/server/expression/value" "github.com/ohler55/ojg/jp" "github.com/ohler55/ojg/oj" ) diff --git a/server/expression/filters/json_path_test.go b/server/expression/filters/json_path_test.go index 9b4b7fb..d89efd2 100644 --- a/server/expression/filters/json_path_test.go +++ b/server/expression/filters/json_path_test.go @@ -3,8 +3,8 @@ package filters_test import ( "testing" - "github.com/intelops/qualityTrace/server/expression/filters" - "github.com/intelops/qualityTrace/server/expression/value" + "github.com/intelops/qualitytrace/server/expression/filters" + "github.com/intelops/qualitytrace/server/expression/value" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -18,27 +18,27 @@ func TestJSONPath(t *testing.T) { }{ { Name: "should_extract_unique_field_from_object", - JSON: `{ "id": 38, "name": "Tracetest" }`, + JSON: `{ "id": 38, "name": "Qualitytrace" }`, Query: `.id`, ExpectedOutput: `38`, }, { Name: "should_extract_unique_field_from_array", - JSON: `{ "array": [ { "id": 38, "name": "Tracetest" } ] }`, + JSON: `{ "array": [ { "id": 38, "name": "Qualitytrace" } ] }`, Query: `$.array[0].id`, ExpectedOutput: `38`, }, { Name: "should_extract_multiple_values_from_array", - JSON: `{ "array": [ { "id": 38, "name": "Tracetest" }, {"id": 39, "name": "Kusk"} ] }`, + JSON: `{ "array": [ { "id": 38, "name": "Qualitytrace" }, {"id": 39, "name": "Kusk"} ] }`, Query: `$.array[*].id`, ExpectedOutput: `[38, 39]`, }, { Name: "should_extract_multiple_fields_from_array", - JSON: `{ "array": [ { "id": 38, "name": "Tracetest" }, {"id": 39, "name": "Kusk"} ] }`, + JSON: `{ "array": [ { "id": 38, "name": "Qualitytrace" }, {"id": 39, "name": "Kusk"} ] }`, Query: `$.array[*]..['id', 'name']`, - ExpectedOutput: `[38, "Tracetest", 39, "Kusk"]`, + ExpectedOutput: `[38, "Qualitytrace", 39, "Kusk"]`, }, } diff --git a/server/expression/filters/length.go b/server/expression/filters/length.go index 90d900d..8c2ecf2 100644 --- a/server/expression/filters/length.go +++ b/server/expression/filters/length.go @@ -3,8 +3,8 @@ package filters import ( "fmt" - "github.com/intelops/qualityTrace/server/expression/types" - "github.com/intelops/qualityTrace/server/expression/value" + "github.com/intelops/qualitytrace/server/expression/types" + "github.com/intelops/qualitytrace/server/expression/value" ) func Length(input value.Value, args ...string) (value.Value, error) { diff --git a/server/expression/filters/length_test.go b/server/expression/filters/length_test.go index ce8c467..1d87844 100644 --- a/server/expression/filters/length_test.go +++ b/server/expression/filters/length_test.go @@ -3,9 +3,9 @@ package filters_test import ( "testing" - "github.com/intelops/qualityTrace/server/expression/filters" - "github.com/intelops/qualityTrace/server/expression/types" - "github.com/intelops/qualityTrace/server/expression/value" + "github.com/intelops/qualitytrace/server/expression/filters" + "github.com/intelops/qualitytrace/server/expression/types" + "github.com/intelops/qualitytrace/server/expression/value" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/server/expression/filters/regex.go b/server/expression/filters/regex.go index e860241..8e68378 100644 --- a/server/expression/filters/regex.go +++ b/server/expression/filters/regex.go @@ -4,8 +4,8 @@ import ( "fmt" "regexp" - "github.com/intelops/qualityTrace/server/expression/types" - "github.com/intelops/qualityTrace/server/expression/value" + "github.com/intelops/qualitytrace/server/expression/types" + "github.com/intelops/qualitytrace/server/expression/value" ) func Regex(input value.Value, args ...string) (value.Value, error) { diff --git a/server/expression/filters/regex_group.go b/server/expression/filters/regex_group.go index 5e5a07e..3ef9824 100644 --- a/server/expression/filters/regex_group.go +++ b/server/expression/filters/regex_group.go @@ -4,8 +4,8 @@ import ( "fmt" "regexp" - "github.com/intelops/qualityTrace/server/expression/types" - "github.com/intelops/qualityTrace/server/expression/value" + "github.com/intelops/qualitytrace/server/expression/types" + "github.com/intelops/qualitytrace/server/expression/value" ) func RegexGroup(input value.Value, args ...string) (value.Value, error) { diff --git a/server/expression/filters/regex_group_test.go b/server/expression/filters/regex_group_test.go index 29aa861..eefec5a 100644 --- a/server/expression/filters/regex_group_test.go +++ b/server/expression/filters/regex_group_test.go @@ -3,8 +3,8 @@ package filters_test import ( "testing" - "github.com/intelops/qualityTrace/server/expression/filters" - "github.com/intelops/qualityTrace/server/expression/value" + "github.com/intelops/qualitytrace/server/expression/filters" + "github.com/intelops/qualitytrace/server/expression/value" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -18,21 +18,21 @@ func TestRegexGroup(t *testing.T) { }{ { Name: "should_be_able_to_extract_one_group", - Input: `{ "id": 38, "name": "Tracetest" }`, + Input: `{ "id": 38, "name": "Qualitytrace" }`, Regex: `"id": (\d+)`, ExpectedOutput: `38`, }, { Name: "should_be_able_to_extract_one_group_multiple_times", - Input: `[{ "id": 38, "name": "Tracetest" }, { "id": 39, "name": "Kusk" }]`, + Input: `[{ "id": 38, "name": "Qualitytrace" }, { "id": 39, "name": "Kusk" }]`, Regex: `"id": (\d+)`, ExpectedOutput: `[38, 39]`, }, { Name: "should_be_able_to_extract_multiple_groups_multiple_times", - Input: `[{ "id": 38, "name": "Tracetest" }, { "id": 39, "name": "Kusk" }]`, + Input: `[{ "id": 38, "name": "Qualitytrace" }, { "id": 39, "name": "Kusk" }]`, Regex: `"id": (\d+), "name": "(\w+)"`, - ExpectedOutput: `[38, "Tracetest", 39, "Kusk"]`, + ExpectedOutput: `[38, "Qualitytrace", 39, "Kusk"]`, }, } diff --git a/server/expression/filters/regex_test.go b/server/expression/filters/regex_test.go index bd5a31e..2fcdd45 100644 --- a/server/expression/filters/regex_test.go +++ b/server/expression/filters/regex_test.go @@ -3,8 +3,8 @@ package filters_test import ( "testing" - "github.com/intelops/qualityTrace/server/expression/filters" - "github.com/intelops/qualityTrace/server/expression/value" + "github.com/intelops/qualitytrace/server/expression/filters" + "github.com/intelops/qualitytrace/server/expression/value" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -18,13 +18,13 @@ func TestRegex(t *testing.T) { }{ { Name: "should_extract_unique_field_from_JSON", - Input: `{ "id": 38, "name": "Tracetest" }`, + Input: `{ "id": 38, "name": "Qualitytrace" }`, Regex: `"id": \d+`, ExpectedOutput: `"id": 38`, }, { Name: "should_extract_unique_field_from_JSON", - Input: `[{ "id": 38, "name": "Tracetest" }, { "id": 39, "name": "Kusk" }]`, + Input: `[{ "id": 38, "name": "Qualitytrace" }, { "id": 39, "name": "Kusk" }]`, Regex: `"id": \d+`, ExpectedOutput: `[""id": 38", ""id": 39"]`, }, diff --git a/server/expression/filters/type.go b/server/expression/filters/type.go index 9998d55..ddf622c 100644 --- a/server/expression/filters/type.go +++ b/server/expression/filters/type.go @@ -3,8 +3,8 @@ package filters import ( "fmt" - "github.com/intelops/qualityTrace/server/expression/types" - "github.com/intelops/qualityTrace/server/expression/value" + "github.com/intelops/qualitytrace/server/expression/types" + "github.com/intelops/qualitytrace/server/expression/value" ) func Type(input value.Value, args ...string) (value.Value, error) { diff --git a/server/expression/filters/type_test.go b/server/expression/filters/type_test.go index 0a7e191..dbd3c52 100644 --- a/server/expression/filters/type_test.go +++ b/server/expression/filters/type_test.go @@ -3,9 +3,9 @@ package filters_test import ( "testing" - "github.com/intelops/qualityTrace/server/expression/filters" - "github.com/intelops/qualityTrace/server/expression/types" - "github.com/intelops/qualityTrace/server/expression/value" + "github.com/intelops/qualitytrace/server/expression/filters" + "github.com/intelops/qualitytrace/server/expression/types" + "github.com/intelops/qualitytrace/server/expression/value" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/server/expression/functions/function.go b/server/expression/functions/function.go index 44787d2..7c84bb8 100644 --- a/server/expression/functions/function.go +++ b/server/expression/functions/function.go @@ -3,7 +3,7 @@ package functions import ( "fmt" - "github.com/intelops/qualityTrace/server/expression/types" + "github.com/intelops/qualitytrace/server/expression/types" ) type Invoker func(args ...types.TypedValue) string diff --git a/server/expression/functions/function_registry_test.go b/server/expression/functions/function_registry_test.go index e8b718e..cc8f077 100644 --- a/server/expression/functions/function_registry_test.go +++ b/server/expression/functions/function_registry_test.go @@ -4,8 +4,8 @@ import ( "strconv" "testing" - "github.com/intelops/qualityTrace/server/expression/functions" - "github.com/intelops/qualityTrace/server/expression/types" + "github.com/intelops/qualitytrace/server/expression/functions" + "github.com/intelops/qualitytrace/server/expression/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/server/expression/functions/functions.go b/server/expression/functions/functions.go index e3e23fc..431d49c 100644 --- a/server/expression/functions/functions.go +++ b/server/expression/functions/functions.go @@ -6,7 +6,7 @@ import ( "time" "github.com/brianvoe/gofakeit/v6" - "github.com/intelops/qualityTrace/server/expression/types" + "github.com/intelops/qualitytrace/server/expression/types" "gitlab.com/metakeule/fmtdate" ) diff --git a/server/expression/linting/missing_variables.go b/server/expression/linting/missing_variables.go index 541bc13..db1a033 100644 --- a/server/expression/linting/missing_variables.go +++ b/server/expression/linting/missing_variables.go @@ -5,7 +5,7 @@ import ( "reflect" "time" - "github.com/intelops/qualityTrace/server/expression" + "github.com/intelops/qualitytrace/server/expression" ) func DetectMissingVariables(target interface{}, availableVariables []string) []string { diff --git a/server/expression/linting/missing_variables_test.go b/server/expression/linting/missing_variables_test.go index bbbc1bd..b162899 100644 --- a/server/expression/linting/missing_variables_test.go +++ b/server/expression/linting/missing_variables_test.go @@ -4,10 +4,10 @@ import ( "testing" "time" - "github.com/intelops/qualityTrace/agent/workers/trigger" - "github.com/intelops/qualityTrace/server/expression/linting" - "github.com/intelops/qualityTrace/server/pkg/maps" - "github.com/intelops/qualityTrace/server/test" + "github.com/intelops/qualitytrace/agent/workers/trigger" + "github.com/intelops/qualitytrace/server/expression/linting" + "github.com/intelops/qualitytrace/server/pkg/maps" + "github.com/intelops/qualitytrace/server/test" "github.com/stretchr/testify/assert" ) diff --git a/server/expression/operation.go b/server/expression/operation.go index 505cbf8..f47ee37 100644 --- a/server/expression/operation.go +++ b/server/expression/operation.go @@ -5,8 +5,8 @@ import ( "strconv" "strings" - "github.com/intelops/qualityTrace/server/expression/types" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/expression/types" + "github.com/intelops/qualitytrace/server/traces" ) type ExpressionOperation func(types.TypedValue, types.TypedValue) (types.TypedValue, error) diff --git a/server/expression/parser_errors_test.go b/server/expression/parser_errors_test.go index d0d290e..6695110 100644 --- a/server/expression/parser_errors_test.go +++ b/server/expression/parser_errors_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "github.com/intelops/qualityTrace/server/expression" + "github.com/intelops/qualitytrace/server/expression" "github.com/stretchr/testify/assert" ) diff --git a/server/expression/parser_test.go b/server/expression/parser_test.go index 09821fb..aaadeac 100644 --- a/server/expression/parser_test.go +++ b/server/expression/parser_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/server/expression" + "github.com/intelops/qualitytrace/server/expression" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -225,9 +225,9 @@ func TestStringInterpolation(t *testing.T) { }, { Name: "should_support_json_formatting", - Query: `attr:qualityTrace.response.body = '{"userID":"${attr:myapp.myspan.user_id}"}'`, + Query: `attr:qualitytrace.response.body = '{"userID":"${attr:myapp.myspan.user_id}"}'`, ExpectedOutput: expression.Statement{ - Left: attrExpr("qualityTrace.response.body"), + Left: attrExpr("qualitytrace.response.body"), Comparator: "=", Right: &expression.Expr{ Left: &expression.Term{ @@ -281,7 +281,7 @@ func TestFilters(t *testing.T) { }, { Name: "should_allow_filter_on_right_hand_side", - Query: `attr:user_id = attr:qualityTrace.response.body | json_path '.id'`, + Query: `attr:user_id = attr:qualitytrace.response.body | json_path '.id'`, ExpectedOutput: expression.Statement{ Left: &expression.Expr{ Left: &expression.Term{ @@ -291,7 +291,7 @@ func TestFilters(t *testing.T) { Comparator: "=", Right: &expression.Expr{ Left: &expression.Term{ - Attribute: attrp("qualityTrace.response.body"), + Attribute: attrp("qualitytrace.response.body"), }, Filters: []*expression.Filter{ { @@ -386,7 +386,7 @@ func TestFilters(t *testing.T) { }, { Name: "should_allow_filters_inside_string_interpolation", - Query: `attr:message = "welcome to qualityTrace, ${attr:qualityTrace.response.body | json_path '.name'}"`, + Query: `attr:message = "welcome to qualitytrace, ${attr:qualitytrace.response.body | json_path '.name'}"`, ExpectedOutput: expression.Statement{ Left: &expression.Expr{ Left: &expression.Term{ @@ -397,11 +397,11 @@ func TestFilters(t *testing.T) { Right: &expression.Expr{ Left: &expression.Term{ Str: &expression.Str{ - Text: "welcome to qualityTrace, %s", + Text: "welcome to qualitytrace, %s", Args: []expression.Expr{ { Left: &expression.Term{ - Attribute: attrp("qualityTrace.response.body"), + Attribute: attrp("qualitytrace.response.body"), }, Filters: []*expression.Filter{ { diff --git a/server/expression/reflection_test.go b/server/expression/reflection_test.go index ae49163..944a520 100644 --- a/server/expression/reflection_test.go +++ b/server/expression/reflection_test.go @@ -3,7 +3,7 @@ package expression_test import ( "testing" - "github.com/intelops/qualityTrace/server/expression" + "github.com/intelops/qualitytrace/server/expression" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/server/expression/value/value.go b/server/expression/value/value.go index bf66f44..c0e310f 100644 --- a/server/expression/value/value.go +++ b/server/expression/value/value.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/intelops/qualityTrace/server/expression/types" + "github.com/intelops/qualitytrace/server/expression/types" ) type valueType int diff --git a/server/http/controller.go b/server/http/controller.go index 46b6475..0064e91 100644 --- a/server/http/controller.go +++ b/server/http/controller.go @@ -13,24 +13,24 @@ import ( "sync" "time" - "github.com/intelops/qualityTrace/agent/tracedb" - "github.com/intelops/qualityTrace/server/assertions/selectors" - "github.com/intelops/qualityTrace/server/datastore" - "github.com/intelops/qualityTrace/server/executor" - "github.com/intelops/qualityTrace/server/executor/testrunner" - "github.com/intelops/qualityTrace/server/expression" - "github.com/intelops/qualityTrace/server/http/mappings" - "github.com/intelops/qualityTrace/server/http/validation" - "github.com/intelops/qualityTrace/server/junit" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/openapi" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/testconnection" - "github.com/intelops/qualityTrace/server/testsuite" - "github.com/intelops/qualityTrace/server/traces" - "github.com/intelops/qualityTrace/server/variableset" - "github.com/intelops/qualityTrace/server/wizard" + "github.com/intelops/qualitytrace/agent/tracedb" + "github.com/intelops/qualitytrace/server/assertions/selectors" + "github.com/intelops/qualitytrace/server/datastore" + "github.com/intelops/qualitytrace/server/executor" + "github.com/intelops/qualitytrace/server/executor/testrunner" + "github.com/intelops/qualitytrace/server/expression" + "github.com/intelops/qualitytrace/server/http/mappings" + "github.com/intelops/qualitytrace/server/http/validation" + "github.com/intelops/qualitytrace/server/junit" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/openapi" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/testconnection" + "github.com/intelops/qualitytrace/server/testsuite" + "github.com/intelops/qualitytrace/server/traces" + "github.com/intelops/qualitytrace/server/variableset" + "github.com/intelops/qualitytrace/server/wizard" "go.opentelemetry.io/otel/trace" ) diff --git a/server/http/controller_test.go b/server/http/controller_test.go index b901c72..85b02d6 100644 --- a/server/http/controller_test.go +++ b/server/http/controller_test.go @@ -4,15 +4,15 @@ import ( "context" "testing" - "github.com/intelops/qualityTrace/server/assertions/comparator" - "github.com/intelops/qualityTrace/server/http" - "github.com/intelops/qualityTrace/server/http/mappings" - "github.com/intelops/qualityTrace/server/openapi" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/test/mocks" - "github.com/intelops/qualityTrace/server/testdb" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/assertions/comparator" + "github.com/intelops/qualitytrace/server/http" + "github.com/intelops/qualitytrace/server/http/mappings" + "github.com/intelops/qualitytrace/server/openapi" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/test/mocks" + "github.com/intelops/qualitytrace/server/testdb" + "github.com/intelops/qualitytrace/server/traces" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" @@ -30,7 +30,7 @@ var ( ID: id.NewRandGenerator().SpanID(), Name: "POST /pokemon/import", Attributes: traces.NewAttributes(map[string]string{ - "qualityTrace.span.type": "http", + "qualitytrace.span.type": "http", "service.name": "pokeshop", "http.response.body": `{"id":52}`, }), @@ -39,14 +39,14 @@ var ( } ) -// https://github.com/intelops/qualityTrace/issues/617 +// https://github.com/intelops/qualitytrace/issues/617 func TestContains_Issue617(t *testing.T) { spec := openapi.TestSpecs{ Specs: []openapi.TestSpec{ { SelectorParsed: openapi.Selector{ - Query: `span[qualityTrace.span.type = "http" service.name = "pokeshop" name = "POST /pokemon/import"]`, + Query: `span[qualitytrace.span.type = "http" service.name = "pokeshop" name = "POST /pokemon/import"]`, }, Assertions: []string{ `attr:http.response.body contains 52`, @@ -60,12 +60,12 @@ func TestContains_Issue617(t *testing.T) { Results: []openapi.AssertionResultsResultsInner{ { Selector: openapi.Selector{ - Query: `span[qualityTrace.span.type = "http" service.name = "pokeshop" name = "POST /pokemon/import"]`, + Query: `span[qualitytrace.span.type = "http" service.name = "pokeshop" name = "POST /pokemon/import"]`, Structure: []openapi.SpanSelector{ { Filters: []openapi.SelectorFilter{ { - Property: "qualityTrace.span.type", + Property: "qualitytrace.span.type", Operator: "=", Value: "http", }, diff --git a/server/http/custom_routes.go b/server/http/custom_routes.go index f9783f4..b8cb4e4 100644 --- a/server/http/custom_routes.go +++ b/server/http/custom_routes.go @@ -9,9 +9,9 @@ import ( "strconv" "github.com/gorilla/mux" - "github.com/intelops/qualityTrace/server/http/middleware" - "github.com/intelops/qualityTrace/server/openapi" - "github.com/intelops/qualityTrace/server/resourcemanager" + "github.com/intelops/qualitytrace/server/http/middleware" + "github.com/intelops/qualitytrace/server/openapi" + "github.com/intelops/qualitytrace/server/resourcemanager" "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/propagation" diff --git a/server/http/mappings/datastore.go b/server/http/mappings/datastore.go index 18f901a..1361081 100644 --- a/server/http/mappings/datastore.go +++ b/server/http/mappings/datastore.go @@ -5,9 +5,9 @@ import ( "time" "github.com/fluidtruck/deepcopy" - "github.com/intelops/qualityTrace/server/datastore" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/openapi" + "github.com/intelops/qualitytrace/server/datastore" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/openapi" ) func (m *OpenAPI) ConnectionTestResult(in model.ConnectionResult) openapi.ConnectionResult { diff --git a/server/http/mappings/grpc.go b/server/http/mappings/grpc.go index 907de0d..dafc992 100644 --- a/server/http/mappings/grpc.go +++ b/server/http/mappings/grpc.go @@ -1,8 +1,8 @@ package mappings import ( - "github.com/intelops/qualityTrace/agent/workers/trigger" - "github.com/intelops/qualityTrace/server/openapi" + "github.com/intelops/qualitytrace/agent/workers/trigger" + "github.com/intelops/qualitytrace/server/openapi" ) // out diff --git a/server/http/mappings/http.go b/server/http/mappings/http.go index aeeee9d..4e9f4ad 100644 --- a/server/http/mappings/http.go +++ b/server/http/mappings/http.go @@ -1,8 +1,8 @@ package mappings import ( - "github.com/intelops/qualityTrace/agent/workers/trigger" - "github.com/intelops/qualityTrace/server/openapi" + "github.com/intelops/qualitytrace/agent/workers/trigger" + "github.com/intelops/qualitytrace/server/openapi" ) // out diff --git a/server/http/mappings/kafka.go b/server/http/mappings/kafka.go index 9f455b2..2201afe 100644 --- a/server/http/mappings/kafka.go +++ b/server/http/mappings/kafka.go @@ -1,8 +1,8 @@ package mappings import ( - "github.com/intelops/qualityTrace/agent/workers/trigger" - "github.com/intelops/qualityTrace/server/openapi" + "github.com/intelops/qualitytrace/agent/workers/trigger" + "github.com/intelops/qualitytrace/server/openapi" ) // out diff --git a/server/http/mappings/linter.go b/server/http/mappings/linter.go index c821fa5..95e328c 100644 --- a/server/http/mappings/linter.go +++ b/server/http/mappings/linter.go @@ -1,8 +1,8 @@ package mappings import ( - "github.com/intelops/qualityTrace/server/linter/analyzer" - "github.com/intelops/qualityTrace/server/openapi" + "github.com/intelops/qualitytrace/server/linter/analyzer" + "github.com/intelops/qualitytrace/server/openapi" ) func (m OpenAPI) LinterResult(in analyzer.LinterResult) openapi.LinterResult { diff --git a/server/http/mappings/mappings.go b/server/http/mappings/mappings.go index 547a65c..d04094f 100644 --- a/server/http/mappings/mappings.go +++ b/server/http/mappings/mappings.go @@ -1,8 +1,8 @@ package mappings import ( - "github.com/intelops/qualityTrace/server/assertions/comparator" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/assertions/comparator" + "github.com/intelops/qualitytrace/server/traces" ) type Mappings struct { diff --git a/server/http/mappings/mappings_test.go b/server/http/mappings/mappings_test.go index a8cdfe0..7d82b61 100644 --- a/server/http/mappings/mappings_test.go +++ b/server/http/mappings/mappings_test.go @@ -4,10 +4,10 @@ import ( "encoding/json" "testing" - "github.com/intelops/qualityTrace/server/assertions/comparator" - "github.com/intelops/qualityTrace/server/http/mappings" - "github.com/intelops/qualityTrace/server/openapi" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/assertions/comparator" + "github.com/intelops/qualitytrace/server/http/mappings" + "github.com/intelops/qualitytrace/server/openapi" + "github.com/intelops/qualitytrace/server/traces" "github.com/stretchr/testify/require" ) diff --git a/server/http/mappings/test_run_events.go b/server/http/mappings/test_run_events.go index 21b3b37..2a7bf09 100644 --- a/server/http/mappings/test_run_events.go +++ b/server/http/mappings/test_run_events.go @@ -1,8 +1,8 @@ package mappings import ( - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/openapi" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/openapi" ) func (m OpenAPI) TestRunEvents(in []model.TestRunEvent) []openapi.TestRunEvent { diff --git a/server/http/mappings/test_runner.go b/server/http/mappings/test_runner.go index fb7d29f..5a4a56e 100644 --- a/server/http/mappings/test_runner.go +++ b/server/http/mappings/test_runner.go @@ -1,8 +1,8 @@ package mappings import ( - "github.com/intelops/qualityTrace/server/executor/testrunner" - "github.com/intelops/qualityTrace/server/openapi" + "github.com/intelops/qualitytrace/server/executor/testrunner" + "github.com/intelops/qualitytrace/server/openapi" ) func (m OpenAPI) RequiredGatesResult(in testrunner.RequiredGatesResult) openapi.RequiredGatesResult { diff --git a/server/http/mappings/tests.go b/server/http/mappings/tests.go index b39c3f3..458648d 100644 --- a/server/http/mappings/tests.go +++ b/server/http/mappings/tests.go @@ -5,16 +5,16 @@ import ( "strconv" "time" - "github.com/intelops/qualityTrace/agent/workers/trigger" - "github.com/intelops/qualityTrace/server/assertions/comparator" - "github.com/intelops/qualityTrace/server/assertions/selectors" - "github.com/intelops/qualityTrace/server/openapi" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/pkg/maps" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/testsuite" - "github.com/intelops/qualityTrace/server/traces" - "github.com/intelops/qualityTrace/server/variableset" + "github.com/intelops/qualitytrace/agent/workers/trigger" + "github.com/intelops/qualitytrace/server/assertions/comparator" + "github.com/intelops/qualitytrace/server/assertions/selectors" + "github.com/intelops/qualitytrace/server/openapi" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/maps" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/testsuite" + "github.com/intelops/qualitytrace/server/traces" + "github.com/intelops/qualitytrace/server/variableset" "go.opentelemetry.io/otel/trace" ) diff --git a/server/http/mappings/tests_test.go b/server/http/mappings/tests_test.go index 16f3582..91b8801 100644 --- a/server/http/mappings/tests_test.go +++ b/server/http/mappings/tests_test.go @@ -3,10 +3,10 @@ package mappings_test import ( "testing" - "github.com/intelops/qualityTrace/server/http/mappings" - "github.com/intelops/qualityTrace/server/openapi" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/http/mappings" + "github.com/intelops/qualitytrace/server/openapi" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/traces" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -19,7 +19,7 @@ func Test_OpenApiToModel_Outputs(t *testing.T) { SelectorParsed: openapi.Selector{ Query: `span[name="root"]`, }, - Value: "attr:qualityTrace.selected_spans.count", + Value: "attr:qualitytrace.selected_spans.count", }, }, } @@ -28,7 +28,7 @@ func Test_OpenApiToModel_Outputs(t *testing.T) { { Name: "OUTPUT", Selector: `span[name="root"]`, - Value: "attr:qualityTrace.selected_spans.count", + Value: "attr:qualitytrace.selected_spans.count", }, } diff --git a/server/http/mappings/traceid.go b/server/http/mappings/traceid.go index 3ab2da1..1c92aa8 100644 --- a/server/http/mappings/traceid.go +++ b/server/http/mappings/traceid.go @@ -1,8 +1,8 @@ package mappings import ( - "github.com/intelops/qualityTrace/agent/workers/trigger" - "github.com/intelops/qualityTrace/server/openapi" + "github.com/intelops/qualitytrace/agent/workers/trigger" + "github.com/intelops/qualitytrace/server/openapi" ) func (m OpenAPI) TraceIDRequest(in *trigger.TraceIDRequest) openapi.TraceidRequest { diff --git a/server/http/mappings/traces.go b/server/http/mappings/traces.go index 52db0a8..8797344 100644 --- a/server/http/mappings/traces.go +++ b/server/http/mappings/traces.go @@ -3,9 +3,9 @@ package mappings import ( "strconv" - "github.com/intelops/qualityTrace/server/openapi" - "github.com/intelops/qualityTrace/server/pkg/timing" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/openapi" + "github.com/intelops/qualitytrace/server/pkg/timing" + "github.com/intelops/qualitytrace/server/traces" "go.opentelemetry.io/otel/trace" ) diff --git a/server/http/mappings/wizard.go b/server/http/mappings/wizard.go index 4811ef0..202d1e5 100644 --- a/server/http/mappings/wizard.go +++ b/server/http/mappings/wizard.go @@ -1,8 +1,8 @@ package mappings import ( - "github.com/intelops/qualityTrace/server/openapi" - "github.com/intelops/qualityTrace/server/wizard" + "github.com/intelops/qualitytrace/server/openapi" + "github.com/intelops/qualitytrace/server/wizard" ) func (m OpenAPI) Wizard(in *wizard.Wizard) openapi.Wizard { diff --git a/server/http/middleware/analytics.go b/server/http/middleware/analytics.go index a69f6b1..72bd0c4 100644 --- a/server/http/middleware/analytics.go +++ b/server/http/middleware/analytics.go @@ -6,7 +6,7 @@ import ( "regexp" "github.com/gorilla/mux" - "github.com/intelops/qualityTrace/server/analytics" + "github.com/intelops/qualitytrace/server/analytics" ) var ( diff --git a/server/http/middleware/metrics.go b/server/http/middleware/metrics.go index 6664ab2..9f3fa8c 100644 --- a/server/http/middleware/metrics.go +++ b/server/http/middleware/metrics.go @@ -34,7 +34,7 @@ func (m *httpMetricMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request) } if tenantID := TenantIDFromContext(r.Context()); tenantID != "" { - metricAttributes = append(metricAttributes, attribute.String("qualityTrace.tenant_id", tenantID)) + metricAttributes = append(metricAttributes, attribute.String("qualitytrace.tenant_id", tenantID)) } m.requestDurationHistogram.Record(r.Context(), duration.Milliseconds(), metric.WithAttributeSet( diff --git a/server/http/middleware/tenant.go b/server/http/middleware/tenant.go index 7c54764..1e50f13 100644 --- a/server/http/middleware/tenant.go +++ b/server/http/middleware/tenant.go @@ -14,7 +14,7 @@ var ( TenantIDKey key = "tenantID" ) -const HeaderTenantID = "X-Tracetest-TenantID" +const HeaderTenantID = "X-Qualitytrace-TenantID" func TenantMiddleware(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { diff --git a/server/http/middleware/tenant_test.go b/server/http/middleware/tenant_test.go index fbe3077..9602965 100644 --- a/server/http/middleware/tenant_test.go +++ b/server/http/middleware/tenant_test.go @@ -5,7 +5,7 @@ import ( "net/http/httptest" "testing" - "github.com/intelops/qualityTrace/server/http/middleware" + "github.com/intelops/qualitytrace/server/http/middleware" "github.com/stretchr/testify/assert" ) diff --git a/server/http/prefixed_router.go b/server/http/prefixed_router.go index df74663..15130a4 100644 --- a/server/http/prefixed_router.go +++ b/server/http/prefixed_router.go @@ -3,7 +3,7 @@ package http import ( "fmt" - "github.com/intelops/qualityTrace/server/openapi" + "github.com/intelops/qualitytrace/server/openapi" ) type PrefixedRouter struct { diff --git a/server/http/spa.go b/server/http/spa.go index 519ee0c..fcd34e4 100644 --- a/server/http/spa.go +++ b/server/http/spa.go @@ -9,7 +9,7 @@ import ( "strings" "text/template" - "github.com/intelops/qualityTrace/server/analytics" + "github.com/intelops/qualitytrace/server/analytics" ) func jsonEscape(text any) string { diff --git a/server/http/validation/variable.go b/server/http/validation/variable.go index 34790b8..c15129e 100644 --- a/server/http/validation/variable.go +++ b/server/http/validation/variable.go @@ -5,12 +5,12 @@ import ( "database/sql" "errors" - "github.com/intelops/qualityTrace/server/expression/linting" - "github.com/intelops/qualityTrace/server/openapi" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/testsuite" - "github.com/intelops/qualityTrace/server/variableset" + "github.com/intelops/qualitytrace/server/expression/linting" + "github.com/intelops/qualitytrace/server/openapi" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/testsuite" + "github.com/intelops/qualitytrace/server/variableset" ) var ErrMissingVariables = errors.New("variables are missing") diff --git a/server/http/websocket/subscribe.go b/server/http/websocket/subscribe.go index 8f462b4..547a016 100644 --- a/server/http/websocket/subscribe.go +++ b/server/http/websocket/subscribe.go @@ -5,11 +5,11 @@ import ( "fmt" "github.com/gorilla/websocket" - "github.com/intelops/qualityTrace/server/http/mappings" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/subscription" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/testsuite" + "github.com/intelops/qualitytrace/server/http/mappings" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/subscription" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/testsuite" ) type subscriptionMessage struct { diff --git a/server/http/websocket/unsubscribe.go b/server/http/websocket/unsubscribe.go index 6b6d1dd..fb5f01f 100644 --- a/server/http/websocket/unsubscribe.go +++ b/server/http/websocket/unsubscribe.go @@ -5,7 +5,7 @@ import ( "fmt" "github.com/gorilla/websocket" - "github.com/intelops/qualityTrace/server/subscription" + "github.com/intelops/qualitytrace/server/subscription" ) type unsubscribeMessage struct { diff --git a/server/integration/ensure_server_prefix_test.go b/server/integration/ensure_server_prefix_test.go index a0e3faf..361a705 100644 --- a/server/integration/ensure_server_prefix_test.go +++ b/server/integration/ensure_server_prefix_test.go @@ -10,17 +10,17 @@ import ( "time" "github.com/goccy/go-yaml" - "github.com/intelops/qualityTrace/server/app" - "github.com/intelops/qualityTrace/server/datastore" - "github.com/intelops/qualityTrace/server/resourcemanager" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/testmock" + "github.com/intelops/qualitytrace/server/app" + "github.com/intelops/qualitytrace/server/datastore" + "github.com/intelops/qualitytrace/server/resourcemanager" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/testmock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) -func getTracetestApp(options ...testmock.TestingAppOption) (*app.App, error) { - qualityTraceApp, err := testmock.GetTestingApp(options...) +func getQualitytraceApp(options ...testmock.TestingAppOption) (*app.App, error) { + qualitytraceApp, err := testmock.GetTestingApp(options...) if err != nil { return nil, err } @@ -29,24 +29,24 @@ func getTracetestApp(options ...testmock.TestingAppOption) (*app.App, error) { wg.Add(1) go func() { - qualityTraceApp.Start() + qualitytraceApp.Start() time.Sleep(1 * time.Second) wg.Done() }() wg.Wait() - return qualityTraceApp, nil + return qualitytraceApp, nil } func TestServerPrefix(t *testing.T) { - _, err := getTracetestApp( - testmock.WithServerPrefix("/qualityTrace"), + _, err := getQualitytraceApp( + testmock.WithServerPrefix("/qualitytrace"), testmock.WithHttpPort(8000), ) require.NoError(t, err) - expectedEndpoint := "http://localhost:8000/qualityTrace" + expectedEndpoint := "http://localhost:8000/qualitytrace" tests := getTests(t, expectedEndpoint) assert.NotNil(t, tests) diff --git a/server/integration/main_test.go b/server/integration/main_test.go index d6a2041..0d34cc1 100644 --- a/server/integration/main_test.go +++ b/server/integration/main_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/intelops/qualityTrace/server/testmock" + "github.com/intelops/qualitytrace/server/testmock" ) func TestMain(m *testing.M) { diff --git a/server/junit/junit.go b/server/junit/junit.go index 5dffa63..86d8c51 100644 --- a/server/junit/junit.go +++ b/server/junit/junit.go @@ -5,8 +5,8 @@ import ( "errors" "fmt" - "github.com/intelops/qualityTrace/server/assertions/comparator" - "github.com/intelops/qualityTrace/server/test" + "github.com/intelops/qualitytrace/server/assertions/comparator" + "github.com/intelops/qualitytrace/server/test" ) func FromRunResult(t test.Test, run test.Run) ([]byte, error) { diff --git a/server/junit/junit_test.go b/server/junit/junit_test.go index 940921e..3caf583 100644 --- a/server/junit/junit_test.go +++ b/server/junit/junit_test.go @@ -9,10 +9,10 @@ import ( "testing" "time" - "github.com/intelops/qualityTrace/server/assertions/comparator" - "github.com/intelops/qualityTrace/server/junit" - "github.com/intelops/qualityTrace/server/pkg/maps" - "github.com/intelops/qualityTrace/server/test" + "github.com/intelops/qualitytrace/server/assertions/comparator" + "github.com/intelops/qualitytrace/server/junit" + "github.com/intelops/qualitytrace/server/pkg/maps" + "github.com/intelops/qualitytrace/server/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -24,7 +24,7 @@ func TestConversion(t *testing.T) { results := test.RunResults{ Results: (maps.Ordered[test.SpanQuery, []test.AssertionResult]{}).MustAdd( - test.SpanQuery(`span[qualityTrace.span.type = "database"]`), []test.AssertionResult{ + test.SpanQuery(`span[qualitytrace.span.type = "database"]`), []test.AssertionResult{ { Assertion: `attr:db.statement contains "INSERT"`, Results: []test.SpanAssertionResult{ @@ -35,7 +35,7 @@ func TestConversion(t *testing.T) { }, }, { - Assertion: `attr:qualityTrace.span.duration < 500`, + Assertion: `attr:qualitytrace.span.duration < 500`, Results: []test.SpanAssertionResult{ { ObservedValue: "notANumber", @@ -44,7 +44,7 @@ func TestConversion(t *testing.T) { }, }, { - Assertion: `attr:qualityTrace.span.type = "http"`, + Assertion: `attr:qualitytrace.span.type = "http"`, Results: []test.SpanAssertionResult{ { ObservedValue: "database", diff --git a/server/junit/testdata/junit_result.xml b/server/junit/testdata/junit_result.xml index bf42aba..7308bff 100644 --- a/server/junit/testdata/junit_result.xml +++ b/server/junit/testdata/junit_result.xml @@ -1,12 +1,12 @@ - + - + - - + + diff --git a/server/linter/analyzer/analyzer_entities.go b/server/linter/analyzer/analyzer_entities.go index 3ff3521..e805c94 100644 --- a/server/linter/analyzer/analyzer_entities.go +++ b/server/linter/analyzer/analyzer_entities.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/intelops/qualityTrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/id" "golang.org/x/exp/slices" ) diff --git a/server/linter/analyzer/analyzer_entities_test.go b/server/linter/analyzer/analyzer_entities_test.go index 20715cf..d6fdc63 100644 --- a/server/linter/analyzer/analyzer_entities_test.go +++ b/server/linter/analyzer/analyzer_entities_test.go @@ -3,8 +3,8 @@ package analyzer_test import ( "testing" - "github.com/intelops/qualityTrace/server/linter/analyzer" - "github.com/intelops/qualityTrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/linter/analyzer" + "github.com/intelops/qualitytrace/server/pkg/id" "github.com/stretchr/testify/assert" ) diff --git a/server/linter/analyzer/analyzer_repository.go b/server/linter/analyzer/analyzer_repository.go index 6233cd7..3c64744 100644 --- a/server/linter/analyzer/analyzer_repository.go +++ b/server/linter/analyzer/analyzer_repository.go @@ -7,8 +7,8 @@ import ( "errors" "fmt" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/pkg/sqlutil" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/sqlutil" ) type Repository struct { diff --git a/server/linter/analyzer/analyzer_repository_test.go b/server/linter/analyzer/analyzer_repository_test.go index b51e541..f1cd00b 100644 --- a/server/linter/analyzer/analyzer_repository_test.go +++ b/server/linter/analyzer/analyzer_repository_test.go @@ -5,9 +5,9 @@ import ( "testing" "github.com/gorilla/mux" - "github.com/intelops/qualityTrace/server/linter/analyzer" - "github.com/intelops/qualityTrace/server/resourcemanager" - rmtests "github.com/intelops/qualityTrace/server/resourcemanager/testutil" + "github.com/intelops/qualitytrace/server/linter/analyzer" + "github.com/intelops/qualitytrace/server/resourcemanager" + rmtests "github.com/intelops/qualitytrace/server/resourcemanager/testutil" ) func TestLinterResource(t *testing.T) { diff --git a/server/linter/analyzer/analyzer_results_test.go b/server/linter/analyzer/analyzer_results_test.go index b8187ff..c5507e7 100644 --- a/server/linter/analyzer/analyzer_results_test.go +++ b/server/linter/analyzer/analyzer_results_test.go @@ -3,7 +3,7 @@ package analyzer_test import ( "testing" - "github.com/intelops/qualityTrace/server/linter/analyzer" + "github.com/intelops/qualitytrace/server/linter/analyzer" "github.com/stretchr/testify/assert" ) diff --git a/server/linter/analyzer/main_test.go b/server/linter/analyzer/main_test.go index 51e60c1..b80e920 100644 --- a/server/linter/analyzer/main_test.go +++ b/server/linter/analyzer/main_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/intelops/qualityTrace/server/testmock" + "github.com/intelops/qualitytrace/server/testmock" ) func TestMain(m *testing.M) { diff --git a/server/linter/linter.go b/server/linter/linter.go index 55988cf..bc87115 100644 --- a/server/linter/linter.go +++ b/server/linter/linter.go @@ -3,10 +3,10 @@ package linter import ( "context" - "github.com/intelops/qualityTrace/server/linter/analyzer" - "github.com/intelops/qualityTrace/server/linter/plugins" - "github.com/intelops/qualityTrace/server/linter/rules" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/linter/analyzer" + "github.com/intelops/qualitytrace/server/linter/plugins" + "github.com/intelops/qualitytrace/server/linter/rules" + "github.com/intelops/qualitytrace/server/traces" ) var ( diff --git a/server/linter/linter_test.go b/server/linter/linter_test.go index 3ef3a05..70350c8 100644 --- a/server/linter/linter_test.go +++ b/server/linter/linter_test.go @@ -4,11 +4,11 @@ import ( "context" "testing" - "github.com/intelops/qualityTrace/server/linter" - "github.com/intelops/qualityTrace/server/linter/analyzer" - "github.com/intelops/qualityTrace/server/linter/plugins" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/linter" + "github.com/intelops/qualitytrace/server/linter/analyzer" + "github.com/intelops/qualitytrace/server/linter/plugins" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/traces" "github.com/stretchr/testify/assert" "go.opentelemetry.io/otel/trace" ) @@ -79,7 +79,7 @@ func spanWithAttributes(spanType string, attributes map[string]string) traces.Sp span.Attributes.Set(name, value) } - span.Attributes.Set("qualityTrace.span.type", spanType) + span.Attributes.Set("qualitytrace.span.type", spanType) return span } diff --git a/server/linter/plugins/plugins_entities.go b/server/linter/plugins/plugins_entities.go index dd6a91a..b8ab9e8 100644 --- a/server/linter/plugins/plugins_entities.go +++ b/server/linter/plugins/plugins_entities.go @@ -3,9 +3,9 @@ package plugins import ( "context" - "github.com/intelops/qualityTrace/server/linter/analyzer" - "github.com/intelops/qualityTrace/server/linter/rules" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/linter/analyzer" + "github.com/intelops/qualitytrace/server/linter/rules" + "github.com/intelops/qualitytrace/server/traces" ) type BasePlugin struct { diff --git a/server/linter/plugins/plugins_entities_test.go b/server/linter/plugins/plugins_entities_test.go index a6e9321..2ea886a 100644 --- a/server/linter/plugins/plugins_entities_test.go +++ b/server/linter/plugins/plugins_entities_test.go @@ -4,11 +4,11 @@ import ( "context" "testing" - "github.com/intelops/qualityTrace/server/linter/analyzer" - "github.com/intelops/qualityTrace/server/linter/plugins" - "github.com/intelops/qualityTrace/server/linter/rules" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/linter/analyzer" + "github.com/intelops/qualitytrace/server/linter/plugins" + "github.com/intelops/qualitytrace/server/linter/rules" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/traces" "github.com/stretchr/testify/assert" "go.opentelemetry.io/otel/trace" ) @@ -73,7 +73,7 @@ func spanWithAttributes(spanType string, attributes map[string]string) traces.Sp span.Attributes.Set(name, value) } - span.Attributes.Set("qualityTrace.span.type", spanType) + span.Attributes.Set("qualitytrace.span.type", spanType) return span } diff --git a/server/linter/plugins/plugins_registry.go b/server/linter/plugins/plugins_registry.go index 61c8a61..d3ced2a 100644 --- a/server/linter/plugins/plugins_registry.go +++ b/server/linter/plugins/plugins_registry.go @@ -4,9 +4,9 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/server/linter/analyzer" - "github.com/intelops/qualityTrace/server/linter/rules" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/linter/analyzer" + "github.com/intelops/qualitytrace/server/linter/rules" + "github.com/intelops/qualitytrace/server/traces" ) type Plugin interface { diff --git a/server/linter/rules/enforce_dns.go b/server/linter/rules/enforce_dns.go index 72371e0..41e9313 100644 --- a/server/linter/rules/enforce_dns.go +++ b/server/linter/rules/enforce_dns.go @@ -5,8 +5,8 @@ import ( "fmt" "regexp" - "github.com/intelops/qualityTrace/server/linter/analyzer" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/linter/analyzer" + "github.com/intelops/qualitytrace/server/traces" ) type ensuresDnsUsage struct{} diff --git a/server/linter/rules/enforce_secure_protocol.go b/server/linter/rules/enforce_secure_protocol.go index 14c4033..4703036 100644 --- a/server/linter/rules/enforce_secure_protocol.go +++ b/server/linter/rules/enforce_secure_protocol.go @@ -5,8 +5,8 @@ import ( "fmt" "strings" - "github.com/intelops/qualityTrace/server/linter/analyzer" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/linter/analyzer" + "github.com/intelops/qualitytrace/server/traces" ) type enforceHttpsProtocolRule struct{} @@ -29,7 +29,7 @@ func (r enforceHttpsProtocolRule) Evaluate(ctx context.Context, trace traces.Tra if config.ErrorLevel != analyzer.ErrorLevelDisabled { for _, span := range trace.Flat { - if span.Attributes.Get("qualityTrace.span.type") == "http" { + if span.Attributes.Get("qualitytrace.span.type") == "http" { result := r.validate(span) if !result.Passed { passed = false diff --git a/server/linter/rules/ensure_attribute_naming_rule.go b/server/linter/rules/ensure_attribute_naming_rule.go index 1842615..24378a8 100644 --- a/server/linter/rules/ensure_attribute_naming_rule.go +++ b/server/linter/rules/ensure_attribute_naming_rule.go @@ -6,8 +6,8 @@ import ( "regexp" "strings" - "github.com/intelops/qualityTrace/server/linter/analyzer" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/linter/analyzer" + "github.com/intelops/qualitytrace/server/traces" ) type ensureAttributeNamingRule struct{} diff --git a/server/linter/rules/ensure_attribute_naming_rule_test.go b/server/linter/rules/ensure_attribute_naming_rule_test.go index dec21a6..2048638 100644 --- a/server/linter/rules/ensure_attribute_naming_rule_test.go +++ b/server/linter/rules/ensure_attribute_naming_rule_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/intelops/qualityTrace/server/linter/analyzer" - "github.com/intelops/qualityTrace/server/linter/rules" + "github.com/intelops/qualitytrace/server/linter/analyzer" + "github.com/intelops/qualitytrace/server/linter/rules" "github.com/stretchr/testify/assert" ) @@ -52,7 +52,7 @@ func TestEnsureAttributeNamingRule(t *testing.T) { t.Run("attribute named after namespace", func(t *testing.T) { trace := traceWithSpans( - spanWithAttributes("http", map[string]string{"qualityTrace.span": "POST"}), + spanWithAttributes("http", map[string]string{"qualitytrace.span": "POST"}), ) rule := rules.NewEnsureAttributeNamingRule() @@ -60,6 +60,6 @@ func TestEnsureAttributeNamingRule(t *testing.T) { assert.False(t, result.Passed) assert.Len(t, result.Results, 1) - assert.Equal(t, `Attribute "qualityTrace.span" uses the same name as an existing namespace in the same span`, result.Results[0].Errors[0].Description) + assert.Equal(t, `Attribute "qualitytrace.span" uses the same name as an existing namespace in the same span`, result.Results[0].Errors[0].Description) }) } diff --git a/server/linter/rules/ensure_span_naming_rule.go b/server/linter/rules/ensure_span_naming_rule.go index 130014d..941aac8 100644 --- a/server/linter/rules/ensure_span_naming_rule.go +++ b/server/linter/rules/ensure_span_naming_rule.go @@ -5,8 +5,8 @@ import ( "fmt" "strings" - "github.com/intelops/qualityTrace/server/linter/analyzer" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/linter/analyzer" + "github.com/intelops/qualitytrace/server/traces" ) type ensureSpanNamingRule struct{} @@ -36,7 +36,7 @@ func (r ensureSpanNamingRule) Evaluate(ctx context.Context, trace traces.Trace, } func (r ensureSpanNamingRule) validateSpanName(ctx context.Context, span *traces.Span) analyzer.Result { - switch span.Attributes.Get("qualityTrace.span.type") { + switch span.Attributes.Get("qualitytrace.span.type") { case "http": return r.validateHTTPSpanName(ctx, span) case "database": @@ -67,7 +67,7 @@ func (r ensureSpanNamingRule) validateHTTPSpanName(ctx context.Context, span *tr Passed: false, Errors: []analyzer.Error{ { - Value: "qualityTrace.span.name", + Value: "qualitytrace.span.name", Expected: expectedName, Description: fmt.Sprintf(`The Span name %s is not matching the naming convention`, span.Name), }, @@ -103,7 +103,7 @@ func (r ensureSpanNamingRule) validateDatabaseSpanName(ctx context.Context, span Passed: false, Errors: []analyzer.Error{ { - Value: "qualityTrace.span.name", + Value: "qualitytrace.span.name", Expected: expectedName, Description: fmt.Sprintf(`The Span name %s is not matching the naming convention`, span.Name), }, @@ -129,7 +129,7 @@ func (r ensureSpanNamingRule) validateRPCSpanName(ctx context.Context, span *tra Passed: false, Errors: []analyzer.Error{ { - Value: "qualityTrace.span.name", + Value: "qualitytrace.span.name", Expected: expectedName, Description: fmt.Sprintf(`The Span name %s is not matching the naming convention`, span.Name), }, @@ -155,7 +155,7 @@ func (r ensureSpanNamingRule) validateMessagingSpanName(ctx context.Context, spa Passed: false, Errors: []analyzer.Error{ { - Value: "qualityTrace.span.name", + Value: "qualitytrace.span.name", Expected: expectedName, Description: fmt.Sprintf(`The Span name %s is not matching the naming convention`, span.Name), }, diff --git a/server/linter/rules/ensures_no_api_key_leak.go b/server/linter/rules/ensures_no_api_key_leak.go index c25f295..5639e1a 100644 --- a/server/linter/rules/ensures_no_api_key_leak.go +++ b/server/linter/rules/ensures_no_api_key_leak.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/server/linter/analyzer" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/linter/analyzer" + "github.com/intelops/qualitytrace/server/traces" ) type ensuresNoApiKeyLeakRule struct{} @@ -30,7 +30,7 @@ func (r ensuresNoApiKeyLeakRule) Evaluate(ctx context.Context, trace traces.Trac if config.ErrorLevel != analyzer.ErrorLevelDisabled { for _, span := range trace.Flat { - if span.Attributes.Get("qualityTrace.span.type") == "http" { + if span.Attributes.Get("qualitytrace.span.type") == "http" { result := r.validate(span) if !result.Passed { passed = false diff --git a/server/linter/rules/not_empty_attribute_rule.go b/server/linter/rules/not_empty_attribute_rule.go index 5ad4612..0b70589 100644 --- a/server/linter/rules/not_empty_attribute_rule.go +++ b/server/linter/rules/not_empty_attribute_rule.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/server/linter/analyzer" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/linter/analyzer" + "github.com/intelops/qualitytrace/server/traces" ) type notEmptyRuleAttributesRule struct{} diff --git a/server/linter/rules/not_empty_attribute_rule_test.go b/server/linter/rules/not_empty_attribute_rule_test.go index 094cd75..14f940e 100644 --- a/server/linter/rules/not_empty_attribute_rule_test.go +++ b/server/linter/rules/not_empty_attribute_rule_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/intelops/qualityTrace/server/linter/analyzer" - "github.com/intelops/qualityTrace/server/linter/rules" + "github.com/intelops/qualitytrace/server/linter/analyzer" + "github.com/intelops/qualitytrace/server/linter/rules" "github.com/stretchr/testify/assert" ) diff --git a/server/linter/rules/required_attribute_rule.go b/server/linter/rules/required_attribute_rule.go index 8a07ea8..4919b28 100644 --- a/server/linter/rules/required_attribute_rule.go +++ b/server/linter/rules/required_attribute_rule.go @@ -3,8 +3,8 @@ package rules import ( "context" - "github.com/intelops/qualityTrace/server/linter/analyzer" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/linter/analyzer" + "github.com/intelops/qualitytrace/server/traces" ) type requiredAttributesRule struct{} diff --git a/server/linter/rules/required_attribute_rule_test.go b/server/linter/rules/required_attribute_rule_test.go index e817423..806a440 100644 --- a/server/linter/rules/required_attribute_rule_test.go +++ b/server/linter/rules/required_attribute_rule_test.go @@ -4,10 +4,10 @@ import ( "context" "testing" - "github.com/intelops/qualityTrace/server/linter/analyzer" - "github.com/intelops/qualityTrace/server/linter/rules" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/linter/analyzer" + "github.com/intelops/qualitytrace/server/linter/rules" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/traces" "github.com/stretchr/testify/assert" "go.opentelemetry.io/otel/trace" ) @@ -76,7 +76,7 @@ func spanWithAttributes(spanType string, attributes map[string]string) traces.Sp span.Attributes.Set(name, value) } - span.Attributes.Set("qualityTrace.span.type", spanType) + span.Attributes.Set("qualitytrace.span.type", spanType) return span } diff --git a/server/linter/rules/required_attributes.go b/server/linter/rules/required_attributes.go index 3191c66..d1a237d 100644 --- a/server/linter/rules/required_attributes.go +++ b/server/linter/rules/required_attributes.go @@ -3,8 +3,8 @@ package rules import ( "fmt" - "github.com/intelops/qualityTrace/server/linter/analyzer" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/linter/analyzer" + "github.com/intelops/qualitytrace/server/traces" ) var ( @@ -20,7 +20,7 @@ var ( ) func (r requiredAttributesRule) validateSpan(span *traces.Span) analyzer.Result { - switch span.Attributes.Get("qualityTrace.span.type") { + switch span.Attributes.Get("qualitytrace.span.type") { case "http": return r.validateHttpSpan(span) case "database": diff --git a/server/linter/rules/rules_registry.go b/server/linter/rules/rules_registry.go index ad6694a..d4d0446 100644 --- a/server/linter/rules/rules_registry.go +++ b/server/linter/rules/rules_registry.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/server/linter/analyzer" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/linter/analyzer" + "github.com/intelops/qualitytrace/server/traces" ) type Rule interface { diff --git a/server/main.go b/server/main.go index 9885398..23a10bc 100644 --- a/server/main.go +++ b/server/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/intelops/qualityTrace/server/cmd" + "github.com/intelops/qualitytrace/server/cmd" ) func main() { diff --git a/server/migrations/17_reset_server_id.up.sql b/server/migrations/17_reset_server_id.up.sql index a317e46..b7637e9 100644 --- a/server/migrations/17_reset_server_id.up.sql +++ b/server/migrations/17_reset_server_id.up.sql @@ -1,4 +1,4 @@ --- Before this version, all qualityTrace versions had a hard-coded machine-id +-- Before this version, all qualitytrace versions had a hard-coded machine-id -- this means that the id stored in this table changed by version, but two -- users running the same version would share the same id. -- diff --git a/server/migrations/main_test.go b/server/migrations/main_test.go index 09d509b..fc7ca3d 100644 --- a/server/migrations/main_test.go +++ b/server/migrations/main_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/intelops/qualityTrace/server/testmock" + "github.com/intelops/qualitytrace/server/testmock" ) func TestMain(m *testing.M) { diff --git a/server/migrations/migrations_test.go b/server/migrations/migrations_test.go index 698fa47..3e05c83 100644 --- a/server/migrations/migrations_test.go +++ b/server/migrations/migrations_test.go @@ -9,9 +9,9 @@ import ( "github.com/golang-migrate/migrate/v4" "github.com/golang-migrate/migrate/v4/database/postgres" "github.com/golang-migrate/migrate/v4/source/iofs" - "github.com/intelops/qualityTrace/server/migrations" - "github.com/intelops/qualityTrace/server/testdb" - "github.com/intelops/qualityTrace/server/testmock" + "github.com/intelops/qualitytrace/server/migrations" + "github.com/intelops/qualitytrace/server/testdb" + "github.com/intelops/qualitytrace/server/testmock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -40,7 +40,7 @@ func rollback(db *sql.DB) error { log.Fatal(err) } - migrateClient, err := migrate.NewWithInstance("iofs", sourceDriver, "qualityTrace", driver) + migrateClient, err := migrate.NewWithInstance("iofs", sourceDriver, "qualitytrace", driver) if err != nil { return fmt.Errorf("could not get migration client: %w", err) } diff --git a/server/model/events/events.go b/server/model/events/events.go index 96f94d0..e790c1f 100644 --- a/server/model/events/events.go +++ b/server/model/events/events.go @@ -4,8 +4,8 @@ import ( "fmt" "time" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/pkg/id" ) func TriggerCreatedInfo(testID id.ID, runID int) model.TestRunEvent { @@ -120,7 +120,7 @@ func TriggerHTTPUnreachableHostError(testID id.ID, runID int, err error) model.T Stage: model.StageTrigger, Type: "HTTP_UNREACHABLE_HOST_ERROR", Title: "Unreachable host in the trigger", - Description: fmt.Sprintf("Tracetest could not reach the defined host in the trigger. Error: %s", err.Error()), + Description: fmt.Sprintf("Qualitytrace could not reach the defined host in the trigger. Error: %s", err.Error()), CreatedAt: time.Now(), DataStoreConnection: model.ConnectionResult{}, Polling: model.PollingInfo{}, @@ -135,7 +135,7 @@ func TriggerDockerComposeHostMismatchError(testID id.ID, runID int) model.TestRu Stage: model.StageTrigger, Type: "DOCKER_COMPOSE_HOST_MISMATCH_ERROR", Title: "Docker compose mismatch error", - Description: "We identified Tracetest is running inside a docker compose container, so if you are trying to access your local host machine please use the host.docker.internal hostname. For more information, see https://docs.docker.com/docker-for-mac/networking/#use-cases-and-workarounds", + Description: "We identified Qualitytrace is running inside a docker compose container, so if you are trying to access your local host machine please use the host.docker.internal hostname. For more information, see https://docs.docker.com/docker-for-mac/networking/#use-cases-and-workarounds", CreatedAt: time.Now(), DataStoreConnection: model.ConnectionResult{}, Polling: model.PollingInfo{}, @@ -150,7 +150,7 @@ func TriggergRPCUnreachableHostError(testID id.ID, runID int, err error) model.T Stage: model.StageTrigger, Type: "GRPC_UNREACHABLE_HOST_ERROR", Title: "Unreachable host in the trigger", - Description: fmt.Sprintf("Tracetest could not reach the defined host in the trigger. Error: %s", err.Error()), + Description: fmt.Sprintf("Qualitytrace could not reach the defined host in the trigger. Error: %s", err.Error()), CreatedAt: time.Now(), DataStoreConnection: model.ConnectionResult{}, Polling: model.PollingInfo{}, @@ -423,7 +423,7 @@ func TraceOtlpServerReceivedSpans(testID id.ID, runID, spanCount int, requestTyp Stage: model.StageTrace, Type: "OTLP_SERVER_RECEIVED_SPANS", Title: fmt.Sprintf("%s OTLP server endpoint received spans", requestType), - Description: fmt.Sprintf("The Tracetest %s OTLP endpoint server received %d spans", requestType, spanCount), + Description: fmt.Sprintf("The Qualitytrace %s OTLP endpoint server received %d spans", requestType, spanCount), CreatedAt: time.Now(), DataStoreConnection: model.ConnectionResult{}, Polling: model.PollingInfo{}, diff --git a/server/model/modeltest/run.go b/server/model/modeltest/run.go index 871d212..55c8432 100644 --- a/server/model/modeltest/run.go +++ b/server/model/modeltest/run.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/intelops/qualityTrace/server/test" + "github.com/intelops/qualitytrace/server/test" "github.com/stretchr/testify/assert" ) diff --git a/server/model/repository.go b/server/model/repository.go index c045cdf..c5c3c59 100644 --- a/server/model/repository.go +++ b/server/model/repository.go @@ -3,7 +3,7 @@ package model import ( "context" - "github.com/intelops/qualityTrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/id" ) type List[T any] struct { diff --git a/server/model/test_run_event.go b/server/model/test_run_event.go index 101e26c..183adb8 100644 --- a/server/model/test_run_event.go +++ b/server/model/test_run_event.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/intelops/qualityTrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/id" ) type ( diff --git a/server/model/test_run_event_test.go b/server/model/test_run_event_test.go index 1d73931..12ea2cd 100644 --- a/server/model/test_run_event_test.go +++ b/server/model/test_run_event_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/pkg/id" "github.com/stretchr/testify/assert" ) diff --git a/server/model/yaml/encoding.go b/server/model/yaml/encoding.go index a4c3f05..442d73e 100644 --- a/server/model/yaml/encoding.go +++ b/server/model/yaml/encoding.go @@ -4,8 +4,8 @@ import ( "fmt" "reflect" - "github.com/intelops/qualityTrace/server/openapi" - "github.com/intelops/qualityTrace/server/variableset" + "github.com/intelops/qualitytrace/server/openapi" + "github.com/intelops/qualitytrace/server/variableset" "github.com/mitchellh/mapstructure" "gopkg.in/yaml.v2" ) diff --git a/server/model/yaml/encoding_test.go b/server/model/yaml/encoding_test.go index c3fb1da..7d67d58 100644 --- a/server/model/yaml/encoding_test.go +++ b/server/model/yaml/encoding_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/intelops/qualityTrace/server/model/yaml" + "github.com/intelops/qualitytrace/server/model/yaml" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -42,9 +42,9 @@ func TestDecode(t *testing.T) { }, Specs: []yaml.TestSpec{ { - Selector: `span[name = "Tracetest trigger"]`, + Selector: `span[name = "Qualitytrace trigger"]`, Assertions: []string{ - "qualityTrace.response.status = 200", + "qualitytrace.response.status = 200", }, }, }, diff --git a/server/model/yaml/test.go b/server/model/yaml/test.go index df94df1..91ed124 100644 --- a/server/model/yaml/test.go +++ b/server/model/yaml/test.go @@ -4,7 +4,7 @@ import ( "fmt" dc "github.com/fluidtruck/deepcopy" - "github.com/intelops/qualityTrace/server/test" + "github.com/intelops/qualitytrace/server/test" ) type TestSpecs []TestSpec diff --git a/server/model/yaml/testdata/test_http.yaml b/server/model/yaml/testdata/test_http.yaml index 799037a..4ab02dd 100644 --- a/server/model/yaml/testdata/test_http.yaml +++ b/server/model/yaml/testdata/test_http.yaml @@ -8,6 +8,6 @@ spec: url: http://test.com/list method: GET specs: - - selector: span[name = "Tracetest trigger"] + - selector: span[name = "Qualitytrace trigger"] assertions: - - qualityTrace.response.status = 200 + - qualitytrace.response.status = 200 diff --git a/server/model/yaml/transaction.go b/server/model/yaml/transaction.go index 06a2f57..fbc0e4a 100644 --- a/server/model/yaml/transaction.go +++ b/server/model/yaml/transaction.go @@ -4,8 +4,8 @@ import ( "fmt" dc "github.com/fluidtruck/deepcopy" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/testsuite" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/testsuite" ) type TestSuite struct { diff --git a/server/otlp/ingester.go b/server/otlp/ingester.go index b2edf98..9d0593f 100644 --- a/server/otlp/ingester.go +++ b/server/otlp/ingester.go @@ -10,13 +10,13 @@ import ( "sync" "time" - "github.com/intelops/qualityTrace/server/datastore" - "github.com/intelops/qualityTrace/server/executor" - "github.com/intelops/qualityTrace/server/model/events" - "github.com/intelops/qualityTrace/server/subscription" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/testconnection" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/datastore" + "github.com/intelops/qualitytrace/server/executor" + "github.com/intelops/qualitytrace/server/model/events" + "github.com/intelops/qualitytrace/server/subscription" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/testconnection" + "github.com/intelops/qualitytrace/server/traces" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/trace" pb "go.opentelemetry.io/proto/otlp/collector/trace/v1" @@ -128,7 +128,7 @@ func (i *ingester) Ingest(ctx context.Context, request *pb.ExportTraceServiceReq i.log("processing trace %d/%d traceID %s", ix+1, len(receivedTraces), modelTrace.ID.String()) err = i.processTrace(ctx, modelTrace, ix, requestType) if err != nil { - span.RecordError(err, trace.WithAttributes(attribute.String("qualityTrace.ingestor.trace_id", modelTrace.ID.String()))) + span.RecordError(err, trace.WithAttributes(attribute.String("qualitytrace.ingestor.trace_id", modelTrace.ID.String()))) return nil, err } } @@ -162,7 +162,7 @@ func countSpans(resourceSpans []*v1.ResourceSpans) int { func (i *ingester) processTrace(ctx context.Context, modelTrace traces.Trace, ix int, requestType RequestType) error { ctx, span := i.tracer.Start(ctx, "process otlp trace") span.SetAttributes( - attribute.String("qualityTrace.ingestor.trace_id", modelTrace.ID.String()), + attribute.String("qualitytrace.ingestor.trace_id", modelTrace.ID.String()), ) defer span.End() diff --git a/server/pkg/sqlutil/tenant.go b/server/pkg/sqlutil/tenant.go index 2a37f73..c44f491 100644 --- a/server/pkg/sqlutil/tenant.go +++ b/server/pkg/sqlutil/tenant.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "github.com/intelops/qualityTrace/server/http/middleware" + "github.com/intelops/qualitytrace/server/http/middleware" ) func Tenant(ctx context.Context, query string, params ...any) (string, []any) { diff --git a/server/provisioning/main_test.go b/server/provisioning/main_test.go index 6f2999a..104f06c 100644 --- a/server/provisioning/main_test.go +++ b/server/provisioning/main_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/intelops/qualityTrace/server/testmock" + "github.com/intelops/qualitytrace/server/testmock" ) func TestMain(m *testing.M) { diff --git a/server/provisioning/provisioning.go b/server/provisioning/provisioning.go index f067877..4503533 100644 --- a/server/provisioning/provisioning.go +++ b/server/provisioning/provisioning.go @@ -11,7 +11,7 @@ import ( "os" "github.com/goccy/go-yaml" - "github.com/intelops/qualityTrace/server/resourcemanager" + "github.com/intelops/qualitytrace/server/resourcemanager" ) func WithResourceProvisioners(provs ...resourcemanager.Provisioner) option { diff --git a/server/provisioning/provisioning_test.go b/server/provisioning/provisioning_test.go index 42b45a3..9da2ff0 100644 --- a/server/provisioning/provisioning_test.go +++ b/server/provisioning/provisioning_test.go @@ -7,13 +7,13 @@ import ( "os" "testing" - "github.com/intelops/qualityTrace/server/config" - "github.com/intelops/qualityTrace/server/config/demo" - "github.com/intelops/qualityTrace/server/datastore" - "github.com/intelops/qualityTrace/server/executor/pollingprofile" - "github.com/intelops/qualityTrace/server/provisioning" - "github.com/intelops/qualityTrace/server/resourcemanager" - "github.com/intelops/qualityTrace/server/testmock" + "github.com/intelops/qualitytrace/server/config" + "github.com/intelops/qualitytrace/server/config/demo" + "github.com/intelops/qualitytrace/server/datastore" + "github.com/intelops/qualitytrace/server/executor/pollingprofile" + "github.com/intelops/qualitytrace/server/provisioning" + "github.com/intelops/qualitytrace/server/resourcemanager" + "github.com/intelops/qualitytrace/server/testmock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/server/resourcemanager/README.md b/server/resourcemanager/README.md index a9ce65e..af5b18f 100644 --- a/server/resourcemanager/README.md +++ b/server/resourcemanager/README.md @@ -6,7 +6,7 @@ ## What is a Resource? A `Resource` is, conceptually, any entity that can be created, read, updated and/or deleted. -Some examples in Tracetest includes `Test`, `Transaction`, `PollingProfile`, etc. +Some examples in Qualitytrace includes `Test`, `Transaction`, `PollingProfile`, etc. ## How this works diff --git a/server/resourcemanager/encoding_test.go b/server/resourcemanager/encoding_test.go index 367b445..ca5af92 100644 --- a/server/resourcemanager/encoding_test.go +++ b/server/resourcemanager/encoding_test.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - "github.com/intelops/qualityTrace/server/resourcemanager" + "github.com/intelops/qualitytrace/server/resourcemanager" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/server/resourcemanager/main_test.go b/server/resourcemanager/main_test.go index 8407194..e5bd047 100644 --- a/server/resourcemanager/main_test.go +++ b/server/resourcemanager/main_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/intelops/qualityTrace/server/testmock" + "github.com/intelops/qualitytrace/server/testmock" ) func TestMain(m *testing.M) { diff --git a/server/resourcemanager/operations.go b/server/resourcemanager/operations.go index d626903..add6793 100644 --- a/server/resourcemanager/operations.go +++ b/server/resourcemanager/operations.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/id" "golang.org/x/exp/slices" ) diff --git a/server/resourcemanager/resource_manager.go b/server/resourcemanager/resource_manager.go index d6c702d..cc3e023 100644 --- a/server/resourcemanager/resource_manager.go +++ b/server/resourcemanager/resource_manager.go @@ -19,9 +19,9 @@ import ( "golang.org/x/exp/slices" "github.com/gorilla/mux" - "github.com/intelops/qualityTrace/server/http/middleware" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/pkg/validation" + "github.com/intelops/qualitytrace/server/http/middleware" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/validation" ) type ResourceSpec interface { @@ -494,7 +494,7 @@ func (m *manager[T]) list(w http.ResponseWriter, r *http.Request) { } } -const HeaderAugmented = "X-Tracetest-Augmented" +const HeaderAugmented = "X-Qualitytrace-Augmented" func isRequestForAugmented(r *http.Request) bool { return r.Header.Get(HeaderAugmented) == "true" diff --git a/server/resourcemanager/resource_manager_test.go b/server/resourcemanager/resource_manager_test.go index 68f7277..ea5ec9c 100644 --- a/server/resourcemanager/resource_manager_test.go +++ b/server/resourcemanager/resource_manager_test.go @@ -11,9 +11,9 @@ import ( "testing" "github.com/gorilla/mux" - "github.com/intelops/qualityTrace/server/pkg/id" - rm "github.com/intelops/qualityTrace/server/resourcemanager" - rmtests "github.com/intelops/qualityTrace/server/resourcemanager/testutil" + "github.com/intelops/qualitytrace/server/pkg/id" + rm "github.com/intelops/qualitytrace/server/resourcemanager" + rmtests "github.com/intelops/qualitytrace/server/resourcemanager/testutil" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" diff --git a/server/resourcemanager/testutil/common_functions.go b/server/resourcemanager/testutil/common_functions.go index 47ba26f..83bd903 100644 --- a/server/resourcemanager/testutil/common_functions.go +++ b/server/resourcemanager/testutil/common_functions.go @@ -8,7 +8,7 @@ import ( "testing" "github.com/Jeffail/gabs/v2" - "github.com/intelops/qualityTrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/id" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/server/resourcemanager/testutil/operations.go b/server/resourcemanager/testutil/operations.go index 1eeb8ab..c8ea510 100644 --- a/server/resourcemanager/testutil/operations.go +++ b/server/resourcemanager/testutil/operations.go @@ -6,7 +6,7 @@ import ( "net/http/httptest" "testing" - "github.com/intelops/qualityTrace/server/resourcemanager" + "github.com/intelops/qualitytrace/server/resourcemanager" "golang.org/x/exp/slices" ) diff --git a/server/resourcemanager/testutil/operations_augmented.go b/server/resourcemanager/testutil/operations_augmented.go index 42d2e67..9110e68 100644 --- a/server/resourcemanager/testutil/operations_augmented.go +++ b/server/resourcemanager/testutil/operations_augmented.go @@ -5,7 +5,7 @@ import ( "net/http/httptest" "testing" - rm "github.com/intelops/qualityTrace/server/resourcemanager" + rm "github.com/intelops/qualitytrace/server/resourcemanager" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/server/resourcemanager/testutil/operations_create.go b/server/resourcemanager/testutil/operations_create.go index fbff900..0bef0b8 100644 --- a/server/resourcemanager/testutil/operations_create.go +++ b/server/resourcemanager/testutil/operations_create.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - rm "github.com/intelops/qualityTrace/server/resourcemanager" + rm "github.com/intelops/qualitytrace/server/resourcemanager" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/server/resourcemanager/testutil/operations_delete.go b/server/resourcemanager/testutil/operations_delete.go index 1f3b5cd..0eac611 100644 --- a/server/resourcemanager/testutil/operations_delete.go +++ b/server/resourcemanager/testutil/operations_delete.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - rm "github.com/intelops/qualityTrace/server/resourcemanager" + rm "github.com/intelops/qualitytrace/server/resourcemanager" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "golang.org/x/exp/slices" diff --git a/server/resourcemanager/testutil/operations_get.go b/server/resourcemanager/testutil/operations_get.go index 7baceba..20cb535 100644 --- a/server/resourcemanager/testutil/operations_get.go +++ b/server/resourcemanager/testutil/operations_get.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - rm "github.com/intelops/qualityTrace/server/resourcemanager" + rm "github.com/intelops/qualitytrace/server/resourcemanager" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/server/resourcemanager/testutil/operations_list.go b/server/resourcemanager/testutil/operations_list.go index 7139196..861ac28 100644 --- a/server/resourcemanager/testutil/operations_list.go +++ b/server/resourcemanager/testutil/operations_list.go @@ -9,7 +9,7 @@ import ( "strings" "testing" - rm "github.com/intelops/qualityTrace/server/resourcemanager" + rm "github.com/intelops/qualitytrace/server/resourcemanager" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/server/resourcemanager/testutil/operations_update.go b/server/resourcemanager/testutil/operations_update.go index f0b986f..26e2e41 100644 --- a/server/resourcemanager/testutil/operations_update.go +++ b/server/resourcemanager/testutil/operations_update.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - rm "github.com/intelops/qualityTrace/server/resourcemanager" + rm "github.com/intelops/qualitytrace/server/resourcemanager" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/server/resourcemanager/testutil/test_provisioning.go b/server/resourcemanager/testutil/test_provisioning.go index bbd6966..8ea05a4 100644 --- a/server/resourcemanager/testutil/test_provisioning.go +++ b/server/resourcemanager/testutil/test_provisioning.go @@ -5,8 +5,8 @@ import ( "testing" "github.com/gorilla/mux" - "github.com/intelops/qualityTrace/server/resourcemanager" - "github.com/intelops/qualityTrace/server/testmock" + "github.com/intelops/qualitytrace/server/resourcemanager" + "github.com/intelops/qualitytrace/server/testmock" "github.com/stretchr/testify/require" "gopkg.in/yaml.v2" ) diff --git a/server/resourcemanager/testutil/test_resource.go b/server/resourcemanager/testutil/test_resource.go index 1d21bf1..e2ed4bb 100644 --- a/server/resourcemanager/testutil/test_resource.go +++ b/server/resourcemanager/testutil/test_resource.go @@ -10,8 +10,8 @@ import ( "github.com/stretchr/testify/require" "gotest.tools/v3/assert" - rm "github.com/intelops/qualityTrace/server/resourcemanager" - "github.com/intelops/qualityTrace/server/testmock" + rm "github.com/intelops/qualitytrace/server/resourcemanager" + "github.com/intelops/qualitytrace/server/testmock" ) type ResourceTypeTest struct { diff --git a/server/subscription/in_memory_manager_test.go b/server/subscription/in_memory_manager_test.go index 80b2043..6845635 100644 --- a/server/subscription/in_memory_manager_test.go +++ b/server/subscription/in_memory_manager_test.go @@ -3,7 +3,7 @@ package subscription_test import ( "testing" - "github.com/intelops/qualityTrace/server/subscription" + "github.com/intelops/qualitytrace/server/subscription" "github.com/stretchr/testify/assert" ) diff --git a/server/subscription/message_test.go b/server/subscription/message_test.go index 96cdc58..a9bfe91 100644 --- a/server/subscription/message_test.go +++ b/server/subscription/message_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - "github.com/intelops/qualityTrace/server/subscription" + "github.com/intelops/qualitytrace/server/subscription" "github.com/stretchr/testify/require" "gotest.tools/v3/assert" ) diff --git a/server/telemetry/application_tracer.go b/server/telemetry/application_tracer.go index bb76841..a40b244 100644 --- a/server/telemetry/application_tracer.go +++ b/server/telemetry/application_tracer.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/intelops/qualityTrace/server/config" + "github.com/intelops/qualitytrace/server/config" "go.opentelemetry.io/otel/trace" ) diff --git a/server/telemetry/metrics.go b/server/telemetry/metrics.go index a357212..dc8ebd3 100644 --- a/server/telemetry/metrics.go +++ b/server/telemetry/metrics.go @@ -6,7 +6,7 @@ import ( "log" "time" - "github.com/intelops/qualityTrace/server/config" + "github.com/intelops/qualitytrace/server/config" "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc" "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/metric/noop" @@ -19,7 +19,7 @@ func NewMeter(ctx context.Context, cfg exporterConfig) (metric.Meter, error) { return nil, fmt.Errorf("could not create meter provider: %w", err) } - return provider.Meter("qualityTrace"), nil + return provider.Meter("qualitytrace"), nil } func newMeterProvider(ctx context.Context, cfg exporterConfig) (metric.MeterProvider, error) { diff --git a/server/telemetry/resource.go b/server/telemetry/resource.go index 0e53d70..089c733 100644 --- a/server/telemetry/resource.go +++ b/server/telemetry/resource.go @@ -4,8 +4,8 @@ import ( "fmt" "os" - "github.com/intelops/qualityTrace/server/config" - "github.com/intelops/qualityTrace/server/version" + "github.com/intelops/qualitytrace/server/config" + "github.com/intelops/qualitytrace/server/version" "go.opentelemetry.io/otel/sdk/resource" semconv "go.opentelemetry.io/otel/semconv/v1.21.0" ) @@ -16,7 +16,7 @@ func getResource(cfg *config.TelemetryExporterOption) (*resource.Resource, error return nil, fmt.Errorf("could not get OS hostname: %w", err) } - serviceName := "qualityTrace" + serviceName := "qualitytrace" if cfg != nil && cfg.ServiceName != "" { serviceName = cfg.ServiceName } diff --git a/server/telemetry/tracer.go b/server/telemetry/tracer.go index 05cf7ae..93639de 100644 --- a/server/telemetry/tracer.go +++ b/server/telemetry/tracer.go @@ -5,7 +5,7 @@ import ( "fmt" "time" - "github.com/intelops/qualityTrace/server/config" + "github.com/intelops/qualitytrace/server/config" "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc" "go.opentelemetry.io/otel/propagation" @@ -47,7 +47,7 @@ func NewTracer(ctx context.Context, cfg exporterConfig) (trace.Tracer, error) { otel.SetTracerProvider(tracerProvider) - tracer := tracerProvider.Tracer("qualityTrace") + tracer := tracerProvider.Tracer("qualitytrace") return tracer, nil } diff --git a/server/test/main_test.go b/server/test/main_test.go index 3a4e3ec..a398493 100644 --- a/server/test/main_test.go +++ b/server/test/main_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/intelops/qualityTrace/server/testmock" + "github.com/intelops/qualitytrace/server/testmock" ) func TestMain(m *testing.M) { diff --git a/server/test/mocks/run_repository_mock.go b/server/test/mocks/run_repository_mock.go index 4dcb7b6..ddf98b0 100644 --- a/server/test/mocks/run_repository_mock.go +++ b/server/test/mocks/run_repository_mock.go @@ -3,8 +3,8 @@ package mocks import ( "context" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/test" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/test" "github.com/stretchr/testify/mock" "go.opentelemetry.io/otel/trace" ) diff --git a/server/test/mocks/test_repository_mock.go b/server/test/mocks/test_repository_mock.go index b3b6ca0..0c2cd8d 100644 --- a/server/test/mocks/test_repository_mock.go +++ b/server/test/mocks/test_repository_mock.go @@ -3,8 +3,8 @@ package mocks import ( "context" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/test" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/test" "github.com/stretchr/testify/mock" ) diff --git a/server/test/run.go b/server/test/run.go index 5270ba1..d3abe50 100644 --- a/server/test/run.go +++ b/server/test/run.go @@ -6,14 +6,14 @@ import ( "math" "time" - "github.com/intelops/qualityTrace/agent/workers/trigger" - "github.com/intelops/qualityTrace/server/executor/testrunner" - "github.com/intelops/qualityTrace/server/linter/analyzer" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/pkg/maps" - "github.com/intelops/qualityTrace/server/pkg/timing" - "github.com/intelops/qualityTrace/server/traces" - "github.com/intelops/qualityTrace/server/variableset" + "github.com/intelops/qualitytrace/agent/workers/trigger" + "github.com/intelops/qualitytrace/server/executor/testrunner" + "github.com/intelops/qualitytrace/server/linter/analyzer" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/maps" + "github.com/intelops/qualitytrace/server/pkg/timing" + "github.com/intelops/qualitytrace/server/traces" + "github.com/intelops/qualitytrace/server/variableset" ) var ( @@ -203,7 +203,7 @@ func (r Run) GenerateRequiredGateResult(gates []testrunner.RequiredGate) testrun return requiredGatesResult } -func NewTracetestRootSpan(run Run) traces.Span { +func NewQualitytraceRootSpan(run Run) traces.Span { return traces.AugmentRootSpan(traces.Span{ ID: id.NewRandGenerator().SpanID(), Name: traces.TriggerSpanName, diff --git a/server/test/run_repository.go b/server/test/run_repository.go index 02ff194..5e43153 100644 --- a/server/test/run_repository.go +++ b/server/test/run_repository.go @@ -8,10 +8,10 @@ import ( "strconv" "time" - "github.com/intelops/qualityTrace/server/executor/testrunner" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/pkg/sqlutil" - "github.com/intelops/qualityTrace/server/variableset" + "github.com/intelops/qualitytrace/server/executor/testrunner" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/sqlutil" + "github.com/intelops/qualitytrace/server/variableset" "go.opentelemetry.io/otel/trace" ) diff --git a/server/test/run_test.go b/server/test/run_test.go index 10dc8f7..9afad23 100644 --- a/server/test/run_test.go +++ b/server/test/run_test.go @@ -7,12 +7,12 @@ import ( "testing" "time" - "github.com/intelops/qualityTrace/server/executor/testrunner" - "github.com/intelops/qualityTrace/server/linter/analyzer" - "github.com/intelops/qualityTrace/server/pkg/maps" - "github.com/intelops/qualityTrace/server/pkg/timing" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/variableset" + "github.com/intelops/qualitytrace/server/executor/testrunner" + "github.com/intelops/qualitytrace/server/linter/analyzer" + "github.com/intelops/qualitytrace/server/pkg/maps" + "github.com/intelops/qualitytrace/server/pkg/timing" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/variableset" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/server/test/test_entities.go b/server/test/test_entities.go index 7e56717..8a961fa 100644 --- a/server/test/test_entities.go +++ b/server/test/test_entities.go @@ -4,13 +4,13 @@ import ( "fmt" "time" - "github.com/intelops/qualityTrace/agent/workers/trigger" - "github.com/intelops/qualityTrace/server/executor/testrunner" - "github.com/intelops/qualityTrace/server/linter/analyzer" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/pkg/maps" - "github.com/intelops/qualityTrace/server/traces" - "github.com/intelops/qualityTrace/server/variableset" + "github.com/intelops/qualitytrace/agent/workers/trigger" + "github.com/intelops/qualitytrace/server/executor/testrunner" + "github.com/intelops/qualitytrace/server/linter/analyzer" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/maps" + "github.com/intelops/qualitytrace/server/traces" + "github.com/intelops/qualitytrace/server/variableset" "go.opentelemetry.io/otel/trace" ) diff --git a/server/test/test_json.go b/server/test/test_json.go index 8f7860d..42f2a76 100644 --- a/server/test/test_json.go +++ b/server/test/test_json.go @@ -6,8 +6,8 @@ import ( "fmt" "github.com/fluidtruck/deepcopy" - "github.com/intelops/qualityTrace/server/assertions/comparator" - "github.com/intelops/qualityTrace/server/pkg/maps" + "github.com/intelops/qualitytrace/server/assertions/comparator" + "github.com/intelops/qualitytrace/server/pkg/maps" "go.opentelemetry.io/otel/trace" ) diff --git a/server/test/test_json_test.go b/server/test/test_json_test.go index ffc027b..e2892c1 100644 --- a/server/test/test_json_test.go +++ b/server/test/test_json_test.go @@ -4,8 +4,8 @@ import ( "encoding/json" "testing" - "github.com/intelops/qualityTrace/server/pkg/maps" - "github.com/intelops/qualityTrace/server/test" + "github.com/intelops/qualitytrace/server/pkg/maps" + "github.com/intelops/qualitytrace/server/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -14,11 +14,11 @@ func TestSpecV1(t *testing.T) { oldSpecFormat := ` [ { - "Key": "span[qualityTrace.span.type=\"general\" name=\"Tracetest trigger\"]", + "Key": "span[qualitytrace.span.type=\"general\" name=\"Qualitytrace trigger\"]", "Value": { "Name": "my check", "Assertions": [ - "attr:name = \"Tracetest trigger\"" + "attr:name = \"Qualitytrace trigger\"" ] } }, @@ -40,10 +40,10 @@ func TestSpecV1(t *testing.T) { require.NoError(t, err) require.Len(t, testObject.Specs, 2) - assert.Equal(t, test.SpanQuery("span[qualityTrace.span.type=\"general\" name=\"Tracetest trigger\"]"), testObject.Specs[0].Selector) + assert.Equal(t, test.SpanQuery("span[qualitytrace.span.type=\"general\" name=\"Qualitytrace trigger\"]"), testObject.Specs[0].Selector) assert.Equal(t, "my check", testObject.Specs[0].Name) assert.Len(t, testObject.Specs[0].Assertions, 1) - assert.Equal(t, test.Assertion("attr:name = \"Tracetest trigger\""), testObject.Specs[0].Assertions[0]) + assert.Equal(t, test.Assertion("attr:name = \"Qualitytrace trigger\""), testObject.Specs[0].Assertions[0]) assert.Equal(t, test.SpanQuery("span[name=\"GET /api/tests\"]"), testObject.Specs[1].Selector) assert.Equal(t, "validate status", testObject.Specs[1].Name) @@ -57,14 +57,14 @@ func TestV1WithEmptySelector(t *testing.T) { "Key": "", "Value": { "Name": "DURATION_CHECK", - "Assertions": ["attr:qualityTrace.span.duration < 2s"] + "Assertions": ["attr:qualitytrace.span.duration < 2s"] } }, { - "Key": "span[qualityTrace.span.type=\"database\"]", + "Key": "span[qualitytrace.span.type=\"database\"]", "Value": { "Name": "All Database Spans: Processing time is less than 100ms", - "Assertions": ["attr:qualityTrace.span.duration < 100ms"] + "Assertions": ["attr:qualitytrace.span.duration < 100ms"] } } ]` @@ -75,22 +75,22 @@ func TestV1WithEmptySelector(t *testing.T) { assert.Equal(t, test.SpanQuery(""), testObject.Specs[0].Selector) assert.Equal(t, "DURATION_CHECK", testObject.Specs[0].Name) assert.Len(t, testObject.Specs[0].Assertions, 1) - assert.Equal(t, test.Assertion("attr:qualityTrace.span.duration < 2s"), testObject.Specs[0].Assertions[0]) + assert.Equal(t, test.Assertion("attr:qualitytrace.span.duration < 2s"), testObject.Specs[0].Assertions[0]) - assert.Equal(t, test.SpanQuery("span[qualityTrace.span.type=\"database\"]"), testObject.Specs[1].Selector) + assert.Equal(t, test.SpanQuery("span[qualitytrace.span.type=\"database\"]"), testObject.Specs[1].Selector) assert.Equal(t, "All Database Spans: Processing time is less than 100ms", testObject.Specs[1].Name) assert.Len(t, testObject.Specs[1].Assertions, 1) - assert.Equal(t, test.Assertion("attr:qualityTrace.span.duration < 100ms"), testObject.Specs[1].Assertions[0]) + assert.Equal(t, test.Assertion("attr:qualitytrace.span.duration < 100ms"), testObject.Specs[1].Assertions[0]) } func TestSpecV2(t *testing.T) { specFormat := ` [ { - "selector": "span[qualityTrace.span.type=\"general\" name=\"Tracetest trigger\"]", + "selector": "span[qualitytrace.span.type=\"general\" name=\"Qualitytrace trigger\"]", "name": "my check", "assertions": [ - "attr:name = \"Tracetest trigger\"" + "attr:name = \"Qualitytrace trigger\"" ] }, { @@ -109,10 +109,10 @@ func TestSpecV2(t *testing.T) { require.NoError(t, err) require.Len(t, testObject.Specs, 2) - assert.Equal(t, test.SpanQuery("span[qualityTrace.span.type=\"general\" name=\"Tracetest trigger\"]"), testObject.Specs[0].Selector) + assert.Equal(t, test.SpanQuery("span[qualitytrace.span.type=\"general\" name=\"Qualitytrace trigger\"]"), testObject.Specs[0].Selector) assert.Equal(t, "my check", testObject.Specs[0].Name) assert.Len(t, testObject.Specs[0].Assertions, 1) - assert.Equal(t, test.Assertion("attr:name = \"Tracetest trigger\""), testObject.Specs[0].Assertions[0]) + assert.Equal(t, test.Assertion("attr:name = \"Qualitytrace trigger\""), testObject.Specs[0].Assertions[0]) assert.Equal(t, test.SpanQuery("span[name=\"GET /api/tests\"]"), testObject.Specs[1].Selector) assert.Equal(t, "validate status", testObject.Specs[1].Name) diff --git a/server/test/test_repository.go b/server/test/test_repository.go index 20cfee1..2336944 100644 --- a/server/test/test_repository.go +++ b/server/test/test_repository.go @@ -10,9 +10,9 @@ import ( "strings" "time" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/pkg/sqlutil" - "github.com/intelops/qualityTrace/server/pkg/validation" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/sqlutil" + "github.com/intelops/qualitytrace/server/pkg/validation" ) type Repository interface { diff --git a/server/test/test_repository_test.go b/server/test/test_repository_test.go index 36d63c8..e4868af 100644 --- a/server/test/test_repository_test.go +++ b/server/test/test_repository_test.go @@ -7,14 +7,14 @@ import ( "testing" "github.com/gorilla/mux" - "github.com/intelops/qualityTrace/agent/workers/trigger" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/pkg/maps" - "github.com/intelops/qualityTrace/server/resourcemanager" - rmtest "github.com/intelops/qualityTrace/server/resourcemanager/testutil" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/testmock" - "github.com/intelops/qualityTrace/server/testsuite" + "github.com/intelops/qualitytrace/agent/workers/trigger" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/maps" + "github.com/intelops/qualitytrace/server/resourcemanager" + rmtest "github.com/intelops/qualitytrace/server/resourcemanager/testutil" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/testmock" + "github.com/intelops/qualitytrace/server/testsuite" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/server/testconnection/notify.go b/server/testconnection/notify.go index c11cfaf..de9a076 100644 --- a/server/testconnection/notify.go +++ b/server/testconnection/notify.go @@ -3,7 +3,7 @@ package testconnection import ( "context" - "github.com/intelops/qualityTrace/server/pkg/pipeline" + "github.com/intelops/qualitytrace/server/pkg/pipeline" "go.opentelemetry.io/otel/trace" ) diff --git a/server/testconnection/otlp.go b/server/testconnection/otlp.go index 08eeb48..2a0c833 100644 --- a/server/testconnection/otlp.go +++ b/server/testconnection/otlp.go @@ -5,8 +5,8 @@ import ( "fmt" "time" - "github.com/intelops/qualityTrace/server/http/middleware" - "github.com/intelops/qualityTrace/server/subscription" + "github.com/intelops/qualitytrace/server/http/middleware" + "github.com/intelops/qualitytrace/server/subscription" "golang.org/x/sync/semaphore" ) diff --git a/server/testconnection/otlp_test.go b/server/testconnection/otlp_test.go index 00a5d74..6ebb9e0 100644 --- a/server/testconnection/otlp_test.go +++ b/server/testconnection/otlp_test.go @@ -6,9 +6,9 @@ import ( "time" "github.com/google/uuid" - "github.com/intelops/qualityTrace/server/http/middleware" - "github.com/intelops/qualityTrace/server/subscription" - "github.com/intelops/qualityTrace/server/testconnection" + "github.com/intelops/qualitytrace/server/http/middleware" + "github.com/intelops/qualitytrace/server/subscription" + "github.com/intelops/qualitytrace/server/testconnection" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/server/testconnection/pipeline.go b/server/testconnection/pipeline.go index 0527a1e..aeb414e 100644 --- a/server/testconnection/pipeline.go +++ b/server/testconnection/pipeline.go @@ -5,11 +5,11 @@ import ( "fmt" "github.com/google/uuid" - "github.com/intelops/qualityTrace/agent/tracedb" - "github.com/intelops/qualityTrace/server/datastore" - "github.com/intelops/qualityTrace/server/http/middleware" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/pkg/pipeline" + "github.com/intelops/qualitytrace/agent/tracedb" + "github.com/intelops/qualitytrace/server/datastore" + "github.com/intelops/qualitytrace/server/http/middleware" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/pkg/pipeline" "go.opentelemetry.io/otel/metric" ) diff --git a/server/testconnection/request.go b/server/testconnection/request.go index f08f47a..585b12e 100644 --- a/server/testconnection/request.go +++ b/server/testconnection/request.go @@ -3,8 +3,8 @@ package testconnection import ( "context" - "github.com/intelops/qualityTrace/agent/tracedb" - "github.com/intelops/qualityTrace/server/pkg/pipeline" + "github.com/intelops/qualitytrace/agent/tracedb" + "github.com/intelops/qualitytrace/server/pkg/pipeline" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/trace" ) @@ -44,7 +44,7 @@ func (w *dsTestConnectionRequest) ProcessItem(ctx context.Context, job Job) { if err != nil { pollingSpan.RecordError(err) - pollingSpan.SetAttributes(attribute.String("qualityTrace.run.trace_poller.error", err.Error())) + pollingSpan.SetAttributes(attribute.String("qualitytrace.run.trace_poller.error", err.Error())) return } diff --git a/server/testdb/main_test.go b/server/testdb/main_test.go index e64aec7..e950dd0 100644 --- a/server/testdb/main_test.go +++ b/server/testdb/main_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/intelops/qualityTrace/server/testmock" + "github.com/intelops/qualitytrace/server/testmock" ) func TestMain(m *testing.M) { diff --git a/server/testdb/mock.go b/server/testdb/mock.go index 36fe493..6047d69 100644 --- a/server/testdb/mock.go +++ b/server/testdb/mock.go @@ -3,11 +3,11 @@ package testdb import ( "context" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/pkg/maps" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/testsuite" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/maps" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/testsuite" "github.com/stretchr/testify/mock" "go.opentelemetry.io/otel/trace" ) diff --git a/server/testdb/postgres.go b/server/testdb/postgres.go index 29f5691..5ac5e5c 100644 --- a/server/testdb/postgres.go +++ b/server/testdb/postgres.go @@ -8,7 +8,7 @@ import ( "github.com/golang-migrate/migrate/v4" "github.com/golang-migrate/migrate/v4/database/postgres" "github.com/golang-migrate/migrate/v4/source/iofs" - "github.com/intelops/qualityTrace/server/migrations" + "github.com/intelops/qualitytrace/server/migrations" ) type postgresDB struct { @@ -42,7 +42,7 @@ func (p *postgresDB) ensureLatestMigration() error { log.Fatal(err) } - migrateClient, err := migrate.NewWithInstance("iofs", sourceDriver, "qualityTrace", driver) + migrateClient, err := migrate.NewWithInstance("iofs", sourceDriver, "qualitytrace", driver) if err != nil { return fmt.Errorf("could not get migration client: %w", err) } diff --git a/server/testdb/postgres_options.go b/server/testdb/postgres_options.go index 0c258ec..11cd38d 100644 --- a/server/testdb/postgres_options.go +++ b/server/testdb/postgres_options.go @@ -41,7 +41,7 @@ func Connect(dsn string) (*sql.DB, error) { trace.WithQueryParams(true), trace.WithRowsAffected(true), trace.WithSpanNameFormatter(dbSpanNameFormatter), - trace.WithDefaultAttributes(attribute.String("service.name", "qualityTrace")), + trace.WithDefaultAttributes(attribute.String("service.name", "qualitytrace")), ), ), ), diff --git a/server/testdb/postgres_test.go b/server/testdb/postgres_test.go index 291d23b..ab21089 100644 --- a/server/testdb/postgres_test.go +++ b/server/testdb/postgres_test.go @@ -5,11 +5,11 @@ import ( "testing" "time" - "github.com/intelops/qualityTrace/agent/workers/trigger" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/testmock" + "github.com/intelops/qualitytrace/agent/workers/trigger" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/testmock" ) func getDB() (model.Repository, func()) { diff --git a/server/testdb/server.go b/server/testdb/server.go index 88f6d72..6d4d427 100644 --- a/server/testdb/server.go +++ b/server/testdb/server.go @@ -4,7 +4,7 @@ import ( "database/sql" "fmt" - "github.com/intelops/qualityTrace/server/config" + "github.com/intelops/qualitytrace/server/config" ) func (td *postgresDB) ServerID() (id string, isNew bool, err error) { diff --git a/server/testdb/test_run_event.go b/server/testdb/test_run_event.go index 1704da1..5975221 100644 --- a/server/testdb/test_run_event.go +++ b/server/testdb/test_run_event.go @@ -7,9 +7,9 @@ import ( "fmt" "time" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/pkg/sqlutil" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/sqlutil" ) const insertTestRunEventQuery = ` diff --git a/server/testdb/test_run_event_test.go b/server/testdb/test_run_event_test.go index 098c4a1..407acc7 100644 --- a/server/testdb/test_run_event_test.go +++ b/server/testdb/test_run_event_test.go @@ -4,9 +4,9 @@ import ( "context" "testing" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/testmock" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/testmock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/server/testmock/app.go b/server/testmock/app.go index 9ff771b..201f2d4 100644 --- a/server/testmock/app.go +++ b/server/testmock/app.go @@ -1,8 +1,8 @@ package testmock import ( - "github.com/intelops/qualityTrace/server/app" - "github.com/intelops/qualityTrace/server/config" + "github.com/intelops/qualitytrace/server/app" + "github.com/intelops/qualitytrace/server/config" ) type TestingAppOption func(*config.AppConfig) @@ -34,8 +34,8 @@ func ConfigureDB(cfg *config.AppConfig) { db := getTestDatabaseEnvironment() cfg.Set("postgres.host", db.container.Host) - cfg.Set("postgres.user", "qualityTrace") - cfg.Set("postgres.password", "qualityTrace") + cfg.Set("postgres.user", "qualitytrace") + cfg.Set("postgres.password", "qualitytrace") cfg.Set("postgres.dbname", "postgres") cfg.Set("postgres.port", db.container.DefaultPort()) } diff --git a/server/testmock/database.go b/server/testmock/database.go index b094bd4..6aea35b 100644 --- a/server/testmock/database.go +++ b/server/testmock/database.go @@ -8,13 +8,13 @@ import ( "sync" "time" - "github.com/intelops/qualityTrace/server/model" - "github.com/intelops/qualityTrace/server/testdb" + "github.com/intelops/qualitytrace/server/model" + "github.com/intelops/qualitytrace/server/testdb" "github.com/orlangure/gnomock" "github.com/orlangure/gnomock/preset/postgres" ) -const baseDatabaseName = "qualityTrace" +const baseDatabaseName = "qualitytrace" var singletonTestDatabaseEnvironment *testDatabaseEnvironment @@ -136,7 +136,7 @@ func createRandomDatabaseForTest(baseDatabase string) (*sql.DB, error) { connStr := fmt.Sprintf( "host=%s port=%d user=%s password=%s dbname=%s sslmode=disable", - db.container.Host, db.container.DefaultPort(), "qualityTrace", "qualityTrace", newDatabaseName, + db.container.Host, db.container.DefaultPort(), "qualitytrace", "qualitytrace", newDatabaseName, ) return sql.Open("postgres", connStr) @@ -144,8 +144,8 @@ func createRandomDatabaseForTest(baseDatabase string) (*sql.DB, error) { func getPostgresContainer() (*gnomock.Container, error) { preset := postgres.Preset( - postgres.WithUser("qualityTrace", "qualityTrace"), - postgres.WithDatabase("qualityTrace"), + postgres.WithUser("qualitytrace", "qualitytrace"), + postgres.WithDatabase("qualitytrace"), ) dbContainer, err := gnomock.Start(preset) @@ -159,7 +159,7 @@ func getPostgresContainer() (*gnomock.Container, error) { func getMainDatabaseConnection(container *gnomock.Container) (*sql.DB, error) { connStr := fmt.Sprintf( "host=%s port=%d user=%s password=%s dbname=%s sslmode=disable", - container.Host, container.DefaultPort(), "qualityTrace", "qualityTrace", "postgres", + container.Host, container.DefaultPort(), "qualitytrace", "qualitytrace", "postgres", ) return sql.Open("postgres", connStr) diff --git a/server/testsuite/main_test.go b/server/testsuite/main_test.go index 858a044..2de6d35 100644 --- a/server/testsuite/main_test.go +++ b/server/testsuite/main_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/intelops/qualityTrace/server/testmock" + "github.com/intelops/qualitytrace/server/testmock" ) func TestMain(m *testing.M) { diff --git a/server/testsuite/testsuite_entities.go b/server/testsuite/testsuite_entities.go index 32f5fe5..8428a40 100644 --- a/server/testsuite/testsuite_entities.go +++ b/server/testsuite/testsuite_entities.go @@ -3,8 +3,8 @@ package testsuite import ( "time" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/test" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/test" ) const ( diff --git a/server/testsuite/testsuite_repository.go b/server/testsuite/testsuite_repository.go index a1efa5a..13793df 100644 --- a/server/testsuite/testsuite_repository.go +++ b/server/testsuite/testsuite_repository.go @@ -9,9 +9,9 @@ import ( "strings" "time" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/pkg/sqlutil" - "github.com/intelops/qualityTrace/server/test" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/sqlutil" + "github.com/intelops/qualitytrace/server/test" ) func NewRepository(db *sql.DB, stepRepository testSuiteStepRepository) *Repository { diff --git a/server/testsuite/testsuite_repository_test.go b/server/testsuite/testsuite_repository_test.go index f3b2f1d..04da954 100644 --- a/server/testsuite/testsuite_repository_test.go +++ b/server/testsuite/testsuite_repository_test.go @@ -7,14 +7,14 @@ import ( "testing" "github.com/gorilla/mux" - "github.com/intelops/qualityTrace/agent/workers/trigger" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/pkg/maps" - "github.com/intelops/qualityTrace/server/resourcemanager" - rmtests "github.com/intelops/qualityTrace/server/resourcemanager/testutil" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/testmock" - "github.com/intelops/qualityTrace/server/testsuite" + "github.com/intelops/qualitytrace/agent/workers/trigger" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/maps" + "github.com/intelops/qualitytrace/server/resourcemanager" + rmtests "github.com/intelops/qualitytrace/server/resourcemanager/testutil" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/testmock" + "github.com/intelops/qualitytrace/server/testsuite" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/server/testsuite/testsuite_run_entities.go b/server/testsuite/testsuite_run_entities.go index 7a99600..65bda55 100644 --- a/server/testsuite/testsuite_run_entities.go +++ b/server/testsuite/testsuite_run_entities.go @@ -5,10 +5,10 @@ import ( "fmt" "time" - "github.com/intelops/qualityTrace/server/executor/testrunner" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/variableset" + "github.com/intelops/qualitytrace/server/executor/testrunner" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/variableset" ) type TestSuiteRun struct { diff --git a/server/testsuite/testsuite_run_repository.go b/server/testsuite/testsuite_run_repository.go index 55e1887..791c110 100644 --- a/server/testsuite/testsuite_run_repository.go +++ b/server/testsuite/testsuite_run_repository.go @@ -12,9 +12,9 @@ import ( "strings" "time" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/pkg/sqlutil" - "github.com/intelops/qualityTrace/server/test" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/sqlutil" + "github.com/intelops/qualitytrace/server/test" ) type testSuiteStepRunRepository interface { diff --git a/server/testsuite/testsuite_run_repository_test.go b/server/testsuite/testsuite_run_repository_test.go index 6720458..efb2aeb 100644 --- a/server/testsuite/testsuite_run_repository_test.go +++ b/server/testsuite/testsuite_run_repository_test.go @@ -4,11 +4,11 @@ import ( "context" "testing" - "github.com/intelops/qualityTrace/agent/workers/trigger" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/test" - "github.com/intelops/qualityTrace/server/testmock" - "github.com/intelops/qualityTrace/server/testsuite" + "github.com/intelops/qualitytrace/agent/workers/trigger" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/test" + "github.com/intelops/qualitytrace/server/testmock" + "github.com/intelops/qualitytrace/server/testsuite" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/server/traces/data/big-trace-json.json b/server/traces/data/big-trace-json.json index e5e4c5c..cb70db9 100644 --- a/server/traces/data/big-trace-json.json +++ b/server/traces/data/big-trace-json.json @@ -2,7 +2,7 @@ "ID": "00f2de75a481d9700a3aa45de8832b7a", "RootSpan": { "ID": "dc274164cab19bf7", - "Name": "Tracetest trigger", + "Name": "Qualitytrace trigger", "EndTime": "1694713628906", "Children": [ { @@ -20,18 +20,18 @@ "sql.arg.1": "U9kZntiSR", "sql.query": "\n\tSELECT\n\t\tt.id,\n\t\tt.version,\n\t\tt.name,\n\t\tt.description,\n\t\tt.service_under_test,\n\t\tt.specs,\n\t\tt.outputs,\n\t\tt.created_at,\n\t\t(SELECT COUNT(*) FROM test_runs tr WHERE tr.test_id = t.id) as total_runs,\n\t\tlast_test_run.created_at as last_test_run_time,\n\t\tlast_test_run.pass as last_test_run_pass,\n\t\tlast_test_run.fail as last_test_run_fail\n\tFROM tests t\n\tLEFT OUTER JOIN (\n\t\tSELECT MAX(id) as id, test_id FROM test_runs GROUP BY test_id\n\t) as ltr ON ltr.test_id = t.id\n\tLEFT OUTER JOIN\n\t\ttest_runs last_test_run\n\tON last_test_run.test_id = ltr.test_id AND last_test_run.id = ltr.id\n WHERE t.id = $1ORDER BY t.version DESC LIMIT 1", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query SELECT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query SELECT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "1864068", - "qualityTrace.span.end_time": "1694713628884367068", - "qualityTrace.span.parent_id": "b8d91e328fa35a94", - "qualityTrace.span.start_time": "1694713628882503000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "1864068", + "qualitytrace.span.end_time": "1694713628884367068", + "qualitytrace.span.parent_id": "b8d91e328fa35a94", + "qualitytrace.span.start_time": "1694713628882503000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -43,18 +43,18 @@ "Attributes": { "sql.query": "\n\t\tSELECT\n\t\t\t\"name\",\n\t\t\t\"required_gates\"\n\t\tFROM test_runners", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query SELECT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query SELECT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "2727218", - "qualityTrace.span.end_time": "1694713628888998218", - "qualityTrace.span.parent_id": "b8d91e328fa35a94", - "qualityTrace.span.start_time": "1694713628886271000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "2727218", + "qualitytrace.span.end_time": "1694713628888998218", + "qualitytrace.span.parent_id": "b8d91e328fa35a94", + "qualitytrace.span.start_time": "1694713628886271000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -65,18 +65,18 @@ "StartTime": "1694713628889", "Attributes": { "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "begin ", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "begin ", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "1308081", - "qualityTrace.span.end_time": "1694713628890433081", - "qualityTrace.span.parent_id": "b8d91e328fa35a94", - "qualityTrace.span.start_time": "1694713628889125000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "1308081", + "qualitytrace.span.end_time": "1694713628890433081", + "qualitytrace.span.parent_id": "b8d91e328fa35a94", + "qualitytrace.span.start_time": "1694713628889125000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -88,18 +88,18 @@ "Attributes": { "sql.query": "CREATE SEQUENCE IF NOT EXISTS \"runs_test_9043fe8d515bc1f5f54bdaefb71cf48c_seq\";", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "exec CREATE", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "exec CREATE", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "2375679", - "qualityTrace.span.end_time": "1694713628892850679", - "qualityTrace.span.parent_id": "b8d91e328fa35a94", - "qualityTrace.span.start_time": "1694713628890475000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "2375679", + "qualitytrace.span.end_time": "1694713628892850679", + "qualitytrace.span.parent_id": "b8d91e328fa35a94", + "qualitytrace.span.start_time": "1694713628890475000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -128,18 +128,18 @@ "sql.arg.16": "[123 34 114 101 113 117 105 114 101 100 34 58 91 34 97 110 97 108 121 122 101 114 45 115 99 111 114 101 34 44 34 116 101 115 116 45 115 112 101 99 115 34 93 44 34 102 97 105 108 101 100 34 58 110 117 108 108 44 34 112 97 115 115 101 100 34 58 116 114 117 101 125]", "sql.arg.17": "", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "2800908", - "qualityTrace.span.end_time": "1694713628895783908", - "qualityTrace.span.parent_id": "b8d91e328fa35a94", - "qualityTrace.span.start_time": "1694713628892983000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "2800908", + "qualitytrace.span.end_time": "1694713628895783908", + "qualitytrace.span.parent_id": "b8d91e328fa35a94", + "qualitytrace.span.start_time": "1694713628892983000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -153,18 +153,18 @@ "sql.arg.2": "U9kZntiSR", "sql.query": "\nSELECT\n\t\n\t\"id\",\n\t\"test_id\",\n\t\"test_version\",\n\n\t-- timestamps\n\t\"created_at\",\n\t\"service_triggered_at\",\n\t\"service_trigger_completed_at\",\n\t\"obtained_trace_at\",\n\t\"completed_at\",\n\n\t-- trigger params\n\t\"state\",\n\t\"trace_id\",\n\t\"span_id\",\n\n\t-- result info\n\t\"resolved_trigger\",\n\t\"trigger_results\",\n\t\"test_results\",\n\t\"trace\",\n\t\"outputs\",\n\t\"last_error\",\n\t\"metadata\",\n\t\"variable_set\",\n\n\t-- test_suite run\n\ttest_suite_run_steps.test_suite_run_id,\n\ttest_suite_run_steps.test_suite_run_test_suite_id,\n\t\"linter\",\n\t\"required_gates_result\"\n\nFROM\n\ttest_runs\nLEFT OUTER JOIN test_suite_run_steps\nON test_suite_run_steps.test_run_id = test_runs.id AND test_suite_run_steps.test_run_test_id = test_runs.test_id\n WHERE id = $1 AND test_id = $2", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query SELECT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query SELECT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "1544739", - "qualityTrace.span.end_time": "1694713628899761739", - "qualityTrace.span.parent_id": "b8d91e328fa35a94", - "qualityTrace.span.start_time": "1694713628898217000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "1544739", + "qualitytrace.span.end_time": "1694713628899761739", + "qualitytrace.span.parent_id": "b8d91e328fa35a94", + "qualitytrace.span.start_time": "1694713628898217000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -177,18 +177,18 @@ "sql.arg.1": "current", "sql.query": "\nSELECT\n\t\"id\",\n\t\"name\",\n\t\"type\",\n\t\"is_default\",\n\t\"values\",\n\t\"created_at\"\nFROM data_stores\nWHERE \"id\" = $1", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query SELECT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query SELECT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "2744011", - "qualityTrace.span.end_time": "1694713628902660011", - "qualityTrace.span.parent_id": "b8d91e328fa35a94", - "qualityTrace.span.start_time": "1694713628899916000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "2744011", + "qualitytrace.span.end_time": "1694713628902660011", + "qualitytrace.span.parent_id": "b8d91e328fa35a94", + "qualitytrace.span.start_time": "1694713628899916000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -200,18 +200,18 @@ "Attributes": { "sql.query": "\n\t\tSELECT\n\t\t\t\"name\",\n\t\t\t\"strategy\",\n\t\t\t\"periodic\"\n\t\tFROM polling_profiles ", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query SELECT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query SELECT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "3126448", - "qualityTrace.span.end_time": "1694713628905883448", - "qualityTrace.span.parent_id": "b8d91e328fa35a94", - "qualityTrace.span.start_time": "1694713628902757000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "3126448", + "qualitytrace.span.end_time": "1694713628905883448", + "qualitytrace.span.parent_id": "b8d91e328fa35a94", + "qualitytrace.span.start_time": "1694713628902757000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -249,18 +249,18 @@ "sql.arg.20": "[123 34 112 108 117 103 105 110 115 34 58 110 117 108 108 44 34 115 99 111 114 101 34 58 48 44 34 109 105 110 105 109 117 109 83 99 111 114 101 34 58 48 44 34 112 97 115 115 101 100 34 58 102 97 108 115 101 125]", "sql.arg.21": "[123 34 114 101 113 117 105 114 101 100 34 58 91 34 97 110 97 108 121 122 101 114 45 115 99 111 114 101 34 44 34 116 101 115 116 45 115 112 101 99 115 34 93 44 34 102 97 105 108 101 100 34 58 110 117 108 108 44 34 112 97 115 115 101 100 34 58 116 114 117 101 125]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "exec UPDATE", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "exec UPDATE", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "3007125", - "qualityTrace.span.end_time": "1694713628945684125", - "qualityTrace.span.parent_id": "14ce9429bba3eff7", - "qualityTrace.span.start_time": "1694713628942677000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "3007125", + "qualitytrace.span.end_time": "1694713628945684125", + "qualitytrace.span.parent_id": "14ce9429bba3eff7", + "qualitytrace.span.start_time": "1694713628942677000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -282,18 +282,18 @@ "sql.query": "\n\tINSERT INTO test_run_events (\n\t\t\"test_id\",\n\t\t\"run_id\",\n\t\t\"type\",\n\t\t\"stage\",\n\t\t\"title\",\n\t\t\"description\",\n\t\t\"created_at\",\n\t\t\"data_store_connection\",\n\t\t\"polling\",\n\t\t\"outputs\"\n\t) VALUES (\n\t\t$1, -- test_id\n\t\t$2, -- run_id\n\t\t$3, -- type\n\t\t$4, -- stage\n\t\t$5, -- title\n\t\t$6, -- description\n\t\t$7, -- created_at\n\t\t$8, -- data_store_connection\n\t\t$9, -- polling\n\t\t$10 -- outputs\n\t)\n\tRETURNING \"id\"\n", "sql.arg.10": "[91 93]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "16900596", - "qualityTrace.span.end_time": "1694713628962735596", - "qualityTrace.span.parent_id": "14ce9429bba3eff7", - "qualityTrace.span.start_time": "1694713628945835000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "16900596", + "qualitytrace.span.end_time": "1694713628962735596", + "qualitytrace.span.parent_id": "14ce9429bba3eff7", + "qualitytrace.span.start_time": "1694713628945835000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -306,18 +306,18 @@ "sql.arg.1": "current", "sql.query": "\nSELECT\n\t\"id\",\n\t\"name\",\n\t\"type\",\n\t\"is_default\",\n\t\"values\",\n\t\"created_at\"\nFROM data_stores\nWHERE \"id\" = $1", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query SELECT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query SELECT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "1044448", - "qualityTrace.span.end_time": "1694713628963855448", - "qualityTrace.span.parent_id": "14ce9429bba3eff7", - "qualityTrace.span.start_time": "1694713628962811000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "1044448", + "qualitytrace.span.end_time": "1694713628963855448", + "qualitytrace.span.parent_id": "14ce9429bba3eff7", + "qualitytrace.span.start_time": "1694713628962811000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -350,18 +350,18 @@ "sql.arg.20": "[123 34 112 108 117 103 105 110 115 34 58 110 117 108 108 44 34 115 99 111 114 101 34 58 48 44 34 109 105 110 105 109 117 109 83 99 111 114 101 34 58 48 44 34 112 97 115 115 101 100 34 58 102 97 108 115 101 125]", "sql.arg.21": "[123 34 114 101 113 117 105 114 101 100 34 58 91 34 97 110 97 108 121 122 101 114 45 115 99 111 114 101 34 44 34 116 101 115 116 45 115 112 101 99 115 34 93 44 34 102 97 105 108 101 100 34 58 110 117 108 108 44 34 112 97 115 115 101 100 34 58 116 114 117 101 125]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "exec UPDATE", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "exec UPDATE", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "2232495", - "qualityTrace.span.end_time": "1694713628966461495", - "qualityTrace.span.parent_id": "14ce9429bba3eff7", - "qualityTrace.span.start_time": "1694713628964229000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "2232495", + "qualitytrace.span.end_time": "1694713628966461495", + "qualitytrace.span.parent_id": "14ce9429bba3eff7", + "qualitytrace.span.start_time": "1694713628964229000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -383,18 +383,18 @@ "sql.query": "\n\tINSERT INTO test_run_events (\n\t\t\"test_id\",\n\t\t\"run_id\",\n\t\t\"type\",\n\t\t\"stage\",\n\t\t\"title\",\n\t\t\"description\",\n\t\t\"created_at\",\n\t\t\"data_store_connection\",\n\t\t\"polling\",\n\t\t\"outputs\"\n\t) VALUES (\n\t\t$1, -- test_id\n\t\t$2, -- run_id\n\t\t$3, -- type\n\t\t$4, -- stage\n\t\t$5, -- title\n\t\t$6, -- description\n\t\t$7, -- created_at\n\t\t$8, -- data_store_connection\n\t\t$9, -- polling\n\t\t$10 -- outputs\n\t)\n\tRETURNING \"id\"\n", "sql.arg.10": "[91 93]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "3527705", - "qualityTrace.span.end_time": "1694713628970126705", - "qualityTrace.span.parent_id": "14ce9429bba3eff7", - "qualityTrace.span.start_time": "1694713628966599000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "3527705", + "qualitytrace.span.end_time": "1694713628970126705", + "qualitytrace.span.parent_id": "14ce9429bba3eff7", + "qualitytrace.span.start_time": "1694713628966599000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -416,18 +416,18 @@ "sql.query": "\n\tINSERT INTO test_run_events (\n\t\t\"test_id\",\n\t\t\"run_id\",\n\t\t\"type\",\n\t\t\"stage\",\n\t\t\"title\",\n\t\t\"description\",\n\t\t\"created_at\",\n\t\t\"data_store_connection\",\n\t\t\"polling\",\n\t\t\"outputs\"\n\t) VALUES (\n\t\t$1, -- test_id\n\t\t$2, -- run_id\n\t\t$3, -- type\n\t\t$4, -- stage\n\t\t$5, -- title\n\t\t$6, -- description\n\t\t$7, -- created_at\n\t\t$8, -- data_store_connection\n\t\t$9, -- polling\n\t\t$10 -- outputs\n\t)\n\tRETURNING \"id\"\n", "sql.arg.10": "[91 93]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "2122131", - "qualityTrace.span.end_time": "1694713628972819131", - "qualityTrace.span.parent_id": "14ce9429bba3eff7", - "qualityTrace.span.start_time": "1694713628970697000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "2122131", + "qualitytrace.span.end_time": "1694713628972819131", + "qualitytrace.span.parent_id": "14ce9429bba3eff7", + "qualitytrace.span.start_time": "1694713628970697000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -460,18 +460,18 @@ "sql.arg.20": "[123 34 112 108 117 103 105 110 115 34 58 110 117 108 108 44 34 115 99 111 114 101 34 58 48 44 34 109 105 110 105 109 117 109 83 99 111 114 101 34 58 48 44 34 112 97 115 115 101 100 34 58 102 97 108 115 101 125]", "sql.arg.21": "[123 34 114 101 113 117 105 114 101 100 34 58 91 34 97 110 97 108 121 122 101 114 45 115 99 111 114 101 34 44 34 116 101 115 116 45 115 112 101 99 115 34 93 44 34 102 97 105 108 101 100 34 58 110 117 108 108 44 34 112 97 115 115 101 100 34 58 116 114 117 101 125]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "exec UPDATE", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "exec UPDATE", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "19559820", - "qualityTrace.span.end_time": "1694713628992648820", - "qualityTrace.span.parent_id": "14ce9429bba3eff7", - "qualityTrace.span.start_time": "1694713628973089000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "19559820", + "qualitytrace.span.end_time": "1694713628992648820", + "qualitytrace.span.parent_id": "14ce9429bba3eff7", + "qualitytrace.span.start_time": "1694713628973089000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -482,20 +482,20 @@ "StartTime": "1694713629045", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Trigger test", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Trigger test", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "106278110", - "qualityTrace.span.end_time": "1694713629151511110", - "qualityTrace.span.parent_id": "14ce9429bba3eff7", - "qualityTrace.span.start_time": "1694713629045233000", - "qualityTrace.run.trigger.type": "http", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.run.trigger.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trigger.test_id": "U9kZntiSR", - "qualityTrace.run.trigger.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trigger.http.response_code": "200" + "qualitytrace.span.duration": "106278110", + "qualitytrace.span.end_time": "1694713629151511110", + "qualitytrace.span.parent_id": "14ce9429bba3eff7", + "qualitytrace.span.start_time": "1694713629045233000", + "qualitytrace.run.trigger.type": "http", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.run.trigger.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trigger.test_id": "U9kZntiSR", + "qualitytrace.run.trigger.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trigger.http.response_code": "200" } }, { @@ -522,18 +522,18 @@ "sql.query": "\n\tINSERT INTO test_run_events (\n\t\t\"test_id\",\n\t\t\"run_id\",\n\t\t\"type\",\n\t\t\"stage\",\n\t\t\"title\",\n\t\t\"description\",\n\t\t\"created_at\",\n\t\t\"data_store_connection\",\n\t\t\"polling\",\n\t\t\"outputs\"\n\t) VALUES (\n\t\t$1, -- test_id\n\t\t$2, -- run_id\n\t\t$3, -- type\n\t\t$4, -- stage\n\t\t$5, -- title\n\t\t$6, -- description\n\t\t$7, -- created_at\n\t\t$8, -- data_store_connection\n\t\t$9, -- polling\n\t\t$10 -- outputs\n\t)\n\tRETURNING \"id\"\n", "sql.arg.10": "[91 93]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "46041191", - "qualityTrace.span.end_time": "1694713629271818191", - "qualityTrace.span.parent_id": "92490c0a4be67353", - "qualityTrace.span.start_time": "1694713629225777000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "46041191", + "qualitytrace.span.end_time": "1694713629271818191", + "qualitytrace.span.parent_id": "92490c0a4be67353", + "qualitytrace.span.start_time": "1694713629225777000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -566,18 +566,18 @@ "sql.arg.20": "[123 34 112 108 117 103 105 110 115 34 58 110 117 108 108 44 34 115 99 111 114 101 34 58 48 44 34 109 105 110 105 109 117 109 83 99 111 114 101 34 58 48 44 34 112 97 115 115 101 100 34 58 102 97 108 115 101 125]", "sql.arg.21": "[123 34 114 101 113 117 105 114 101 100 34 58 91 34 97 110 97 108 121 122 101 114 45 115 99 111 114 101 34 44 34 116 101 115 116 45 115 112 101 99 115 34 93 44 34 102 97 105 108 101 100 34 58 110 117 108 108 44 34 112 97 115 115 101 100 34 58 116 114 117 101 125]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "exec UPDATE", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "exec UPDATE", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "4320048", - "qualityTrace.span.end_time": "1694713629276552048", - "qualityTrace.span.parent_id": "92490c0a4be67353", - "qualityTrace.span.start_time": "1694713629272232000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "4320048", + "qualitytrace.span.end_time": "1694713629276552048", + "qualitytrace.span.parent_id": "92490c0a4be67353", + "qualitytrace.span.start_time": "1694713629272232000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -595,18 +595,18 @@ "sql.arg.1": "current", "sql.query": "\nSELECT\n\t\"id\",\n\t\"name\",\n\t\"type\",\n\t\"is_default\",\n\t\"values\",\n\t\"created_at\"\nFROM data_stores\nWHERE \"id\" = $1", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query SELECT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query SELECT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "1485024", - "qualityTrace.span.end_time": "1694713629302351024", - "qualityTrace.span.parent_id": "03a988ec67bb2866", - "qualityTrace.span.start_time": "1694713629300866000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "1485024", + "qualitytrace.span.end_time": "1694713629302351024", + "qualitytrace.span.parent_id": "03a988ec67bb2866", + "qualitytrace.span.start_time": "1694713629300866000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -628,18 +628,18 @@ "sql.query": "\n\tINSERT INTO test_run_events (\n\t\t\"test_id\",\n\t\t\"run_id\",\n\t\t\"type\",\n\t\t\"stage\",\n\t\t\"title\",\n\t\t\"description\",\n\t\t\"created_at\",\n\t\t\"data_store_connection\",\n\t\t\"polling\",\n\t\t\"outputs\"\n\t) VALUES (\n\t\t$1, -- test_id\n\t\t$2, -- run_id\n\t\t$3, -- type\n\t\t$4, -- stage\n\t\t$5, -- title\n\t\t$6, -- description\n\t\t$7, -- created_at\n\t\t$8, -- data_store_connection\n\t\t$9, -- polling\n\t\t$10 -- outputs\n\t)\n\tRETURNING \"id\"\n", "sql.arg.10": "[91 93]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "6168485", - "qualityTrace.span.end_time": "1694713629308769485", - "qualityTrace.span.parent_id": "03a988ec67bb2866", - "qualityTrace.span.start_time": "1694713629302601000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "6168485", + "qualitytrace.span.end_time": "1694713629308769485", + "qualitytrace.span.parent_id": "03a988ec67bb2866", + "qualitytrace.span.start_time": "1694713629302601000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -661,18 +661,18 @@ "sql.query": "\n\tINSERT INTO test_run_events (\n\t\t\"test_id\",\n\t\t\"run_id\",\n\t\t\"type\",\n\t\t\"stage\",\n\t\t\"title\",\n\t\t\"description\",\n\t\t\"created_at\",\n\t\t\"data_store_connection\",\n\t\t\"polling\",\n\t\t\"outputs\"\n\t) VALUES (\n\t\t$1, -- test_id\n\t\t$2, -- run_id\n\t\t$3, -- type\n\t\t$4, -- stage\n\t\t$5, -- title\n\t\t$6, -- description\n\t\t$7, -- created_at\n\t\t$8, -- data_store_connection\n\t\t$9, -- polling\n\t\t$10 -- outputs\n\t)\n\tRETURNING \"id\"\n", "sql.arg.10": "[91 93]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "2419685", - "qualityTrace.span.end_time": "1694713629318676685", - "qualityTrace.span.parent_id": "03a988ec67bb2866", - "qualityTrace.span.start_time": "1694713629316257000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "2419685", + "qualitytrace.span.end_time": "1694713629318676685", + "qualitytrace.span.parent_id": "03a988ec67bb2866", + "qualitytrace.span.start_time": "1694713629316257000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -685,18 +685,18 @@ "sql.arg.1": "current", "sql.query": "\nSELECT\n\t\"id\",\n\t\"name\",\n\t\"type\",\n\t\"is_default\",\n\t\"values\",\n\t\"created_at\"\nFROM data_stores\nWHERE \"id\" = $1", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query SELECT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query SELECT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "1015848", - "qualityTrace.span.end_time": "1694713629319811848", - "qualityTrace.span.parent_id": "03a988ec67bb2866", - "qualityTrace.span.start_time": "1694713629318796000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "1015848", + "qualitytrace.span.end_time": "1694713629319811848", + "qualitytrace.span.parent_id": "03a988ec67bb2866", + "qualitytrace.span.start_time": "1694713629318796000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -718,18 +718,18 @@ "sql.query": "\n\tINSERT INTO test_run_events (\n\t\t\"test_id\",\n\t\t\"run_id\",\n\t\t\"type\",\n\t\t\"stage\",\n\t\t\"title\",\n\t\t\"description\",\n\t\t\"created_at\",\n\t\t\"data_store_connection\",\n\t\t\"polling\",\n\t\t\"outputs\"\n\t) VALUES (\n\t\t$1, -- test_id\n\t\t$2, -- run_id\n\t\t$3, -- type\n\t\t$4, -- stage\n\t\t$5, -- title\n\t\t$6, -- description\n\t\t$7, -- created_at\n\t\t$8, -- data_store_connection\n\t\t$9, -- polling\n\t\t$10 -- outputs\n\t)\n\tRETURNING \"id\"\n", "sql.arg.10": "[91 93]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "2039886", - "qualityTrace.span.end_time": "1694713629321992886", - "qualityTrace.span.parent_id": "03a988ec67bb2866", - "qualityTrace.span.start_time": "1694713629319953000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "2039886", + "qualitytrace.span.end_time": "1694713629321992886", + "qualitytrace.span.parent_id": "03a988ec67bb2866", + "qualitytrace.span.start_time": "1694713629319953000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -747,18 +747,18 @@ "sql.arg.1": "current", "sql.query": "\nSELECT\n\t\"id\",\n\t\"name\",\n\t\"type\",\n\t\"is_default\",\n\t\"values\",\n\t\"created_at\"\nFROM data_stores\nWHERE \"id\" = $1", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query SELECT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query SELECT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "2011317", - "qualityTrace.span.end_time": "1694713629354734317", - "qualityTrace.span.parent_id": "caa608d8b58903a4", - "qualityTrace.span.start_time": "1694713629352723000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "2011317", + "qualitytrace.span.end_time": "1694713629354734317", + "qualitytrace.span.parent_id": "caa608d8b58903a4", + "qualitytrace.span.start_time": "1694713629352723000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -785,18 +785,18 @@ "sql.query": "\n\tINSERT INTO test_run_events (\n\t\t\"test_id\",\n\t\t\"run_id\",\n\t\t\"type\",\n\t\t\"stage\",\n\t\t\"title\",\n\t\t\"description\",\n\t\t\"created_at\",\n\t\t\"data_store_connection\",\n\t\t\"polling\",\n\t\t\"outputs\"\n\t) VALUES (\n\t\t$1, -- test_id\n\t\t$2, -- run_id\n\t\t$3, -- type\n\t\t$4, -- stage\n\t\t$5, -- title\n\t\t$6, -- description\n\t\t$7, -- created_at\n\t\t$8, -- data_store_connection\n\t\t$9, -- polling\n\t\t$10 -- outputs\n\t)\n\tRETURNING \"id\"\n", "sql.arg.10": "[91 93]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "3357351", - "qualityTrace.span.end_time": "1694713629404604351", - "qualityTrace.span.parent_id": "a193adbe652ae280", - "qualityTrace.span.start_time": "1694713629401247000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "3357351", + "qualitytrace.span.end_time": "1694713629404604351", + "qualitytrace.span.parent_id": "a193adbe652ae280", + "qualitytrace.span.start_time": "1694713629401247000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -814,18 +814,18 @@ "sql.arg.1": "current", "sql.query": "\nSELECT\n\t\"id\",\n\t\"name\",\n\t\"type\",\n\t\"is_default\",\n\t\"values\",\n\t\"created_at\"\nFROM data_stores\nWHERE \"id\" = $1", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query SELECT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query SELECT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "1246476", - "qualityTrace.span.end_time": "1694713632439313476", - "qualityTrace.span.parent_id": "59d6baae97580d8c", - "qualityTrace.span.start_time": "1694713632438067000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "1246476", + "qualitytrace.span.end_time": "1694713632439313476", + "qualitytrace.span.parent_id": "59d6baae97580d8c", + "qualitytrace.span.start_time": "1694713632438067000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -858,18 +858,18 @@ "sql.arg.20": "[123 34 112 108 117 103 105 110 115 34 58 110 117 108 108 44 34 115 99 111 114 101 34 58 48 44 34 109 105 110 105 109 117 109 83 99 111 114 101 34 58 48 44 34 112 97 115 115 101 100 34 58 102 97 108 115 101 125]", "sql.arg.21": "[123 34 114 101 113 117 105 114 101 100 34 58 91 34 97 110 97 108 121 122 101 114 45 115 99 111 114 101 34 44 34 116 101 115 116 45 115 112 101 99 115 34 93 44 34 102 97 105 108 101 100 34 58 110 117 108 108 44 34 112 97 115 115 101 100 34 58 116 114 117 101 125]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "exec UPDATE", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "exec UPDATE", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "3637343", - "qualityTrace.span.end_time": "1694713632447768343", - "qualityTrace.span.parent_id": "59d6baae97580d8c", - "qualityTrace.span.start_time": "1694713632444131000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "3637343", + "qualitytrace.span.end_time": "1694713632447768343", + "qualitytrace.span.parent_id": "59d6baae97580d8c", + "qualitytrace.span.start_time": "1694713632444131000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -896,18 +896,18 @@ "sql.query": "\n\tINSERT INTO test_run_events (\n\t\t\"test_id\",\n\t\t\"run_id\",\n\t\t\"type\",\n\t\t\"stage\",\n\t\t\"title\",\n\t\t\"description\",\n\t\t\"created_at\",\n\t\t\"data_store_connection\",\n\t\t\"polling\",\n\t\t\"outputs\"\n\t) VALUES (\n\t\t$1, -- test_id\n\t\t$2, -- run_id\n\t\t$3, -- type\n\t\t$4, -- stage\n\t\t$5, -- title\n\t\t$6, -- description\n\t\t$7, -- created_at\n\t\t$8, -- data_store_connection\n\t\t$9, -- polling\n\t\t$10 -- outputs\n\t)\n\tRETURNING \"id\"\n", "sql.arg.10": "[91 93]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "3747928", - "qualityTrace.span.end_time": "1694713632476818928", - "qualityTrace.span.parent_id": "750484f235a2e939", - "qualityTrace.span.start_time": "1694713632473071000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "3747928", + "qualitytrace.span.end_time": "1694713632476818928", + "qualitytrace.span.parent_id": "750484f235a2e939", + "qualitytrace.span.start_time": "1694713632473071000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -925,18 +925,18 @@ "sql.arg.1": "current", "sql.query": "\nSELECT\n\t\"id\",\n\t\"name\",\n\t\"type\",\n\t\"is_default\",\n\t\"values\",\n\t\"created_at\"\nFROM data_stores\nWHERE \"id\" = $1", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query SELECT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query SELECT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "1806929", - "qualityTrace.span.end_time": "1694713635514569929", - "qualityTrace.span.parent_id": "e388a21cb7a3bf17", - "qualityTrace.span.start_time": "1694713635512763000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "1806929", + "qualitytrace.span.end_time": "1694713635514569929", + "qualitytrace.span.parent_id": "e388a21cb7a3bf17", + "qualitytrace.span.start_time": "1694713635512763000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -969,18 +969,18 @@ "sql.arg.20": "[123 34 112 108 117 103 105 110 115 34 58 110 117 108 108 44 34 115 99 111 114 101 34 58 48 44 34 109 105 110 105 109 117 109 83 99 111 114 101 34 58 48 44 34 112 97 115 115 101 100 34 58 102 97 108 115 101 125]", "sql.arg.21": "[123 34 114 101 113 117 105 114 101 100 34 58 91 34 97 110 97 108 121 122 101 114 45 115 99 111 114 101 34 44 34 116 101 115 116 45 115 112 101 99 115 34 93 44 34 102 97 105 108 101 100 34 58 110 117 108 108 44 34 112 97 115 115 101 100 34 58 116 114 117 101 125]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "exec UPDATE", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "exec UPDATE", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "4182124", - "qualityTrace.span.end_time": "1694713635524527124", - "qualityTrace.span.parent_id": "e388a21cb7a3bf17", - "qualityTrace.span.start_time": "1694713635520345000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "4182124", + "qualitytrace.span.end_time": "1694713635524527124", + "qualitytrace.span.parent_id": "e388a21cb7a3bf17", + "qualitytrace.span.start_time": "1694713635520345000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -1007,18 +1007,18 @@ "sql.query": "\n\tINSERT INTO test_run_events (\n\t\t\"test_id\",\n\t\t\"run_id\",\n\t\t\"type\",\n\t\t\"stage\",\n\t\t\"title\",\n\t\t\"description\",\n\t\t\"created_at\",\n\t\t\"data_store_connection\",\n\t\t\"polling\",\n\t\t\"outputs\"\n\t) VALUES (\n\t\t$1, -- test_id\n\t\t$2, -- run_id\n\t\t$3, -- type\n\t\t$4, -- stage\n\t\t$5, -- title\n\t\t$6, -- description\n\t\t$7, -- created_at\n\t\t$8, -- data_store_connection\n\t\t$9, -- polling\n\t\t$10 -- outputs\n\t)\n\tRETURNING \"id\"\n", "sql.arg.10": "[91 93]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "25126047", - "qualityTrace.span.end_time": "1694713635582151047", - "qualityTrace.span.parent_id": "668ac36286bc2205", - "qualityTrace.span.start_time": "1694713635557025000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "25126047", + "qualitytrace.span.end_time": "1694713635582151047", + "qualitytrace.span.parent_id": "668ac36286bc2205", + "qualitytrace.span.start_time": "1694713635557025000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -1036,18 +1036,18 @@ "sql.arg.1": "current", "sql.query": "\nSELECT\n\t\"id\",\n\t\"name\",\n\t\"type\",\n\t\"is_default\",\n\t\"values\",\n\t\"created_at\"\nFROM data_stores\nWHERE \"id\" = $1", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query SELECT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query SELECT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "4263748", - "qualityTrace.span.end_time": "1694713638607771748", - "qualityTrace.span.parent_id": "9741a0fae00f9ffe", - "qualityTrace.span.start_time": "1694713638603508000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "4263748", + "qualitytrace.span.end_time": "1694713638607771748", + "qualitytrace.span.parent_id": "9741a0fae00f9ffe", + "qualitytrace.span.start_time": "1694713638603508000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -1080,18 +1080,18 @@ "sql.arg.20": "[123 34 112 108 117 103 105 110 115 34 58 110 117 108 108 44 34 115 99 111 114 101 34 58 48 44 34 109 105 110 105 109 117 109 83 99 111 114 101 34 58 48 44 34 112 97 115 115 101 100 34 58 102 97 108 115 101 125]", "sql.arg.21": "[123 34 114 101 113 117 105 114 101 100 34 58 91 34 97 110 97 108 121 122 101 114 45 115 99 111 114 101 34 44 34 116 101 115 116 45 115 112 101 99 115 34 93 44 34 102 97 105 108 101 100 34 58 110 117 108 108 44 34 112 97 115 115 101 100 34 58 116 114 117 101 125]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "exec UPDATE", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "exec UPDATE", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "4217955", - "qualityTrace.span.end_time": "1694713638617538955", - "qualityTrace.span.parent_id": "9741a0fae00f9ffe", - "qualityTrace.span.start_time": "1694713638613321000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "4217955", + "qualitytrace.span.end_time": "1694713638617538955", + "qualitytrace.span.parent_id": "9741a0fae00f9ffe", + "qualitytrace.span.start_time": "1694713638613321000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -1118,18 +1118,18 @@ "sql.query": "\n\tINSERT INTO test_run_events (\n\t\t\"test_id\",\n\t\t\"run_id\",\n\t\t\"type\",\n\t\t\"stage\",\n\t\t\"title\",\n\t\t\"description\",\n\t\t\"created_at\",\n\t\t\"data_store_connection\",\n\t\t\"polling\",\n\t\t\"outputs\"\n\t) VALUES (\n\t\t$1, -- test_id\n\t\t$2, -- run_id\n\t\t$3, -- type\n\t\t$4, -- stage\n\t\t$5, -- title\n\t\t$6, -- description\n\t\t$7, -- created_at\n\t\t$8, -- data_store_connection\n\t\t$9, -- polling\n\t\t$10 -- outputs\n\t)\n\tRETURNING \"id\"\n", "sql.arg.10": "[91 93]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "3255930", - "qualityTrace.span.end_time": "1694713638649939930", - "qualityTrace.span.parent_id": "c1fa2e517ba79d37", - "qualityTrace.span.start_time": "1694713638646684000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "3255930", + "qualitytrace.span.end_time": "1694713638649939930", + "qualitytrace.span.parent_id": "c1fa2e517ba79d37", + "qualitytrace.span.start_time": "1694713638646684000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -1147,18 +1147,18 @@ "sql.arg.1": "current", "sql.query": "\nSELECT\n\t\"id\",\n\t\"name\",\n\t\"type\",\n\t\"is_default\",\n\t\"values\",\n\t\"created_at\"\nFROM data_stores\nWHERE \"id\" = $1", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query SELECT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query SELECT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "1319122", - "qualityTrace.span.end_time": "1694713641698845122", - "qualityTrace.span.parent_id": "4586262986f3c003", - "qualityTrace.span.start_time": "1694713641697526000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "1319122", + "qualitytrace.span.end_time": "1694713641698845122", + "qualitytrace.span.parent_id": "4586262986f3c003", + "qualitytrace.span.start_time": "1694713641697526000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -1191,18 +1191,18 @@ "sql.arg.20": "[123 34 112 108 117 103 105 110 115 34 58 110 117 108 108 44 34 115 99 111 114 101 34 58 48 44 34 109 105 110 105 109 117 109 83 99 111 114 101 34 58 48 44 34 112 97 115 115 101 100 34 58 102 97 108 115 101 125]", "sql.arg.21": "[123 34 114 101 113 117 105 114 101 100 34 58 91 34 97 110 97 108 121 122 101 114 45 115 99 111 114 101 34 44 34 116 101 115 116 45 115 112 101 99 115 34 93 44 34 102 97 105 108 101 100 34 58 110 117 108 108 44 34 112 97 115 115 101 100 34 58 116 114 117 101 125]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "exec UPDATE", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "exec UPDATE", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "243673428", - "qualityTrace.span.end_time": "1694713641951027428", - "qualityTrace.span.parent_id": "4586262986f3c003", - "qualityTrace.span.start_time": "1694713641707354000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "243673428", + "qualitytrace.span.end_time": "1694713641951027428", + "qualitytrace.span.parent_id": "4586262986f3c003", + "qualitytrace.span.start_time": "1694713641707354000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -1229,18 +1229,18 @@ "sql.query": "\n\tINSERT INTO test_run_events (\n\t\t\"test_id\",\n\t\t\"run_id\",\n\t\t\"type\",\n\t\t\"stage\",\n\t\t\"title\",\n\t\t\"description\",\n\t\t\"created_at\",\n\t\t\"data_store_connection\",\n\t\t\"polling\",\n\t\t\"outputs\"\n\t) VALUES (\n\t\t$1, -- test_id\n\t\t$2, -- run_id\n\t\t$3, -- type\n\t\t$4, -- stage\n\t\t$5, -- title\n\t\t$6, -- description\n\t\t$7, -- created_at\n\t\t$8, -- data_store_connection\n\t\t$9, -- polling\n\t\t$10 -- outputs\n\t)\n\tRETURNING \"id\"\n", "sql.arg.10": "[91 93]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "197218968", - "qualityTrace.span.end_time": "1694713642188071968", - "qualityTrace.span.parent_id": "895d3b360782e727", - "qualityTrace.span.start_time": "1694713641990853000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "197218968", + "qualitytrace.span.end_time": "1694713642188071968", + "qualitytrace.span.parent_id": "895d3b360782e727", + "qualitytrace.span.start_time": "1694713641990853000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -1258,18 +1258,18 @@ "sql.arg.1": "current", "sql.query": "\nSELECT\n\t\"id\",\n\t\"name\",\n\t\"type\",\n\t\"is_default\",\n\t\"values\",\n\t\"created_at\"\nFROM data_stores\nWHERE \"id\" = $1", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query SELECT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query SELECT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "1994972", - "qualityTrace.span.end_time": "1694713645214883972", - "qualityTrace.span.parent_id": "44d3e68de3216208", - "qualityTrace.span.start_time": "1694713645212889000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "1994972", + "qualitytrace.span.end_time": "1694713645214883972", + "qualitytrace.span.parent_id": "44d3e68de3216208", + "qualitytrace.span.start_time": "1694713645212889000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -1302,18 +1302,18 @@ "sql.arg.20": "[123 34 112 108 117 103 105 110 115 34 58 110 117 108 108 44 34 115 99 111 114 101 34 58 48 44 34 109 105 110 105 109 117 109 83 99 111 114 101 34 58 48 44 34 112 97 115 115 101 100 34 58 102 97 108 115 101 125]", "sql.arg.21": "[123 34 114 101 113 117 105 114 101 100 34 58 91 34 97 110 97 108 121 122 101 114 45 115 99 111 114 101 34 44 34 116 101 115 116 45 115 112 101 99 115 34 93 44 34 102 97 105 108 101 100 34 58 110 117 108 108 44 34 112 97 115 115 101 100 34 58 116 114 117 101 125]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "exec UPDATE", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "exec UPDATE", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "2589814", - "qualityTrace.span.end_time": "1694713645223748814", - "qualityTrace.span.parent_id": "44d3e68de3216208", - "qualityTrace.span.start_time": "1694713645221159000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "2589814", + "qualitytrace.span.end_time": "1694713645223748814", + "qualitytrace.span.parent_id": "44d3e68de3216208", + "qualitytrace.span.start_time": "1694713645221159000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -1340,18 +1340,18 @@ "sql.query": "\n\tINSERT INTO test_run_events (\n\t\t\"test_id\",\n\t\t\"run_id\",\n\t\t\"type\",\n\t\t\"stage\",\n\t\t\"title\",\n\t\t\"description\",\n\t\t\"created_at\",\n\t\t\"data_store_connection\",\n\t\t\"polling\",\n\t\t\"outputs\"\n\t) VALUES (\n\t\t$1, -- test_id\n\t\t$2, -- run_id\n\t\t$3, -- type\n\t\t$4, -- stage\n\t\t$5, -- title\n\t\t$6, -- description\n\t\t$7, -- created_at\n\t\t$8, -- data_store_connection\n\t\t$9, -- polling\n\t\t$10 -- outputs\n\t)\n\tRETURNING \"id\"\n", "sql.arg.10": "[91 93]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "2470865", - "qualityTrace.span.end_time": "1694713645268501865", - "qualityTrace.span.parent_id": "80fd30690f8471a2", - "qualityTrace.span.start_time": "1694713645266031000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "2470865", + "qualitytrace.span.end_time": "1694713645268501865", + "qualitytrace.span.parent_id": "80fd30690f8471a2", + "qualitytrace.span.start_time": "1694713645266031000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -1369,18 +1369,18 @@ "sql.arg.1": "current", "sql.query": "\nSELECT\n\t\"id\",\n\t\"name\",\n\t\"type\",\n\t\"is_default\",\n\t\"values\",\n\t\"created_at\"\nFROM data_stores\nWHERE \"id\" = $1", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query SELECT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query SELECT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "3780640", - "qualityTrace.span.end_time": "1694713648302705640", - "qualityTrace.span.parent_id": "a7062908a501cb9e", - "qualityTrace.span.start_time": "1694713648298925000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "3780640", + "qualitytrace.span.end_time": "1694713648302705640", + "qualitytrace.span.parent_id": "a7062908a501cb9e", + "qualitytrace.span.start_time": "1694713648298925000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -1413,18 +1413,18 @@ "sql.arg.20": "[123 34 112 108 117 103 105 110 115 34 58 110 117 108 108 44 34 115 99 111 114 101 34 58 48 44 34 109 105 110 105 109 117 109 83 99 111 114 101 34 58 48 44 34 112 97 115 115 101 100 34 58 102 97 108 115 101 125]", "sql.arg.21": "[123 34 114 101 113 117 105 114 101 100 34 58 91 34 97 110 97 108 121 122 101 114 45 115 99 111 114 101 34 44 34 116 101 115 116 45 115 112 101 99 115 34 93 44 34 102 97 105 108 101 100 34 58 110 117 108 108 44 34 112 97 115 115 101 100 34 58 116 114 117 101 125]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "exec UPDATE", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "exec UPDATE", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "3874943", - "qualityTrace.span.end_time": "1694713648314537943", - "qualityTrace.span.parent_id": "a7062908a501cb9e", - "qualityTrace.span.start_time": "1694713648310663000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "3874943", + "qualitytrace.span.end_time": "1694713648314537943", + "qualitytrace.span.parent_id": "a7062908a501cb9e", + "qualitytrace.span.start_time": "1694713648310663000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -1451,18 +1451,18 @@ "sql.query": "\n\tINSERT INTO test_run_events (\n\t\t\"test_id\",\n\t\t\"run_id\",\n\t\t\"type\",\n\t\t\"stage\",\n\t\t\"title\",\n\t\t\"description\",\n\t\t\"created_at\",\n\t\t\"data_store_connection\",\n\t\t\"polling\",\n\t\t\"outputs\"\n\t) VALUES (\n\t\t$1, -- test_id\n\t\t$2, -- run_id\n\t\t$3, -- type\n\t\t$4, -- stage\n\t\t$5, -- title\n\t\t$6, -- description\n\t\t$7, -- created_at\n\t\t$8, -- data_store_connection\n\t\t$9, -- polling\n\t\t$10 -- outputs\n\t)\n\tRETURNING \"id\"\n", "sql.arg.10": "[91 93]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "10841159", - "qualityTrace.span.end_time": "1694713648379392159", - "qualityTrace.span.parent_id": "f1e9153fe9e855f9", - "qualityTrace.span.start_time": "1694713648368551000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "10841159", + "qualitytrace.span.end_time": "1694713648379392159", + "qualitytrace.span.parent_id": "f1e9153fe9e855f9", + "qualitytrace.span.start_time": "1694713648368551000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -1480,18 +1480,18 @@ "sql.arg.1": "current", "sql.query": "\nSELECT\n\t\"id\",\n\t\"name\",\n\t\"type\",\n\t\"is_default\",\n\t\"values\",\n\t\"created_at\"\nFROM data_stores\nWHERE \"id\" = $1", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query SELECT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query SELECT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "1315642", - "qualityTrace.span.end_time": "1694713651411937642", - "qualityTrace.span.parent_id": "cf83e9acdbeffdf0", - "qualityTrace.span.start_time": "1694713651410622000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "1315642", + "qualitytrace.span.end_time": "1694713651411937642", + "qualitytrace.span.parent_id": "cf83e9acdbeffdf0", + "qualitytrace.span.start_time": "1694713651410622000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -1524,18 +1524,18 @@ "sql.arg.20": "[123 34 112 108 117 103 105 110 115 34 58 110 117 108 108 44 34 115 99 111 114 101 34 58 48 44 34 109 105 110 105 109 117 109 83 99 111 114 101 34 58 48 44 34 112 97 115 115 101 100 34 58 102 97 108 115 101 125]", "sql.arg.21": "[123 34 114 101 113 117 105 114 101 100 34 58 91 34 97 110 97 108 121 122 101 114 45 115 99 111 114 101 34 44 34 116 101 115 116 45 115 112 101 99 115 34 93 44 34 102 97 105 108 101 100 34 58 110 117 108 108 44 34 112 97 115 115 101 100 34 58 116 114 117 101 125]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "exec UPDATE", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "exec UPDATE", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "3688405", - "qualityTrace.span.end_time": "1694713651420516405", - "qualityTrace.span.parent_id": "cf83e9acdbeffdf0", - "qualityTrace.span.start_time": "1694713651416828000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "3688405", + "qualitytrace.span.end_time": "1694713651420516405", + "qualitytrace.span.parent_id": "cf83e9acdbeffdf0", + "qualitytrace.span.start_time": "1694713651416828000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -1562,18 +1562,18 @@ "sql.query": "\n\tINSERT INTO test_run_events (\n\t\t\"test_id\",\n\t\t\"run_id\",\n\t\t\"type\",\n\t\t\"stage\",\n\t\t\"title\",\n\t\t\"description\",\n\t\t\"created_at\",\n\t\t\"data_store_connection\",\n\t\t\"polling\",\n\t\t\"outputs\"\n\t) VALUES (\n\t\t$1, -- test_id\n\t\t$2, -- run_id\n\t\t$3, -- type\n\t\t$4, -- stage\n\t\t$5, -- title\n\t\t$6, -- description\n\t\t$7, -- created_at\n\t\t$8, -- data_store_connection\n\t\t$9, -- polling\n\t\t$10 -- outputs\n\t)\n\tRETURNING \"id\"\n", "sql.arg.10": "[91 93]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "7058053", - "qualityTrace.span.end_time": "1694713651540590053", - "qualityTrace.span.parent_id": "25a9c05128c2a00d", - "qualityTrace.span.start_time": "1694713651533532000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "7058053", + "qualitytrace.span.end_time": "1694713651540590053", + "qualitytrace.span.parent_id": "25a9c05128c2a00d", + "qualitytrace.span.start_time": "1694713651533532000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -1591,18 +1591,18 @@ "sql.arg.1": "current", "sql.query": "\nSELECT\n\t\"id\",\n\t\"name\",\n\t\"type\",\n\t\"is_default\",\n\t\"values\",\n\t\"created_at\"\nFROM data_stores\nWHERE \"id\" = $1", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query SELECT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query SELECT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "1378869", - "qualityTrace.span.end_time": "1694713654569045869", - "qualityTrace.span.parent_id": "d9c8e4009639251a", - "qualityTrace.span.start_time": "1694713654567667000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "1378869", + "qualitytrace.span.end_time": "1694713654569045869", + "qualitytrace.span.parent_id": "d9c8e4009639251a", + "qualitytrace.span.start_time": "1694713654567667000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -1635,18 +1635,18 @@ "sql.arg.20": "[123 34 112 108 117 103 105 110 115 34 58 110 117 108 108 44 34 115 99 111 114 101 34 58 48 44 34 109 105 110 105 109 117 109 83 99 111 114 101 34 58 48 44 34 112 97 115 115 101 100 34 58 102 97 108 115 101 125]", "sql.arg.21": "[123 34 114 101 113 117 105 114 101 100 34 58 91 34 97 110 97 108 121 122 101 114 45 115 99 111 114 101 34 44 34 116 101 115 116 45 115 112 101 99 115 34 93 44 34 102 97 105 108 101 100 34 58 110 117 108 108 44 34 112 97 115 115 101 100 34 58 116 114 117 101 125]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "exec UPDATE", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "exec UPDATE", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "5135401", - "qualityTrace.span.end_time": "1694713654581856401", - "qualityTrace.span.parent_id": "d9c8e4009639251a", - "qualityTrace.span.start_time": "1694713654576721000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "5135401", + "qualitytrace.span.end_time": "1694713654581856401", + "qualitytrace.span.parent_id": "d9c8e4009639251a", + "qualitytrace.span.start_time": "1694713654576721000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -1673,18 +1673,18 @@ "sql.query": "\n\tINSERT INTO test_run_events (\n\t\t\"test_id\",\n\t\t\"run_id\",\n\t\t\"type\",\n\t\t\"stage\",\n\t\t\"title\",\n\t\t\"description\",\n\t\t\"created_at\",\n\t\t\"data_store_connection\",\n\t\t\"polling\",\n\t\t\"outputs\"\n\t) VALUES (\n\t\t$1, -- test_id\n\t\t$2, -- run_id\n\t\t$3, -- type\n\t\t$4, -- stage\n\t\t$5, -- title\n\t\t$6, -- description\n\t\t$7, -- created_at\n\t\t$8, -- data_store_connection\n\t\t$9, -- polling\n\t\t$10 -- outputs\n\t)\n\tRETURNING \"id\"\n", "sql.arg.10": "[91 93]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "4137799", - "qualityTrace.span.end_time": "1694713654627867799", - "qualityTrace.span.parent_id": "53a5c8cbcb0a0b6f", - "qualityTrace.span.start_time": "1694713654623730000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "4137799", + "qualitytrace.span.end_time": "1694713654627867799", + "qualitytrace.span.parent_id": "53a5c8cbcb0a0b6f", + "qualitytrace.span.start_time": "1694713654623730000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -1702,18 +1702,18 @@ "sql.arg.1": "current", "sql.query": "\nSELECT\n\t\"id\",\n\t\"name\",\n\t\"type\",\n\t\"is_default\",\n\t\"values\",\n\t\"created_at\"\nFROM data_stores\nWHERE \"id\" = $1", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query SELECT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query SELECT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "1554756", - "qualityTrace.span.end_time": "1694713657651202756", - "qualityTrace.span.parent_id": "2b2ff1a22f63e03b", - "qualityTrace.span.start_time": "1694713657649648000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "1554756", + "qualitytrace.span.end_time": "1694713657651202756", + "qualitytrace.span.parent_id": "2b2ff1a22f63e03b", + "qualitytrace.span.start_time": "1694713657649648000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -1746,18 +1746,18 @@ "sql.arg.20": "[123 34 112 108 117 103 105 110 115 34 58 110 117 108 108 44 34 115 99 111 114 101 34 58 48 44 34 109 105 110 105 109 117 109 83 99 111 114 101 34 58 48 44 34 112 97 115 115 101 100 34 58 102 97 108 115 101 125]", "sql.arg.21": "[123 34 114 101 113 117 105 114 101 100 34 58 91 34 97 110 97 108 121 122 101 114 45 115 99 111 114 101 34 44 34 116 101 115 116 45 115 112 101 99 115 34 93 44 34 102 97 105 108 101 100 34 58 110 117 108 108 44 34 112 97 115 115 101 100 34 58 116 114 117 101 125]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "exec UPDATE", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "exec UPDATE", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "5867038", - "qualityTrace.span.end_time": "1694713657663375038", - "qualityTrace.span.parent_id": "2b2ff1a22f63e03b", - "qualityTrace.span.start_time": "1694713657657508000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "5867038", + "qualitytrace.span.end_time": "1694713657663375038", + "qualitytrace.span.parent_id": "2b2ff1a22f63e03b", + "qualitytrace.span.start_time": "1694713657657508000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -1784,18 +1784,18 @@ "sql.query": "\n\tINSERT INTO test_run_events (\n\t\t\"test_id\",\n\t\t\"run_id\",\n\t\t\"type\",\n\t\t\"stage\",\n\t\t\"title\",\n\t\t\"description\",\n\t\t\"created_at\",\n\t\t\"data_store_connection\",\n\t\t\"polling\",\n\t\t\"outputs\"\n\t) VALUES (\n\t\t$1, -- test_id\n\t\t$2, -- run_id\n\t\t$3, -- type\n\t\t$4, -- stage\n\t\t$5, -- title\n\t\t$6, -- description\n\t\t$7, -- created_at\n\t\t$8, -- data_store_connection\n\t\t$9, -- polling\n\t\t$10 -- outputs\n\t)\n\tRETURNING \"id\"\n", "sql.arg.10": "[91 93]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "5170251", - "qualityTrace.span.end_time": "1694713657732612251", - "qualityTrace.span.parent_id": "c7d0e74dc9bda4af", - "qualityTrace.span.start_time": "1694713657727442000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "5170251", + "qualitytrace.span.end_time": "1694713657732612251", + "qualitytrace.span.parent_id": "c7d0e74dc9bda4af", + "qualitytrace.span.start_time": "1694713657727442000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -1813,18 +1813,18 @@ "sql.arg.1": "current", "sql.query": "\nSELECT\n\t\"id\",\n\t\"name\",\n\t\"type\",\n\t\"is_default\",\n\t\"values\",\n\t\"created_at\"\nFROM data_stores\nWHERE \"id\" = $1", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query SELECT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query SELECT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "2525188", - "qualityTrace.span.end_time": "1694713660767815188", - "qualityTrace.span.parent_id": "56fe2130f67a551c", - "qualityTrace.span.start_time": "1694713660765290000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "2525188", + "qualitytrace.span.end_time": "1694713660767815188", + "qualitytrace.span.parent_id": "56fe2130f67a551c", + "qualitytrace.span.start_time": "1694713660765290000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -1857,18 +1857,18 @@ "sql.arg.20": "[123 34 112 108 117 103 105 110 115 34 58 110 117 108 108 44 34 115 99 111 114 101 34 58 48 44 34 109 105 110 105 109 117 109 83 99 111 114 101 34 58 48 44 34 112 97 115 115 101 100 34 58 102 97 108 115 101 125]", "sql.arg.21": "[123 34 114 101 113 117 105 114 101 100 34 58 91 34 97 110 97 108 121 122 101 114 45 115 99 111 114 101 34 44 34 116 101 115 116 45 115 112 101 99 115 34 93 44 34 102 97 105 108 101 100 34 58 110 117 108 108 44 34 112 97 115 115 101 100 34 58 116 114 117 101 125]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "exec UPDATE", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "exec UPDATE", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "18268053", - "qualityTrace.span.end_time": "1694713660794157053", - "qualityTrace.span.parent_id": "56fe2130f67a551c", - "qualityTrace.span.start_time": "1694713660775889000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "18268053", + "qualitytrace.span.end_time": "1694713660794157053", + "qualitytrace.span.parent_id": "56fe2130f67a551c", + "qualitytrace.span.start_time": "1694713660775889000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -1895,18 +1895,18 @@ "sql.query": "\n\tINSERT INTO test_run_events (\n\t\t\"test_id\",\n\t\t\"run_id\",\n\t\t\"type\",\n\t\t\"stage\",\n\t\t\"title\",\n\t\t\"description\",\n\t\t\"created_at\",\n\t\t\"data_store_connection\",\n\t\t\"polling\",\n\t\t\"outputs\"\n\t) VALUES (\n\t\t$1, -- test_id\n\t\t$2, -- run_id\n\t\t$3, -- type\n\t\t$4, -- stage\n\t\t$5, -- title\n\t\t$6, -- description\n\t\t$7, -- created_at\n\t\t$8, -- data_store_connection\n\t\t$9, -- polling\n\t\t$10 -- outputs\n\t)\n\tRETURNING \"id\"\n", "sql.arg.10": "[91 93]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "4553375", - "qualityTrace.span.end_time": "1694713660827868375", - "qualityTrace.span.parent_id": "1fa698d839fbabd3", - "qualityTrace.span.start_time": "1694713660823315000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "4553375", + "qualitytrace.span.end_time": "1694713660827868375", + "qualitytrace.span.parent_id": "1fa698d839fbabd3", + "qualitytrace.span.start_time": "1694713660823315000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -1924,18 +1924,18 @@ "sql.arg.1": "current", "sql.query": "\nSELECT\n\t\"id\",\n\t\"name\",\n\t\"type\",\n\t\"is_default\",\n\t\"values\",\n\t\"created_at\"\nFROM data_stores\nWHERE \"id\" = $1", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query SELECT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query SELECT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "111436508", - "qualityTrace.span.end_time": "1694713663964541508", - "qualityTrace.span.parent_id": "f571e07cd44a3ba3", - "qualityTrace.span.start_time": "1694713663853105000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "111436508", + "qualitytrace.span.end_time": "1694713663964541508", + "qualitytrace.span.parent_id": "f571e07cd44a3ba3", + "qualitytrace.span.start_time": "1694713663853105000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -1968,18 +1968,18 @@ "sql.arg.20": "[123 34 112 108 117 103 105 110 115 34 58 110 117 108 108 44 34 115 99 111 114 101 34 58 48 44 34 109 105 110 105 109 117 109 83 99 111 114 101 34 58 48 44 34 112 97 115 115 101 100 34 58 102 97 108 115 101 125]", "sql.arg.21": "[123 34 114 101 113 117 105 114 101 100 34 58 91 34 97 110 97 108 121 122 101 114 45 115 99 111 114 101 34 44 34 116 101 115 116 45 115 112 101 99 115 34 93 44 34 102 97 105 108 101 100 34 58 110 117 108 108 44 34 112 97 115 115 101 100 34 58 116 114 117 101 125]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "exec UPDATE", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "exec UPDATE", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "6169407", - "qualityTrace.span.end_time": "1694713663976102407", - "qualityTrace.span.parent_id": "f571e07cd44a3ba3", - "qualityTrace.span.start_time": "1694713663969933000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "6169407", + "qualitytrace.span.end_time": "1694713663976102407", + "qualitytrace.span.parent_id": "f571e07cd44a3ba3", + "qualitytrace.span.start_time": "1694713663969933000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -2006,18 +2006,18 @@ "sql.query": "\n\tINSERT INTO test_run_events (\n\t\t\"test_id\",\n\t\t\"run_id\",\n\t\t\"type\",\n\t\t\"stage\",\n\t\t\"title\",\n\t\t\"description\",\n\t\t\"created_at\",\n\t\t\"data_store_connection\",\n\t\t\"polling\",\n\t\t\"outputs\"\n\t) VALUES (\n\t\t$1, -- test_id\n\t\t$2, -- run_id\n\t\t$3, -- type\n\t\t$4, -- stage\n\t\t$5, -- title\n\t\t$6, -- description\n\t\t$7, -- created_at\n\t\t$8, -- data_store_connection\n\t\t$9, -- polling\n\t\t$10 -- outputs\n\t)\n\tRETURNING \"id\"\n", "sql.arg.10": "[91 93]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "2833725", - "qualityTrace.span.end_time": "1694713664031764725", - "qualityTrace.span.parent_id": "dd302dd36407e7e1", - "qualityTrace.span.start_time": "1694713664028931000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "2833725", + "qualitytrace.span.end_time": "1694713664031764725", + "qualitytrace.span.parent_id": "dd302dd36407e7e1", + "qualitytrace.span.start_time": "1694713664028931000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -2035,18 +2035,18 @@ "sql.arg.1": "current", "sql.query": "\nSELECT\n\t\"id\",\n\t\"name\",\n\t\"type\",\n\t\"is_default\",\n\t\"values\",\n\t\"created_at\"\nFROM data_stores\nWHERE \"id\" = $1", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query SELECT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query SELECT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "1009100", - "qualityTrace.span.end_time": "1694713667060057100", - "qualityTrace.span.parent_id": "4a07d637900ec5d1", - "qualityTrace.span.start_time": "1694713667059048000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "1009100", + "qualitytrace.span.end_time": "1694713667060057100", + "qualitytrace.span.parent_id": "4a07d637900ec5d1", + "qualitytrace.span.start_time": "1694713667059048000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -2079,18 +2079,18 @@ "sql.arg.20": "[123 34 112 108 117 103 105 110 115 34 58 110 117 108 108 44 34 115 99 111 114 101 34 58 48 44 34 109 105 110 105 109 117 109 83 99 111 114 101 34 58 48 44 34 112 97 115 115 101 100 34 58 102 97 108 115 101 125]", "sql.arg.21": "[123 34 114 101 113 117 105 114 101 100 34 58 91 34 97 110 97 108 121 122 101 114 45 115 99 111 114 101 34 44 34 116 101 115 116 45 115 112 101 99 115 34 93 44 34 102 97 105 108 101 100 34 58 110 117 108 108 44 34 112 97 115 115 101 100 34 58 116 114 117 101 125]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "exec UPDATE", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "exec UPDATE", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "2884864", - "qualityTrace.span.end_time": "1694713667068130864", - "qualityTrace.span.parent_id": "4a07d637900ec5d1", - "qualityTrace.span.start_time": "1694713667065246000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "2884864", + "qualitytrace.span.end_time": "1694713667068130864", + "qualitytrace.span.parent_id": "4a07d637900ec5d1", + "qualitytrace.span.start_time": "1694713667065246000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -2117,18 +2117,18 @@ "sql.query": "\n\tINSERT INTO test_run_events (\n\t\t\"test_id\",\n\t\t\"run_id\",\n\t\t\"type\",\n\t\t\"stage\",\n\t\t\"title\",\n\t\t\"description\",\n\t\t\"created_at\",\n\t\t\"data_store_connection\",\n\t\t\"polling\",\n\t\t\"outputs\"\n\t) VALUES (\n\t\t$1, -- test_id\n\t\t$2, -- run_id\n\t\t$3, -- type\n\t\t$4, -- stage\n\t\t$5, -- title\n\t\t$6, -- description\n\t\t$7, -- created_at\n\t\t$8, -- data_store_connection\n\t\t$9, -- polling\n\t\t$10 -- outputs\n\t)\n\tRETURNING \"id\"\n", "sql.arg.10": "[91 93]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "4106016", - "qualityTrace.span.end_time": "1694713667095354016", - "qualityTrace.span.parent_id": "cfe32bac41f3451c", - "qualityTrace.span.start_time": "1694713667091248000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "4106016", + "qualitytrace.span.end_time": "1694713667095354016", + "qualitytrace.span.parent_id": "cfe32bac41f3451c", + "qualitytrace.span.start_time": "1694713667091248000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -2146,18 +2146,18 @@ "sql.arg.1": "current", "sql.query": "\nSELECT\n\t\"id\",\n\t\"name\",\n\t\"type\",\n\t\"is_default\",\n\t\"values\",\n\t\"created_at\"\nFROM data_stores\nWHERE \"id\" = $1", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query SELECT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query SELECT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "12525452", - "qualityTrace.span.end_time": "1694713670144126452", - "qualityTrace.span.parent_id": "5cb9436d3c580b39", - "qualityTrace.span.start_time": "1694713670131601000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "12525452", + "qualitytrace.span.end_time": "1694713670144126452", + "qualitytrace.span.parent_id": "5cb9436d3c580b39", + "qualitytrace.span.start_time": "1694713670131601000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -2190,18 +2190,18 @@ "sql.arg.20": "[123 34 112 108 117 103 105 110 115 34 58 110 117 108 108 44 34 115 99 111 114 101 34 58 48 44 34 109 105 110 105 109 117 109 83 99 111 114 101 34 58 48 44 34 112 97 115 115 101 100 34 58 102 97 108 115 101 125]", "sql.arg.21": "[123 34 114 101 113 117 105 114 101 100 34 58 91 34 97 110 97 108 121 122 101 114 45 115 99 111 114 101 34 44 34 116 101 115 116 45 115 112 101 99 115 34 93 44 34 102 97 105 108 101 100 34 58 110 117 108 108 44 34 112 97 115 115 101 100 34 58 116 114 117 101 125]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "exec UPDATE", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "exec UPDATE", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "40622675", - "qualityTrace.span.end_time": "1694713670192406675", - "qualityTrace.span.parent_id": "5cb9436d3c580b39", - "qualityTrace.span.start_time": "1694713670151784000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "40622675", + "qualitytrace.span.end_time": "1694713670192406675", + "qualitytrace.span.parent_id": "5cb9436d3c580b39", + "qualitytrace.span.start_time": "1694713670151784000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -2228,18 +2228,18 @@ "sql.query": "\n\tINSERT INTO test_run_events (\n\t\t\"test_id\",\n\t\t\"run_id\",\n\t\t\"type\",\n\t\t\"stage\",\n\t\t\"title\",\n\t\t\"description\",\n\t\t\"created_at\",\n\t\t\"data_store_connection\",\n\t\t\"polling\",\n\t\t\"outputs\"\n\t) VALUES (\n\t\t$1, -- test_id\n\t\t$2, -- run_id\n\t\t$3, -- type\n\t\t$4, -- stage\n\t\t$5, -- title\n\t\t$6, -- description\n\t\t$7, -- created_at\n\t\t$8, -- data_store_connection\n\t\t$9, -- polling\n\t\t$10 -- outputs\n\t)\n\tRETURNING \"id\"\n", "sql.arg.10": "[91 93]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "2530414", - "qualityTrace.span.end_time": "1694713670247006414", - "qualityTrace.span.parent_id": "fa1637b3bddbefa8", - "qualityTrace.span.start_time": "1694713670244476000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "2530414", + "qualitytrace.span.end_time": "1694713670247006414", + "qualitytrace.span.parent_id": "fa1637b3bddbefa8", + "qualitytrace.span.start_time": "1694713670244476000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -2257,18 +2257,18 @@ "sql.arg.1": "current", "sql.query": "\nSELECT\n\t\"id\",\n\t\"name\",\n\t\"type\",\n\t\"is_default\",\n\t\"values\",\n\t\"created_at\"\nFROM data_stores\nWHERE \"id\" = $1", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query SELECT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query SELECT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "941320", - "qualityTrace.span.end_time": "1694713673272644320", - "qualityTrace.span.parent_id": "85fd74e8fd513826", - "qualityTrace.span.start_time": "1694713673271703000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "941320", + "qualitytrace.span.end_time": "1694713673272644320", + "qualitytrace.span.parent_id": "85fd74e8fd513826", + "qualitytrace.span.start_time": "1694713673271703000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -2301,18 +2301,18 @@ "sql.arg.20": "[123 34 112 108 117 103 105 110 115 34 58 110 117 108 108 44 34 115 99 111 114 101 34 58 48 44 34 109 105 110 105 109 117 109 83 99 111 114 101 34 58 48 44 34 112 97 115 115 101 100 34 58 102 97 108 115 101 125]", "sql.arg.21": "[123 34 114 101 113 117 105 114 101 100 34 58 91 34 97 110 97 108 121 122 101 114 45 115 99 111 114 101 34 44 34 116 101 115 116 45 115 112 101 99 115 34 93 44 34 102 97 105 108 101 100 34 58 110 117 108 108 44 34 112 97 115 115 101 100 34 58 116 114 117 101 125]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "exec UPDATE", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "exec UPDATE", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "3430105", - "qualityTrace.span.end_time": "1694713673281665105", - "qualityTrace.span.parent_id": "85fd74e8fd513826", - "qualityTrace.span.start_time": "1694713673278235000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "3430105", + "qualitytrace.span.end_time": "1694713673281665105", + "qualitytrace.span.parent_id": "85fd74e8fd513826", + "qualitytrace.span.start_time": "1694713673278235000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -2339,18 +2339,18 @@ "sql.query": "\n\tINSERT INTO test_run_events (\n\t\t\"test_id\",\n\t\t\"run_id\",\n\t\t\"type\",\n\t\t\"stage\",\n\t\t\"title\",\n\t\t\"description\",\n\t\t\"created_at\",\n\t\t\"data_store_connection\",\n\t\t\"polling\",\n\t\t\"outputs\"\n\t) VALUES (\n\t\t$1, -- test_id\n\t\t$2, -- run_id\n\t\t$3, -- type\n\t\t$4, -- stage\n\t\t$5, -- title\n\t\t$6, -- description\n\t\t$7, -- created_at\n\t\t$8, -- data_store_connection\n\t\t$9, -- polling\n\t\t$10 -- outputs\n\t)\n\tRETURNING \"id\"\n", "sql.arg.10": "[91 93]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "3092940", - "qualityTrace.span.end_time": "1694713673317052940", - "qualityTrace.span.parent_id": "fd8faf1f73776a7e", - "qualityTrace.span.start_time": "1694713673313960000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "3092940", + "qualitytrace.span.end_time": "1694713673317052940", + "qualitytrace.span.parent_id": "fd8faf1f73776a7e", + "qualitytrace.span.start_time": "1694713673313960000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -2368,18 +2368,18 @@ "sql.arg.1": "current", "sql.query": "\nSELECT\n\t\"id\",\n\t\"name\",\n\t\"type\",\n\t\"is_default\",\n\t\"values\",\n\t\"created_at\"\nFROM data_stores\nWHERE \"id\" = $1", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query SELECT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query SELECT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "1463055", - "qualityTrace.span.end_time": "1694713676352793055", - "qualityTrace.span.parent_id": "7f04dcef3a7448f1", - "qualityTrace.span.start_time": "1694713676351330000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "1463055", + "qualitytrace.span.end_time": "1694713676352793055", + "qualitytrace.span.parent_id": "7f04dcef3a7448f1", + "qualitytrace.span.start_time": "1694713676351330000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -2412,18 +2412,18 @@ "sql.arg.20": "[123 34 112 108 117 103 105 110 115 34 58 110 117 108 108 44 34 115 99 111 114 101 34 58 48 44 34 109 105 110 105 109 117 109 83 99 111 114 101 34 58 48 44 34 112 97 115 115 101 100 34 58 102 97 108 115 101 125]", "sql.arg.21": "[123 34 114 101 113 117 105 114 101 100 34 58 91 34 97 110 97 108 121 122 101 114 45 115 99 111 114 101 34 44 34 116 101 115 116 45 115 112 101 99 115 34 93 44 34 102 97 105 108 101 100 34 58 110 117 108 108 44 34 112 97 115 115 101 100 34 58 116 114 117 101 125]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "exec UPDATE", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "exec UPDATE", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "4043126", - "qualityTrace.span.end_time": "1694713676364146126", - "qualityTrace.span.parent_id": "7f04dcef3a7448f1", - "qualityTrace.span.start_time": "1694713676360103000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "4043126", + "qualitytrace.span.end_time": "1694713676364146126", + "qualitytrace.span.parent_id": "7f04dcef3a7448f1", + "qualitytrace.span.start_time": "1694713676360103000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -2450,18 +2450,18 @@ "sql.query": "\n\tINSERT INTO test_run_events (\n\t\t\"test_id\",\n\t\t\"run_id\",\n\t\t\"type\",\n\t\t\"stage\",\n\t\t\"title\",\n\t\t\"description\",\n\t\t\"created_at\",\n\t\t\"data_store_connection\",\n\t\t\"polling\",\n\t\t\"outputs\"\n\t) VALUES (\n\t\t$1, -- test_id\n\t\t$2, -- run_id\n\t\t$3, -- type\n\t\t$4, -- stage\n\t\t$5, -- title\n\t\t$6, -- description\n\t\t$7, -- created_at\n\t\t$8, -- data_store_connection\n\t\t$9, -- polling\n\t\t$10 -- outputs\n\t)\n\tRETURNING \"id\"\n", "sql.arg.10": "[91 93]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "2804376", - "qualityTrace.span.end_time": "1694713676417937376", - "qualityTrace.span.parent_id": "a6e31a549ef7fb2f", - "qualityTrace.span.start_time": "1694713676415133000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "2804376", + "qualitytrace.span.end_time": "1694713676417937376", + "qualitytrace.span.parent_id": "a6e31a549ef7fb2f", + "qualitytrace.span.start_time": "1694713676415133000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -2479,18 +2479,18 @@ "sql.arg.1": "current", "sql.query": "\nSELECT\n\t\"id\",\n\t\"name\",\n\t\"type\",\n\t\"is_default\",\n\t\"values\",\n\t\"created_at\"\nFROM data_stores\nWHERE \"id\" = $1", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query SELECT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query SELECT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "1122844", - "qualityTrace.span.end_time": "1694713679449181844", - "qualityTrace.span.parent_id": "fc3bac894af0edbc", - "qualityTrace.span.start_time": "1694713679448059000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "1122844", + "qualitytrace.span.end_time": "1694713679449181844", + "qualitytrace.span.parent_id": "fc3bac894af0edbc", + "qualitytrace.span.start_time": "1694713679448059000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -2523,18 +2523,18 @@ "sql.arg.20": "[123 34 112 108 117 103 105 110 115 34 58 110 117 108 108 44 34 115 99 111 114 101 34 58 48 44 34 109 105 110 105 109 117 109 83 99 111 114 101 34 58 48 44 34 112 97 115 115 101 100 34 58 102 97 108 115 101 125]", "sql.arg.21": "[123 34 114 101 113 117 105 114 101 100 34 58 91 34 97 110 97 108 121 122 101 114 45 115 99 111 114 101 34 44 34 116 101 115 116 45 115 112 101 99 115 34 93 44 34 102 97 105 108 101 100 34 58 110 117 108 108 44 34 112 97 115 115 101 100 34 58 116 114 117 101 125]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "exec UPDATE", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "exec UPDATE", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "4899025", - "qualityTrace.span.end_time": "1694713679459435025", - "qualityTrace.span.parent_id": "fc3bac894af0edbc", - "qualityTrace.span.start_time": "1694713679454536000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "4899025", + "qualitytrace.span.end_time": "1694713679459435025", + "qualitytrace.span.parent_id": "fc3bac894af0edbc", + "qualitytrace.span.start_time": "1694713679454536000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -2561,18 +2561,18 @@ "sql.query": "\n\tINSERT INTO test_run_events (\n\t\t\"test_id\",\n\t\t\"run_id\",\n\t\t\"type\",\n\t\t\"stage\",\n\t\t\"title\",\n\t\t\"description\",\n\t\t\"created_at\",\n\t\t\"data_store_connection\",\n\t\t\"polling\",\n\t\t\"outputs\"\n\t) VALUES (\n\t\t$1, -- test_id\n\t\t$2, -- run_id\n\t\t$3, -- type\n\t\t$4, -- stage\n\t\t$5, -- title\n\t\t$6, -- description\n\t\t$7, -- created_at\n\t\t$8, -- data_store_connection\n\t\t$9, -- polling\n\t\t$10 -- outputs\n\t)\n\tRETURNING \"id\"\n", "sql.arg.10": "[91 93]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "2745826", - "qualityTrace.span.end_time": "1694713679519200826", - "qualityTrace.span.parent_id": "86c7dda231490a68", - "qualityTrace.span.start_time": "1694713679516455000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "2745826", + "qualitytrace.span.end_time": "1694713679519200826", + "qualitytrace.span.parent_id": "86c7dda231490a68", + "qualitytrace.span.start_time": "1694713679516455000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -2590,18 +2590,18 @@ "sql.arg.1": "current", "sql.query": "\nSELECT\n\t\"id\",\n\t\"name\",\n\t\"type\",\n\t\"is_default\",\n\t\"values\",\n\t\"created_at\"\nFROM data_stores\nWHERE \"id\" = $1", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query SELECT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query SELECT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "1894172", - "qualityTrace.span.end_time": "1694713682588126172", - "qualityTrace.span.parent_id": "197e3a649a1b1a1e", - "qualityTrace.span.start_time": "1694713682586232000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "1894172", + "qualitytrace.span.end_time": "1694713682588126172", + "qualitytrace.span.parent_id": "197e3a649a1b1a1e", + "qualitytrace.span.start_time": "1694713682586232000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -2634,18 +2634,18 @@ "sql.arg.20": "[123 34 112 108 117 103 105 110 115 34 58 110 117 108 108 44 34 115 99 111 114 101 34 58 48 44 34 109 105 110 105 109 117 109 83 99 111 114 101 34 58 48 44 34 112 97 115 115 101 100 34 58 102 97 108 115 101 125]", "sql.arg.21": "[123 34 114 101 113 117 105 114 101 100 34 58 91 34 97 110 97 108 121 122 101 114 45 115 99 111 114 101 34 44 34 116 101 115 116 45 115 112 101 99 115 34 93 44 34 102 97 105 108 101 100 34 58 110 117 108 108 44 34 112 97 115 115 101 100 34 58 116 114 117 101 125]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "exec UPDATE", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "exec UPDATE", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "3425170", - "qualityTrace.span.end_time": "1694713682595987170", - "qualityTrace.span.parent_id": "197e3a649a1b1a1e", - "qualityTrace.span.start_time": "1694713682592562000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "3425170", + "qualitytrace.span.end_time": "1694713682595987170", + "qualitytrace.span.parent_id": "197e3a649a1b1a1e", + "qualitytrace.span.start_time": "1694713682592562000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -2672,18 +2672,18 @@ "sql.query": "\n\tINSERT INTO test_run_events (\n\t\t\"test_id\",\n\t\t\"run_id\",\n\t\t\"type\",\n\t\t\"stage\",\n\t\t\"title\",\n\t\t\"description\",\n\t\t\"created_at\",\n\t\t\"data_store_connection\",\n\t\t\"polling\",\n\t\t\"outputs\"\n\t) VALUES (\n\t\t$1, -- test_id\n\t\t$2, -- run_id\n\t\t$3, -- type\n\t\t$4, -- stage\n\t\t$5, -- title\n\t\t$6, -- description\n\t\t$7, -- created_at\n\t\t$8, -- data_store_connection\n\t\t$9, -- polling\n\t\t$10 -- outputs\n\t)\n\tRETURNING \"id\"\n", "sql.arg.10": "[91 93]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "2410261", - "qualityTrace.span.end_time": "1694713682638151261", - "qualityTrace.span.parent_id": "82cb632092608afb", - "qualityTrace.span.start_time": "1694713682635741000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "2410261", + "qualitytrace.span.end_time": "1694713682638151261", + "qualitytrace.span.parent_id": "82cb632092608afb", + "qualitytrace.span.start_time": "1694713682635741000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -2701,18 +2701,18 @@ "sql.arg.1": "current", "sql.query": "\nSELECT\n\t\"id\",\n\t\"name\",\n\t\"type\",\n\t\"is_default\",\n\t\"values\",\n\t\"created_at\"\nFROM data_stores\nWHERE \"id\" = $1", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query SELECT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query SELECT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "1210031", - "qualityTrace.span.end_time": "1694713685668820031", - "qualityTrace.span.parent_id": "e9841171c139643b", - "qualityTrace.span.start_time": "1694713685667610000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "1210031", + "qualitytrace.span.end_time": "1694713685668820031", + "qualitytrace.span.parent_id": "e9841171c139643b", + "qualitytrace.span.start_time": "1694713685667610000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -2745,18 +2745,18 @@ "sql.arg.20": "[123 34 112 108 117 103 105 110 115 34 58 110 117 108 108 44 34 115 99 111 114 101 34 58 48 44 34 109 105 110 105 109 117 109 83 99 111 114 101 34 58 48 44 34 112 97 115 115 101 100 34 58 102 97 108 115 101 125]", "sql.arg.21": "[123 34 114 101 113 117 105 114 101 100 34 58 91 34 97 110 97 108 121 122 101 114 45 115 99 111 114 101 34 44 34 116 101 115 116 45 115 112 101 99 115 34 93 44 34 102 97 105 108 101 100 34 58 110 117 108 108 44 34 112 97 115 115 101 100 34 58 116 114 117 101 125]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "exec UPDATE", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "exec UPDATE", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "2892527", - "qualityTrace.span.end_time": "1694713685677556527", - "qualityTrace.span.parent_id": "e9841171c139643b", - "qualityTrace.span.start_time": "1694713685674664000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "2892527", + "qualitytrace.span.end_time": "1694713685677556527", + "qualitytrace.span.parent_id": "e9841171c139643b", + "qualitytrace.span.start_time": "1694713685674664000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -2783,18 +2783,18 @@ "sql.query": "\n\tINSERT INTO test_run_events (\n\t\t\"test_id\",\n\t\t\"run_id\",\n\t\t\"type\",\n\t\t\"stage\",\n\t\t\"title\",\n\t\t\"description\",\n\t\t\"created_at\",\n\t\t\"data_store_connection\",\n\t\t\"polling\",\n\t\t\"outputs\"\n\t) VALUES (\n\t\t$1, -- test_id\n\t\t$2, -- run_id\n\t\t$3, -- type\n\t\t$4, -- stage\n\t\t$5, -- title\n\t\t$6, -- description\n\t\t$7, -- created_at\n\t\t$8, -- data_store_connection\n\t\t$9, -- polling\n\t\t$10 -- outputs\n\t)\n\tRETURNING \"id\"\n", "sql.arg.10": "[91 93]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "2773812", - "qualityTrace.span.end_time": "1694713685704276812", - "qualityTrace.span.parent_id": "b48a2c37cebfdbe4", - "qualityTrace.span.start_time": "1694713685701503000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "2773812", + "qualitytrace.span.end_time": "1694713685704276812", + "qualitytrace.span.parent_id": "b48a2c37cebfdbe4", + "qualitytrace.span.start_time": "1694713685701503000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -2812,18 +2812,18 @@ "sql.arg.1": "current", "sql.query": "\nSELECT\n\t\"id\",\n\t\"name\",\n\t\"type\",\n\t\"is_default\",\n\t\"values\",\n\t\"created_at\"\nFROM data_stores\nWHERE \"id\" = $1", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query SELECT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query SELECT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "4229847", - "qualityTrace.span.end_time": "1694713688786903847", - "qualityTrace.span.parent_id": "9fe65924c3c834b4", - "qualityTrace.span.start_time": "1694713688782674000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "4229847", + "qualitytrace.span.end_time": "1694713688786903847", + "qualitytrace.span.parent_id": "9fe65924c3c834b4", + "qualitytrace.span.start_time": "1694713688782674000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -2856,18 +2856,18 @@ "sql.arg.20": "[123 34 112 108 117 103 105 110 115 34 58 110 117 108 108 44 34 115 99 111 114 101 34 58 48 44 34 109 105 110 105 109 117 109 83 99 111 114 101 34 58 48 44 34 112 97 115 115 101 100 34 58 102 97 108 115 101 125]", "sql.arg.21": "[123 34 114 101 113 117 105 114 101 100 34 58 91 34 97 110 97 108 121 122 101 114 45 115 99 111 114 101 34 44 34 116 101 115 116 45 115 112 101 99 115 34 93 44 34 102 97 105 108 101 100 34 58 110 117 108 108 44 34 112 97 115 115 101 100 34 58 116 114 117 101 125]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "exec UPDATE", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "exec UPDATE", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "3175268", - "qualityTrace.span.end_time": "1694713688801085268", - "qualityTrace.span.parent_id": "9fe65924c3c834b4", - "qualityTrace.span.start_time": "1694713688797910000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "3175268", + "qualitytrace.span.end_time": "1694713688801085268", + "qualitytrace.span.parent_id": "9fe65924c3c834b4", + "qualitytrace.span.start_time": "1694713688797910000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -2894,18 +2894,18 @@ "sql.query": "\n\tINSERT INTO test_run_events (\n\t\t\"test_id\",\n\t\t\"run_id\",\n\t\t\"type\",\n\t\t\"stage\",\n\t\t\"title\",\n\t\t\"description\",\n\t\t\"created_at\",\n\t\t\"data_store_connection\",\n\t\t\"polling\",\n\t\t\"outputs\"\n\t) VALUES (\n\t\t$1, -- test_id\n\t\t$2, -- run_id\n\t\t$3, -- type\n\t\t$4, -- stage\n\t\t$5, -- title\n\t\t$6, -- description\n\t\t$7, -- created_at\n\t\t$8, -- data_store_connection\n\t\t$9, -- polling\n\t\t$10 -- outputs\n\t)\n\tRETURNING \"id\"\n", "sql.arg.10": "[91 93]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "3634657", - "qualityTrace.span.end_time": "1694713688866103657", - "qualityTrace.span.parent_id": "dd2a1f1644d21df6", - "qualityTrace.span.start_time": "1694713688862469000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "3634657", + "qualitytrace.span.end_time": "1694713688866103657", + "qualitytrace.span.parent_id": "dd2a1f1644d21df6", + "qualitytrace.span.start_time": "1694713688862469000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -2923,18 +2923,18 @@ "sql.arg.1": "current", "sql.query": "\nSELECT\n\t\"id\",\n\t\"name\",\n\t\"type\",\n\t\"is_default\",\n\t\"values\",\n\t\"created_at\"\nFROM data_stores\nWHERE \"id\" = $1", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query SELECT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query SELECT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "1487014", - "qualityTrace.span.end_time": "1694713691903673014", - "qualityTrace.span.parent_id": "bb7d62e8845a5b1e", - "qualityTrace.span.start_time": "1694713691902186000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "1487014", + "qualitytrace.span.end_time": "1694713691903673014", + "qualitytrace.span.parent_id": "bb7d62e8845a5b1e", + "qualitytrace.span.start_time": "1694713691902186000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -2967,18 +2967,18 @@ "sql.arg.20": "[123 34 112 108 117 103 105 110 115 34 58 110 117 108 108 44 34 115 99 111 114 101 34 58 48 44 34 109 105 110 105 109 117 109 83 99 111 114 101 34 58 48 44 34 112 97 115 115 101 100 34 58 102 97 108 115 101 125]", "sql.arg.21": "[123 34 114 101 113 117 105 114 101 100 34 58 91 34 97 110 97 108 121 122 101 114 45 115 99 111 114 101 34 44 34 116 101 115 116 45 115 112 101 99 115 34 93 44 34 102 97 105 108 101 100 34 58 110 117 108 108 44 34 112 97 115 115 101 100 34 58 116 114 117 101 125]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "exec UPDATE", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "exec UPDATE", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "2988370", - "qualityTrace.span.end_time": "1694713691911846370", - "qualityTrace.span.parent_id": "bb7d62e8845a5b1e", - "qualityTrace.span.start_time": "1694713691908858000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "2988370", + "qualitytrace.span.end_time": "1694713691911846370", + "qualitytrace.span.parent_id": "bb7d62e8845a5b1e", + "qualitytrace.span.start_time": "1694713691908858000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -2996,18 +2996,18 @@ "sql.arg.1": "current", "sql.query": "\nSELECT\n\t\"id\",\n\t\"name\",\n\t\"type\",\n\t\"is_default\",\n\t\"values\",\n\t\"created_at\"\nFROM data_stores\nWHERE \"id\" = $1", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query SELECT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query SELECT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "2365351", - "qualityTrace.span.end_time": "1694713691941183351", - "qualityTrace.span.parent_id": "05d5e2245317cbf8", - "qualityTrace.span.start_time": "1694713691938818000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "2365351", + "qualitytrace.span.end_time": "1694713691941183351", + "qualitytrace.span.parent_id": "05d5e2245317cbf8", + "qualitytrace.span.start_time": "1694713691938818000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -3029,18 +3029,18 @@ "sql.query": "\n\tINSERT INTO test_run_events (\n\t\t\"test_id\",\n\t\t\"run_id\",\n\t\t\"type\",\n\t\t\"stage\",\n\t\t\"title\",\n\t\t\"description\",\n\t\t\"created_at\",\n\t\t\"data_store_connection\",\n\t\t\"polling\",\n\t\t\"outputs\"\n\t) VALUES (\n\t\t$1, -- test_id\n\t\t$2, -- run_id\n\t\t$3, -- type\n\t\t$4, -- stage\n\t\t$5, -- title\n\t\t$6, -- description\n\t\t$7, -- created_at\n\t\t$8, -- data_store_connection\n\t\t$9, -- polling\n\t\t$10 -- outputs\n\t)\n\tRETURNING \"id\"\n", "sql.arg.10": "[91 93]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "5718567", - "qualityTrace.span.end_time": "1694713691947243567", - "qualityTrace.span.parent_id": "05d5e2245317cbf8", - "qualityTrace.span.start_time": "1694713691941525000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "5718567", + "qualitytrace.span.end_time": "1694713691947243567", + "qualitytrace.span.parent_id": "05d5e2245317cbf8", + "qualitytrace.span.start_time": "1694713691941525000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -3073,18 +3073,18 @@ "sql.arg.20": "[123 34 112 108 117 103 105 110 115 34 58 110 117 108 108 44 34 115 99 111 114 101 34 58 48 44 34 109 105 110 105 109 117 109 83 99 111 114 101 34 58 48 44 34 112 97 115 115 101 100 34 58 102 97 108 115 101 125]", "sql.arg.21": "[123 34 114 101 113 117 105 114 101 100 34 58 91 34 97 110 97 108 121 122 101 114 45 115 99 111 114 101 34 44 34 116 101 115 116 45 115 112 101 99 115 34 93 44 34 102 97 105 108 101 100 34 58 110 117 108 108 44 34 112 97 115 115 101 100 34 58 116 114 117 101 125]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "exec UPDATE", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "exec UPDATE", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "2721408", - "qualityTrace.span.end_time": "1694713691950775408", - "qualityTrace.span.parent_id": "05d5e2245317cbf8", - "qualityTrace.span.start_time": "1694713691948054000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "2721408", + "qualitytrace.span.end_time": "1694713691950775408", + "qualitytrace.span.parent_id": "05d5e2245317cbf8", + "qualitytrace.span.start_time": "1694713691948054000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -3106,18 +3106,18 @@ "sql.query": "\n\tINSERT INTO test_run_events (\n\t\t\"test_id\",\n\t\t\"run_id\",\n\t\t\"type\",\n\t\t\"stage\",\n\t\t\"title\",\n\t\t\"description\",\n\t\t\"created_at\",\n\t\t\"data_store_connection\",\n\t\t\"polling\",\n\t\t\"outputs\"\n\t) VALUES (\n\t\t$1, -- test_id\n\t\t$2, -- run_id\n\t\t$3, -- type\n\t\t$4, -- stage\n\t\t$5, -- title\n\t\t$6, -- description\n\t\t$7, -- created_at\n\t\t$8, -- data_store_connection\n\t\t$9, -- polling\n\t\t$10 -- outputs\n\t)\n\tRETURNING \"id\"\n", "sql.arg.10": "[91 93]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "4679262", - "qualityTrace.span.end_time": "1694713691955576262", - "qualityTrace.span.parent_id": "05d5e2245317cbf8", - "qualityTrace.span.start_time": "1694713691950897000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "4679262", + "qualitytrace.span.end_time": "1694713691955576262", + "qualitytrace.span.parent_id": "05d5e2245317cbf8", + "qualitytrace.span.start_time": "1694713691950897000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -3139,18 +3139,18 @@ "sql.query": "\n\tINSERT INTO test_run_events (\n\t\t\"test_id\",\n\t\t\"run_id\",\n\t\t\"type\",\n\t\t\"stage\",\n\t\t\"title\",\n\t\t\"description\",\n\t\t\"created_at\",\n\t\t\"data_store_connection\",\n\t\t\"polling\",\n\t\t\"outputs\"\n\t) VALUES (\n\t\t$1, -- test_id\n\t\t$2, -- run_id\n\t\t$3, -- type\n\t\t$4, -- stage\n\t\t$5, -- title\n\t\t$6, -- description\n\t\t$7, -- created_at\n\t\t$8, -- data_store_connection\n\t\t$9, -- polling\n\t\t$10 -- outputs\n\t)\n\tRETURNING \"id\"\n", "sql.arg.10": "[91 93]", "span.events": "[]", - "service.name": "qualityTrace", + "service.name": "qualitytrace", "sql.database": "", "sql.instance": "", - "qualityTrace.span.name": "query INSERT", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "query INSERT", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "2234260", - "qualityTrace.span.end_time": "1694713691957998260", - "qualityTrace.span.parent_id": "05d5e2245317cbf8", - "qualityTrace.span.start_time": "1694713691955764000", - "qualityTrace.span.status_code": "STATUS_CODE_OK", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "2234260", + "qualitytrace.span.end_time": "1694713691957998260", + "qualitytrace.span.parent_id": "05d5e2245317cbf8", + "qualitytrace.span.start_time": "1694713691955764000", + "qualitytrace.span.status_code": "STATUS_CODE_OK", + "qualitytrace.span.status_description": "" } }, { @@ -3161,16 +3161,16 @@ "StartTime": "1694713692072", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Process outputs", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Process outputs", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "264283", - "qualityTrace.span.end_time": "1694713692072493283", - "qualityTrace.span.parent_id": "05d5e2245317cbf8", - "qualityTrace.span.start_time": "1694713692072229000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.output_processor.outputs": "{\"TRIGGER_COUNT\":{\"Name\":\"TRIGGER_COUNT\",\"Value\":\"1\",\"SpanID\":\"451535bbf17e98ea\",\"Resolved\":true,\"Error\":null}}" + "qualitytrace.span.duration": "264283", + "qualitytrace.span.end_time": "1694713692072493283", + "qualitytrace.span.parent_id": "05d5e2245317cbf8", + "qualitytrace.span.start_time": "1694713692072229000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.output_processor.outputs": "{\"TRIGGER_COUNT\":{\"Name\":\"TRIGGER_COUNT\",\"Value\":\"1\",\"SpanID\":\"451535bbf17e98ea\",\"Resolved\":true,\"Error\":null}}" } }, { @@ -3181,865 +3181,865 @@ "StartTime": "1694713692072", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Execute assertions", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Execute assertions", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "141079", - "qualityTrace.span.end_time": "1694713692072661079", - "qualityTrace.span.parent_id": "05d5e2245317cbf8", - "qualityTrace.span.start_time": "1694713692072520000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.assertion_runner.all_assertions_passed": "true" + "qualitytrace.span.duration": "141079", + "qualitytrace.span.end_time": "1694713692072661079", + "qualitytrace.span.parent_id": "05d5e2245317cbf8", + "qualitytrace.span.start_time": "1694713692072520000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.assertion_runner.all_assertions_passed": "true" } } ], "StartTime": "1694713691938", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Evaluating trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Evaluating trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "19284690", - "qualityTrace.span.end_time": "1694713691958076690", - "qualityTrace.span.parent_id": "bb7d62e8845a5b1e", - "qualityTrace.span.start_time": "1694713691938792000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.succesful": "true", - "qualityTrace.run.trace_poller.finish_reason": "Hit MaxRetry of 20", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "19284690", + "qualitytrace.span.end_time": "1694713691958076690", + "qualitytrace.span.parent_id": "bb7d62e8845a5b1e", + "qualitytrace.span.start_time": "1694713691938792000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.succesful": "true", + "qualitytrace.run.trace_poller.finish_reason": "Hit MaxRetry of 20", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713691902", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Fetching trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Fetching trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "9752899", - "qualityTrace.span.end_time": "1694713691911905899", - "qualityTrace.span.parent_id": "dd2a1f1644d21df6", - "qualityTrace.span.start_time": "1694713691902153000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "9752899", + "qualitytrace.span.end_time": "1694713691911905899", + "qualitytrace.span.parent_id": "dd2a1f1644d21df6", + "qualitytrace.span.start_time": "1694713691902153000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713688862", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Evaluating trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Evaluating trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "3901803", - "qualityTrace.span.end_time": "1694713688866162803", - "qualityTrace.span.parent_id": "9fe65924c3c834b4", - "qualityTrace.span.start_time": "1694713688862261000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "3901803", + "qualitytrace.span.end_time": "1694713688866162803", + "qualitytrace.span.parent_id": "9fe65924c3c834b4", + "qualitytrace.span.start_time": "1694713688862261000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713688782", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Fetching trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Fetching trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "18548608", - "qualityTrace.span.end_time": "1694713688801135608", - "qualityTrace.span.parent_id": "b48a2c37cebfdbe4", - "qualityTrace.span.start_time": "1694713688782587000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "18548608", + "qualitytrace.span.end_time": "1694713688801135608", + "qualitytrace.span.parent_id": "b48a2c37cebfdbe4", + "qualitytrace.span.start_time": "1694713688782587000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713685701", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Evaluating trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Evaluating trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "2925635", - "qualityTrace.span.end_time": "1694713685704337635", - "qualityTrace.span.parent_id": "e9841171c139643b", - "qualityTrace.span.start_time": "1694713685701412000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "2925635", + "qualitytrace.span.end_time": "1694713685704337635", + "qualitytrace.span.parent_id": "e9841171c139643b", + "qualitytrace.span.start_time": "1694713685701412000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713685667", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Fetching trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Fetching trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "10050770", - "qualityTrace.span.end_time": "1694713685677611770", - "qualityTrace.span.parent_id": "82cb632092608afb", - "qualityTrace.span.start_time": "1694713685667561000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "10050770", + "qualitytrace.span.end_time": "1694713685677611770", + "qualitytrace.span.parent_id": "82cb632092608afb", + "qualitytrace.span.start_time": "1694713685667561000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713682635", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Evaluating trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Evaluating trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "2760247", - "qualityTrace.span.end_time": "1694713682638216247", - "qualityTrace.span.parent_id": "197e3a649a1b1a1e", - "qualityTrace.span.start_time": "1694713682635456000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "2760247", + "qualitytrace.span.end_time": "1694713682638216247", + "qualitytrace.span.parent_id": "197e3a649a1b1a1e", + "qualitytrace.span.start_time": "1694713682635456000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713682586", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Fetching trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Fetching trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "9842554", - "qualityTrace.span.end_time": "1694713682596038554", - "qualityTrace.span.parent_id": "86c7dda231490a68", - "qualityTrace.span.start_time": "1694713682586196000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "9842554", + "qualitytrace.span.end_time": "1694713682596038554", + "qualitytrace.span.parent_id": "86c7dda231490a68", + "qualitytrace.span.start_time": "1694713682586196000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713679516", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Evaluating trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Evaluating trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "2900042", - "qualityTrace.span.end_time": "1694713679519263042", - "qualityTrace.span.parent_id": "fc3bac894af0edbc", - "qualityTrace.span.start_time": "1694713679516363000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "2900042", + "qualitytrace.span.end_time": "1694713679519263042", + "qualitytrace.span.parent_id": "fc3bac894af0edbc", + "qualitytrace.span.start_time": "1694713679516363000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713679448", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Fetching trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Fetching trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "11518829", - "qualityTrace.span.end_time": "1694713679459545829", - "qualityTrace.span.parent_id": "a6e31a549ef7fb2f", - "qualityTrace.span.start_time": "1694713679448027000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "11518829", + "qualitytrace.span.end_time": "1694713679459545829", + "qualitytrace.span.parent_id": "a6e31a549ef7fb2f", + "qualitytrace.span.start_time": "1694713679448027000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713676415", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Evaluating trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Evaluating trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "2955246", - "qualityTrace.span.end_time": "1694713676418000246", - "qualityTrace.span.parent_id": "7f04dcef3a7448f1", - "qualityTrace.span.start_time": "1694713676415045000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "2955246", + "qualitytrace.span.end_time": "1694713676418000246", + "qualitytrace.span.parent_id": "7f04dcef3a7448f1", + "qualitytrace.span.start_time": "1694713676415045000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713676351", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Fetching trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Fetching trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "12898280", - "qualityTrace.span.end_time": "1694713676364201280", - "qualityTrace.span.parent_id": "fd8faf1f73776a7e", - "qualityTrace.span.start_time": "1694713676351303000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "12898280", + "qualitytrace.span.end_time": "1694713676364201280", + "qualitytrace.span.parent_id": "fd8faf1f73776a7e", + "qualitytrace.span.start_time": "1694713676351303000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713673313", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Evaluating trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Evaluating trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "3253563", - "qualityTrace.span.end_time": "1694713673317121563", - "qualityTrace.span.parent_id": "85fd74e8fd513826", - "qualityTrace.span.start_time": "1694713673313868000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "3253563", + "qualitytrace.span.end_time": "1694713673317121563", + "qualitytrace.span.parent_id": "85fd74e8fd513826", + "qualitytrace.span.start_time": "1694713673313868000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713673271", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Fetching trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Fetching trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "10064602", - "qualityTrace.span.end_time": "1694713673281741602", - "qualityTrace.span.parent_id": "fa1637b3bddbefa8", - "qualityTrace.span.start_time": "1694713673271677000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "10064602", + "qualitytrace.span.end_time": "1694713673281741602", + "qualitytrace.span.parent_id": "fa1637b3bddbefa8", + "qualitytrace.span.start_time": "1694713673271677000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713670244", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Evaluating trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Evaluating trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "2723311", - "qualityTrace.span.end_time": "1694713670247067311", - "qualityTrace.span.parent_id": "5cb9436d3c580b39", - "qualityTrace.span.start_time": "1694713670244344000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "2723311", + "qualitytrace.span.end_time": "1694713670247067311", + "qualitytrace.span.parent_id": "5cb9436d3c580b39", + "qualitytrace.span.start_time": "1694713670244344000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713670131", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Fetching trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Fetching trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "60900852", - "qualityTrace.span.end_time": "1694713670192471852", - "qualityTrace.span.parent_id": "cfe32bac41f3451c", - "qualityTrace.span.start_time": "1694713670131571000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "60900852", + "qualitytrace.span.end_time": "1694713670192471852", + "qualitytrace.span.parent_id": "cfe32bac41f3451c", + "qualitytrace.span.start_time": "1694713670131571000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713667090", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Evaluating trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Evaluating trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "4539220", - "qualityTrace.span.end_time": "1694713667095410220", - "qualityTrace.span.parent_id": "4a07d637900ec5d1", - "qualityTrace.span.start_time": "1694713667090871000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "4539220", + "qualitytrace.span.end_time": "1694713667095410220", + "qualitytrace.span.parent_id": "4a07d637900ec5d1", + "qualitytrace.span.start_time": "1694713667090871000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713667059", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Fetching trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Fetching trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "9166860", - "qualityTrace.span.end_time": "1694713667068181860", - "qualityTrace.span.parent_id": "dd302dd36407e7e1", - "qualityTrace.span.start_time": "1694713667059015000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "9166860", + "qualitytrace.span.end_time": "1694713667068181860", + "qualitytrace.span.parent_id": "dd302dd36407e7e1", + "qualitytrace.span.start_time": "1694713667059015000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713664028", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Evaluating trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Evaluating trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "3082981", - "qualityTrace.span.end_time": "1694713664031825981", - "qualityTrace.span.parent_id": "f571e07cd44a3ba3", - "qualityTrace.span.start_time": "1694713664028743000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "3082981", + "qualitytrace.span.end_time": "1694713664031825981", + "qualitytrace.span.parent_id": "f571e07cd44a3ba3", + "qualitytrace.span.start_time": "1694713664028743000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713663853", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Fetching trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Fetching trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "123109534", - "qualityTrace.span.end_time": "1694713663976163534", - "qualityTrace.span.parent_id": "1fa698d839fbabd3", - "qualityTrace.span.start_time": "1694713663853054000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "123109534", + "qualitytrace.span.end_time": "1694713663976163534", + "qualitytrace.span.parent_id": "1fa698d839fbabd3", + "qualitytrace.span.start_time": "1694713663853054000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713660823", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Evaluating trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Evaluating trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "4794522", - "qualityTrace.span.end_time": "1694713660827948522", - "qualityTrace.span.parent_id": "56fe2130f67a551c", - "qualityTrace.span.start_time": "1694713660823154000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "4794522", + "qualitytrace.span.end_time": "1694713660827948522", + "qualitytrace.span.parent_id": "56fe2130f67a551c", + "qualitytrace.span.start_time": "1694713660823154000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713660765", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Fetching trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Fetching trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "28971007", - "qualityTrace.span.end_time": "1694713660794234007", - "qualityTrace.span.parent_id": "c7d0e74dc9bda4af", - "qualityTrace.span.start_time": "1694713660765263000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "28971007", + "qualitytrace.span.end_time": "1694713660794234007", + "qualitytrace.span.parent_id": "c7d0e74dc9bda4af", + "qualitytrace.span.start_time": "1694713660765263000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713657727", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Evaluating trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Evaluating trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "5323421", - "qualityTrace.span.end_time": "1694713657732673421", - "qualityTrace.span.parent_id": "2b2ff1a22f63e03b", - "qualityTrace.span.start_time": "1694713657727350000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "5323421", + "qualitytrace.span.end_time": "1694713657732673421", + "qualitytrace.span.parent_id": "2b2ff1a22f63e03b", + "qualitytrace.span.start_time": "1694713657727350000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713657649", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Fetching trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Fetching trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "13829038", - "qualityTrace.span.end_time": "1694713657663432038", - "qualityTrace.span.parent_id": "53a5c8cbcb0a0b6f", - "qualityTrace.span.start_time": "1694713657649603000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "13829038", + "qualitytrace.span.end_time": "1694713657663432038", + "qualitytrace.span.parent_id": "53a5c8cbcb0a0b6f", + "qualitytrace.span.start_time": "1694713657649603000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713654623", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Evaluating trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Evaluating trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "4292521", - "qualityTrace.span.end_time": "1694713654627923521", - "qualityTrace.span.parent_id": "d9c8e4009639251a", - "qualityTrace.span.start_time": "1694713654623631000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "4292521", + "qualitytrace.span.end_time": "1694713654627923521", + "qualitytrace.span.parent_id": "d9c8e4009639251a", + "qualitytrace.span.start_time": "1694713654623631000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713654567", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Fetching trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Fetching trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "14274349", - "qualityTrace.span.end_time": "1694713654581912349", - "qualityTrace.span.parent_id": "25a9c05128c2a00d", - "qualityTrace.span.start_time": "1694713654567638000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "14274349", + "qualitytrace.span.end_time": "1694713654581912349", + "qualitytrace.span.parent_id": "25a9c05128c2a00d", + "qualitytrace.span.start_time": "1694713654567638000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713651533", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Evaluating trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Evaluating trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "7199680", - "qualityTrace.span.end_time": "1694713651540643680", - "qualityTrace.span.parent_id": "cf83e9acdbeffdf0", - "qualityTrace.span.start_time": "1694713651533444000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "7199680", + "qualitytrace.span.end_time": "1694713651540643680", + "qualitytrace.span.parent_id": "cf83e9acdbeffdf0", + "qualitytrace.span.start_time": "1694713651533444000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713651410", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Fetching trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Fetching trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "10049696", - "qualityTrace.span.end_time": "1694713651420630696", - "qualityTrace.span.parent_id": "f1e9153fe9e855f9", - "qualityTrace.span.start_time": "1694713651410581000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "10049696", + "qualitytrace.span.end_time": "1694713651420630696", + "qualitytrace.span.parent_id": "f1e9153fe9e855f9", + "qualitytrace.span.start_time": "1694713651410581000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713648368", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Evaluating trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Evaluating trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "11016370", - "qualityTrace.span.end_time": "1694713648379454370", - "qualityTrace.span.parent_id": "a7062908a501cb9e", - "qualityTrace.span.start_time": "1694713648368438000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "11016370", + "qualitytrace.span.end_time": "1694713648379454370", + "qualitytrace.span.parent_id": "a7062908a501cb9e", + "qualitytrace.span.start_time": "1694713648368438000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713648298", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Fetching trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Fetching trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "15699071", - "qualityTrace.span.end_time": "1694713648314593071", - "qualityTrace.span.parent_id": "80fd30690f8471a2", - "qualityTrace.span.start_time": "1694713648298894000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "15699071", + "qualitytrace.span.end_time": "1694713648314593071", + "qualitytrace.span.parent_id": "80fd30690f8471a2", + "qualitytrace.span.start_time": "1694713648298894000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713645265", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Evaluating trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Evaluating trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "2639956", - "qualityTrace.span.end_time": "1694713645268553956", - "qualityTrace.span.parent_id": "44d3e68de3216208", - "qualityTrace.span.start_time": "1694713645265914000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "2639956", + "qualitytrace.span.end_time": "1694713645268553956", + "qualitytrace.span.parent_id": "44d3e68de3216208", + "qualitytrace.span.start_time": "1694713645265914000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713645212", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Fetching trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Fetching trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "10952190", - "qualityTrace.span.end_time": "1694713645223801190", - "qualityTrace.span.parent_id": "895d3b360782e727", - "qualityTrace.span.start_time": "1694713645212849000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "10952190", + "qualitytrace.span.end_time": "1694713645223801190", + "qualitytrace.span.parent_id": "895d3b360782e727", + "qualitytrace.span.start_time": "1694713645212849000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713641990", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Evaluating trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Evaluating trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "197378880", - "qualityTrace.span.end_time": "1694713642188137880", - "qualityTrace.span.parent_id": "4586262986f3c003", - "qualityTrace.span.start_time": "1694713641990759000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "197378880", + "qualitytrace.span.end_time": "1694713642188137880", + "qualitytrace.span.parent_id": "4586262986f3c003", + "qualitytrace.span.start_time": "1694713641990759000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713641697", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Fetching trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Fetching trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "253589149", - "qualityTrace.span.end_time": "1694713641951086149", - "qualityTrace.span.parent_id": "c1fa2e517ba79d37", - "qualityTrace.span.start_time": "1694713641697497000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "253589149", + "qualitytrace.span.end_time": "1694713641951086149", + "qualitytrace.span.parent_id": "c1fa2e517ba79d37", + "qualitytrace.span.start_time": "1694713641697497000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713638646", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Evaluating trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Evaluating trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "3401976", - "qualityTrace.span.end_time": "1694713638649994976", - "qualityTrace.span.parent_id": "9741a0fae00f9ffe", - "qualityTrace.span.start_time": "1694713638646593000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "3401976", + "qualitytrace.span.end_time": "1694713638649994976", + "qualitytrace.span.parent_id": "9741a0fae00f9ffe", + "qualitytrace.span.start_time": "1694713638646593000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713638603", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Fetching trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Fetching trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "14112808", - "qualityTrace.span.end_time": "1694713638617589808", - "qualityTrace.span.parent_id": "668ac36286bc2205", - "qualityTrace.span.start_time": "1694713638603477000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "14112808", + "qualitytrace.span.end_time": "1694713638617589808", + "qualitytrace.span.parent_id": "668ac36286bc2205", + "qualitytrace.span.start_time": "1694713638603477000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713635556", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Evaluating trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Evaluating trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "25285652", - "qualityTrace.span.end_time": "1694713635582212652", - "qualityTrace.span.parent_id": "e388a21cb7a3bf17", - "qualityTrace.span.start_time": "1694713635556927000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "25285652", + "qualitytrace.span.end_time": "1694713635582212652", + "qualitytrace.span.parent_id": "e388a21cb7a3bf17", + "qualitytrace.span.start_time": "1694713635556927000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713635512", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Fetching trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Fetching trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "11853918", - "qualityTrace.span.end_time": "1694713635524582918", - "qualityTrace.span.parent_id": "750484f235a2e939", - "qualityTrace.span.start_time": "1694713635512729000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "11853918", + "qualitytrace.span.end_time": "1694713635524582918", + "qualitytrace.span.parent_id": "750484f235a2e939", + "qualitytrace.span.start_time": "1694713635512729000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713632472", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Evaluating trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Evaluating trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "3920010", - "qualityTrace.span.end_time": "1694713632476906010", - "qualityTrace.span.parent_id": "59d6baae97580d8c", - "qualityTrace.span.start_time": "1694713632472986000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "3" + "qualitytrace.span.duration": "3920010", + "qualitytrace.span.end_time": "1694713632476906010", + "qualitytrace.span.parent_id": "59d6baae97580d8c", + "qualitytrace.span.start_time": "1694713632472986000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "3" } } ], "StartTime": "1694713632438", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Fetching trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Fetching trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "9817385", - "qualityTrace.span.end_time": "1694713632447855385", - "qualityTrace.span.parent_id": "a193adbe652ae280", - "qualityTrace.span.start_time": "1694713632438038000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "0" + "qualitytrace.span.duration": "9817385", + "qualitytrace.span.end_time": "1694713632447855385", + "qualitytrace.span.parent_id": "a193adbe652ae280", + "qualitytrace.span.start_time": "1694713632438038000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "0" } } ], "StartTime": "1694713629401", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Evaluating trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Evaluating trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "3533357", - "qualityTrace.span.end_time": "1694713629404698357", - "qualityTrace.span.parent_id": "caa608d8b58903a4", - "qualityTrace.span.start_time": "1694713629401165000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "0" + "qualitytrace.span.duration": "3533357", + "qualitytrace.span.end_time": "1694713629404698357", + "qualitytrace.span.parent_id": "caa608d8b58903a4", + "qualitytrace.span.start_time": "1694713629401165000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "0" } } ], "StartTime": "1694713629352", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Fetching trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Fetching trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "9577773", - "qualityTrace.span.end_time": "1694713629362275773", - "qualityTrace.span.parent_id": "03a988ec67bb2866", - "qualityTrace.span.start_time": "1694713629352698000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "0" + "qualitytrace.span.duration": "9577773", + "qualitytrace.span.end_time": "1694713629362275773", + "qualitytrace.span.parent_id": "03a988ec67bb2866", + "qualitytrace.span.start_time": "1694713629352698000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "0" } } ], "StartTime": "1694713629300", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Start polling trace", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Start polling trace", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "21255152", - "qualityTrace.span.end_time": "1694713629322086152", - "qualityTrace.span.parent_id": "92490c0a4be67353", - "qualityTrace.span.start_time": "1694713629300831000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "", - "qualityTrace.run.trace_poller.span_id": "f003ce536c6ef3e3", - "qualityTrace.run.trace_poller.test_id": "U9kZntiSR", - "qualityTrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", - "qualityTrace.run.trace_poller.amount_retrieved_spans": "0" + "qualitytrace.span.duration": "21255152", + "qualitytrace.span.end_time": "1694713629322086152", + "qualitytrace.span.parent_id": "92490c0a4be67353", + "qualitytrace.span.start_time": "1694713629300831000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "", + "qualitytrace.run.trace_poller.span_id": "f003ce536c6ef3e3", + "qualitytrace.run.trace_poller.test_id": "U9kZntiSR", + "qualitytrace.run.trace_poller.trace_id": "5f2184a9c81b97e24d1b459a64868b87", + "qualitytrace.run.trace_poller.amount_retrieved_spans": "0" } } ], "StartTime": "1694713629225", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Start processing trigger response", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Start processing trigger response", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "50912557", - "qualityTrace.span.end_time": "1694713629276606557", - "qualityTrace.span.parent_id": "14ce9429bba3eff7", - "qualityTrace.span.start_time": "1694713629225694000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "50912557", + "qualitytrace.span.end_time": "1694713629276606557", + "qualitytrace.span.parent_id": "14ce9429bba3eff7", + "qualitytrace.span.start_time": "1694713629225694000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "" } } ], "StartTime": "1694713628942", "Attributes": { "span.events": "[]", - "qualityTrace.span.name": "Resolve trigger", - "qualityTrace.span.type": "general", + "qualitytrace.span.name": "Resolve trigger", + "qualitytrace.span.type": "general", "internal.span.format": "proto", - "qualityTrace.span.duration": "50152885", - "qualityTrace.span.end_time": "1694713628992695885", - "qualityTrace.span.parent_id": "b8d91e328fa35a94", - "qualityTrace.span.start_time": "1694713628942543000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "50152885", + "qualitytrace.span.end_time": "1694713628992695885", + "qualitytrace.span.parent_id": "b8d91e328fa35a94", + "qualitytrace.span.start_time": "1694713628942543000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "" } } ], @@ -4051,29 +4051,29 @@ "span.events": "[]", "http.request.query": "{}", "http.request.params": "{\"testId\":\"U9kZntiSR\"}", - "qualityTrace.span.name": "POST /api/tests/{testId}/run", - "qualityTrace.span.type": "http", - "http.request.headers": "{\"B3\":[\"00f2de75a481d9700a3aa45de8832b7a-5482d51cac46e9ac-1\"],\"Content-Length\":[\"2\"],\"Content-Type\":[\"application/json\"],\"Ot-Tracer-Sampled\":[\"true\"],\"Ot-Tracer-Spanid\":[\"5482d51cac46e9ac\"],\"Ot-Tracer-Traceid\":[\"0a3aa45de8832b7a\"],\"Traceparent\":[\"00-00f2de75a481d9700a3aa45de8832b7a-5482d51cac46e9ac-01\"],\"Tracestate\":[\"qualityTrace=true\"],\"Uber-Trace-Id\":[\"00f2de75a481d9700a3aa45de8832b7a:5482d51cac46e9ac:0:1\"],\"User-Agent\":[\"Go-http-client/1.1\"],\"X-Amzn-Trace-Id\":[\"Root=1-00f2de75-a481d9700a3aa45de8832b7a;Parent=5482d51cac46e9ac;Sampled=1\"]}", + "qualitytrace.span.name": "POST /api/tests/{testId}/run", + "qualitytrace.span.type": "http", + "http.request.headers": "{\"B3\":[\"00f2de75a481d9700a3aa45de8832b7a-5482d51cac46e9ac-1\"],\"Content-Length\":[\"2\"],\"Content-Type\":[\"application/json\"],\"Ot-Tracer-Sampled\":[\"true\"],\"Ot-Tracer-Spanid\":[\"5482d51cac46e9ac\"],\"Ot-Tracer-Traceid\":[\"0a3aa45de8832b7a\"],\"Traceparent\":[\"00-00f2de75a481d9700a3aa45de8832b7a-5482d51cac46e9ac-01\"],\"Tracestate\":[\"qualitytrace=true\"],\"Uber-Trace-Id\":[\"00f2de75a481d9700a3aa45de8832b7a:5482d51cac46e9ac:0:1\"],\"User-Agent\":[\"Go-http-client/1.1\"],\"X-Amzn-Trace-Id\":[\"Root=1-00f2de75-a481d9700a3aa45de8832b7a;Parent=5482d51cac46e9ac;Sampled=1\"]}", "internal.span.format": "proto", - "qualityTrace.span.duration": "23839682", - "qualityTrace.span.end_time": "1694713628906210682", - "qualityTrace.span.parent_id": "dc274164cab19bf7", - "qualityTrace.span.start_time": "1694713628882371000", - "qualityTrace.span.status_code": "STATUS_CODE_UNSET", - "qualityTrace.span.status_description": "" + "qualitytrace.span.duration": "23839682", + "qualitytrace.span.end_time": "1694713628906210682", + "qualitytrace.span.parent_id": "dc274164cab19bf7", + "qualitytrace.span.start_time": "1694713628882371000", + "qualitytrace.span.status_code": "STATUS_CODE_UNSET", + "qualitytrace.span.status_description": "" } } ], "StartTime": "1694713628788", "Attributes": { - "qualityTrace.span.name": "Tracetest trigger", - "qualityTrace.span.type": "general", - "qualityTrace.response.body": "{\"id\":1,\"traceId\":\"478626ae3655d302420c8128c44e0569\",\"spanId\":\"13386f0abed8c4d7\",\"testVersion\":1,\"state\":\"CREATED\",\"executionTime\":1,\"triggerTime\":2077252342,\"createdAt\":\"2023-09-14T17:47:08.886249Z\",\"serviceTriggeredAt\":\"0001-01-01T00:00:00Z\",\"serviceTriggerCompletedAt\":\"0001-01-01T00:00:00Z\",\"obtainedTraceAt\":\"0001-01-01T00:00:00Z\",\"completedAt\":\"1970-01-01T00:00:00Z\",\"variableSet\":{},\"resolvedTrigger\":{\"httpRequest\":{\"auth\":{\"apiKey\":{},\"basic\":{},\"bearer\":{}}},\"grpc\":{\"auth\":{\"apiKey\":{},\"basic\":{},\"bearer\":{}}},\"traceid\":{},\"kafka\":{\"authentication\":{\"plain\":{}}}},\"triggerResult\":{\"triggerResult\":{\"http\":{},\"grpc\":{},\"traceid\":{},\"kafka\":{}}},\"trace\":{\"tree\":{}},\"result\":{},\"linter\":{},\"requiredGatesResult\":{\"required\":[\"analyzer-score\",\"test-specs\"],\"failed\":[],\"passed\":true}}\n", - "qualityTrace.span.duration": "118557000", - "qualityTrace.span.end_time": "1694713628906797000", - "qualityTrace.response.status": "200", - "qualityTrace.span.start_time": "1694713628788240000", - "qualityTrace.response.headers": "[{\"key\":\"Content-Type\",\"value\":\"application/json; charset=UTF-8\"},{\"key\":\"Vary\",\"value\":\"Accept-Encoding\"},{\"key\":\"Date\",\"value\":\"Thu, 14 Sep 2023 17:47:08 GMT\"}]" + "qualitytrace.span.name": "Qualitytrace trigger", + "qualitytrace.span.type": "general", + "qualitytrace.response.body": "{\"id\":1,\"traceId\":\"478626ae3655d302420c8128c44e0569\",\"spanId\":\"13386f0abed8c4d7\",\"testVersion\":1,\"state\":\"CREATED\",\"executionTime\":1,\"triggerTime\":2077252342,\"createdAt\":\"2023-09-14T17:47:08.886249Z\",\"serviceTriggeredAt\":\"0001-01-01T00:00:00Z\",\"serviceTriggerCompletedAt\":\"0001-01-01T00:00:00Z\",\"obtainedTraceAt\":\"0001-01-01T00:00:00Z\",\"completedAt\":\"1970-01-01T00:00:00Z\",\"variableSet\":{},\"resolvedTrigger\":{\"httpRequest\":{\"auth\":{\"apiKey\":{},\"basic\":{},\"bearer\":{}}},\"grpc\":{\"auth\":{\"apiKey\":{},\"basic\":{},\"bearer\":{}}},\"traceid\":{},\"kafka\":{\"authentication\":{\"plain\":{}}}},\"triggerResult\":{\"triggerResult\":{\"http\":{},\"grpc\":{},\"traceid\":{},\"kafka\":{}}},\"trace\":{\"tree\":{}},\"result\":{},\"linter\":{},\"requiredGatesResult\":{\"required\":[\"analyzer-score\",\"test-specs\"],\"failed\":[],\"passed\":true}}\n", + "qualitytrace.span.duration": "118557000", + "qualitytrace.span.end_time": "1694713628906797000", + "qualitytrace.response.status": "200", + "qualitytrace.span.start_time": "1694713628788240000", + "qualitytrace.response.headers": "[{\"key\":\"Content-Type\",\"value\":\"application/json; charset=UTF-8\"},{\"key\":\"Vary\",\"value\":\"Accept-Encoding\"},{\"key\":\"Date\",\"value\":\"Thu, 14 Sep 2023 17:47:08 GMT\"}]" } } } \ No newline at end of file diff --git a/server/traces/otel_converter.go b/server/traces/otel_converter.go index e16c6f4..9350714 100644 --- a/server/traces/otel_converter.go +++ b/server/traces/otel_converter.go @@ -63,7 +63,7 @@ func ConvertOtelSpanIntoSpan(span *v1.Span) *Span { } spanID := createSpanID(span.SpanId) - attributes.Set(TracetestMetadataFieldParentID, createSpanID(span.ParentSpanId).String()) + attributes.Set(QualitytraceMetadataFieldParentID, createSpanID(span.ParentSpanId).String()) return &Span{ ID: spanID, Name: span.Name, diff --git a/server/traces/otel_http_converter.go b/server/traces/otel_http_converter.go index cc7f27f..08b5860 100644 --- a/server/traces/otel_http_converter.go +++ b/server/traces/otel_http_converter.go @@ -91,7 +91,7 @@ func convertHttpOtelSpanIntoSpan(span *httpSpan) *Span { } spanID := createSpanID([]byte(span.SpanId)) - attributes.Set(TracetestMetadataFieldParentID, createSpanID([]byte(span.ParentSpanId)).String()) + attributes.Set(QualitytraceMetadataFieldParentID, createSpanID([]byte(span.ParentSpanId)).String()) return &Span{ ID: spanID, diff --git a/server/traces/span_entitiess.go b/server/traces/span_entitiess.go index 936ae66..cf36375 100644 --- a/server/traces/span_entitiess.go +++ b/server/traces/span_entitiess.go @@ -7,21 +7,21 @@ import ( "sync" "time" - "github.com/intelops/qualityTrace/agent/workers/trigger" - "github.com/intelops/qualityTrace/server/pkg/timing" + "github.com/intelops/qualitytrace/agent/workers/trigger" + "github.com/intelops/qualitytrace/server/pkg/timing" "go.opentelemetry.io/otel/trace" ) const ( - TracetestMetadataFieldStartTime string = "qualityTrace.span.start_time" - TracetestMetadataFieldEndTime string = "qualityTrace.span.end_time" - TracetestMetadataFieldDuration string = "qualityTrace.span.duration" - TracetestMetadataFieldType string = "qualityTrace.span.type" - TracetestMetadataFieldName string = "qualityTrace.span.name" - TracetestMetadataFieldParentID string = "qualityTrace.span.parent_id" - TracetestMetadataFieldKind string = "qualityTrace.span.kind" - TracetestMetadataFieldStatusCode string = "qualityTrace.span.status_code" - TracetestMetadataFieldStatusDescription string = "qualityTrace.span.status_description" + QualitytraceMetadataFieldStartTime string = "qualitytrace.span.start_time" + QualitytraceMetadataFieldEndTime string = "qualitytrace.span.end_time" + QualitytraceMetadataFieldDuration string = "qualitytrace.span.duration" + QualitytraceMetadataFieldType string = "qualitytrace.span.type" + QualitytraceMetadataFieldName string = "qualitytrace.span.name" + QualitytraceMetadataFieldParentID string = "qualitytrace.span.parent_id" + QualitytraceMetadataFieldKind string = "qualitytrace.span.kind" + QualitytraceMetadataFieldStatusCode string = "qualitytrace.span.status_code" + QualitytraceMetadataFieldStatusDescription string = "qualitytrace.span.status_description" ) func NewAttributes(inputs ...map[string]string) Attributes { @@ -337,17 +337,17 @@ func (span Span) setMetadataAttributes() Span { span.Attributes = NewAttributes() } - span.Attributes.Set(TracetestMetadataFieldName, span.Name) - span.Attributes.Set(TracetestMetadataFieldType, spanType(span.Attributes)) - span.Attributes.Set(TracetestMetadataFieldDuration, spanDuration(span)) - span.Attributes.Set(TracetestMetadataFieldStartTime, strconv.FormatInt(span.StartTime.UTC().UnixNano(), 10)) - span.Attributes.Set(TracetestMetadataFieldEndTime, strconv.FormatInt(span.EndTime.UTC().UnixNano(), 10)) + span.Attributes.Set(QualitytraceMetadataFieldName, span.Name) + span.Attributes.Set(QualitytraceMetadataFieldType, spanType(span.Attributes)) + span.Attributes.Set(QualitytraceMetadataFieldDuration, spanDuration(span)) + span.Attributes.Set(QualitytraceMetadataFieldStartTime, strconv.FormatInt(span.StartTime.UTC().UnixNano(), 10)) + span.Attributes.Set(QualitytraceMetadataFieldEndTime, strconv.FormatInt(span.EndTime.UTC().UnixNano(), 10)) if span.Status != nil { - span.Attributes.Set(TracetestMetadataFieldStatusCode, span.Status.Code) + span.Attributes.Set(QualitytraceMetadataFieldStatusCode, span.Status.Code) if span.Status.Description != "" { - span.Attributes.Set(TracetestMetadataFieldStatusDescription, span.Status.Description) + span.Attributes.Set(QualitytraceMetadataFieldStatusDescription, span.Status.Description) } } @@ -359,15 +359,15 @@ func (span Span) setTriggerResultAttributes(result trigger.TriggerResult) Span { case trigger.TriggerTypeHTTP: resp := result.HTTP jsonheaders, _ := json.Marshal(resp.Headers) - span.Attributes.Set("qualityTrace.response.status", strconv.Itoa(resp.StatusCode)) - span.Attributes.Set("qualityTrace.response.body", resp.Body) - span.Attributes.Set("qualityTrace.response.headers", string(jsonheaders)) + span.Attributes.Set("qualitytrace.response.status", strconv.Itoa(resp.StatusCode)) + span.Attributes.Set("qualitytrace.response.body", resp.Body) + span.Attributes.Set("qualitytrace.response.headers", string(jsonheaders)) case trigger.TriggerTypeGRPC: resp := result.GRPC jsonheaders, _ := json.Marshal(resp.Metadata) - span.Attributes.Set("qualityTrace.response.status", strconv.Itoa(resp.StatusCode)) - span.Attributes.Set("qualityTrace.response.body", resp.Body) - span.Attributes.Set("qualityTrace.response.headers", string(jsonheaders)) + span.Attributes.Set("qualitytrace.response.status", strconv.Itoa(resp.StatusCode)) + span.Attributes.Set("qualitytrace.response.body", resp.Body) + span.Attributes.Set("qualitytrace.response.headers", string(jsonheaders)) } return span diff --git a/server/traces/time_converter_test.go b/server/traces/time_converter_test.go index 522ff34..1eac0ca 100644 --- a/server/traces/time_converter_test.go +++ b/server/traces/time_converter_test.go @@ -3,7 +3,7 @@ package traces_test import ( "testing" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/traces" "github.com/stretchr/testify/assert" ) diff --git a/server/traces/trace_entities.go b/server/traces/trace_entities.go index 6c2fb5c..af3d665 100644 --- a/server/traces/trace_entities.go +++ b/server/traces/trace_entities.go @@ -7,9 +7,9 @@ import ( "strconv" "strings" - "github.com/intelops/qualityTrace/agent/workers/trigger" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/pkg/timing" + "github.com/intelops/qualitytrace/agent/workers/trigger" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/timing" "go.opentelemetry.io/otel/trace" ) @@ -73,7 +73,7 @@ func NewTrace(traceID string, spans []Span) Trace { for _, span := range spanMap { span.injectEventsIntoAttributes() - parentID := span.Attributes.Get(TracetestMetadataFieldParentID) + parentID := span.Attributes.Get(QualitytraceMetadataFieldParentID) parentSpan, found := spanMap[parentID] if !found { rootSpans = append(rootSpans, span) @@ -132,7 +132,7 @@ func getRootSpan(allRoots []*Span) *Span { // TODO: this is temp while we decide what to do with browser spans and how to handle them func isBrowserSpan(attrs Attributes) bool { - return attrs.Get("event_type") != "" || attrs.Get(TracetestMetadataFieldName) == "documentLoad" + return attrs.Get("event_type") != "" || attrs.Get(QualitytraceMetadataFieldName) == "documentLoad" } func spanType(attrs Attributes) string { @@ -181,8 +181,8 @@ func (t *Trace) Sort() Trace { return trace } -const TriggerSpanName = "Tracetest trigger" -const TemporaryRootSpanName = "Temporary Tracetest root span" +const TriggerSpanName = "Qualitytrace trigger" +const TemporaryRootSpanName = "Temporary Qualitytrace root span" func (t *Trace) HasRootSpan() bool { return t.RootSpan.Name == TriggerSpanName @@ -217,7 +217,7 @@ func replaceRoot(oldRoot, newRoot Span) Span { oldRoot.Attributes = NewAttributes() } oldRoot.Parent = &newRoot - oldRoot.Attributes.Set(TracetestMetadataFieldParentID, newRoot.ID.String()) + oldRoot.Attributes.Set(QualitytraceMetadataFieldParentID, newRoot.ID.String()) newRoot.Children = append(newRoot.Children, &oldRoot) diff --git a/server/traces/trace_repository.go b/server/traces/trace_repository.go index e1a4046..70c2fc1 100644 --- a/server/traces/trace_repository.go +++ b/server/traces/trace_repository.go @@ -8,7 +8,7 @@ import ( "fmt" "log" - "github.com/intelops/qualityTrace/server/pkg/sqlutil" + "github.com/intelops/qualitytrace/server/pkg/sqlutil" "go.opentelemetry.io/otel/trace" ) diff --git a/server/traces/traces_test.go b/server/traces/traces_test.go index e464ef1..2c698bf 100644 --- a/server/traces/traces_test.go +++ b/server/traces/traces_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/traces" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/traces" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "go.opentelemetry.io/otel/trace" @@ -55,11 +55,11 @@ func TestTraceWithMultipleRoots(t *testing.T) { } func TestTraceWithMultipleTemporaryRoots(t *testing.T) { - root1 := newSpan("Temporary Tracetest root span") + root1 := newSpan("Temporary Qualitytrace root span") root1Child := newSpan("Child from root 1", withParent(&root1)) - root2 := newSpan("Temporary Tracetest root span") + root2 := newSpan("Temporary Qualitytrace root span") root2Child := newSpan("Child from root 2", withParent(&root2)) - root3 := newSpan("Temporary Tracetest root span") + root3 := newSpan("Temporary Qualitytrace root span") root3Child := newSpan("Child from root 3", withParent(&root3)) spans := []traces.Span{root1, root1Child, root2, root2Child, root3, root3Child} @@ -82,7 +82,7 @@ func TestTraceAssemble(t *testing.T) { trace := traces.NewTrace("trace", spans) assert.Len(t, trace.Flat, 4) - assert.Equal(t, "Temporary Tracetest root span", trace.RootSpan.Name) + assert.Equal(t, "Temporary Qualitytrace root span", trace.RootSpan.Name) assert.Equal(t, "Root", child(t, &trace.RootSpan, 0).Name) assert.Equal(t, "child 1", grandchild(t, &trace.RootSpan, 0, 0).Name) assert.Equal(t, "grandchild", child(t, &trace.RootSpan, 1).Name) @@ -177,7 +177,7 @@ func TestInjectingNewRootWhenMultipleRoots(t *testing.T) { } } -func TestNoTemporaryRootIfTracetestRootExists(t *testing.T) { +func TestNoTemporaryRootIfQualitytraceRootExists(t *testing.T) { root1 := newSpan("Root 1") root1Child := newSpan("Child from root 1", withParent(&root1)) root2 := newSpan(traces.TriggerSpanName) @@ -294,7 +294,7 @@ func newSpan(name string, options ...option) traces.Span { } if span.Parent != nil { - span.Attributes.Set(traces.TracetestMetadataFieldParentID, span.Parent.ID.String()) + span.Attributes.Set(traces.QualitytraceMetadataFieldParentID, span.Parent.ID.String()) } return span @@ -566,7 +566,7 @@ func TestBrowserSpan(t *testing.T) { trace := traces.NewTrace("trace", []traces.Span{span}) - assert.Equal(t, trace.Spans()[0].Attributes.Get(traces.TracetestMetadataFieldType), "general") + assert.Equal(t, trace.Spans()[0].Attributes.Get(traces.QualitytraceMetadataFieldType), "general") span2 := newSpan("documentLoad") span2.Attributes = attributesFromMap(map[string]string{ @@ -575,7 +575,7 @@ func TestBrowserSpan(t *testing.T) { trace2 := traces.NewTrace("trace", []traces.Span{span2}) - assert.Equal(t, trace2.Spans()[0].Attributes.Get(traces.TracetestMetadataFieldType), "general") + assert.Equal(t, trace2.Spans()[0].Attributes.Get(traces.QualitytraceMetadataFieldType), "general") span3 := newSpan("GET /api/v1/trace") span3.Attributes = attributesFromMap(map[string]string{ @@ -584,7 +584,7 @@ func TestBrowserSpan(t *testing.T) { trace3 := traces.NewTrace("trace", []traces.Span{span3}) - assert.Equal(t, trace3.Spans()[0].Attributes.Get(traces.TracetestMetadataFieldType), "http") + assert.Equal(t, trace3.Spans()[0].Attributes.Get(traces.QualitytraceMetadataFieldType), "http") } func attributesFromMap(input map[string]string) traces.Attributes { diff --git a/server/variableset/main_test.go b/server/variableset/main_test.go index cadd461..b8ef1e6 100644 --- a/server/variableset/main_test.go +++ b/server/variableset/main_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/intelops/qualityTrace/server/testmock" + "github.com/intelops/qualitytrace/server/testmock" ) func TestMain(m *testing.M) { diff --git a/server/variableset/variableset_entities.go b/server/variableset/variableset_entities.go index 31b0bf3..d6f5449 100644 --- a/server/variableset/variableset_entities.go +++ b/server/variableset/variableset_entities.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/intelops/qualityTrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/id" ) type ( diff --git a/server/variableset/variableset_entities_test.go b/server/variableset/variableset_entities_test.go index 06247bd..20dd4f0 100644 --- a/server/variableset/variableset_entities_test.go +++ b/server/variableset/variableset_entities_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/intelops/qualityTrace/server/variableset" + "github.com/intelops/qualitytrace/server/variableset" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/server/variableset/variableset_repository.go b/server/variableset/variableset_repository.go index 37d3310..bae1cb0 100644 --- a/server/variableset/variableset_repository.go +++ b/server/variableset/variableset_repository.go @@ -7,8 +7,8 @@ import ( "fmt" "time" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/pkg/sqlutil" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/pkg/sqlutil" ) type Repository struct { diff --git a/server/variableset/variableset_repository_test.go b/server/variableset/variableset_repository_test.go index 6036982..8f53aff 100644 --- a/server/variableset/variableset_repository_test.go +++ b/server/variableset/variableset_repository_test.go @@ -7,10 +7,10 @@ import ( "time" "github.com/gorilla/mux" - "github.com/intelops/qualityTrace/server/pkg/id" - "github.com/intelops/qualityTrace/server/resourcemanager" - rmtests "github.com/intelops/qualityTrace/server/resourcemanager/testutil" - "github.com/intelops/qualityTrace/server/variableset" + "github.com/intelops/qualitytrace/server/pkg/id" + "github.com/intelops/qualitytrace/server/resourcemanager" + rmtests "github.com/intelops/qualitytrace/server/resourcemanager/testutil" + "github.com/intelops/qualitytrace/server/variableset" "github.com/stretchr/testify/require" ) diff --git a/server/wizard/wizard_repository.go b/server/wizard/wizard_repository.go index c4609f7..b94c1d1 100644 --- a/server/wizard/wizard_repository.go +++ b/server/wizard/wizard_repository.go @@ -7,7 +7,7 @@ import ( "errors" "fmt" - "github.com/intelops/qualityTrace/server/pkg/sqlutil" + "github.com/intelops/qualitytrace/server/pkg/sqlutil" ) type Repository interface { diff --git a/testing/README.md b/testing/README.md index e4933ab..1a22a01 100644 --- a/testing/README.md +++ b/testing/README.md @@ -4,5 +4,5 @@ In this folder, we have some of the test automation structures used to evaluate The tests are: - **cli-e2etest**: CLI End-to-end tests, where we run a compiled CLI against some setups of Tracetest infrastructure and we check if the CLI commands are properly working; -- **cli-smoketest**: simple CLI test, where we check the CLI was correctly compiled and can run simple commands (as `qualityTrace version`); -- **server-qualityTraceing**: set of [dogfooding](https://en.wikipedia.org/wiki/Eating_your_own_dog_food) tests, where run some trace-based tests against the current version of Tracetest to check if the Tracetest API is working fine. +- **cli-smoketest**: simple CLI test, where we check the CLI was correctly compiled and can run simple commands (as `qualitytrace version`); +- **server-qualitytraceing**: set of [dogfooding](https://en.wikipedia.org/wiki/Eating_your_own_dog_food) tests, where run some trace-based tests against the current version of Tracetest to check if the Tracetest API is working fine. diff --git a/testing/cli-e2etest/Makefile b/testing/cli-e2etest/Makefile index d3d427f..46c9243 100644 --- a/testing/cli-e2etest/Makefile +++ b/testing/cli-e2etest/Makefile @@ -1,5 +1,5 @@ PROJECT_ROOT=${PWD} -TRACETEST_CLI?="${PROJECT_ROOT}/../../dist/qualityTrace" +TRACETEST_CLI?="${PROJECT_ROOT}/../../dist/qualitytrace" TEST_ENVIRONMENT?="jaeger" TAG?="dev" ENABLE_CLI_DEBUG?="false" diff --git a/testing/cli-e2etest/config/config.go b/testing/cli-e2etest/config/config.go index d2b54b2..4c29a94 100644 --- a/testing/cli-e2etest/config/config.go +++ b/testing/cli-e2etest/config/config.go @@ -17,9 +17,9 @@ func GetConfigAsEnvVars() *EnvironmentVars { enableCLIDebug := (os.Getenv("ENABLE_CLI_DEBUG") == "true") - qualityTraceCommand := os.Getenv("TRACETEST_CLI") - if qualityTraceCommand == "" { - qualityTraceCommand = "qualityTrace" + qualitytraceCommand := os.Getenv("TRACETEST_CLI") + if qualitytraceCommand == "" { + qualitytraceCommand = "qualitytrace" } testEnvironment := os.Getenv("TEST_ENVIRONMENT") @@ -29,7 +29,7 @@ func GetConfigAsEnvVars() *EnvironmentVars { return &EnvironmentVars{ EnableCLIDebug: enableCLIDebug, - TracetestCommand: qualityTraceCommand, + TracetestCommand: qualitytraceCommand, TestEnvironment: testEnvironment, } } diff --git a/testing/cli-e2etest/environment/jaeger/server-setup/docker-compose-no-api.yaml b/testing/cli-e2etest/environment/jaeger/server-setup/docker-compose-no-api.yaml index f64b644..30d7aff 100644 --- a/testing/cli-e2etest/environment/jaeger/server-setup/docker-compose-no-api.yaml +++ b/testing/cli-e2etest/environment/jaeger/server-setup/docker-compose-no-api.yaml @@ -1,13 +1,13 @@ version: '3' services: - qualityTrace: - image: intelops/qualityTrace:${TAG:-latest} + qualitytrace: + image: intelops/qualitytrace:${TAG:-latest} volumes: - type: bind - source: ./qualityTrace-config.yaml - target: /app/qualityTrace.yaml + source: ./qualitytrace-config.yaml + target: /app/qualitytrace.yaml - type: bind - source: ./qualityTrace-provision.yaml + source: ./qualitytrace-provision.yaml target: /app/provision.yaml command: --provisioning-file /app/provision.yaml ports: diff --git a/testing/cli-e2etest/environment/jaeger/server-setup/tracetest-config.yaml b/testing/cli-e2etest/environment/jaeger/server-setup/qualitytrace-config.yaml similarity index 91% rename from testing/cli-e2etest/environment/jaeger/server-setup/tracetest-config.yaml rename to testing/cli-e2etest/environment/jaeger/server-setup/qualitytrace-config.yaml index c57f255..be4583b 100644 --- a/testing/cli-e2etest/environment/jaeger/server-setup/tracetest-config.yaml +++ b/testing/cli-e2etest/environment/jaeger/server-setup/qualitytrace-config.yaml @@ -9,7 +9,7 @@ postgres: telemetry: exporters: collector: - serviceName: qualityTrace + serviceName: qualitytrace sampling: 100 # 100% exporter: type: collector diff --git a/testing/cli-e2etest/environment/jaeger/server-setup/tracetest-provision.yaml b/testing/cli-e2etest/environment/jaeger/server-setup/qualitytrace-provision.yaml similarity index 100% rename from testing/cli-e2etest/environment/jaeger/server-setup/tracetest-provision.yaml rename to testing/cli-e2etest/environment/jaeger/server-setup/qualitytrace-provision.yaml diff --git a/testing/cli-e2etest/environment/manager.go b/testing/cli-e2etest/environment/manager.go index b35b5ab..ba6f9f5 100644 --- a/testing/cli-e2etest/environment/manager.go +++ b/testing/cli-e2etest/environment/manager.go @@ -11,10 +11,10 @@ import ( "testing" "time" - "github.com/intelops/qualityTrace/testing/cli-e2etest/command" - "github.com/intelops/qualityTrace/testing/cli-e2etest/config" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/command" + "github.com/intelops/qualitytrace/testing/cli-e2etest/config" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" "github.com/stretchr/testify/require" "golang.org/x/exp/slices" ) @@ -108,7 +108,7 @@ func GetManager(environmentType string, options ...option) Manager { dockerComposeNoApiFilePath: dockerComposeNoApiFilepath, dockerComposePokeshopFilePath: dockerComposePokeshopFilepath, dockerComposePokeshopWithStreamFilepath: dockerComposePokeshopWithStreamFilepath, - dockerProjectName: fmt.Sprintf("qualityTrace-env-%d", envCounter), + dockerProjectName: fmt.Sprintf("qualitytrace-env-%d", envCounter), } for _, option := range options { @@ -150,7 +150,7 @@ func (m *internalManager) Start(t *testing.T) { require.NoError(t, err) helpers.RequireExitCodeEqual(t, result, 0) - // wait until qualityTrace port is ready + // wait until qualitytrace port is ready waitForPort("11633") if m.pokeshopEnabled { @@ -169,7 +169,7 @@ func (m *internalManager) Start(t *testing.T) { cliConfig := m.GetCLIConfigPath(t) dataStorePath := m.GetEnvironmentResourcePath(t, "data-store") - result = qualityTracecli.Exec(t, fmt.Sprintf("apply datastore --file %s", dataStorePath), qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, fmt.Sprintf("apply datastore --file %s", dataStorePath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) } } diff --git a/testing/cli-e2etest/helpers/common.go b/testing/cli-e2etest/helpers/common.go index e3c73ea..fabade5 100644 --- a/testing/cli-e2etest/helpers/common.go +++ b/testing/cli-e2etest/helpers/common.go @@ -9,8 +9,8 @@ import ( "testing" "github.com/goccy/go-yaml" - "github.com/intelops/qualityTrace/testing/cli-e2etest/command" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/command" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/require" ) @@ -63,7 +63,7 @@ func RequireExitCodeEqual(t *testing.T, result *command.ExecResult, expectedExit func InjectIdIntoDemoFile(t *testing.T, filePath, id string) { // This is a workaround method used to deal with the upsert restriction for demo resources - // for more details look into: https://github.com/intelops/qualityTrace/issues/2719 + // for more details look into: https://github.com/intelops/qualitytrace/issues/2719 fileContent, err := os.ReadFile(filePath) require.NoError(t, err) diff --git a/testing/cli-e2etest/qualityTracecli/exec.go b/testing/cli-e2etest/qualitytracecli/exec.go similarity index 69% rename from testing/cli-e2etest/qualityTracecli/exec.go rename to testing/cli-e2etest/qualitytracecli/exec.go index c6ab214..fdd884f 100644 --- a/testing/cli-e2etest/qualityTracecli/exec.go +++ b/testing/cli-e2etest/qualitytracecli/exec.go @@ -1,4 +1,4 @@ -package qualityTracecli +package qualitytracecli import ( "bytes" @@ -8,11 +8,11 @@ import ( "strings" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/command" - "github.com/intelops/qualityTrace/testing/cli-e2etest/config" + "github.com/intelops/qualitytrace/testing/cli-e2etest/command" + "github.com/intelops/qualitytrace/testing/cli-e2etest/config" "golang.org/x/exp/slices" - "github.com/intelops/qualityTrace/cli/cmd" + "github.com/intelops/qualitytrace/cli/cmd" "github.com/stretchr/testify/require" ) @@ -22,7 +22,7 @@ type executionState struct { cliConfigFile string } -func Exec(t *testing.T, qualityTraceSubCommand string, options ...ExecOption) *command.ExecResult { +func Exec(t *testing.T, qualitytraceSubCommand string, options ...ExecOption) *command.ExecResult { state := &executionState{} for _, option := range options { option(state) @@ -30,17 +30,17 @@ func Exec(t *testing.T, qualityTraceSubCommand string, options ...ExecOption) *c if state.cliConfigFile != "" { // append config at the start of the command - qualityTraceSubCommand = fmt.Sprintf("--config %s %s", state.cliConfigFile, qualityTraceSubCommand) + qualitytraceSubCommand = fmt.Sprintf("--config %s %s", state.cliConfigFile, qualitytraceSubCommand) } - qualityTraceCommand := config.GetConfigAsEnvVars().TracetestCommand - qualityTraceSubCommands := strings.Split(qualityTraceSubCommand, " ") + qualitytraceCommand := config.GetConfigAsEnvVars().TracetestCommand + qualitytraceSubCommands := strings.Split(qualitytraceSubCommand, " ") if config.GetConfigAsEnvVars().EnableCLIDebug { - return runTracetestAsInternalCommand(t, qualityTraceCommand, qualityTraceSubCommands) + return runTracetestAsInternalCommand(t, qualitytraceCommand, qualitytraceSubCommands) } - result, err := command.Exec(qualityTraceCommand, qualityTraceSubCommands...) + result, err := command.Exec(qualitytraceCommand, qualitytraceSubCommands...) require.NoError(t, err) return result @@ -52,7 +52,7 @@ func WithCLIConfig(cliConfig string) ExecOption { } } -func runTracetestAsInternalCommand(t *testing.T, qualityTraceCommand string, qualityTraceSubCommands []string) *command.ExecResult { +func runTracetestAsInternalCommand(t *testing.T, qualitytraceCommand string, qualitytraceSubCommands []string) *command.ExecResult { // This code calls the CLI as a library to enable Go debugger to step into CLI statements and help a dev to debug CLI problems found on CLI tests //, but emulates this call as an executable call intercepting data sent to stdout, stderr and part of the os.Exit commands @@ -67,7 +67,7 @@ func runTracetestAsInternalCommand(t *testing.T, qualityTraceCommand string, qua os.Stderr = stderrWriter argsBackup := os.Args - os.Args = slices.Insert(qualityTraceSubCommands, 0, qualityTraceCommand) + os.Args = slices.Insert(qualitytraceSubCommands, 0, qualitytraceCommand) exitCode := 0 cmd.RegisterCLIExitInterceptor(func(i int) { @@ -103,7 +103,7 @@ func runTracetestAsInternalCommand(t *testing.T, qualityTraceCommand string, qua os.Stderr = stderrBackup // restoring the real stderr return &command.ExecResult{ - CommandExecuted: fmt.Sprintf("%s %s", qualityTraceCommand, strings.Join(qualityTraceSubCommands, " ")), + CommandExecuted: fmt.Sprintf("%s %s", qualitytraceCommand, strings.Join(qualitytraceSubCommands, " ")), StdOut: <-stdoutChannel, StdErr: <-stderrChannel, ExitCode: exitCode, diff --git a/testing/cli-e2etest/testscenarios/analyzer/apply_analyzer_test.go b/testing/cli-e2etest/testscenarios/analyzer/apply_analyzer_test.go index ee77167..5a63f11 100644 --- a/testing/cli-e2etest/testscenarios/analyzer/apply_analyzer_test.go +++ b/testing/cli-e2etest/testscenarios/analyzer/apply_analyzer_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/require" ) @@ -28,12 +28,12 @@ func TestApplyAnalyzer(t *testing.T) { // Then it should be applied with success configPath := env.GetTestResourcePath(t, "new-analyzer") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply analyzer --file %s", configPath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply analyzer --file %s", configPath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) // When I try to get a analyzer again // Then it should return the analyzer applied on the last step, with analytics disabled - result = qualityTracecli.Exec(t, "get analyzer --id current", qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, "get analyzer --id current", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) analyzer := helpers.UnmarshalYAML[types.AnalyzerResource](t, result.StdOut) diff --git a/testing/cli-e2etest/testscenarios/analyzer/delete_analyzer_test.go b/testing/cli-e2etest/testscenarios/analyzer/delete_analyzer_test.go index 2878667..83e8b33 100644 --- a/testing/cli-e2etest/testscenarios/analyzer/delete_analyzer_test.go +++ b/testing/cli-e2etest/testscenarios/analyzer/delete_analyzer_test.go @@ -3,9 +3,9 @@ package analyzer import ( "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" "github.com/stretchr/testify/require" ) @@ -24,7 +24,7 @@ func TestDeleteAnalyzer(t *testing.T) { // When I try to delete the analyzer // Then it should return a error message, showing that we cannot delete a analyzer - result := qualityTracecli.Exec(t, "delete analyzer --id current", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "delete analyzer --id current", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 1) require.Contains(result.StdErr, "resource Analyzer does not support the action") } diff --git a/testing/cli-e2etest/testscenarios/analyzer/get_analyzer_test.go b/testing/cli-e2etest/testscenarios/analyzer/get_analyzer_test.go index 2397ef2..11bf9a7 100644 --- a/testing/cli-e2etest/testscenarios/analyzer/get_analyzer_test.go +++ b/testing/cli-e2etest/testscenarios/analyzer/get_analyzer_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/require" ) @@ -18,7 +18,7 @@ func addGetAnalyzerPreReqs(t *testing.T, env environment.Manager) { // Then it should be applied with success configPath := env.GetTestResourcePath(t, "new-analyzer") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply analyzer --file %s", configPath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply analyzer --file %s", configPath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) } @@ -38,7 +38,7 @@ func TestGetAnalyzer(t *testing.T) { // When I try to get a analyzer on yaml mode // Then it should print a YAML with the default analyzer - result := qualityTracecli.Exec(t, "get analyzer --id current --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get analyzer --id current --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) require.Equal(0, result.ExitCode) analyzer := helpers.UnmarshalYAML[types.AnalyzerResource](t, result.StdOut) @@ -59,7 +59,7 @@ func TestGetAnalyzer(t *testing.T) { // When I try to get a config on yaml mode // Then it should print a YAML - result := qualityTracecli.Exec(t, "get analyzer --id current --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get analyzer --id current --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) require.Equal(0, result.ExitCode) analyzer := helpers.UnmarshalYAML[types.AnalyzerResource](t, result.StdOut) @@ -78,7 +78,7 @@ func TestGetAnalyzer(t *testing.T) { // When I try to get a analyzer on json mode // Then it should print a json - result := qualityTracecli.Exec(t, "get analyzer --id current --output json", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get analyzer --id current --output json", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) analyzer := helpers.UnmarshalJSON[types.AnalyzerResource](t, result.StdOut) @@ -102,7 +102,7 @@ func TestGetAnalyzer(t *testing.T) { // When I try to get a analyzer on pretty mode // Then it should print a table with 4 lines printed: header, separator, a analyzer item and empty line - result := qualityTracecli.Exec(t, "get analyzer --id current --output pretty", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get analyzer --id current --output pretty", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) parsedTable := helpers.UnmarshalTable(t, result.StdOut) diff --git a/testing/cli-e2etest/testscenarios/analyzer/list_analyzer_test.go b/testing/cli-e2etest/testscenarios/analyzer/list_analyzer_test.go index d27bdcb..4e2839b 100644 --- a/testing/cli-e2etest/testscenarios/analyzer/list_analyzer_test.go +++ b/testing/cli-e2etest/testscenarios/analyzer/list_analyzer_test.go @@ -5,10 +5,10 @@ import ( "strings" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/require" ) @@ -19,7 +19,7 @@ func addListAnalyzerPreReqs(t *testing.T, env environment.Manager) { // Then it should be applied with success configPath := env.GetTestResourcePath(t, "new-analyzer") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply analyzer --file %s", configPath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply analyzer --file %s", configPath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) } @@ -39,7 +39,7 @@ func TestListAnalyzer(t *testing.T) { // When I try to list analyzer on pretty mode and there is no analyzer previously registered // Then it should print an empty table // Then it should print a table with 4 lines printed: header, separator, the default analyzer item and empty line - result := qualityTracecli.Exec(t, "list analyzer --sortBy name --output pretty", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list analyzer --sortBy name --output pretty", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) require.Contains(result.StdOut, "current") @@ -56,7 +56,7 @@ func TestListAnalyzer(t *testing.T) { // When I try to list a analyzer by an invalid field // Then I should receive an error - result := qualityTracecli.Exec(t, "list analyzer --sortBy id --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list analyzer --sortBy id --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 1) require.Contains(result.StdErr, "invalid sort field: id") // TODO: think on how to improve this error handling }) @@ -68,7 +68,7 @@ func TestListAnalyzer(t *testing.T) { // When I try to list analyzer again on yaml mode // Then it should print a YAML list with one item - result := qualityTracecli.Exec(t, "list analyzer --sortBy name --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list analyzer --sortBy name --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) analyzerYAML := helpers.UnmarshalYAMLSequence[types.AnalyzerResource](t, result.StdOut) @@ -89,7 +89,7 @@ func TestListAnalyzer(t *testing.T) { // When I try to list analyzer again on json mode // Then it should print a JSON list with one item - result := qualityTracecli.Exec(t, "list analyzer --sortBy name --output json", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list analyzer --sortBy name --output json", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) analyzerList := helpers.UnmarshalJSON[types.ResourceList[types.AnalyzerResource]](t, result.StdOut) @@ -110,7 +110,7 @@ func TestListAnalyzer(t *testing.T) { // When I try to list analyzer again on pretty mode // Then it should print a table with 4 lines printed: header, separator, analyzer item and empty line - result := qualityTracecli.Exec(t, "list analyzer --sortBy name --output pretty", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list analyzer --sortBy name --output pretty", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) parsedTable := helpers.UnmarshalTable(t, result.StdOut) diff --git a/testing/cli-e2etest/testscenarios/config/apply_config_test.go b/testing/cli-e2etest/testscenarios/config/apply_config_test.go index aaf07ec..ec34884 100644 --- a/testing/cli-e2etest/testscenarios/config/apply_config_test.go +++ b/testing/cli-e2etest/testscenarios/config/apply_config_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/require" ) @@ -28,12 +28,12 @@ func TestApplyConfig(t *testing.T) { // Then it should be applied with success configPath := env.GetTestResourcePath(t, "new-config") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply config --file %s", configPath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply config --file %s", configPath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) // When I try to get a config again // Then it should return the config applied on the last step, with analytics disabled - result = qualityTracecli.Exec(t, "get config --id current", qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, "get config --id current", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) config := helpers.UnmarshalYAML[types.ConfigResource](t, result.StdOut) diff --git a/testing/cli-e2etest/testscenarios/config/delete_config_test.go b/testing/cli-e2etest/testscenarios/config/delete_config_test.go index 896178e..a2789a2 100644 --- a/testing/cli-e2etest/testscenarios/config/delete_config_test.go +++ b/testing/cli-e2etest/testscenarios/config/delete_config_test.go @@ -3,9 +3,9 @@ package config import ( "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" "github.com/stretchr/testify/require" ) @@ -24,7 +24,7 @@ func TestDeleteConfig(t *testing.T) { // When I try to delete the config // Then it should return a error message, showing that we cannot delete a config - result := qualityTracecli.Exec(t, "delete config --id current", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "delete config --id current", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 1) require.Contains(result.StdErr, "resource Config does not support the action") } diff --git a/testing/cli-e2etest/testscenarios/config/get_config_test.go b/testing/cli-e2etest/testscenarios/config/get_config_test.go index ed10dfa..f7a26ad 100644 --- a/testing/cli-e2etest/testscenarios/config/get_config_test.go +++ b/testing/cli-e2etest/testscenarios/config/get_config_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/require" ) @@ -18,7 +18,7 @@ func addGetConfigPreReqs(t *testing.T, env environment.Manager) { // Then it should be applied with success configPath := env.GetTestResourcePath(t, "new-config") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply config --file %s", configPath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply config --file %s", configPath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) } @@ -38,7 +38,7 @@ func TestGetConfig(t *testing.T) { // When I try to get a config on yaml mode // Then it should print a YAML with the default config - result := qualityTracecli.Exec(t, "get config --id current --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get config --id current --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) require.Equal(0, result.ExitCode) config := helpers.UnmarshalYAML[types.ConfigResource](t, result.StdOut) @@ -57,7 +57,7 @@ func TestGetConfig(t *testing.T) { // When I try to get a config on yaml mode // Then it should print a YAML - result := qualityTracecli.Exec(t, "get config --id current --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get config --id current --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) require.Equal(0, result.ExitCode) config := helpers.UnmarshalYAML[types.ConfigResource](t, result.StdOut) @@ -74,7 +74,7 @@ func TestGetConfig(t *testing.T) { // When I try to get a config on json mode // Then it should print a json - result := qualityTracecli.Exec(t, "get config --id current --output json", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get config --id current --output json", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) config := helpers.UnmarshalJSON[types.ConfigResource](t, result.StdOut) @@ -91,7 +91,7 @@ func TestGetConfig(t *testing.T) { // When I try to get a config on pretty mode // Then it should print a table with 4 lines printed: header, separator, a config item and empty line - result := qualityTracecli.Exec(t, "get config --id current --output pretty", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get config --id current --output pretty", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) parsedTable := helpers.UnmarshalTable(t, result.StdOut) diff --git a/testing/cli-e2etest/testscenarios/config/list_config_test.go b/testing/cli-e2etest/testscenarios/config/list_config_test.go index ec02b81..7806446 100644 --- a/testing/cli-e2etest/testscenarios/config/list_config_test.go +++ b/testing/cli-e2etest/testscenarios/config/list_config_test.go @@ -5,10 +5,10 @@ import ( "strings" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/require" ) @@ -19,7 +19,7 @@ func addListConfigPreReqs(t *testing.T, env environment.Manager) { // Then it should be applied with success configPath := env.GetTestResourcePath(t, "new-config") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply config --file %s", configPath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply config --file %s", configPath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) } @@ -39,7 +39,7 @@ func TestListConfig(t *testing.T) { // When I try to list config on pretty mode and there is no config previously registered // Then it should print an empty table // Then it should print a table with 4 lines printed: header, separator, the default config item and empty line - result := qualityTracecli.Exec(t, "list config --sortBy name --output pretty", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list config --sortBy name --output pretty", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) require.Contains(result.StdOut, "current") @@ -56,7 +56,7 @@ func TestListConfig(t *testing.T) { // When I try to list a config by an invalid field // Then I should receive an error - result := qualityTracecli.Exec(t, "list config --sortBy id --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list config --sortBy id --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 1) require.Contains(result.StdErr, "invalid sort field: id") // TODO: think on how to improve this error handling }) @@ -68,7 +68,7 @@ func TestListConfig(t *testing.T) { // When I try to list config again on yaml mode // Then it should print a YAML list with one item - result := qualityTracecli.Exec(t, "list config --sortBy name --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list config --sortBy name --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) configYAML := helpers.UnmarshalYAMLSequence[types.ConfigResource](t, result.StdOut) @@ -87,7 +87,7 @@ func TestListConfig(t *testing.T) { // When I try to list config again on json mode // Then it should print a JSON list with one item - result := qualityTracecli.Exec(t, "list config --sortBy name --output json", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list config --sortBy name --output json", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) configList := helpers.UnmarshalJSON[types.ResourceList[types.ConfigResource]](t, result.StdOut) @@ -107,7 +107,7 @@ func TestListConfig(t *testing.T) { // When I try to list config again on pretty mode // Then it should print a table with 4 lines printed: header, separator, config item and empty line - result := qualityTracecli.Exec(t, "list config --sortBy name --output pretty", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list config --sortBy name --output pretty", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) parsedTable := helpers.UnmarshalTable(t, result.StdOut) diff --git a/testing/cli-e2etest/testscenarios/datastore/apply_datastore_test.go b/testing/cli-e2etest/testscenarios/datastore/apply_datastore_test.go index 7ba8a3c..48ed79a 100644 --- a/testing/cli-e2etest/testscenarios/datastore/apply_datastore_test.go +++ b/testing/cli-e2etest/testscenarios/datastore/apply_datastore_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/require" ) @@ -28,12 +28,12 @@ func TestApplyDatastore(t *testing.T) { // Then it should be applied with success dataStorePath := env.GetEnvironmentResourcePath(t, "data-store") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply datastore --file %s", dataStorePath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply datastore --file %s", dataStorePath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) // When I try to get a datastore again // Then it should return the datastore applied on the last step - result = qualityTracecli.Exec(t, "get datastore --id current", qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, "get datastore --id current", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) dataStore := helpers.UnmarshalYAML[types.DataStoreResource](t, result.StdOut) diff --git a/testing/cli-e2etest/testscenarios/datastore/delete_datastore_test.go b/testing/cli-e2etest/testscenarios/datastore/delete_datastore_test.go index 7fd7a61..4e57979 100644 --- a/testing/cli-e2etest/testscenarios/datastore/delete_datastore_test.go +++ b/testing/cli-e2etest/testscenarios/datastore/delete_datastore_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/require" ) @@ -28,12 +28,12 @@ func TestDeleteDatastore(t *testing.T) { // Then it should be applied with success dataStorePath := env.GetEnvironmentResourcePath(t, "data-store") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply datastore --file %s", dataStorePath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply datastore --file %s", dataStorePath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) // When I try to get a datastore // Then it should return the datastore applied on the last step - result = qualityTracecli.Exec(t, "get datastore --id current", qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, "get datastore --id current", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) dataStore := helpers.UnmarshalYAML[types.DataStoreResource](t, result.StdOut) @@ -43,7 +43,7 @@ func TestDeleteDatastore(t *testing.T) { // When I try to delete the datastore // Then it should return a error message, showing that we cannot delete a datastore - result = qualityTracecli.Exec(t, "delete datastore --id current", qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, "delete datastore --id current", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 1) require.Contains(result.StdErr, "resource DataStore does not support the action") } diff --git a/testing/cli-e2etest/testscenarios/datastore/get_datastore_test.go b/testing/cli-e2etest/testscenarios/datastore/get_datastore_test.go index 1341897..9c60c97 100644 --- a/testing/cli-e2etest/testscenarios/datastore/get_datastore_test.go +++ b/testing/cli-e2etest/testscenarios/datastore/get_datastore_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/require" ) @@ -18,7 +18,7 @@ func addGetDatastorePreReqs(t *testing.T, env environment.Manager) { // Then it should be applied with success dataStorePath := env.GetEnvironmentResourcePath(t, "data-store") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply datastore --file %s", dataStorePath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply datastore --file %s", dataStorePath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) } @@ -38,7 +38,7 @@ func TestGetDatastore(t *testing.T) { // When I try to get a datastore on yaml mode // Then it should print a YAML list with one item - result := qualityTracecli.Exec(t, "get datastore --id current --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get datastore --id current --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) require.Equal(0, result.ExitCode) dataStoresYAML := helpers.UnmarshalYAMLSequence[types.DataStoreResource](t, result.StdOut) @@ -56,7 +56,7 @@ func TestGetDatastore(t *testing.T) { // When I try to get a datastore on yaml mode // Then it should print a YAML - result := qualityTracecli.Exec(t, "get datastore --id current --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get datastore --id current --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) dataStore := helpers.UnmarshalYAML[types.DataStoreResource](t, result.StdOut) @@ -73,7 +73,7 @@ func TestGetDatastore(t *testing.T) { // When I try to get a datastore on json mode // Then it should print a json - result := qualityTracecli.Exec(t, "get datastore --id current --output json", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get datastore --id current --output json", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) dataStores := helpers.UnmarshalJSON[types.DataStoreResource](t, result.StdOut) @@ -90,7 +90,7 @@ func TestGetDatastore(t *testing.T) { // When I try to get a datastore on pretty mode // Then it should print a table with 4 lines printed: header, separator, data store item and empty line - result := qualityTracecli.Exec(t, "get datastore --id current --output pretty", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get datastore --id current --output pretty", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) parsedTable := helpers.UnmarshalTable(t, result.StdOut) diff --git a/testing/cli-e2etest/testscenarios/datastore/list_datastore_test.go b/testing/cli-e2etest/testscenarios/datastore/list_datastore_test.go index 9d873ca..8795911 100644 --- a/testing/cli-e2etest/testscenarios/datastore/list_datastore_test.go +++ b/testing/cli-e2etest/testscenarios/datastore/list_datastore_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/require" ) @@ -18,7 +18,7 @@ func addListDatastorePreReqs(t *testing.T, env environment.Manager) { // Then it should be applied with success dataStorePath := env.GetEnvironmentResourcePath(t, "data-store") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply datastore --file %s", dataStorePath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply datastore --file %s", dataStorePath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) } @@ -37,7 +37,7 @@ func TestListDatastore(t *testing.T) { // When I try to list datastore on pretty mode and there is no datastore // Then it should list the default datastore - result := qualityTracecli.Exec(t, "list datastore --output pretty", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list datastore --output pretty", qualitytracecli.WithCLIConfig(cliConfig)) parsedTable := helpers.UnmarshalTable(t, result.StdOut) require.Len(parsedTable, 1) @@ -58,7 +58,7 @@ func TestListDatastore(t *testing.T) { // When I try to list a datastore by an invalid field // Then I should receive an error - result := qualityTracecli.Exec(t, "list datastore --sortBy id --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list datastore --sortBy id --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 1) require.Contains(result.StdErr, "invalid sort field: id") // TODO: think on how to improve this error handling }) @@ -70,7 +70,7 @@ func TestListDatastore(t *testing.T) { // When I try to list datastore again on yaml mode // Then it should print a YAML list with one item - result := qualityTracecli.Exec(t, "list datastore --sortBy name --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list datastore --sortBy name --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) dataStoresYAML := helpers.UnmarshalYAMLSequence[types.DataStoreResource](t, result.StdOut) @@ -88,7 +88,7 @@ func TestListDatastore(t *testing.T) { // When I try to list datastore again on json mode // Then it should print a JSON list with one item - result := qualityTracecli.Exec(t, "list datastore --sortBy name --output json", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list datastore --sortBy name --output json", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) dataStoresList := helpers.UnmarshalJSON[types.ResourceList[types.DataStoreResource]](t, result.StdOut) @@ -107,7 +107,7 @@ func TestListDatastore(t *testing.T) { // When I try to list datastore again on pretty mode // Then it should print a table with 4 lines printed: header, separator, data store item and empty line - result := qualityTracecli.Exec(t, "list datastore --sortBy name --output pretty", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list datastore --sortBy name --output pretty", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) parsedTable := helpers.UnmarshalTable(t, result.StdOut) diff --git a/testing/cli-e2etest/testscenarios/demo/apply_demo_test.go b/testing/cli-e2etest/testscenarios/demo/apply_demo_test.go index df4c414..3bc678e 100644 --- a/testing/cli-e2etest/testscenarios/demo/apply_demo_test.go +++ b/testing/cli-e2etest/testscenarios/demo/apply_demo_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/require" ) @@ -28,7 +28,7 @@ func TestApplyDemo(t *testing.T) { // Then it should be applied with success newDemoPath := env.GetTestResourcePath(t, "new-demo") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply demo --file %s", newDemoPath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply demo --file %s", newDemoPath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) demo := helpers.UnmarshalYAML[types.DemoResource](t, result.StdOut) @@ -45,7 +45,7 @@ func TestApplyDemo(t *testing.T) { // When I try to get the demo applied on the last step // Then it should return it command := fmt.Sprintf("get demo --id %s --output yaml", demo.Spec.Id) - result = qualityTracecli.Exec(t, command, qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, command, qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) demo = helpers.UnmarshalYAML[types.DemoResource](t, result.StdOut) @@ -65,7 +65,7 @@ func TestApplyDemo(t *testing.T) { helpers.Copy(updatedNewDemoPath+".tpl", updatedNewDemoPath) helpers.InjectIdIntoDemoFile(t, updatedNewDemoPath, demo.Spec.Id) - result = qualityTracecli.Exec(t, fmt.Sprintf("apply demo --file %s", updatedNewDemoPath), qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, fmt.Sprintf("apply demo --file %s", updatedNewDemoPath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) updatedDemo := helpers.UnmarshalYAML[types.DemoResource](t, result.StdOut) @@ -81,7 +81,7 @@ func TestApplyDemo(t *testing.T) { // When I try to get the demo applied on the last step // Then it should return it command = fmt.Sprintf("get demo --id %s --output yaml", updatedDemo.Spec.Id) - result = qualityTracecli.Exec(t, command, qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, command, qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) updatedDemo = helpers.UnmarshalYAML[types.DemoResource](t, result.StdOut) diff --git a/testing/cli-e2etest/testscenarios/demo/delete_demo_test.go b/testing/cli-e2etest/testscenarios/demo/delete_demo_test.go index a863f18..fe17c58 100644 --- a/testing/cli-e2etest/testscenarios/demo/delete_demo_test.go +++ b/testing/cli-e2etest/testscenarios/demo/delete_demo_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/require" ) @@ -26,7 +26,7 @@ func TestDeleteDemo(t *testing.T) { // When I try to delete an demo that don't exist // Then it should return an error and say that this resource does not exist - result := qualityTracecli.Exec(t, "delete demo --id some-demo", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "delete demo --id some-demo", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 1) require.Contains(result.StdErr, "Resource demo with ID some-demo not found") @@ -35,7 +35,7 @@ func TestDeleteDemo(t *testing.T) { newDemoPath := env.GetTestResourcePath(t, "new-demo") helpers.InjectIdIntoDemoFile(t, newDemoPath, "") - result = qualityTracecli.Exec(t, fmt.Sprintf("apply demo --file %s", newDemoPath), qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, fmt.Sprintf("apply demo --file %s", newDemoPath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) demo := helpers.UnmarshalYAML[types.DemoResource](t, result.StdOut) @@ -43,14 +43,14 @@ func TestDeleteDemo(t *testing.T) { // When I try to delete the demo // Then it should delete with success command := fmt.Sprintf("delete demo --id %s", demo.Spec.Id) - result = qualityTracecli.Exec(t, command, qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, command, qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) require.Contains(result.StdOut, "✔ Demo successfully deleted") // When I try to get an demo again // Then it should return a message saying that the environment was not found command = fmt.Sprintf("get demo --id %s --output yaml", demo.Spec.Id) - result = qualityTracecli.Exec(t, command, qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, command, qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) require.Contains(result.StdOut, fmt.Sprintf("Resource demo with ID %s not found", demo.Spec.Id)) } diff --git a/testing/cli-e2etest/testscenarios/demo/get_demo_test.go b/testing/cli-e2etest/testscenarios/demo/get_demo_test.go index 568ba9c..bdee6ce 100644 --- a/testing/cli-e2etest/testscenarios/demo/get_demo_test.go +++ b/testing/cli-e2etest/testscenarios/demo/get_demo_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/require" ) @@ -22,7 +22,7 @@ func addGetDemoPreReqs(t *testing.T, env environment.Manager) string { newDemoPath := env.GetTestResourcePath(t, "new-demo") helpers.InjectIdIntoDemoFile(t, newDemoPath, "") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply demo --file %s", newDemoPath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply demo --file %s", newDemoPath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) demo := helpers.UnmarshalYAML[types.DemoResource](t, result.StdOut) @@ -45,7 +45,7 @@ func TestGetDemo(t *testing.T) { // When I try to get a demo on yaml mode // Then it should return a error message - result := qualityTracecli.Exec(t, "get demo --id some-demo --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get demo --id some-demo --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) require.Contains(result.StdOut, "Resource demo with ID some-demo not found") }) @@ -60,7 +60,7 @@ func TestGetDemo(t *testing.T) { // When I try to get a demo on yaml mode // Then it should print a YAML command := fmt.Sprintf("get demo --id %s --output yaml", registeredDemoId) - result := qualityTracecli.Exec(t, command, qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, command, qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) demo := helpers.UnmarshalYAML[types.DemoResource](t, result.StdOut) @@ -83,7 +83,7 @@ func TestGetDemo(t *testing.T) { // When I try to get a demo on json mode // Then it should print a json command := fmt.Sprintf("get demo --id %s --output json", registeredDemoId) - result := qualityTracecli.Exec(t, command, qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, command, qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) demo := helpers.UnmarshalJSON[types.DemoResource](t, result.StdOut) @@ -106,7 +106,7 @@ func TestGetDemo(t *testing.T) { // When I try to get a demo on pretty mode // Then it should print a table with 4 lines printed: header, separator, demo item and empty line command := fmt.Sprintf("get demo --id %s --output pretty", registeredDemoId) - result := qualityTracecli.Exec(t, command, qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, command, qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) parsedTable := helpers.UnmarshalTable(t, result.StdOut) diff --git a/testing/cli-e2etest/testscenarios/demo/list_demos_test.go b/testing/cli-e2etest/testscenarios/demo/list_demos_test.go index 54ebdad..aa1ab92 100644 --- a/testing/cli-e2etest/testscenarios/demo/list_demos_test.go +++ b/testing/cli-e2etest/testscenarios/demo/list_demos_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/require" ) @@ -22,7 +22,7 @@ func addListDemoPreReqs(t *testing.T, env environment.Manager) { newDemoPath := env.GetTestResourcePath(t, "new-demo") helpers.InjectIdIntoDemoFile(t, newDemoPath, "") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply demo --file %s", newDemoPath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply demo --file %s", newDemoPath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) // When I try to set up another demo @@ -30,7 +30,7 @@ func addListDemoPreReqs(t *testing.T, env environment.Manager) { anotherDemoPath := env.GetTestResourcePath(t, "another-demo") helpers.InjectIdIntoDemoFile(t, anotherDemoPath, "") - result = qualityTracecli.Exec(t, fmt.Sprintf("apply demo --file %s", anotherDemoPath), qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, fmt.Sprintf("apply demo --file %s", anotherDemoPath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) } @@ -48,7 +48,7 @@ func TestListDemos(t *testing.T) { // Given I am a Tracetest CLI user // And I have my server recently created // And there is no demos - result := qualityTracecli.Exec(t, "list demo --sortBy name --sortDirection asc --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list demo --sortBy name --sortDirection asc --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) demos := helpers.UnmarshalYAMLSequence[types.DemoResource](t, result.StdOut) @@ -63,7 +63,7 @@ func TestListDemos(t *testing.T) { // When I try to list these demos by an invalid field // Then I should receive an error - result := qualityTracecli.Exec(t, "list demo --sortBy invalid-field --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list demo --sortBy invalid-field --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 1) require.Contains(result.StdErr, "invalid sort field: invalid-field") // TODO: think on how to improve this error handling }) @@ -74,7 +74,7 @@ func TestListDemos(t *testing.T) { // When I try to list these demos by a valid field and in YAML format // Then I should receive two demos - result := qualityTracecli.Exec(t, "list demo --sortBy name --sortDirection asc --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list demo --sortBy name --sortDirection asc --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) demos := helpers.UnmarshalYAMLSequence[types.DemoResource](t, result.StdOut) @@ -105,7 +105,7 @@ func TestListDemos(t *testing.T) { // When I try to list these demos by a valid field and in JSON format // Then I should receive two demos - result := qualityTracecli.Exec(t, "list demo --sortBy name --sortDirection asc --output json", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list demo --sortBy name --sortDirection asc --output json", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) demos := helpers.UnmarshalJSON[types.ResourceList[types.DemoResource]](t, result.StdOut) @@ -137,7 +137,7 @@ func TestListDemos(t *testing.T) { // When I try to list these demos by a valid field and in pretty format // Then it should print a table with 5 lines printed: header, separator, two demos and empty line - result := qualityTracecli.Exec(t, "list demo --sortBy name --sortDirection asc --output pretty", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list demo --sortBy name --sortDirection asc --output pretty", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) parsedTable := helpers.UnmarshalTable(t, result.StdOut) @@ -164,7 +164,7 @@ func TestListDemos(t *testing.T) { // When I try to list these demos by a valid field, paging options and in YAML format // Then I should receive one demo - result := qualityTracecli.Exec(t, "list demo --sortBy name --sortDirection asc --skip 1 --take 1 --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list demo --sortBy name --sortDirection asc --skip 1 --take 1 --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) demos := helpers.UnmarshalYAMLSequence[types.DemoResource](t, result.StdOut) diff --git a/testing/cli-e2etest/testscenarios/help_test.go b/testing/cli-e2etest/testscenarios/help_test.go index c6733fa..eb4c1d1 100644 --- a/testing/cli-e2etest/testscenarios/help_test.go +++ b/testing/cli-e2etest/testscenarios/help_test.go @@ -3,8 +3,8 @@ package testscenarios import ( "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" "github.com/stretchr/testify/require" ) @@ -13,13 +13,13 @@ func TestHelpCommand(t *testing.T) { require := require.New(t) // Given I am a Tracetest CLI user - // When I try to get help with the commands "qualityTrace help", "qualityTrace --help" or "qualityTrace -h" + // When I try to get help with the commands "qualitytrace help", "qualitytrace --help" or "qualitytrace -h" // Then I should receive a message with sucess possibleCommands := []string{"help", "--help", "-h"} for _, helpCommand := range possibleCommands { - result := qualityTracecli.Exec(t, helpCommand) + result := qualitytracecli.Exec(t, helpCommand) helpers.RequireExitCodeEqual(t, result, 0) require.Greater(len(result.StdOut), 0) } diff --git a/testing/cli-e2etest/testscenarios/pollingprofile/apply_pollingprofile_test.go b/testing/cli-e2etest/testscenarios/pollingprofile/apply_pollingprofile_test.go index a37d0a6..77a400c 100644 --- a/testing/cli-e2etest/testscenarios/pollingprofile/apply_pollingprofile_test.go +++ b/testing/cli-e2etest/testscenarios/pollingprofile/apply_pollingprofile_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/require" ) @@ -28,12 +28,12 @@ func TestApplyPollingProfile(t *testing.T) { // Then it should be applied with success pollingProfilePath := env.GetTestResourcePath(t, "new-pollingprofile") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply pollingprofile --file %s", pollingProfilePath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply pollingprofile --file %s", pollingProfilePath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) // When I try to get a polling profile // Then it should return the polling profile applied on the last step - result = qualityTracecli.Exec(t, "get pollingprofile --id current", qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, "get pollingprofile --id current", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) pollingProfile := helpers.UnmarshalYAML[types.PollingProfileResource](t, result.StdOut) diff --git a/testing/cli-e2etest/testscenarios/pollingprofile/delete_pollingprofile_test.go b/testing/cli-e2etest/testscenarios/pollingprofile/delete_pollingprofile_test.go index 4a1b851..f695c25 100644 --- a/testing/cli-e2etest/testscenarios/pollingprofile/delete_pollingprofile_test.go +++ b/testing/cli-e2etest/testscenarios/pollingprofile/delete_pollingprofile_test.go @@ -3,9 +3,9 @@ package pollingprofile import ( "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" "github.com/stretchr/testify/require" ) @@ -24,7 +24,7 @@ func TestDeletePollingProfile(t *testing.T) { // When I try to delete the polling profile // Then it should return a error message, showing that we cannot delete a prolling profile - result := qualityTracecli.Exec(t, "delete pollingprofile --id current", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "delete pollingprofile --id current", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 1) require.Contains(result.StdErr, "resource PollingProfile does not support the action") } diff --git a/testing/cli-e2etest/testscenarios/pollingprofile/get_pollingprofile_test.go b/testing/cli-e2etest/testscenarios/pollingprofile/get_pollingprofile_test.go index 902d9d2..5c643f4 100644 --- a/testing/cli-e2etest/testscenarios/pollingprofile/get_pollingprofile_test.go +++ b/testing/cli-e2etest/testscenarios/pollingprofile/get_pollingprofile_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/require" ) @@ -18,7 +18,7 @@ func addGetPollingProfilePreReqs(t *testing.T, env environment.Manager) { // Then it should be applied with success pollingProfilePath := env.GetTestResourcePath(t, "new-pollingprofile") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply pollingprofile --file %s", pollingProfilePath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply pollingprofile --file %s", pollingProfilePath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) } @@ -38,7 +38,7 @@ func TestGetPollingProfile(t *testing.T) { // When I try to get a polling profile on yaml mode // Then it should print a YAML with the default polling profile - result := qualityTracecli.Exec(t, "get pollingprofile --id current --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get pollingprofile --id current --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) require.Equal(0, result.ExitCode) pollingProfile := helpers.UnmarshalYAML[types.PollingProfileResource](t, result.StdOut) @@ -60,7 +60,7 @@ func TestGetPollingProfile(t *testing.T) { // When I try to get a polling profile on yaml mode // Then it should print a YAML - result := qualityTracecli.Exec(t, "get pollingprofile --id current --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get pollingprofile --id current --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) require.Equal(0, result.ExitCode) pollingProfile := helpers.UnmarshalYAML[types.PollingProfileResource](t, result.StdOut) @@ -80,7 +80,7 @@ func TestGetPollingProfile(t *testing.T) { // When I try to get a polling profile on json mode // Then it should print a json - result := qualityTracecli.Exec(t, "get pollingprofile --id current --output json", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get pollingprofile --id current --output json", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) pollingProfile := helpers.UnmarshalJSON[types.PollingProfileResource](t, result.StdOut) @@ -100,7 +100,7 @@ func TestGetPollingProfile(t *testing.T) { // When I try to get a polling profile on pretty mode // Then it should print a table with 4 lines printed: header, separator, a polling profile item and empty line - result := qualityTracecli.Exec(t, "get pollingprofile --id current --output pretty", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get pollingprofile --id current --output pretty", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) parsedTable := helpers.UnmarshalTable(t, result.StdOut) diff --git a/testing/cli-e2etest/testscenarios/pollingprofile/list_pollingprofile_test.go b/testing/cli-e2etest/testscenarios/pollingprofile/list_pollingprofile_test.go index c233fbe..8d10c8f 100644 --- a/testing/cli-e2etest/testscenarios/pollingprofile/list_pollingprofile_test.go +++ b/testing/cli-e2etest/testscenarios/pollingprofile/list_pollingprofile_test.go @@ -5,10 +5,10 @@ import ( "strings" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/require" ) @@ -19,7 +19,7 @@ func addListPollingProfilePreReqs(t *testing.T, env environment.Manager) { // Then it should be applied with success pollingProfilePath := env.GetTestResourcePath(t, "new-pollingprofile") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply pollingprofile --file %s", pollingProfilePath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply pollingprofile --file %s", pollingProfilePath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) } @@ -39,7 +39,7 @@ func TestListPollingProfile(t *testing.T) { // When I try to list polling profile on pretty mode and there is no polling profile previously registered // Then it should print an empty table // Then it should print a table with 4 lines printed: header, separator, the default polling profile item and empty line - result := qualityTracecli.Exec(t, "list pollingprofile --sortBy name --output pretty", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list pollingprofile --sortBy name --output pretty", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) require.Contains(result.StdOut, "current") // id require.Contains(result.StdOut, "Default") // name @@ -58,7 +58,7 @@ func TestListPollingProfile(t *testing.T) { // When I try to list a polling profile by an invalid field // Then I should receive an error - result := qualityTracecli.Exec(t, "list pollingprofile --sortBy id --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list pollingprofile --sortBy id --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 1) require.Contains(result.StdErr, "invalid sort field: id") // TODO: think on how to improve this error handling }) @@ -70,7 +70,7 @@ func TestListPollingProfile(t *testing.T) { // When I try to list polling profile again on yaml mode // Then it should print a YAML list with one item - result := qualityTracecli.Exec(t, "list pollingprofile --sortBy name --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list pollingprofile --sortBy name --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) pollingProfileYAML := helpers.UnmarshalYAMLSequence[types.PollingProfileResource](t, result.StdOut) @@ -92,7 +92,7 @@ func TestListPollingProfile(t *testing.T) { // When I try to list polling profile again on json mode // Then it should print a JSON list with one item - result := qualityTracecli.Exec(t, "list pollingprofile --sortBy name --output json", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list pollingprofile --sortBy name --output json", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) pollingProfilesList := helpers.UnmarshalJSON[types.ResourceList[types.PollingProfileResource]](t, result.StdOut) @@ -115,7 +115,7 @@ func TestListPollingProfile(t *testing.T) { // When I try to list polling profile again on pretty mode // Then it should print a table with 4 lines printed: header, separator, polling profile item and empty line - result := qualityTracecli.Exec(t, "list pollingprofile --sortBy name --output pretty", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list pollingprofile --sortBy name --output pretty", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) parsedTable := helpers.UnmarshalTable(t, result.StdOut) diff --git a/testing/cli-e2etest/testscenarios/test/apply_test_test.go b/testing/cli-e2etest/testscenarios/test/apply_test_test.go index 88e3fde..a6bbd3b 100644 --- a/testing/cli-e2etest/testscenarios/test/apply_test_test.go +++ b/testing/cli-e2etest/testscenarios/test/apply_test_test.go @@ -5,10 +5,10 @@ import ( "os" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -32,12 +32,12 @@ func TestApplyTest(t *testing.T) { // Then it should be applied with success testPath := env.GetTestResourcePath(t, "list") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply test --file %s", testPath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply test --file %s", testPath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) // When I try to get a test // Then it should return the test applied on the last step - result = qualityTracecli.Exec(t, "get test --id fH_8AulVR", qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, "get test --id fH_8AulVR", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) listTest := helpers.UnmarshalYAML[types.TestResource](t, result.StdOut) @@ -75,12 +75,12 @@ func TestApplyTest(t *testing.T) { // Then it should be applied with success testPath := env.GetTestResourcePath(t, "grpc-trigger-reference-protobuf") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply test --file %s", testPath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply test --file %s", testPath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) // When I try to get a test // Then it should return the test applied on the last step - result = qualityTracecli.Exec(t, "get test --id create-pokemon", qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, "get test --id create-pokemon", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) listTest := helpers.UnmarshalYAML[types.TestResource](t, result.StdOut) @@ -113,12 +113,12 @@ func TestApplyTest(t *testing.T) { // Then it should be applied with success testPath := env.GetTestResourcePath(t, "grpc-trigger-embedded-protobuf-with-comment") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply test --file %s", testPath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply test --file %s", testPath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) // When I try to get a test // Then it should return the test applied on the last step - result = qualityTracecli.Exec(t, "get test --id create-pokemon-embedded", qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, "get test --id create-pokemon-embedded", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) listTest := helpers.UnmarshalYAML[types.TestResource](t, result.StdOut) diff --git a/testing/cli-e2etest/testscenarios/test/delete_test_test.go b/testing/cli-e2etest/testscenarios/test/delete_test_test.go index 0ae468d..966db37 100644 --- a/testing/cli-e2etest/testscenarios/test/delete_test_test.go +++ b/testing/cli-e2etest/testscenarios/test/delete_test_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/require" ) @@ -26,7 +26,7 @@ func TestDeleteTest(t *testing.T) { // When I try to delete an test that don't exist // Then it should return an error and say that this resource does not exist - result := qualityTracecli.Exec(t, "delete test --id .env", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "delete test --id .env", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 1) require.Contains(result.StdErr, "Resource test with ID .env not found") @@ -34,7 +34,7 @@ func TestDeleteTest(t *testing.T) { // Then it should be applied with success newTestPath := env.GetTestResourcePath(t, "list") - result = qualityTracecli.Exec(t, fmt.Sprintf("apply test --file %s", newTestPath), qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, fmt.Sprintf("apply test --file %s", newTestPath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) testVars := helpers.UnmarshalYAML[types.TestResource](t, result.StdOut) @@ -43,13 +43,13 @@ func TestDeleteTest(t *testing.T) { // When I try to delete the test // Then it should delete with success - result = qualityTracecli.Exec(t, "delete test --id fH_8AulVR", qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, "delete test --id fH_8AulVR", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) require.Contains(result.StdOut, "✔ Test successfully deleted") // When I try to get an test again // Then it should return a message saying that the test was not found - result = qualityTracecli.Exec(t, "get test --id fH_8AulVR", qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, "get test --id fH_8AulVR", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) require.Contains(result.StdOut, "Resource test with ID fH_8AulVR not found") } diff --git a/testing/cli-e2etest/testscenarios/test/get_test_test.go b/testing/cli-e2etest/testscenarios/test/get_test_test.go index 0b819c1..843c14f 100644 --- a/testing/cli-e2etest/testscenarios/test/get_test_test.go +++ b/testing/cli-e2etest/testscenarios/test/get_test_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -22,7 +22,7 @@ func addGetTestPreReqs(t *testing.T, env environment.Manager) { // Then it should be applied with success newTestPath := env.GetTestResourcePath(t, "list") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply test --file %s", newTestPath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply test --file %s", newTestPath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) } @@ -42,7 +42,7 @@ func TestGetTest(t *testing.T) { // When I try to get a test on yaml mode // Then it should return a error message - result := qualityTracecli.Exec(t, "get test --id fH_8AulVR --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get test --id fH_8AulVR --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) require.Contains(result.StdOut, "Resource test with ID fH_8AulVR not found") }) @@ -56,7 +56,7 @@ func TestGetTest(t *testing.T) { // When I try to get an test on yaml mode // Then it should print a YAML - result := qualityTracecli.Exec(t, "get test --id fH_8AulVR --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get test --id fH_8AulVR --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) listTest := helpers.UnmarshalYAML[types.TestResource](t, result.StdOut) @@ -80,7 +80,7 @@ func TestGetTest(t *testing.T) { // When I try to get an test on json mode // Then it should print a json - result := qualityTracecli.Exec(t, "get test --id fH_8AulVR --output json", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get test --id fH_8AulVR --output json", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) listTest := helpers.UnmarshalJSON[types.TestResource](t, result.StdOut) @@ -104,7 +104,7 @@ func TestGetTest(t *testing.T) { // When I try to get an test on pretty mode // Then it should print a table with 4 lines printed: header, separator, test item and empty line - result := qualityTracecli.Exec(t, "get test --id fH_8AulVR --output pretty", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get test --id fH_8AulVR --output pretty", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) parsedTable := helpers.UnmarshalTable(t, result.StdOut) diff --git a/testing/cli-e2etest/testscenarios/test/list_test_test.go b/testing/cli-e2etest/testscenarios/test/list_test_test.go index 6df00f5..6665f3e 100644 --- a/testing/cli-e2etest/testscenarios/test/list_test_test.go +++ b/testing/cli-e2etest/testscenarios/test/list_test_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -22,14 +22,14 @@ func addListTestsPreReqs(t *testing.T, env environment.Manager) { // Then it should be applied with success newTestPath := env.GetTestResourcePath(t, "list") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply test --file %s", newTestPath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply test --file %s", newTestPath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) // When I try to set up a another test // Then it should be applied with success anotherTestPath := env.GetTestResourcePath(t, "import") - result = qualityTracecli.Exec(t, fmt.Sprintf("apply test --file %s", anotherTestPath), qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, fmt.Sprintf("apply test --file %s", anotherTestPath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) } @@ -48,7 +48,7 @@ func TestListTests(t *testing.T) { // Given I am a Tracetest CLI user // And I have my server recently created // And there is no envs - result := qualityTracecli.Exec(t, "list test --sortBy name --sortDirection asc --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list test --sortBy name --sortDirection asc --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) testVarsList := helpers.UnmarshalYAMLSequence[types.TestResource](t, result.StdOut) @@ -63,7 +63,7 @@ func TestListTests(t *testing.T) { // When I try to list these tests by an invalid field // Then I should receive an error - result := qualityTracecli.Exec(t, "list test --sortBy id --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list test --sortBy id --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 1) require.Contains(result.StdErr, "invalid sort field: id") // TODO: think on how to improve this error handling }) @@ -74,7 +74,7 @@ func TestListTests(t *testing.T) { // When I try to list these tests by a valid field and in YAML format // Then I should receive 2 tests - result := qualityTracecli.Exec(t, "list test --sortBy name --sortDirection desc --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list test --sortBy name --sortDirection desc --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) testVarsList := helpers.UnmarshalYAMLSequence[types.TestResource](t, result.StdOut) @@ -113,7 +113,7 @@ func TestListTests(t *testing.T) { // When I try to list these tests by a valid field and in JSON format // Then I should receive three tests - result := qualityTracecli.Exec(t, "list test --sortBy name --sortDirection asc --output json", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list test --sortBy name --sortDirection asc --output json", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) testVarsList := helpers.UnmarshalJSON[types.ResourceList[types.TestResource]](t, result.StdOut) @@ -153,7 +153,7 @@ func TestListTests(t *testing.T) { // When I try to list these tests by a valid field and in pretty format // Then it should print a table with 6 lines printed: header, separator, three envs and empty line - result := qualityTracecli.Exec(t, "list test --sortBy name --sortDirection asc --output pretty", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list test --sortBy name --sortDirection asc --output pretty", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) parsedTable := helpers.UnmarshalTable(t, result.StdOut) @@ -188,7 +188,7 @@ func TestListTests(t *testing.T) { // When I try to list these tests by a valid field, paging options and in YAML format // Then I should receive two tests - result := qualityTracecli.Exec(t, "list test --sortBy name --sortDirection desc --skip 1 --take 2 --output json", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list test --sortBy name --sortDirection desc --skip 1 --take 2 --output json", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) testVarsList := helpers.UnmarshalJSON[types.ResourceList[types.TestResource]](t, result.StdOut) diff --git a/testing/cli-e2etest/testscenarios/test/resources/grpc-trigger-embedded-protobuf-with-comment.yaml b/testing/cli-e2etest/testscenarios/test/resources/grpc-trigger-embedded-protobuf-with-comment.yaml index e48fc28..eb29aff 100644 --- a/testing/cli-e2etest/testscenarios/test/resources/grpc-trigger-embedded-protobuf-with-comment.yaml +++ b/testing/cli-e2etest/testscenarios/test/resources/grpc-trigger-embedded-protobuf-with-comment.yaml @@ -55,6 +55,6 @@ spec: } specs: - name: It calls Pokeshop correctly - selector: span[qualityTrace.span.type="rpc" name="pokeshop.Pokeshop/createPokemon" rpc.system="grpc" rpc.method="createPokemon" rpc.service="pokeshop.Pokeshop"] + selector: span[qualitytrace.span.type="rpc" name="pokeshop.Pokeshop/createPokemon" rpc.system="grpc" rpc.method="createPokemon" rpc.service="pokeshop.Pokeshop"] assertions: - attr:rpc.grpc.status_code = 0 diff --git a/testing/cli-e2etest/testscenarios/test/resources/grpc-trigger-embedded-protobuf.yaml b/testing/cli-e2etest/testscenarios/test/resources/grpc-trigger-embedded-protobuf.yaml index 397acb0..2591f25 100644 --- a/testing/cli-e2etest/testscenarios/test/resources/grpc-trigger-embedded-protobuf.yaml +++ b/testing/cli-e2etest/testscenarios/test/resources/grpc-trigger-embedded-protobuf.yaml @@ -55,6 +55,6 @@ spec: } specs: - name: It calls Pokeshop correctly - selector: span[qualityTrace.span.type="rpc" name="pokeshop.Pokeshop/createPokemon" rpc.system="grpc" rpc.method="createPokemon" rpc.service="pokeshop.Pokeshop"] + selector: span[qualitytrace.span.type="rpc" name="pokeshop.Pokeshop/createPokemon" rpc.system="grpc" rpc.method="createPokemon" rpc.service="pokeshop.Pokeshop"] assertions: - attr:rpc.grpc.status_code = 0 diff --git a/testing/cli-e2etest/testscenarios/test/resources/grpc-trigger-reference-protobuf.yaml b/testing/cli-e2etest/testscenarios/test/resources/grpc-trigger-reference-protobuf.yaml index 1a88108..a84d332 100644 --- a/testing/cli-e2etest/testscenarios/test/resources/grpc-trigger-reference-protobuf.yaml +++ b/testing/cli-e2etest/testscenarios/test/resources/grpc-trigger-reference-protobuf.yaml @@ -17,6 +17,6 @@ spec: } specs: - name: It calls Pokeshop correctly - selector: span[qualityTrace.span.type="rpc" name="pokeshop.Pokeshop/createPokemon" rpc.system="grpc" rpc.method="createPokemon" rpc.service="pokeshop.Pokeshop"] + selector: span[qualitytrace.span.type="rpc" name="pokeshop.Pokeshop/createPokemon" rpc.system="grpc" rpc.method="createPokemon" rpc.service="pokeshop.Pokeshop"] assertions: - attr:rpc.grpc.status_code = 0 diff --git a/testing/cli-e2etest/testscenarios/test/resources/http-trigger-with-environment-file.yaml b/testing/cli-e2etest/testscenarios/test/resources/http-trigger-with-environment-file.yaml index 88996eb..80bdbef 100644 --- a/testing/cli-e2etest/testscenarios/test/resources/http-trigger-with-environment-file.yaml +++ b/testing/cli-e2etest/testscenarios/test/resources/http-trigger-with-environment-file.yaml @@ -14,12 +14,12 @@ spec: body: '{"name":"${var:POKEMON_NAME}","type":"normal","imageUrl":"${var:POKEMON_URL}","isFeatured":true}' specs: - name: It should add a Pokemon correctly - selector: span[qualityTrace.span.type="http" name="POST /pokemon" http.method="POST"] + selector: span[qualitytrace.span.type="http" name="POST /pokemon" http.method="POST"] assertions: - attr:http.status_code = 201 - name: It should save the correct data selector: - span[qualityTrace.span.type="database" name="create postgres.pokemon" db.system="postgres" + span[qualitytrace.span.type="database" name="create postgres.pokemon" db.system="postgres" db.name="postgres" db.user="postgres" db.operation="create" db.sql.table="pokemon"] assertions: - attr:db.result contains '"imageUrl":"${var:POKEMON_URL}"' diff --git a/testing/cli-e2etest/testscenarios/test/resources/kafka-trigger.yaml b/testing/cli-e2etest/testscenarios/test/resources/kafka-trigger.yaml index 44ea9ad..9d8624b 100644 --- a/testing/cli-e2etest/testscenarios/test/resources/kafka-trigger.yaml +++ b/testing/cli-e2etest/testscenarios/test/resources/kafka-trigger.yaml @@ -13,11 +13,11 @@ spec: messageKey: snorlax-key messageValue: "{\"id\":143}" specs: - - selector: span[qualityTrace.span.type="messaging" name="pokemon process" messaging.system="kafka" messaging.destination="pokemon" messaging.destination_kind="topic" messaging.operation="process"] + - selector: span[qualitytrace.span.type="messaging" name="pokemon process" messaging.system="kafka" messaging.destination="pokemon" messaging.destination_kind="topic" messaging.operation="process"] name: A message was received from Kafka stream assertions: - attr:messaging.system = "kafka" - - selector: span[qualityTrace.span.type="general" name="import pokemon"] + - selector: span[qualitytrace.span.type="general" name="import pokemon"] name: Import Pokemon use case was triggered assertions: - attr:name = "import pokemon" diff --git a/testing/cli-e2etest/testscenarios/test/run_test_test.go b/testing/cli-e2etest/testscenarios/test/run_test_test.go index bd0c0b9..f99bc3c 100644 --- a/testing/cli-e2etest/testscenarios/test/run_test_test.go +++ b/testing/cli-e2etest/testscenarios/test/run_test_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/require" ) @@ -28,7 +28,7 @@ func TestRunTestSuiteInsteadOfTest(t *testing.T) { testFil := env.GetTestResourcePath(t, "import") command := fmt.Sprintf("run testsuite -f %s", testFil) - result := qualityTracecli.Exec(t, command, qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, command, qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 2) }) } @@ -50,7 +50,7 @@ func TestRunTestWithHttpTriggerAndVariableSetFile(t *testing.T) { // When I try to get a variable set // Then it should return a message saying that the variable set was not found - result := qualityTracecli.Exec(t, "get variableset --id pokeapi-env", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get variableset --id pokeapi-env", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) require.Contains(result.StdOut, "Resource variableset with ID pokeapi-env not found") @@ -60,14 +60,14 @@ func TestRunTestWithHttpTriggerAndVariableSetFile(t *testing.T) { testFile := env.GetTestResourcePath(t, "http-trigger-with-environment-file") command := fmt.Sprintf("run test -f %s --vars %s", testFile, environmentFile) - result = qualityTracecli.Exec(t, command, qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, command, qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) require.Contains(result.StdOut, "✔ It should add a Pokemon correctly") require.Contains(result.StdOut, "✔ It should save the correct data") // When I try to get the variable set created on the previous step // Then it should retrieve it correctly - result = qualityTracecli.Exec(t, "get variableset --id pokeapi-env --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, "get variableset --id pokeapi-env --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) environmentVars := helpers.UnmarshalYAML[types.VariableSetResource](t, result.StdOut) @@ -90,7 +90,7 @@ func TestRunTestWithHttpTriggerAndVariableSetFile(t *testing.T) { // Then it should be created correctly environmentFile := env.GetTestResourcePath(t, "variableSet-file") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply variableset --file %s", environmentFile), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply variableset --file %s", environmentFile), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) environmentVars := helpers.UnmarshalYAML[types.VariableSetResource](t, result.StdOut) @@ -109,7 +109,7 @@ func TestRunTestWithHttpTriggerAndVariableSetFile(t *testing.T) { testFile := env.GetTestResourcePath(t, "http-trigger-with-environment-file") command := fmt.Sprintf("run test -f %s --vars pokeapi-env", testFile) - result = qualityTracecli.Exec(t, command, qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, command, qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) require.Contains(result.StdOut, "✔ It should add a Pokemon correctly") require.Contains(result.StdOut, "✔ It should save the correct data") @@ -124,7 +124,7 @@ func TestRunTestWithHttpTriggerAndVariableSetFile(t *testing.T) { // Then it should be created correctly environmentFile := env.GetTestResourcePath(t, "variableSet-file") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply variableset --file %s", environmentFile), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply variableset --file %s", environmentFile), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) environmentVars := helpers.UnmarshalYAML[types.VariableSetResource](t, result.StdOut) @@ -143,7 +143,7 @@ func TestRunTestWithHttpTriggerAndVariableSetFile(t *testing.T) { testFile := env.GetTestResourcePath(t, "http-trigger-with-environment-file") command := fmt.Sprintf("run test -f %s --environment pokeapi-env", testFile) - result = qualityTracecli.Exec(t, command, qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, command, qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) require.Contains(result.StdOut, "✔ It should add a Pokemon correctly") require.Contains(result.StdOut, "✔ It should save the correct data") @@ -170,7 +170,7 @@ func TestRunTestWithGrpcTrigger(t *testing.T) { testFile := env.GetTestResourcePath(t, "grpc-trigger-embedded-protobuf") command := fmt.Sprintf("run test -f %s", testFile) - result := qualityTracecli.Exec(t, command, qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, command, qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) require.Contains(result.StdOut, "✔ It calls Pokeshop correctly") // checks if the assertion was succeeded }) @@ -188,7 +188,7 @@ func TestRunTestWithGrpcTrigger(t *testing.T) { testFile := env.GetTestResourcePath(t, "grpc-trigger-reference-protobuf") command := fmt.Sprintf("run test -f %s", testFile) - result := qualityTracecli.Exec(t, command, qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, command, qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) require.Contains(result.StdOut, "✔ It calls Pokeshop correctly") // checks if the assertion was succeeded }) @@ -214,7 +214,7 @@ func TestRunTestWithKafkaTrigger(t *testing.T) { testFile := env.GetTestResourcePath(t, "kafka-trigger") command := fmt.Sprintf("run test -f %s", testFile) - result := qualityTracecli.Exec(t, command, qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, command, qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) // checks if the assertions were succeeded require.Contains(result.StdOut, "✔ Import Pokemon use case was triggered") diff --git a/testing/cli-e2etest/testscenarios/testrunner/apply_testrunner_test.go b/testing/cli-e2etest/testscenarios/testrunner/apply_testrunner_test.go index e735c55..34d44e9 100644 --- a/testing/cli-e2etest/testscenarios/testrunner/apply_testrunner_test.go +++ b/testing/cli-e2etest/testscenarios/testrunner/apply_testrunner_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -30,12 +30,12 @@ func TestApplyTestRunner(t *testing.T) { // Then it should be applied with success testRunnerPath := env.GetTestResourcePath(t, "new-testrunner") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply testrunner --file %s", testRunnerPath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply testrunner --file %s", testRunnerPath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) // When I try to get a testRunner again // Then it should return the testRunner applied on the last step, with analytics disabled - result = qualityTracecli.Exec(t, "get testrunner --id current", qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, "get testrunner --id current", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) testRunner := helpers.UnmarshalYAML[types.TestRunnerResource](t, result.StdOut) diff --git a/testing/cli-e2etest/testscenarios/testrunner/delete_testrunner_test.go b/testing/cli-e2etest/testscenarios/testrunner/delete_testrunner_test.go index 07482e9..20213f4 100644 --- a/testing/cli-e2etest/testscenarios/testrunner/delete_testrunner_test.go +++ b/testing/cli-e2etest/testscenarios/testrunner/delete_testrunner_test.go @@ -3,9 +3,9 @@ package testrunner import ( "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" "github.com/stretchr/testify/require" ) @@ -24,7 +24,7 @@ func TestDeleteTestRunner(t *testing.T) { // When I try to delete the testrunner // Then it should return a error message, showing that we cannot delete a testrunner - result := qualityTracecli.Exec(t, "delete testrunner --id current", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "delete testrunner --id current", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 1) require.Contains(result.StdErr, "resource TestRunner does not support the action") } diff --git a/testing/cli-e2etest/testscenarios/testrunner/get_testrunner_test.go b/testing/cli-e2etest/testscenarios/testrunner/get_testrunner_test.go index c805242..a8a0e44 100644 --- a/testing/cli-e2etest/testscenarios/testrunner/get_testrunner_test.go +++ b/testing/cli-e2etest/testscenarios/testrunner/get_testrunner_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -19,7 +19,7 @@ func addGetTestRunnerPreReqs(t *testing.T, env environment.Manager) { // Then it should be applied with success testRunnerPath := env.GetTestResourcePath(t, "new-testrunner") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply testrunner --file %s", testRunnerPath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply testrunner --file %s", testRunnerPath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) } @@ -40,7 +40,7 @@ func TestGetTestRunner(t *testing.T) { // When I try to get a testrunner on yaml mode // Then it should print a YAML with the default testrunner - result := qualityTracecli.Exec(t, "get testrunner --id current --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get testrunner --id current --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) require.Equal(0, result.ExitCode) testRunner := helpers.UnmarshalYAML[types.TestRunnerResource](t, result.StdOut) @@ -61,7 +61,7 @@ func TestGetTestRunner(t *testing.T) { // When I try to get a testrunner on yaml mode // Then it should print a YAML - result := qualityTracecli.Exec(t, "get testrunner --id current --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get testrunner --id current --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) require.Equal(0, result.ExitCode) testRunner := helpers.UnmarshalYAML[types.TestRunnerResource](t, result.StdOut) @@ -80,7 +80,7 @@ func TestGetTestRunner(t *testing.T) { // When I try to get a testrunner on json mode // Then it should print a json - result := qualityTracecli.Exec(t, "get testrunner --id current --output json", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get testrunner --id current --output json", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) testRunner := helpers.UnmarshalJSON[types.TestRunnerResource](t, result.StdOut) @@ -99,7 +99,7 @@ func TestGetTestRunner(t *testing.T) { // When I try to get a testrunner on pretty mode // Then it should print a table with 4 lines printed: header, separator, a testrunner item and empty line - result := qualityTracecli.Exec(t, "get testrunner --id current --output pretty", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get testrunner --id current --output pretty", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) parsedTable := helpers.UnmarshalTable(t, result.StdOut) diff --git a/testing/cli-e2etest/testscenarios/testrunner/list_testrunner_test.go b/testing/cli-e2etest/testscenarios/testrunner/list_testrunner_test.go index 7ee7439..07edc50 100644 --- a/testing/cli-e2etest/testscenarios/testrunner/list_testrunner_test.go +++ b/testing/cli-e2etest/testscenarios/testrunner/list_testrunner_test.go @@ -5,10 +5,10 @@ import ( "strings" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -20,7 +20,7 @@ func addListConfigPreReqs(t *testing.T, env environment.Manager) { // Then it should be applied with success testRunnerPath := env.GetTestResourcePath(t, "new-testrunner") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply testrunner --file %s", testRunnerPath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply testrunner --file %s", testRunnerPath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) } @@ -41,7 +41,7 @@ func TestListConfig(t *testing.T) { // When I try to list testrunner on pretty mode and there is no testrunner previously registered // Then it should print an empty table // Then it should print a table with 5 lines printed: header, separator, the default testrunner item, an entire line for the second gate and empty line - result := qualityTracecli.Exec(t, "list testrunner --sortBy name --output pretty", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list testrunner --sortBy name --output pretty", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) require.Contains(result.StdOut, "current") @@ -58,7 +58,7 @@ func TestListConfig(t *testing.T) { // When I try to list a testrunner by an invalid field // Then I should receive an error - result := qualityTracecli.Exec(t, "list testrunner --sortBy id --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list testrunner --sortBy id --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 1) require.Contains(result.StdErr, "invalid sort field: id") // TODO: think on how to improve this error handling }) @@ -70,7 +70,7 @@ func TestListConfig(t *testing.T) { // When I try to list testrunner again on yaml mode // Then it should print a YAML list with one item - result := qualityTracecli.Exec(t, "list testrunner --sortBy name --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list testrunner --sortBy name --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) testRunner := helpers.UnmarshalYAML[types.TestRunnerResource](t, result.StdOut) @@ -89,7 +89,7 @@ func TestListConfig(t *testing.T) { // When I try to list testrunner again on json mode // Then it should print a JSON list with one item - result := qualityTracecli.Exec(t, "list testrunner --sortBy name --output json", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list testrunner --sortBy name --output json", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) testRunnerList := helpers.UnmarshalJSON[types.ResourceList[types.TestRunnerResource]](t, result.StdOut) @@ -112,7 +112,7 @@ func TestListConfig(t *testing.T) { // When I try to list testrunner again on pretty mode // Then it should print a table with 4 lines printed: header, separator, testrunner item and empty line - result := qualityTracecli.Exec(t, "list testrunner --sortBy name --output pretty", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list testrunner --sortBy name --output pretty", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) parsedTable := helpers.UnmarshalTable(t, result.StdOut) diff --git a/testing/cli-e2etest/testscenarios/testsuite/apply_testsuite_test.go b/testing/cli-e2etest/testscenarios/testsuite/apply_testsuite_test.go index 29441a8..53bdba5 100644 --- a/testing/cli-e2etest/testscenarios/testsuite/apply_testsuite_test.go +++ b/testing/cli-e2etest/testscenarios/testsuite/apply_testsuite_test.go @@ -5,10 +5,10 @@ import ( "os" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/require" ) @@ -31,7 +31,7 @@ func TestApplyTestSuite(t *testing.T) { // Then it should be applied with success newTestSuitePath := env.GetTestResourcePath(t, "new-testsuite") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply testsuite --file %s", newTestSuitePath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply testsuite --file %s", newTestSuitePath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) testsuite := helpers.UnmarshalYAML[types.TestSuiteResource](t, result.StdOut) @@ -46,7 +46,7 @@ func TestApplyTestSuite(t *testing.T) { // When I try to get the testsuite applied on the last step // Then it should return it - result = qualityTracecli.Exec(t, "get testsuite --id Qti5R3_VR --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, "get testsuite --id Qti5R3_VR --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) require.Equal("TestSuite", testsuite.Type) @@ -61,7 +61,7 @@ func TestApplyTestSuite(t *testing.T) { // Then it should be applied with success updatedNewTestSuitePath := env.GetTestResourcePath(t, "updated-new-testsuite") - result = qualityTracecli.Exec(t, fmt.Sprintf("apply testsuite --file %s", updatedNewTestSuitePath), qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, fmt.Sprintf("apply testsuite --file %s", updatedNewTestSuitePath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) updatedTestSuite := helpers.UnmarshalYAML[types.TestSuiteResource](t, result.StdOut) @@ -76,7 +76,7 @@ func TestApplyTestSuite(t *testing.T) { // When I try to get the testsuite applied on the last step // Then it should return it - result = qualityTracecli.Exec(t, "get testsuite --id Qti5R3_VR --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, "get testsuite --id Qti5R3_VR --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) updatedTestSuite = helpers.UnmarshalYAML[types.TestSuiteResource](t, result.StdOut) @@ -97,7 +97,7 @@ func TestApplyTestSuite(t *testing.T) { helpers.RemoveIDFromTestSuiteFile(t, testsuiteWithoutIDPath) - testsuiteWithoutIDResult := qualityTracecli.Exec(t, fmt.Sprintf("apply testsuite --file %s", testsuiteWithoutIDPath), qualityTracecli.WithCLIConfig(cliConfig)) + testsuiteWithoutIDResult := qualitytracecli.Exec(t, fmt.Sprintf("apply testsuite --file %s", testsuiteWithoutIDPath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, testsuiteWithoutIDResult, 0) content, err := os.ReadFile(testsuiteWithoutIDPath) @@ -122,7 +122,7 @@ func TestApplyTestSuite(t *testing.T) { // Then it should be applied with success newTestSuitePath := env.GetTestResourcePath(t, "legacy-transaction") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply transaction --file %s", newTestSuitePath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply transaction --file %s", newTestSuitePath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) require.Contains(result.StdOut, "TestSuite") @@ -134,7 +134,7 @@ func TestApplyTestSuite(t *testing.T) { // When I try to get the testsuite applied on the last step // Then it should return it - result = qualityTracecli.Exec(t, "get transaction --id Qti5R3_VR --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, "get transaction --id Qti5R3_VR --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) require.Contains(result.StdOut, "TestSuite") diff --git a/testing/cli-e2etest/testscenarios/testsuite/delete_testsuite_test.go b/testing/cli-e2etest/testscenarios/testsuite/delete_testsuite_test.go index e51b0b9..ab7506f 100644 --- a/testing/cli-e2etest/testscenarios/testsuite/delete_testsuite_test.go +++ b/testing/cli-e2etest/testscenarios/testsuite/delete_testsuite_test.go @@ -4,9 +4,9 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" "github.com/stretchr/testify/require" ) @@ -25,7 +25,7 @@ func TestDeleteTestSuite(t *testing.T) { // When I try to delete a TestSuite that don't exist // Then it should return an error and say that this resource does not exist - result := qualityTracecli.Exec(t, "delete testsuite --id dont-exist", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "delete testsuite --id dont-exist", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 1) require.Contains(result.StdErr, "Resource testsuite with ID dont-exist not found") @@ -33,18 +33,18 @@ func TestDeleteTestSuite(t *testing.T) { // Then it should be applied with success newTestSuitePath := env.GetTestResourcePath(t, "new-testsuite") - result = qualityTracecli.Exec(t, fmt.Sprintf("apply testsuite --file %s", newTestSuitePath), qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, fmt.Sprintf("apply testsuite --file %s", newTestSuitePath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) // When I try to delete the testsuite // Then it should delete with success - result = qualityTracecli.Exec(t, "delete testsuite --id Qti5R3_VR", qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, "delete testsuite --id Qti5R3_VR", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) require.Contains(result.StdOut, "✔ Testsuite successfully deleted") // When I try to get a TestSuite again // Then it should return a message saying that the testsuite was not found - result = qualityTracecli.Exec(t, "delete testsuite --id Qti5R3_VR", qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, "delete testsuite --id Qti5R3_VR", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 1) require.Contains(result.StdErr, "Resource testsuite with ID Qti5R3_VR not found") } diff --git a/testing/cli-e2etest/testscenarios/testsuite/get_testsuite_test.go b/testing/cli-e2etest/testscenarios/testsuite/get_testsuite_test.go index e1be32b..ac19853 100644 --- a/testing/cli-e2etest/testscenarios/testsuite/get_testsuite_test.go +++ b/testing/cli-e2etest/testscenarios/testsuite/get_testsuite_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/require" ) @@ -21,7 +21,7 @@ func addGetTestSuitePreReqs(t *testing.T, env environment.Manager) { // Then it should be applied with success newTestSuitePath := env.GetTestResourcePath(t, "new-testsuite") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply testsuite --file %s", newTestSuitePath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply testsuite --file %s", newTestSuitePath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) } @@ -41,7 +41,7 @@ func TestGetTestSuite(t *testing.T) { // When I try to get a TestSuite on yaml mode // Then it should return a error message - result := qualityTracecli.Exec(t, "get testsuite --id no-id --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get testsuite --id no-id --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) require.Contains(result.StdOut, "Resource testsuite with ID no-id not found") }) @@ -55,7 +55,7 @@ func TestGetTestSuite(t *testing.T) { // When I try to get a TestSuite on yaml mode // Then it should print a YAML - result := qualityTracecli.Exec(t, "get testsuite --id Qti5R3_VR --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get testsuite --id Qti5R3_VR --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) testsuite := helpers.UnmarshalYAML[types.TestSuiteResource](t, result.StdOut) @@ -76,7 +76,7 @@ func TestGetTestSuite(t *testing.T) { // When I try to get a TestSuite on json mode // Then it should print a json - result := qualityTracecli.Exec(t, "get testsuite --id Qti5R3_VR --output json", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get testsuite --id Qti5R3_VR --output json", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) // it should return an augmented resource on get @@ -101,7 +101,7 @@ func TestGetTestSuite(t *testing.T) { // When I try to get a TestSuite on pretty mode // Then it should print a table with 4 lines printed: header, separator, testsuite item and empty line - result := qualityTracecli.Exec(t, "get testsuite --id Qti5R3_VR --output pretty", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get testsuite --id Qti5R3_VR --output pretty", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) parsedTable := helpers.UnmarshalTable(t, result.StdOut) diff --git a/testing/cli-e2etest/testscenarios/testsuite/list_testsuite_test.go b/testing/cli-e2etest/testscenarios/testsuite/list_testsuite_test.go index 73a6be8..ab72ce5 100644 --- a/testing/cli-e2etest/testscenarios/testsuite/list_testsuite_test.go +++ b/testing/cli-e2etest/testscenarios/testsuite/list_testsuite_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/require" ) @@ -21,21 +21,21 @@ func addListTestSuitePreReqs(t *testing.T, env environment.Manager) { // Then it should be applied with success newTestSuitePath := env.GetTestResourcePath(t, "new-testsuite") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply testsuite --file %s", newTestSuitePath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply testsuite --file %s", newTestSuitePath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) // When I try to set up a another environment // Then it should be applied with success anotherTestSuitePath := env.GetTestResourcePath(t, "another-testsuite") - result = qualityTracecli.Exec(t, fmt.Sprintf("apply testsuite --file %s", anotherTestSuitePath), qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, fmt.Sprintf("apply testsuite --file %s", anotherTestSuitePath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) // When I try to set up a third environment // Then it should be applied with success oneMoreTestSuitePath := env.GetTestResourcePath(t, "one-more-testsuite") - result = qualityTracecli.Exec(t, fmt.Sprintf("apply testsuite --file %s", oneMoreTestSuitePath), qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, fmt.Sprintf("apply testsuite --file %s", oneMoreTestSuitePath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) } @@ -53,7 +53,7 @@ func TestListTestSuites(t *testing.T) { // Given I am a Tracetest CLI user // And I have my server recently created // And there is no envs - result := qualityTracecli.Exec(t, "list testsuite --sortBy name --sortDirection asc --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list testsuite --sortBy name --sortDirection asc --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) testsuites := helpers.UnmarshalYAMLSequence[types.AugmentedTestSuiteResource](t, result.StdOut) @@ -68,7 +68,7 @@ func TestListTestSuites(t *testing.T) { // When I try to list these testsuites by an invalid field // Then I should receive an error - result := qualityTracecli.Exec(t, "list testsuite --sortBy id --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list testsuite --sortBy id --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 1) require.Contains(result.StdErr, "invalid sort field: id") // TODO: think on how to improve this error handling }) @@ -79,7 +79,7 @@ func TestListTestSuites(t *testing.T) { // When I try to list these testsuites by a valid field and in YAML format // Then I should receive three testsuites - result := qualityTracecli.Exec(t, "list testsuite --sortBy name --sortDirection asc --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list testsuite --sortBy name --sortDirection asc --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) testsuites := helpers.UnmarshalYAMLSequence[types.AugmentedTestSuiteResource](t, result.StdOut) @@ -131,7 +131,7 @@ func TestListTestSuites(t *testing.T) { // When I try to list these testsuites by a valid field and in JSON format // Then I should receive three testsuites - result := qualityTracecli.Exec(t, "list testsuite --sortBy name --sortDirection asc --output json", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list testsuite --sortBy name --sortDirection asc --output json", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) testsuites := helpers.UnmarshalJSON[types.ResourceList[types.AugmentedTestSuiteResource]](t, result.StdOut) @@ -184,7 +184,7 @@ func TestListTestSuites(t *testing.T) { // When I try to list these testsuites by a valid field and in pretty format // Then it should print a table with 6 lines printed: header, separator, three testsuites and empty line - result := qualityTracecli.Exec(t, "list testsuite --sortBy name --sortDirection asc --output pretty", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list testsuite --sortBy name --sortDirection asc --output pretty", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) parsedTable := helpers.UnmarshalTable(t, result.StdOut) @@ -227,7 +227,7 @@ func TestListTestSuites(t *testing.T) { // When I try to list these testsuites by a valid field, paging options and in YAML format // Then I should receive two testsuites - result := qualityTracecli.Exec(t, "list testsuite --sortBy name --sortDirection asc --skip 1 --take 2 --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list testsuite --sortBy name --sortDirection asc --skip 1 --take 2 --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) testsuites := helpers.UnmarshalYAMLSequence[types.AugmentedTestSuiteResource](t, result.StdOut) diff --git a/testing/cli-e2etest/testscenarios/testsuite/resources/testsuite-step-1.yaml b/testing/cli-e2etest/testscenarios/testsuite/resources/testsuite-step-1.yaml index a2c8b0d..574a3c9 100644 --- a/testing/cli-e2etest/testscenarios/testsuite/resources/testsuite-step-1.yaml +++ b/testing/cli-e2etest/testscenarios/testsuite/resources/testsuite-step-1.yaml @@ -14,11 +14,11 @@ spec: body: '{"name":"snorlax","type":"normal","imageUrl":"https://assets.pokemon.com/assets/cms2/img/pokedex/full/143.png","isFeatured":true}' specs: - name: It should add a Pokemon correctly - selector: span[qualityTrace.span.type="http" name="POST /pokemon/" http.method="POST"] + selector: span[qualitytrace.span.type="http" name="POST /pokemon/" http.method="POST"] assertions: - attr:http.status_code = 201 - name: It should save the correct data - selector: span[qualityTrace.span.type="database" name="create postgres.pokemon" db.system="postgres" db.name="postgres" db.user="postgres" db.operation="create" db.sql.table="pokemon"] + selector: span[qualitytrace.span.type="database" name="create postgres.pokemon" db.system="postgres" db.name="postgres" db.user="postgres" db.operation="create" db.sql.table="pokemon"] assertions: - attr:db.result contains '"imageUrl":"https://assets.pokemon.com/assets/cms2/img/pokedex/full/143.png"' - attr:db.result contains '"name":"snorlax"' diff --git a/testing/cli-e2etest/testscenarios/testsuite/resources/testsuite-step-2.yaml b/testing/cli-e2etest/testscenarios/testsuite/resources/testsuite-step-2.yaml index 64ecc4e..c567c3d 100644 --- a/testing/cli-e2etest/testscenarios/testsuite/resources/testsuite-step-2.yaml +++ b/testing/cli-e2etest/testscenarios/testsuite/resources/testsuite-step-2.yaml @@ -13,6 +13,6 @@ spec: value: application/json specs: - name: It should Get Pokemons correctly - selector: span[qualityTrace.span.type="http" name="GET /pokemon" http.method="GET"] + selector: span[qualitytrace.span.type="http" name="GET /pokemon" http.method="GET"] assertions: - attr:http.status_code = 200 diff --git a/testing/cli-e2etest/testscenarios/testsuite/run_testsuite_test.go b/testing/cli-e2etest/testscenarios/testsuite/run_testsuite_test.go index 69d34c2..2326125 100644 --- a/testing/cli-e2etest/testscenarios/testsuite/run_testsuite_test.go +++ b/testing/cli-e2etest/testscenarios/testsuite/run_testsuite_test.go @@ -4,9 +4,9 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" "github.com/stretchr/testify/require" ) @@ -27,7 +27,7 @@ func TestRunTestSuite(t *testing.T) { testsuiteFile := env.GetTestResourcePath(t, "testsuite-to-run") command := fmt.Sprintf("run test -f %s", testsuiteFile) - result := qualityTracecli.Exec(t, command, qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, command, qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 2) }) @@ -50,7 +50,7 @@ func TestRunTestSuite(t *testing.T) { testsuiteFile := env.GetTestResourcePath(t, "testsuite-to-run") command := fmt.Sprintf("run testsuite -f %s", testsuiteFile) - result := qualityTracecli.Exec(t, command, qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, command, qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) require.Contains(result.StdOut, "TestSuite To Run") // testsuite name require.Contains(result.StdOut, "Pokeshop - Add") // first test @@ -72,7 +72,7 @@ func TestRunTestSuite(t *testing.T) { testsuiteFile := env.GetTestResourcePath(t, "legacy-transaction") command := fmt.Sprintf("run transaction -f %s", testsuiteFile) - result := qualityTracecli.Exec(t, command, qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, command, qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) require.Contains(result.StdOut, "New Transaction") // testsuite name diff --git a/testing/cli-e2etest/testscenarios/types/test.go b/testing/cli-e2etest/testscenarios/types/test.go index f67a9bf..200ea89 100644 --- a/testing/cli-e2etest/testscenarios/types/test.go +++ b/testing/cli-e2etest/testscenarios/types/test.go @@ -3,7 +3,7 @@ package types import ( "time" - "github.com/intelops/qualityTrace/server/pkg/maps" + "github.com/intelops/qualitytrace/server/pkg/maps" ) type TestResource struct { diff --git a/testing/cli-e2etest/testscenarios/variableset/apply_variableset_test.go b/testing/cli-e2etest/testscenarios/variableset/apply_variableset_test.go index 02c6bd9..7349887 100644 --- a/testing/cli-e2etest/testscenarios/variableset/apply_variableset_test.go +++ b/testing/cli-e2etest/testscenarios/variableset/apply_variableset_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/require" ) @@ -29,7 +29,7 @@ func TestApplyVariableSet(t *testing.T) { // Then it should be applied with success newEnvironmentPath := env.GetTestResourcePath(t, "new-varSet") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply variableset --file %s", newEnvironmentPath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply variableset --file %s", newEnvironmentPath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) environmentVars := helpers.UnmarshalYAML[types.VariableSetResource](t, result.StdOut) @@ -45,7 +45,7 @@ func TestApplyVariableSet(t *testing.T) { // When I try to get the variable set applied on the last step // Then it should return it - result = qualityTracecli.Exec(t, "get variableset --id .env --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, "get variableset --id .env --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) environmentVars = helpers.UnmarshalYAML[types.VariableSetResource](t, result.StdOut) @@ -63,7 +63,7 @@ func TestApplyVariableSet(t *testing.T) { // Then it should be applied with success updatedNewEnvironmentPath := env.GetTestResourcePath(t, "updated-new-varSet") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply variableset --file %s", updatedNewEnvironmentPath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply variableset --file %s", updatedNewEnvironmentPath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) updatedEnvironmentVars := helpers.UnmarshalYAML[types.VariableSetResource](t, result.StdOut) @@ -80,7 +80,7 @@ func TestApplyVariableSet(t *testing.T) { // When I try to get the variable set applied on the last step // Then it should return it - result = qualityTracecli.Exec(t, "get variableset --id .env --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, "get variableset --id .env --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) updatedEnvironmentVars = helpers.UnmarshalYAML[types.VariableSetResource](t, result.StdOut) diff --git a/testing/cli-e2etest/testscenarios/variableset/delete_variableset_test.go b/testing/cli-e2etest/testscenarios/variableset/delete_variableset_test.go index fc4c0af..bf23cf1 100644 --- a/testing/cli-e2etest/testscenarios/variableset/delete_variableset_test.go +++ b/testing/cli-e2etest/testscenarios/variableset/delete_variableset_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/require" ) @@ -26,7 +26,7 @@ func TestDeleteVariableSet(t *testing.T) { // When I try to delete a variable set that don't exist // Then it should return an error and say that this resource does not exist - result := qualityTracecli.Exec(t, "delete variableset --id .env", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "delete variableset --id .env", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 1) require.Contains(result.StdErr, "Resource variableset with ID .env not found") @@ -34,7 +34,7 @@ func TestDeleteVariableSet(t *testing.T) { // Then it should be applied with success newEnvironmentPath := env.GetTestResourcePath(t, "new-varSet") - result = qualityTracecli.Exec(t, fmt.Sprintf("apply variableset --file %s", newEnvironmentPath), qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, fmt.Sprintf("apply variableset --file %s", newEnvironmentPath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) environmentVars := helpers.UnmarshalYAML[types.VariableSetResource](t, result.StdOut) @@ -43,13 +43,13 @@ func TestDeleteVariableSet(t *testing.T) { // When I try to delete the environment // Then it should delete with success - result = qualityTracecli.Exec(t, "delete variableset --id .env", qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, "delete variableset --id .env", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) require.Contains(result.StdOut, "✔ Variableset successfully deleted") // When I try to get an environment again // Then it should return a message saying that the environment was not found - result = qualityTracecli.Exec(t, "get variableset --id .env --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, "get variableset --id .env --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) require.Contains(result.StdOut, "Resource variableset with ID .env not found") } diff --git a/testing/cli-e2etest/testscenarios/variableset/get_variableset_test.go b/testing/cli-e2etest/testscenarios/variableset/get_variableset_test.go index 2d525cb..399646b 100644 --- a/testing/cli-e2etest/testscenarios/variableset/get_variableset_test.go +++ b/testing/cli-e2etest/testscenarios/variableset/get_variableset_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/require" ) @@ -21,7 +21,7 @@ func addGetVariableSetPreReqs(t *testing.T, env environment.Manager) { // Then it should be applied with success newEnvironmentPath := env.GetTestResourcePath(t, "new-varSet") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply variableset --file %s", newEnvironmentPath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply variableset --file %s", newEnvironmentPath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) } @@ -41,7 +41,7 @@ func TestGetVariableSet(t *testing.T) { // When I try to get a environment on yaml mode // Then it should return a error message - result := qualityTracecli.Exec(t, "get variableset --id .env --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get variableset --id .env --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) require.Contains(result.StdOut, "Resource variableset with ID .env not found") }) @@ -55,7 +55,7 @@ func TestGetVariableSet(t *testing.T) { // When I try to get a variable set on yaml mode // Then it should print a YAML - result := qualityTracecli.Exec(t, "get variableset --id .env --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get variableset --id .env --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) environmentVars := helpers.UnmarshalYAML[types.VariableSetResource](t, result.StdOut) @@ -77,7 +77,7 @@ func TestGetVariableSet(t *testing.T) { // When I try to get a variable set on json mode // Then it should print a json - result := qualityTracecli.Exec(t, "get variableset --id .env --output json", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get variableset --id .env --output json", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) environmentVars := helpers.UnmarshalJSON[types.VariableSetResource](t, result.StdOut) @@ -99,7 +99,7 @@ func TestGetVariableSet(t *testing.T) { // When I try to get a variable set on pretty mode // Then it should print a table with 4 lines printed: header, separator, variable set item and empty line - result := qualityTracecli.Exec(t, "get variableset --id .env --output pretty", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "get variableset --id .env --output pretty", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) parsedTable := helpers.UnmarshalTable(t, result.StdOut) diff --git a/testing/cli-e2etest/testscenarios/variableset/list_variablesets_test.go b/testing/cli-e2etest/testscenarios/variableset/list_variablesets_test.go index ad32896..51e6e4f 100644 --- a/testing/cli-e2etest/testscenarios/variableset/list_variablesets_test.go +++ b/testing/cli-e2etest/testscenarios/variableset/list_variablesets_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" - "github.com/intelops/qualityTrace/testing/cli-e2etest/testscenarios/types" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/testscenarios/types" "github.com/stretchr/testify/require" ) @@ -21,21 +21,21 @@ func addListVariableSetPreReqs(t *testing.T, env environment.Manager) { // Then it should be applied with success newEnvironmentPath := env.GetTestResourcePath(t, "new-varSet") - result := qualityTracecli.Exec(t, fmt.Sprintf("apply variableset --file %s", newEnvironmentPath), qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, fmt.Sprintf("apply variableset --file %s", newEnvironmentPath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) // When I try to set up a another environment // Then it should be applied with success anotherEnvironmentPath := env.GetTestResourcePath(t, "another-varSet") - result = qualityTracecli.Exec(t, fmt.Sprintf("apply variableset --file %s", anotherEnvironmentPath), qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, fmt.Sprintf("apply variableset --file %s", anotherEnvironmentPath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) // When I try to set up a third environment // Then it should be applied with success oneMoreEnvironmentPath := env.GetTestResourcePath(t, "one-more-varSet") - result = qualityTracecli.Exec(t, fmt.Sprintf("apply variableset --file %s", oneMoreEnvironmentPath), qualityTracecli.WithCLIConfig(cliConfig)) + result = qualitytracecli.Exec(t, fmt.Sprintf("apply variableset --file %s", oneMoreEnvironmentPath), qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) } @@ -53,7 +53,7 @@ func TestListVariableSets(t *testing.T) { // Given I am a Tracetest CLI user // And I have my server recently created // And there is no variable sets - result := qualityTracecli.Exec(t, "list variableset --sortBy name --sortDirection asc --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list variableset --sortBy name --sortDirection asc --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) environmentVarsList := helpers.UnmarshalYAMLSequence[types.VariableSetResource](t, result.StdOut) @@ -68,7 +68,7 @@ func TestListVariableSets(t *testing.T) { // When I try to list these variable set by an invalid field // Then I should receive an error - result := qualityTracecli.Exec(t, "list variableset --sortBy id --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list variableset --sortBy id --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 1) require.Contains(result.StdErr, "invalid sort field: id") // TODO: think on how to improve this error handling }) @@ -79,7 +79,7 @@ func TestListVariableSets(t *testing.T) { // When I try to list these variable sets by a valid field and in YAML format // Then I should receive three variable sets - result := qualityTracecli.Exec(t, "list variableset --sortBy name --sortDirection asc --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list variableset --sortBy name --sortDirection asc --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) environmentVarsList := helpers.UnmarshalYAMLSequence[types.VariableSetResource](t, result.StdOut) @@ -124,7 +124,7 @@ func TestListVariableSets(t *testing.T) { // When I try to list these environments by a valid field and in JSON format // Then I should receive three environments - result := qualityTracecli.Exec(t, "list variableset --sortBy name --sortDirection asc --output json", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list variableset --sortBy name --sortDirection asc --output json", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) environmentVarsList := helpers.UnmarshalJSON[types.ResourceList[types.VariableSetResource]](t, result.StdOut) @@ -170,7 +170,7 @@ func TestListVariableSets(t *testing.T) { // When I try to list these environments by a valid field and in pretty format // Then it should print a table with 6 lines printed: header, separator, three envs and empty line - result := qualityTracecli.Exec(t, "list variableset --sortBy name --sortDirection asc --output pretty", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list variableset --sortBy name --sortDirection asc --output pretty", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) // due our database sorting algorithm, "another-env" comes in the front of ".env" @@ -203,7 +203,7 @@ func TestListVariableSets(t *testing.T) { // When I try to list these environments by a valid field, paging options and in YAML format // Then I should receive two environments - result := qualityTracecli.Exec(t, "list variableset --sortBy name --sortDirection asc --skip 1 --take 2 --output yaml", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "list variableset --sortBy name --sortDirection asc --skip 1 --take 2 --output yaml", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) environmentVarsList := helpers.UnmarshalYAMLSequence[types.VariableSetResource](t, result.StdOut) diff --git a/testing/cli-e2etest/testscenarios/version_test.go b/testing/cli-e2etest/testscenarios/version_test.go index 6b8885c..5e59986 100644 --- a/testing/cli-e2etest/testscenarios/version_test.go +++ b/testing/cli-e2etest/testscenarios/version_test.go @@ -3,9 +3,9 @@ package testscenarios import ( "testing" - "github.com/intelops/qualityTrace/testing/cli-e2etest/environment" - "github.com/intelops/qualityTrace/testing/cli-e2etest/helpers" - "github.com/intelops/qualityTrace/testing/cli-e2etest/qualityTracecli" + "github.com/intelops/qualitytrace/testing/cli-e2etest/environment" + "github.com/intelops/qualitytrace/testing/cli-e2etest/helpers" + "github.com/intelops/qualitytrace/testing/cli-e2etest/qualitytracecli" "github.com/stretchr/testify/require" ) @@ -20,9 +20,9 @@ func TestVersionCommand(t *testing.T) { cliConfig := env.GetCLIConfigPath(t) // Given I am a Tracetest CLI user - // When I try to check the qualityTrace version + // When I try to check the qualitytrace version // Then I should receive a version string with success - result := qualityTracecli.Exec(t, "version", qualityTracecli.WithCLIConfig(cliConfig)) + result := qualitytracecli.Exec(t, "version", qualitytracecli.WithCLIConfig(cliConfig)) helpers.RequireExitCodeEqual(t, result, 0) require.Greater(len(result.StdOut), 0) diff --git a/testing/cli-smoketest/run.bash b/testing/cli-smoketest/run.bash index e7c2df5..b2589d8 100644 --- a/testing/cli-smoketest/run.bash +++ b/testing/cli-smoketest/run.bash @@ -10,7 +10,7 @@ if [ $TEST_ENV = "local" ]; then export TRACETEST_CLI_COMMAND=$TRACETEST_CLI else export TRACETEST_ENDPOINT="host.docker.internal:11633" - export TRACETEST_CLI_COMMAND="docker run --volume $PWD/tests:/app/tests --entrypoint qualityTrace --add-host=host.docker.internal:host-gateway intelops/qualityTrace:$TAG" + export TRACETEST_CLI_COMMAND="docker run --volume $PWD/tests:/app/tests --entrypoint qualitytrace --add-host=host.docker.internal:host-gateway intelops/qualitytrace:$TAG" fi echo "Preparing to run CLI tests..." @@ -23,13 +23,13 @@ echo "TRACETEST_ENDPOINT: $TRACETEST_ENDPOINT" echo "TRACETEST_CLI_COMMAND: $TRACETEST_CLI_COMMAND" echo "" -echo "Setting up qualityTrace CLI configuration..." +echo "Setting up qualitytrace CLI configuration..." cat << EOF > tests/config.yml scheme: http endpoint: $TRACETEST_ENDPOINT analyticsEnabled: false EOF -echo "qualityTrace CLI set up." +echo "qualitytrace CLI set up." echo "" echo "Setting up test helpers..." diff --git a/testing/cli-smoketest/tests/simple-test.yaml b/testing/cli-smoketest/tests/simple-test.yaml index 78b83ba..ab02764 100644 --- a/testing/cli-smoketest/tests/simple-test.yaml +++ b/testing/cli-smoketest/tests/simple-test.yaml @@ -1,8 +1,8 @@ type: Test spec: id: e9c6cff9-974d-4263-8a23-22f1e9f975aa - name: List all qualityTrace tests - description: List all existing tests from qualityTrace API + name: List all qualitytrace tests + description: List all existing tests from qualitytrace API trigger: type: http httpRequest: @@ -14,4 +14,4 @@ spec: specs: - selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 diff --git a/testing/load/.gitignore b/testing/load/.gitignore index b61bd08..9ee3d83 100644 --- a/testing/load/.gitignore +++ b/testing/load/.gitignore @@ -1,2 +1,2 @@ k6 -qualityTrace.json +qualitytrace.json diff --git a/testing/load/infra/docker-compose.yaml b/testing/load/infra/docker-compose.yaml index 776a582..78138cc 100644 --- a/testing/load/infra/docker-compose.yaml +++ b/testing/load/infra/docker-compose.yaml @@ -1,15 +1,15 @@ version: "3" services: - qualityTrace: - image: intelops/qualityTrace:${TAG:-latest} + qualitytrace: + image: intelops/qualitytrace:${TAG:-latest} restart: unless-stopped volumes: - type: bind - source: ./qualityTrace-config.yaml - target: /app/qualityTrace.yaml + source: ./qualitytrace-config.yaml + target: /app/qualitytrace.yaml - type: bind - source: ./qualityTrace-provision.yaml + source: ./qualitytrace-provision.yaml target: /app/provisioning.yaml ports: - 11633:11633 diff --git a/testing/load/infra/tracetest-config.yaml b/testing/load/infra/qualitytrace-config.yaml similarity index 100% rename from testing/load/infra/tracetest-config.yaml rename to testing/load/infra/qualitytrace-config.yaml diff --git a/testing/load/infra/tracetest-provision.yaml b/testing/load/infra/qualitytrace-provision.yaml similarity index 100% rename from testing/load/infra/tracetest-provision.yaml rename to testing/load/infra/qualitytrace-provision.yaml diff --git a/testing/load/load-test.js b/testing/load/load-test.js index b639dc0..c2eba7b 100644 --- a/testing/load/load-test.js +++ b/testing/load/load-test.js @@ -1,7 +1,7 @@ import { check } from "k6"; import { textSummary } from "https://jslib.k6.io/k6-summary/0.0.2/index.js"; -import { Http, Tracetest } from "k6/x/qualityTrace"; +import { Http, Tracetest } from "k6/x/qualitytrace"; import { sleep } from "k6"; export const options = { @@ -13,7 +13,7 @@ export const options = { }, }; -const qualityTrace = Tracetest({ +const qualitytrace = Tracetest({ serverUrl: "http://localhost:11633", }); const testId = "kc_MgKoVR"; @@ -22,7 +22,7 @@ const url = "http://localhost:8081/pokemon?take=5"; export default function () { const params = { - qualityTrace: { + qualitytrace: { testId, }, headers: { @@ -39,22 +39,22 @@ export default function () { sleep(1); } -// enable this to return a non-zero status code if a qualityTrace test fails +// enable this to return a non-zero status code if a qualitytrace test fails export function teardown() { - qualityTrace.validateResult(); + qualitytrace.validateResult(); } export function handleSummary(data) { - // combine the default summary with the qualityTrace summary - const qualityTraceSummary = qualityTrace.summary(); + // combine the default summary with the qualitytrace summary + const qualitytraceSummary = qualitytrace.summary(); const defaultSummary = textSummary(data); const summary = ` ${defaultSummary} - ${qualityTraceSummary} + ${qualitytraceSummary} `; return { stdout: summary, - "qualityTrace.json": qualityTrace.json(), + "qualitytrace.json": qualitytrace.json(), }; } diff --git a/testing/load/tracetest-test.yaml b/testing/load/qualitytrace-test.yaml similarity index 100% rename from testing/load/tracetest-test.yaml rename to testing/load/qualitytrace-test.yaml diff --git a/testing/load/run.bash b/testing/load/run.bash index 2ad5f0f..320933a 100644 --- a/testing/load/run.bash +++ b/testing/load/run.bash @@ -2,7 +2,7 @@ set -ex -TRACETEST_CLI=${TRACETEST_CLI:-"qualityTrace"} +TRACETEST_CLI=${TRACETEST_CLI:-"qualitytrace"} cmdExitCode=$("$TRACETEST_CLI" &> /dev/null; echo $?) if [ $cmdExitCode -ne 0 ]; then echo "\$TRACETEST_CLI not set to executable. set to $TRACETEST_CLI"; @@ -24,22 +24,22 @@ $DOCKER_COMPOSE up > $DOCKER_LOG 2>&1 & TIMEOUT=5m ../../scripts/wait-for-port.sh 11633 ../../scripts/wait-for-port.sh 8081 sleep 5 -$TRACETEST apply test -f qualityTrace-test.yaml +$TRACETEST apply test -f qualitytrace-test.yaml rm -f ./k6 -# this build needs to happen outside the qualityTrace dir +# this build needs to happen outside the qualitytrace dir # otherwise go compiler complains about go.mod in parent dir currentDir=$(pwd) dir=$(mktemp -d) cd $dir go install go.k6.io/xk6/cmd/xk6@latest -xk6 build v0.42.0 --with github.com/kubeshop/xk6-qualityTrace \ +xk6 build v0.42.0 --with github.com/kubeshop/xk6-qualitytrace \ --replace go.buf.build/grpc/go/prometheus/prometheus=buf.build/gen/go/prometheus/prometheus/protocolbuffers/go@latest \ --replace go.buf.build/grpc/go/gogo/protobuf=buf.build/gen/go/gogo/protobuf/protocolbuffers/go@latest mv ./k6 $currentDir cd $currentDir -./k6 run load-test.js -o xk6-qualityTrace +./k6 run load-test.js -o xk6-qualitytrace # $DOCKER_COMPOSE down diff --git a/testing/server-tracetesting/.gitignore b/testing/server-tracetesting/.gitignore index d628e2e..5315998 100644 --- a/testing/server-tracetesting/.gitignore +++ b/testing/server-tracetesting/.gitignore @@ -1,5 +1,5 @@ results/ config.yml .env -qualityTraceing-env.yaml -qualityTraceing-vars.yaml +qualitytraceing-env.yaml +qualitytraceing-vars.yaml diff --git a/testing/server-tracetesting/features/grpc_test/01_create_grpc_test.yml b/testing/server-tracetesting/features/grpc_test/01_create_grpc_test.yml index 8a5b6a4..845cbd6 100644 --- a/testing/server-tracetesting/features/grpc_test/01_create_grpc_test.yml +++ b/testing/server-tracetesting/features/grpc_test/01_create_grpc_test.yml @@ -28,7 +28,7 @@ spec: "specs": [ { "selector":"span[name = \"queue.synchronizePokemon publish\"]", - "assertions": ["attr:qualityTrace.selected_spans.count > 0"] + "assertions": ["attr:qualitytrace.selected_spans.count > 0"] } ] } @@ -36,18 +36,18 @@ spec: specs: - selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.response.status = 201 - - selector: span[name="POST /api/tests" qualityTrace.span.type="http"] + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.response.status = 201 + - selector: span[name="POST /api/tests" qualitytrace.span.type="http"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - selector: span[name = "exec INSERT"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - selector: span[name = "exec INSERT"]:first assertions: - attr:sql.query contains "INSERT INTO tests" outputs: - name: GRPC_TEST_ID selector: span[name = "Tracetest trigger"] - value: attr:qualityTrace.response.body | json_path '$.spec.id' + value: attr:qualitytrace.response.body | json_path '$.spec.id' diff --git a/testing/server-tracetesting/features/grpc_test/02_list_grpc_test.yml b/testing/server-tracetesting/features/grpc_test/02_list_grpc_test.yml index 328e284..838e49e 100644 --- a/testing/server-tracetesting/features/grpc_test/02_list_grpc_test.yml +++ b/testing/server-tracetesting/features/grpc_test/02_list_grpc_test.yml @@ -14,12 +14,12 @@ spec: specs: - selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.response.status = 200 - - attr:qualityTrace.response.body | json_path '$.items[*].spec.id' contains var:GRPC_TEST_ID # check if the test is listed - - selector: span[name="GET /api/tests" qualityTrace.span.type="http"] + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.response.status = 200 + - attr:qualitytrace.response.body | json_path '$.items[*].spec.id' contains var:GRPC_TEST_ID # check if the test is listed + - selector: span[name="GET /api/tests" qualitytrace.span.type="http"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - selector: span[name = "query SELECT"] assertions: - - attr:qualityTrace.selected_spans.count = 2 + - attr:qualitytrace.selected_spans.count = 2 diff --git a/testing/server-tracetesting/features/grpc_test/03_run_grpc_test.yml b/testing/server-tracetesting/features/grpc_test/03_run_grpc_test.yml index 118641e..fadb546 100644 --- a/testing/server-tracetesting/features/grpc_test/03_run_grpc_test.yml +++ b/testing/server-tracetesting/features/grpc_test/03_run_grpc_test.yml @@ -15,26 +15,26 @@ spec: specs: - selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.response.status = 200 - - selector: span[name = "POST /api/tests/{testId}/run" qualityTrace.span.type = "http"] + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.response.status = 200 + - selector: span[name = "POST /api/tests/{testId}/run" qualitytrace.span.type = "http"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - selector: span[name = "Trigger test"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.run.trigger.test_id = "${var:GRPC_TEST_ID}" - - attr:qualityTrace.run.trigger.type = "grpc" - - attr:qualityTrace.run.trigger.grpc.response_status_code = 0 - - attr:qualityTrace.run.trigger.grpc.response_status = "OK" + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.run.trigger.test_id = "${var:GRPC_TEST_ID}" + - attr:qualitytrace.run.trigger.type = "grpc" + - attr:qualitytrace.run.trigger.grpc.response_status_code = 0 + - attr:qualitytrace.run.trigger.grpc.response_status = "OK" - selector: span[name = "Fetching trace"] assertions: - - attr:qualityTrace.selected_spans.count > 0 - - attr:qualityTrace.run.trace_poller.test_id = "${var:GRPC_TEST_ID}" + - attr:qualitytrace.selected_spans.count > 0 + - attr:qualitytrace.run.trace_poller.test_id = "${var:GRPC_TEST_ID}" - selector: span[name = "Evaluating trace"]:last assertions: - - attr:qualityTrace.run.trace_poller.succesful = "true" + - attr:qualitytrace.run.trace_poller.succesful = "true" - selector: span[name = "Execute assertions"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.run.assertion_runner.all_assertions_passed = "true" + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.run.assertion_runner.all_assertions_passed = "true" diff --git a/testing/server-tracetesting/features/grpc_test/04_delete_grpc_test.yml b/testing/server-tracetesting/features/grpc_test/04_delete_grpc_test.yml index e90b60e..6ea0653 100644 --- a/testing/server-tracetesting/features/grpc_test/04_delete_grpc_test.yml +++ b/testing/server-tracetesting/features/grpc_test/04_delete_grpc_test.yml @@ -15,12 +15,12 @@ spec: specs: - selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.response.status = 204 - - selector: span[name="DELETE /api/tests/{id}" qualityTrace.span.type="http"] + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.response.status = 204 + - selector: span[name="DELETE /api/tests/{id}" qualitytrace.span.type="http"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - selector: span[name = "exec DELETE"] assertions: # must delete test and runs. That's why we need 2 deletes - - attr:qualityTrace.selected_spans.count = 4 + - attr:qualitytrace.selected_spans.count = 4 diff --git a/testing/server-tracetesting/features/grpc_test/05_create_grpc_test_with_invalid_metadata.yml b/testing/server-tracetesting/features/grpc_test/05_create_grpc_test_with_invalid_metadata.yml index efaa960..52a9fb6 100644 --- a/testing/server-tracetesting/features/grpc_test/05_create_grpc_test_with_invalid_metadata.yml +++ b/testing/server-tracetesting/features/grpc_test/05_create_grpc_test_with_invalid_metadata.yml @@ -29,7 +29,7 @@ spec: "specs": [ { "selector": "span[name = \"queue.synchronizePokemon publish\"]", - "assertions": ["attr:qualityTrace.selected_spans.count > 0"] + "assertions": ["attr:qualitytrace.selected_spans.count > 0"] } ] } @@ -37,18 +37,18 @@ spec: specs: - selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.response.status = 201 - - selector: span[name="POST /api/tests" qualityTrace.span.type="http"] + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.response.status = 201 + - selector: span[name="POST /api/tests" qualitytrace.span.type="http"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - selector: span[name = "exec INSERT"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - selector: span[name = "exec INSERT"]:first assertions: - attr:sql.query contains "INSERT INTO tests" outputs: - name: GRPC_TEST_INVALID_METADATA_ID selector: span[name = "Tracetest trigger"] - value: attr:qualityTrace.response.body | json_path '$.spec.id' + value: attr:qualitytrace.response.body | json_path '$.spec.id' diff --git a/testing/server-tracetesting/features/grpc_test/06_run_grpc_test_with_invalid_metadata.yml b/testing/server-tracetesting/features/grpc_test/06_run_grpc_test_with_invalid_metadata.yml index e4da644..5162a26 100644 --- a/testing/server-tracetesting/features/grpc_test/06_run_grpc_test_with_invalid_metadata.yml +++ b/testing/server-tracetesting/features/grpc_test/06_run_grpc_test_with_invalid_metadata.yml @@ -15,26 +15,26 @@ spec: specs: - selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.response.status = 200 - - selector: span[name = "POST /api/tests/{testId}/run" qualityTrace.span.type = "http"] + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.response.status = 200 + - selector: span[name = "POST /api/tests/{testId}/run" qualitytrace.span.type = "http"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - selector: span[name = "Trigger test"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.run.trigger.test_id = "${var:GRPC_TEST_INVALID_METADATA_ID}" - - attr:qualityTrace.run.trigger.type = "grpc" - - attr:qualityTrace.run.trigger.grpc.response_status_code = 0 - - attr:qualityTrace.run.trigger.grpc.response_status = "OK" + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.run.trigger.test_id = "${var:GRPC_TEST_INVALID_METADATA_ID}" + - attr:qualitytrace.run.trigger.type = "grpc" + - attr:qualitytrace.run.trigger.grpc.response_status_code = 0 + - attr:qualitytrace.run.trigger.grpc.response_status = "OK" - selector: span[name = "Fetching trace"] assertions: - - attr:qualityTrace.selected_spans.count > 0 - - attr:qualityTrace.run.trace_poller.test_id = "${var:GRPC_TEST_INVALID_METADATA_ID}" + - attr:qualitytrace.selected_spans.count > 0 + - attr:qualitytrace.run.trace_poller.test_id = "${var:GRPC_TEST_INVALID_METADATA_ID}" - selector: span[name = "Evaluating trace"]:last assertions: - - attr:qualityTrace.run.trace_poller.succesful = "true" + - attr:qualitytrace.run.trace_poller.succesful = "true" - selector: span[name = "Execute assertions"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.run.assertion_runner.all_assertions_passed = "true" + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.run.assertion_runner.all_assertions_passed = "true" diff --git a/testing/server-tracetesting/features/http_test/01_delete_http_test_with_non_existing_id.yml b/testing/server-tracetesting/features/http_test/01_delete_http_test_with_non_existing_id.yml index 3626273..f182c42 100644 --- a/testing/server-tracetesting/features/http_test/01_delete_http_test_with_non_existing_id.yml +++ b/testing/server-tracetesting/features/http_test/01_delete_http_test_with_non_existing_id.yml @@ -14,12 +14,12 @@ spec: specs: - selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.response.status = 404 - - selector: span[name="DELETE /api/tests/{id}" qualityTrace.span.type="http"] + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.response.status = 404 + - selector: span[name="DELETE /api/tests/{id}" qualitytrace.span.type="http"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - selector: span[name = "exec DELETE"] assertions: # should not find any delete - - attr:qualityTrace.selected_spans.count = 0 + - attr:qualitytrace.selected_spans.count = 0 diff --git a/testing/server-tracetesting/features/http_test/02_create_http_test_with_non_existing_id.yml b/testing/server-tracetesting/features/http_test/02_create_http_test_with_non_existing_id.yml index 18b4f9c..c1837ec 100644 --- a/testing/server-tracetesting/features/http_test/02_create_http_test_with_non_existing_id.yml +++ b/testing/server-tracetesting/features/http_test/02_create_http_test_with_non_existing_id.yml @@ -36,9 +36,9 @@ spec: specs: - selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.response.status = 201 - - attr:qualityTrace.response.body | json_path '$.spec.id' = var:EXAMPLE_TEST_ID - - selector: span[name="POST /api/tests" qualityTrace.span.type="http"] + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.response.status = 201 + - attr:qualitytrace.response.body | json_path '$.spec.id' = var:EXAMPLE_TEST_ID + - selector: span[name="POST /api/tests" qualitytrace.span.type="http"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 diff --git a/testing/server-tracetesting/features/http_test/03_create_http_test_with_existent_id.yml b/testing/server-tracetesting/features/http_test/03_create_http_test_with_existent_id.yml index d99a067..c65743a 100644 --- a/testing/server-tracetesting/features/http_test/03_create_http_test_with_existent_id.yml +++ b/testing/server-tracetesting/features/http_test/03_create_http_test_with_existent_id.yml @@ -36,10 +36,10 @@ spec: specs: - selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.response.status = 400 - - selector: span[name="POST /api/tests" qualityTrace.span.type="http"] + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.response.status = 400 + - selector: span[name="POST /api/tests" qualitytrace.span.type="http"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.span.status_code = "STATUS_CODE_ERROR" - - attr:qualityTrace.span.status_description contains "test with same ID already exists" + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.span.status_code = "STATUS_CODE_ERROR" + - attr:qualitytrace.span.status_description contains "test with same ID already exists" diff --git a/testing/server-tracetesting/features/http_test/04_delete_http_test_with_existing_id.yml b/testing/server-tracetesting/features/http_test/04_delete_http_test_with_existing_id.yml index 61131c4..044c497 100644 --- a/testing/server-tracetesting/features/http_test/04_delete_http_test_with_existing_id.yml +++ b/testing/server-tracetesting/features/http_test/04_delete_http_test_with_existing_id.yml @@ -14,12 +14,12 @@ spec: specs: - selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.response.status = 204 - - selector: span[name="DELETE /api/tests/{id}" qualityTrace.span.type="http"] + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.response.status = 204 + - selector: span[name="DELETE /api/tests/{id}" qualitytrace.span.type="http"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - selector: span[name = "exec DELETE"] assertions: # should find the deletion - - attr:qualityTrace.selected_spans.count = 4 + - attr:qualitytrace.selected_spans.count = 4 diff --git a/testing/server-tracetesting/features/http_test/05_create_http_test.yml b/testing/server-tracetesting/features/http_test/05_create_http_test.yml index 0c6a3cd..781b512 100644 --- a/testing/server-tracetesting/features/http_test/05_create_http_test.yml +++ b/testing/server-tracetesting/features/http_test/05_create_http_test.yml @@ -32,14 +32,14 @@ spec: "specs": [ { "selector": "span[name = \"findMany postgres.pokemon\"]", - "assertions": ["attr:qualityTrace.selected_spans.count > 0"] + "assertions": ["attr:qualitytrace.selected_spans.count > 0"] } ], "outputs": [ { "name": "TRIGGER_COUNT", "selector": "span[name = \"Tracetest trigger\"]", - "value": "attr:qualityTrace.selected_spans.count" + "value": "attr:qualitytrace.selected_spans.count" } ] } @@ -47,19 +47,19 @@ spec: specs: - selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.response.status = 201 - - attr:qualityTrace.response.body | json_path '$.spec.id' = var:HTTP_TEST_ID - - selector: span[name="POST /api/tests" qualityTrace.span.type="http"] + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.response.status = 201 + - attr:qualitytrace.response.body | json_path '$.spec.id' = var:HTTP_TEST_ID + - selector: span[name="POST /api/tests" qualitytrace.span.type="http"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - selector: span[name = "exec INSERT"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - selector: span[name = "exec INSERT"]:first assertions: - attr:sql.query contains "INSERT INTO tests" outputs: - name: HTTP_TEST_ID selector: span[name = "Tracetest trigger"] - value: attr:qualityTrace.response.body | json_path '$.spec.id' + value: attr:qualitytrace.response.body | json_path '$.spec.id' diff --git a/testing/server-tracetesting/features/http_test/06_list_http_test.yml b/testing/server-tracetesting/features/http_test/06_list_http_test.yml index 4def8ea..2afb10c 100644 --- a/testing/server-tracetesting/features/http_test/06_list_http_test.yml +++ b/testing/server-tracetesting/features/http_test/06_list_http_test.yml @@ -14,12 +14,12 @@ spec: specs: - selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.response.status = 200 - - attr:qualityTrace.response.body | json_path '$.items[*].spec.id' contains var:HTTP_TEST_ID # check if the test is listed - - selector: span[name="GET /api/tests" qualityTrace.span.type="http"] + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.response.status = 200 + - attr:qualitytrace.response.body | json_path '$.items[*].spec.id' contains var:HTTP_TEST_ID # check if the test is listed + - selector: span[name="GET /api/tests" qualitytrace.span.type="http"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - selector: span[name = "query SELECT"] assertions: - - attr:qualityTrace.selected_spans.count = 2 + - attr:qualitytrace.selected_spans.count = 2 diff --git a/testing/server-tracetesting/features/http_test/07_run_http_test.yml b/testing/server-tracetesting/features/http_test/07_run_http_test.yml index 7dcb38d..00e393d 100644 --- a/testing/server-tracetesting/features/http_test/07_run_http_test.yml +++ b/testing/server-tracetesting/features/http_test/07_run_http_test.yml @@ -15,32 +15,32 @@ spec: specs: - selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.response.status = 200 + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.response.status = 200 # Ensure startTime and endTime are present in span - - attr:qualityTrace.span.start_time > 0 - - attr:qualityTrace.span.end_time > 0 - - selector: span[name = "POST /api/tests/{testId}/run" qualityTrace.span.type = "http"] + - attr:qualitytrace.span.start_time > 0 + - attr:qualitytrace.span.end_time > 0 + - selector: span[name = "POST /api/tests/{testId}/run" qualitytrace.span.type = "http"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - selector: span[name = "Trigger test"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.run.trigger.test_id = "${var:HTTP_TEST_ID}" - - attr:qualityTrace.run.trigger.type = "http" - - attr:qualityTrace.run.trigger.http.response_code = 200 + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.run.trigger.test_id = "${var:HTTP_TEST_ID}" + - attr:qualitytrace.run.trigger.type = "http" + - attr:qualitytrace.run.trigger.http.response_code = 200 - selector: span[name = "Fetching trace"] assertions: - - attr:qualityTrace.selected_spans.count > 0 - - attr:qualityTrace.run.trace_poller.test_id = "${var:HTTP_TEST_ID}" + - attr:qualitytrace.selected_spans.count > 0 + - attr:qualitytrace.run.trace_poller.test_id = "${var:HTTP_TEST_ID}" - selector: span[name = "Evaluating trace"]:last assertions: - - attr:qualityTrace.run.trace_poller.succesful = "true" + - attr:qualitytrace.run.trace_poller.succesful = "true" - selector: span[name = "Execute assertions"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.run.assertion_runner.all_assertions_passed = "true" + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.run.assertion_runner.all_assertions_passed = "true" outputs: - name: HTTP_TEST_RUN_ID selector: span[name = "Tracetest trigger"] - value: attr:qualityTrace.response.body | json_path '$.id' + value: attr:qualitytrace.response.body | json_path '$.id' diff --git a/testing/server-tracetesting/features/http_test/08_rerun_http_test.yml b/testing/server-tracetesting/features/http_test/08_rerun_http_test.yml index f45d392..93e18c1 100644 --- a/testing/server-tracetesting/features/http_test/08_rerun_http_test.yml +++ b/testing/server-tracetesting/features/http_test/08_rerun_http_test.yml @@ -14,17 +14,17 @@ spec: specs: - selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.response.status = 200 - - selector: span[name="POST /api/tests/{testId}/run/{runId}/rerun" qualityTrace.span.type="http"] + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.response.status = 200 + - selector: span[name="POST /api/tests/{testId}/run/{runId}/rerun" qualitytrace.span.type="http"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - selector: span[name = "query INSERT"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - selector: span[name = "exec UPDATE"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - selector: span[name = "Execute assertions"] assertions: - - attr:qualityTrace.run.assertion_runner.all_assertions_passed = "true" + - attr:qualitytrace.run.assertion_runner.all_assertions_passed = "true" diff --git a/testing/server-tracetesting/features/http_test/09_delete_http_test_run.yml b/testing/server-tracetesting/features/http_test/09_delete_http_test_run.yml index c52a9fd..88536a8 100644 --- a/testing/server-tracetesting/features/http_test/09_delete_http_test_run.yml +++ b/testing/server-tracetesting/features/http_test/09_delete_http_test_run.yml @@ -14,11 +14,11 @@ spec: specs: - selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.response.status = 204 - - selector: span[name="DELETE /api/tests/{testId}/run/{runId}" qualityTrace.span.type="http"] + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.response.status = 204 + - selector: span[name="DELETE /api/tests/{testId}/run/{runId}" qualitytrace.span.type="http"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - selector: span[name = "exec DELETE"] assertions: - - attr:qualityTrace.selected_spans.count = 2 + - attr:qualitytrace.selected_spans.count = 2 diff --git a/testing/server-tracetesting/features/http_test/10_delete_http_test.yml b/testing/server-tracetesting/features/http_test/10_delete_http_test.yml index c5a01d6..ded3c69 100644 --- a/testing/server-tracetesting/features/http_test/10_delete_http_test.yml +++ b/testing/server-tracetesting/features/http_test/10_delete_http_test.yml @@ -14,12 +14,12 @@ spec: specs: - selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.response.status = 204 - - selector: span[name="DELETE /api/tests/{id}" qualityTrace.span.type="http"] + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.response.status = 204 + - selector: span[name="DELETE /api/tests/{id}" qualitytrace.span.type="http"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - selector: span[name = "exec DELETE"] assertions: # must delete test and runs. That's why we need 2 deletes - - attr:qualityTrace.selected_spans.count = 4 + - attr:qualitytrace.selected_spans.count = 4 diff --git a/testing/server-tracetesting/features/kafka_test/01_create_kafka_test.yml b/testing/server-tracetesting/features/kafka_test/01_create_kafka_test.yml index afecdc2..d1294bd 100644 --- a/testing/server-tracetesting/features/kafka_test/01_create_kafka_test.yml +++ b/testing/server-tracetesting/features/kafka_test/01_create_kafka_test.yml @@ -28,12 +28,12 @@ spec: }, "specs": [ { - "selector":"span[qualityTrace.span.type=\"messaging\" name=\"pokemon process\" messaging.system=\"kafka\" messaging.destination=\"pokemon\" messaging.destination_kind=\"topic\" messaging.operation=\"process\"]", + "selector":"span[qualitytrace.span.type=\"messaging\" name=\"pokemon process\" messaging.system=\"kafka\" messaging.destination=\"pokemon\" messaging.destination_kind=\"topic\" messaging.operation=\"process\"]", "assertions": ["attr:messaging.system = \"kafka\""], "name": "A message was received from Kafka stream" }, { - "selector":"span[qualityTrace.span.type=\"general\" name=\"import pokemon\"]", + "selector":"span[qualitytrace.span.type=\"general\" name=\"import pokemon\"]", "assertions": ["attr:name = \"import pokemon\""], "name": "Import Pokemon use case was triggered" } @@ -44,16 +44,16 @@ spec: - name: Tracetest API returned a valid HTTP code for test creation selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.response.status = 201 + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.response.status = 201 - name: Tracetest API endpoint 'POST /api/tests' was called once - selector: span[name="POST /api/tests" qualityTrace.span.type="http"] + selector: span[name="POST /api/tests" qualitytrace.span.type="http"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - name: Just one test was added into the database selector: span[name = "exec INSERT"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - name: The test was added on the correct database table selector: span[name = "exec INSERT"]:first assertions: @@ -61,4 +61,4 @@ spec: outputs: - name: KAFKA_TEST_ID selector: span[name = "Tracetest trigger"] - value: attr:qualityTrace.response.body | json_path '$.spec.id' + value: attr:qualitytrace.response.body | json_path '$.spec.id' diff --git a/testing/server-tracetesting/features/kafka_test/02_list_kafka_test.yml b/testing/server-tracetesting/features/kafka_test/02_list_kafka_test.yml index 8df902f..35c62d7 100644 --- a/testing/server-tracetesting/features/kafka_test/02_list_kafka_test.yml +++ b/testing/server-tracetesting/features/kafka_test/02_list_kafka_test.yml @@ -15,14 +15,14 @@ spec: - name: Tracetest API listed the test last test created selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.response.status = 200 - - attr:qualityTrace.response.body | json_path '$.items[*].spec.id' contains var:KAFKA_TEST_ID # check if the test is listed + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.response.status = 200 + - attr:qualitytrace.response.body | json_path '$.items[*].spec.id' contains var:KAFKA_TEST_ID # check if the test is listed - name: Tracetest API endpoint 'GET /api/tests' was called once - selector: span[name="GET /api/tests" qualityTrace.span.type="http"] + selector: span[name="GET /api/tests" qualitytrace.span.type="http"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - name: Two queries were executed on the database, one for counting and another for listing selector: span[name = "query SELECT"] assertions: - - attr:qualityTrace.selected_spans.count = 2 + - attr:qualitytrace.selected_spans.count = 2 diff --git a/testing/server-tracetesting/features/kafka_test/03_run_kafka_test.yml b/testing/server-tracetesting/features/kafka_test/03_run_kafka_test.yml index 25b2622..1f4c3ec 100644 --- a/testing/server-tracetesting/features/kafka_test/03_run_kafka_test.yml +++ b/testing/server-tracetesting/features/kafka_test/03_run_kafka_test.yml @@ -16,29 +16,29 @@ spec: - name: Tracetest API started to run the test correctly selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.response.status = 200 + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.response.status = 200 - name: Tracetest API endpoint 'POST /api/tests/{testId}/run' was called once - selector: span[name = "POST /api/tests/{testId}/run" qualityTrace.span.type = "http"] + selector: span[name = "POST /api/tests/{testId}/run" qualitytrace.span.type = "http"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - name: The test trigger was executed correctly selector: span[name = "Trigger test"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.run.trigger.test_id = "${var:KAFKA_TEST_ID}" - - attr:qualityTrace.run.trigger.type = "kafka" + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.run.trigger.test_id = "${var:KAFKA_TEST_ID}" + - attr:qualitytrace.run.trigger.type = "kafka" - name: The trace poller was started selector: span[name = "Fetching trace"] assertions: - - attr:qualityTrace.selected_spans.count > 0 - - attr:qualityTrace.run.trace_poller.test_id = "${var:KAFKA_TEST_ID}" + - attr:qualitytrace.selected_spans.count > 0 + - attr:qualitytrace.run.trace_poller.test_id = "${var:KAFKA_TEST_ID}" - name: The trace poller finished with success selector: span[name = "Evaluating trace"]:last assertions: - - attr:qualityTrace.run.trace_poller.succesful = "true" + - attr:qualitytrace.run.trace_poller.succesful = "true" - name: All assertions were validated and passed selector: span[name = "Execute assertions"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.run.assertion_runner.all_assertions_passed = "true" + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.run.assertion_runner.all_assertions_passed = "true" diff --git a/testing/server-tracetesting/features/kafka_test/04_delete_kafka_test.yml b/testing/server-tracetesting/features/kafka_test/04_delete_kafka_test.yml index 23b72b9..46ad230 100644 --- a/testing/server-tracetesting/features/kafka_test/04_delete_kafka_test.yml +++ b/testing/server-tracetesting/features/kafka_test/04_delete_kafka_test.yml @@ -16,14 +16,14 @@ spec: - name: Tracetest API deleted the test last test created selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.response.status = 204 + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.response.status = 204 - name: Tracetest API endpoint 'DELETE /api/tests/{id}' was called once - selector: span[name="DELETE /api/tests/{id}" qualityTrace.span.type="http"] + selector: span[name="DELETE /api/tests/{id}" qualitytrace.span.type="http"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - name: All test entities were deleted selector: span[name = "exec DELETE"] assertions: # must delete test and runs. That's why we need 2 deletes - - attr:qualityTrace.selected_spans.count = 4 + - attr:qualitytrace.selected_spans.count = 4 diff --git a/testing/server-tracetesting/features/testsuite/create_testsuite.yml b/testing/server-tracetesting/features/testsuite/create_testsuite.yml index 9651f15..11208eb 100644 --- a/testing/server-tracetesting/features/testsuite/create_testsuite.yml +++ b/testing/server-tracetesting/features/testsuite/create_testsuite.yml @@ -24,17 +24,17 @@ spec: specs: - selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.response.status = 201 - - attr:qualityTrace.response.body | json_path '$.spec.id' = var:TRANSACTION_ID - - selector: span[name="POST /api/testsuites" qualityTrace.span.type="http"] + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.response.status = 201 + - attr:qualitytrace.response.body | json_path '$.spec.id' = var:TRANSACTION_ID + - selector: span[name="POST /api/testsuites" qualitytrace.span.type="http"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - selector: span[name = "exec INSERT"] assertions: - - attr:qualityTrace.selected_spans.count = 2 + - attr:qualitytrace.selected_spans.count = 2 outputs: - name: TRANSACTION_ID selector: span[name = "Tracetest trigger"] - value: attr:qualityTrace.response.body | json_path '$.spec.id' + value: attr:qualitytrace.response.body | json_path '$.spec.id' diff --git a/testing/server-tracetesting/features/testsuite/create_testsuite_step.yml b/testing/server-tracetesting/features/testsuite/create_testsuite_step.yml index 5701042..10ae840 100644 --- a/testing/server-tracetesting/features/testsuite/create_testsuite_step.yml +++ b/testing/server-tracetesting/features/testsuite/create_testsuite_step.yml @@ -32,14 +32,14 @@ spec: "specs": [ { "selector": "span[name = \"pg.query:SELECT pokeshop\"]", - "assertions": ["attr:qualityTrace.selected_spans.count > 0"] + "assertions": ["attr:qualitytrace.selected_spans.count > 0"] } ], "outputs": [ { "name": "TRIGGER_COUNT", "selector": "span[name = \"Tracetest trigger\"]", - "value": "attr:qualityTrace.selected_spans.count" + "value": "attr:qualitytrace.selected_spans.count" } ] } @@ -47,16 +47,16 @@ spec: specs: - selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.response.status = 201 + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.response.status = 201 # ensure we can reference outputs declared in the same test - - attr:qualityTrace.response.body | json_path '$.spec.id' = var:TRANSACTION_STEP_ID - - selector: span[name="POST /api/tests" qualityTrace.span.type="http"] + - attr:qualitytrace.response.body | json_path '$.spec.id' = var:TRANSACTION_STEP_ID + - selector: span[name="POST /api/tests" qualitytrace.span.type="http"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - selector: span[name = "exec INSERT"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - selector: span[name = "exec INSERT"]:first assertions: - attr:sql.query contains "INSERT INTO tests" @@ -64,4 +64,4 @@ spec: outputs: - name: TRANSACTION_STEP_ID selector: span[name = "Tracetest trigger"] - value: attr:qualityTrace.response.body | json_path '$.spec.id' + value: attr:qualitytrace.response.body | json_path '$.spec.id' diff --git a/testing/server-tracetesting/features/testsuite/delete_testsuite.yml b/testing/server-tracetesting/features/testsuite/delete_testsuite.yml index 919baa5..9ba8a46 100644 --- a/testing/server-tracetesting/features/testsuite/delete_testsuite.yml +++ b/testing/server-tracetesting/features/testsuite/delete_testsuite.yml @@ -15,11 +15,11 @@ spec: specs: - selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.response.status = 204 - - selector: span[name="DELETE /api/testsuites/{id}" qualityTrace.span.type="http"] + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.response.status = 204 + - selector: span[name="DELETE /api/testsuites/{id}" qualitytrace.span.type="http"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - selector: span[name = "exec DELETE"] assertions: - - attr:qualityTrace.selected_spans.count = 4 + - attr:qualitytrace.selected_spans.count = 4 diff --git a/testing/server-tracetesting/features/testsuite/delete_testsuite_step.yml b/testing/server-tracetesting/features/testsuite/delete_testsuite_step.yml index 2fcd5e6..33d0b79 100644 --- a/testing/server-tracetesting/features/testsuite/delete_testsuite_step.yml +++ b/testing/server-tracetesting/features/testsuite/delete_testsuite_step.yml @@ -15,11 +15,11 @@ spec: specs: - selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.response.status = 204 - - selector: span[name="DELETE /api/tests/{id}" qualityTrace.span.type="http"] + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.response.status = 204 + - selector: span[name="DELETE /api/tests/{id}" qualitytrace.span.type="http"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - selector: span[name = "exec DELETE"] assertions: - - attr:qualityTrace.selected_spans.count = 4 + - attr:qualitytrace.selected_spans.count = 4 diff --git a/testing/server-tracetesting/features/testsuite/list_testsuite.yml b/testing/server-tracetesting/features/testsuite/list_testsuite.yml index 1d8111c..6c0774e 100644 --- a/testing/server-tracetesting/features/testsuite/list_testsuite.yml +++ b/testing/server-tracetesting/features/testsuite/list_testsuite.yml @@ -15,9 +15,9 @@ spec: specs: - selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.response.status = 200 - - attr:qualityTrace.response.body | json_path '$.items[*].spec.id' contains var:TRANSACTION_ID # check if the testsuite is listed - - selector: span[name="GET /api/testsuites" qualityTrace.span.type="http"] + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.response.status = 200 + - attr:qualitytrace.response.body | json_path '$.items[*].spec.id' contains var:TRANSACTION_ID # check if the testsuite is listed + - selector: span[name="GET /api/testsuites" qualitytrace.span.type="http"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 diff --git a/testing/server-tracetesting/features/testsuite/list_testsuite_as_resource.yml b/testing/server-tracetesting/features/testsuite/list_testsuite_as_resource.yml index c8ce8ae..b4fe80d 100644 --- a/testing/server-tracetesting/features/testsuite/list_testsuite_as_resource.yml +++ b/testing/server-tracetesting/features/testsuite/list_testsuite_as_resource.yml @@ -15,9 +15,9 @@ spec: specs: - selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.response.status = 200 - - attr:qualityTrace.response.body | json_path '$[*].item.id' contains var:TRANSACTION_ID # check if the testsuite is listed - - selector: span[name="GET /api/resources" qualityTrace.span.type="http"] + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.response.status = 200 + - attr:qualitytrace.response.body | json_path '$[*].item.id' contains var:TRANSACTION_ID # check if the testsuite is listed + - selector: span[name="GET /api/resources" qualitytrace.span.type="http"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 diff --git a/testing/server-tracetesting/features/testsuite/update_testsuite.yml b/testing/server-tracetesting/features/testsuite/update_testsuite.yml index c9837ec..2bfa2c5 100644 --- a/testing/server-tracetesting/features/testsuite/update_testsuite.yml +++ b/testing/server-tracetesting/features/testsuite/update_testsuite.yml @@ -24,15 +24,15 @@ spec: specs: - selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.response.status = 200 - - attr:qualityTrace.response.body | json_path '$.spec.name' = "test-testsuite-updated" - - selector: span[name="PUT /api/testsuites/{id}" qualityTrace.span.type="http"] + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.response.status = 200 + - attr:qualitytrace.response.body | json_path '$.spec.name' = "test-testsuite-updated" + - selector: span[name="PUT /api/testsuites/{id}" qualitytrace.span.type="http"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - selector: span[name = "exec INSERT"] assertions: - - attr:qualityTrace.selected_spans.count = 2 + - attr:qualitytrace.selected_spans.count = 2 - selector: span[name = "exec INSERT"]:first assertions: - attr:sql.query contains "INSERT INTO test_suites" diff --git a/testing/server-tracetesting/features/variableset/01_create_variableset.yml b/testing/server-tracetesting/features/variableset/01_create_variableset.yml index 37397bc..12df01f 100644 --- a/testing/server-tracetesting/features/variableset/01_create_variableset.yml +++ b/testing/server-tracetesting/features/variableset/01_create_variableset.yml @@ -32,20 +32,20 @@ spec: specs: - selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.response.status = 201 + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.response.status = 201 # ensure we can reference outputs declared in the same test - - attr:qualityTrace.response.body | json_path '$.spec.id' = var:VARIABLE_SET_ID - - selector: span[name="POST /api/variablesets" qualityTrace.span.type="http"] + - attr:qualitytrace.response.body | json_path '$.spec.id' = var:VARIABLE_SET_ID + - selector: span[name="POST /api/variablesets" qualitytrace.span.type="http"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - selector: span[name = "exec INSERT"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - selector: span[name = "exec INSERT"]:first assertions: - attr:sql.query contains "INSERT INTO variable_sets" outputs: - name: VARIABLE_SET_ID selector: span[name = "Tracetest trigger"] - value: attr:qualityTrace.response.body | json_path '$.spec.id' + value: attr:qualitytrace.response.body | json_path '$.spec.id' diff --git a/testing/server-tracetesting/features/variableset/02_list_variableset.yml b/testing/server-tracetesting/features/variableset/02_list_variableset.yml index d395f93..d2270d4 100644 --- a/testing/server-tracetesting/features/variableset/02_list_variableset.yml +++ b/testing/server-tracetesting/features/variableset/02_list_variableset.yml @@ -14,12 +14,12 @@ spec: specs: - selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.response.status = 200 - - attr:qualityTrace.response.body | json_path '$.items[*].spec.id' contains var:VARIABLE_SET_ID # check if the variable set is listed - - selector: span[name="GET /api/variablesets" qualityTrace.span.type="http"] + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.response.status = 200 + - attr:qualitytrace.response.body | json_path '$.items[*].spec.id' contains var:VARIABLE_SET_ID # check if the variable set is listed + - selector: span[name="GET /api/variablesets" qualitytrace.span.type="http"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - selector: span[name = "query SELECT"] assertions: - - attr:qualityTrace.selected_spans.count = 2 + - attr:qualitytrace.selected_spans.count = 2 diff --git a/testing/server-tracetesting/features/variableset/03_delete_variableset.yml b/testing/server-tracetesting/features/variableset/03_delete_variableset.yml index be5ab3c..2740ef7 100644 --- a/testing/server-tracetesting/features/variableset/03_delete_variableset.yml +++ b/testing/server-tracetesting/features/variableset/03_delete_variableset.yml @@ -15,11 +15,11 @@ spec: specs: - selector: span[name = "Tracetest trigger"] assertions: - - attr:qualityTrace.selected_spans.count = 1 - - attr:qualityTrace.response.status = 204 - - selector: span[qualityTrace.span.type="http" http.method = "DELETE"] + - attr:qualitytrace.selected_spans.count = 1 + - attr:qualitytrace.response.status = 204 + - selector: span[qualitytrace.span.type="http" http.method = "DELETE"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 - selector: span[name = "exec DELETE"] assertions: - - attr:qualityTrace.selected_spans.count = 1 + - attr:qualitytrace.selected_spans.count = 1 diff --git a/testing/server-tracetesting/run.bash b/testing/server-tracetesting/run.bash index 86e95d3..bcb96a4 100644 --- a/testing/server-tracetesting/run.bash +++ b/testing/server-tracetesting/run.bash @@ -1,6 +1,6 @@ #/bin/bash -export TRACETEST_CLI=${TRACETEST_CLI:-"qualityTrace"} +export TRACETEST_CLI=${TRACETEST_CLI:-"qualitytrace"} cmdExitCode=$("$TRACETEST_CLI" &> /dev/null; echo $?) if [ $cmdExitCode -ne 0 ]; then echo "\$TRACETEST_CLI not set to executable. set to $TRACETEST_CLI"; @@ -32,11 +32,11 @@ echo "DEMO_APP_URL: $DEMO_APP_URL" echo "DEMO_APP_GRPC_URL: $DEMO_APP_GRPC_URL" echo "DEMO_APP_KAFKA_BROKER: $DEMO_APP_KAFKA_BROKER" -cat << EOF > qualityTraceing-vars.yaml +cat << EOF > qualitytraceing-vars.yaml type: VariableSet spec: - id: qualityTraceing-vars - name: qualityTraceing-vars + id: qualitytraceing-vars + name: qualitytraceing-vars values: - key: TARGET_URL value: $TARGET_URL @@ -51,15 +51,15 @@ spec: EOF echo "variables set created:" -cat qualityTraceing-vars.yaml +cat qualitytraceing-vars.yaml -echo "Setting up qualityTrace CLI configuration..." +echo "Setting up qualitytrace CLI configuration..." cat << EOF > config.yml scheme: http endpoint: $TRACETEST_ENDPOINT analyticsEnabled: false EOF -echo "qualityTrace CLI set up." +echo "qualitytrace CLI set up." echo "" echo "Setting up test helpers..." @@ -71,7 +71,7 @@ run_test_suite_for_feature() { definition='./features/'$feature'/_test_suite.yml' - testCMD="$TRACETEST_CLI --config ./config.yml run testsuite --file $definition --vars ./qualityTraceing-vars.yaml" + testCMD="$TRACETEST_CLI --config ./config.yml run testsuite --file $definition --vars ./qualitytraceing-vars.yaml" echo $testCMD $testCMD return $? @@ -94,7 +94,7 @@ run_test_suite_for_feature 'testsuite' || (EXIT_STATUS=$? && echo "TestSuite Tes echo "" echo "Tests done! Exit code: $EXIT_STATUS" -rm qualityTraceing-vars.yaml +rm qualitytraceing-vars.yaml exit $EXIT_STATUS diff --git a/testing/synthetic-monitoring/otel-demo/01-see-ads.yaml b/testing/synthetic-monitoring/otel-demo/01-see-ads.yaml index d333102..411ab9a 100644 --- a/testing/synthetic-monitoring/otel-demo/01-see-ads.yaml +++ b/testing/synthetic-monitoring/otel-demo/01-see-ads.yaml @@ -1,4 +1,4 @@ -# test suite based on https://github.com/open-telemetry/opentelemetry-demo/tree/main/test/qualityTraceing/frontend-service +# test suite based on https://github.com/open-telemetry/opentelemetry-demo/tree/main/test/qualitytraceing/frontend-service type: Test spec: @@ -23,12 +23,12 @@ spec: } specs: - name: It called the frontend with success and got a valid redirectUrl for each ads - selector: span[qualityTrace.span.type="general" name="Tracetest trigger"] + selector: span[qualitytrace.span.type="general" name="Tracetest trigger"] assertions: - - attr:qualityTrace.response.status = 200 - - attr:qualityTrace.response.body | json_path '$[0].redirectUrl' contains "/product/" - - attr:qualityTrace.response.body | json_path '$[1].redirectUrl' contains "/product/" + - attr:qualitytrace.response.status = 200 + - attr:qualitytrace.response.body | json_path '$[0].redirectUrl' contains "/product/" + - attr:qualitytrace.response.body | json_path '$[1].redirectUrl' contains "/product/" - name: It returns two ads - selector: span[qualityTrace.span.type="rpc" name="oteldemo.AdService/GetAds" rpc.system="grpc" rpc.method="GetAds" rpc.service="oteldemo.AdService"] + selector: span[qualitytrace.span.type="rpc" name="oteldemo.AdService/GetAds" rpc.system="grpc" rpc.method="GetAds" rpc.service="oteldemo.AdService"] assertions: - attr:app.ads.count = 2 diff --git a/testing/synthetic-monitoring/otel-demo/02-get-product-recommendation.yaml b/testing/synthetic-monitoring/otel-demo/02-get-product-recommendation.yaml index 8e36b68..1e69ef2 100644 --- a/testing/synthetic-monitoring/otel-demo/02-get-product-recommendation.yaml +++ b/testing/synthetic-monitoring/otel-demo/02-get-product-recommendation.yaml @@ -1,4 +1,4 @@ -# test suite based on https://github.com/open-telemetry/opentelemetry-demo/tree/main/test/qualityTraceing/frontend-service +# test suite based on https://github.com/open-telemetry/opentelemetry-demo/tree/main/test/qualitytraceing/frontend-service type: Test spec: @@ -25,11 +25,11 @@ spec: } specs: - name: It called the frontend with success - selector: span[qualityTrace.span.type="general" name="Tracetest trigger"] + selector: span[qualitytrace.span.type="general" name="Tracetest trigger"] assertions: - - attr:qualityTrace.response.status = 200 + - attr:qualitytrace.response.status = 200 - name: It called ListRecommendations correctly and got 5 products - selector: span[qualityTrace.span.type="rpc" name="/oteldemo.RecommendationService/ListRecommendations" rpc.system="grpc" rpc.method="ListRecommendations" rpc.service="oteldemo.RecommendationService"] + selector: span[qualitytrace.span.type="rpc" name="/oteldemo.RecommendationService/ListRecommendations" rpc.system="grpc" rpc.method="ListRecommendations" rpc.service="oteldemo.RecommendationService"] assertions: - attr:rpc.grpc.status_code = 0 - attr:app.products_recommended.count = 5 diff --git a/testing/synthetic-monitoring/otel-demo/03-browse-product.yaml b/testing/synthetic-monitoring/otel-demo/03-browse-product.yaml index 6c0a2a4..55f877c 100644 --- a/testing/synthetic-monitoring/otel-demo/03-browse-product.yaml +++ b/testing/synthetic-monitoring/otel-demo/03-browse-product.yaml @@ -1,4 +1,4 @@ -# test suite based on https://github.com/open-telemetry/opentelemetry-demo/tree/main/test/qualityTraceing/frontend-service +# test suite based on https://github.com/open-telemetry/opentelemetry-demo/tree/main/test/qualitytraceing/frontend-service type: Test spec: @@ -15,16 +15,16 @@ spec: value: application/json specs: - name: It called the frontend with success and got a product with valid attributes - selector: span[qualityTrace.span.type="general" name="Tracetest trigger"] + selector: span[qualitytrace.span.type="general" name="Tracetest trigger"] assertions: - - attr:qualityTrace.response.status = 200 - - attr:qualityTrace.response.body | json_path '$.id' = "0PUK6V6EV0" - - attr:qualityTrace.response.body | json_path '$.description' != "" - - attr:qualityTrace.response.body | json_path '$.picture' != "" - - attr:qualityTrace.response.body | json_path '$.priceUsd' != "{}" - - attr:qualityTrace.response.body | json_path '$.categories' != "[]" + - attr:qualitytrace.response.status = 200 + - attr:qualitytrace.response.body | json_path '$.id' = "0PUK6V6EV0" + - attr:qualitytrace.response.body | json_path '$.description' != "" + - attr:qualitytrace.response.body | json_path '$.picture' != "" + - attr:qualitytrace.response.body | json_path '$.priceUsd' != "{}" + - attr:qualitytrace.response.body | json_path '$.categories' != "[]" - name: It queried the product catalog correctly for a specific product - selector: span[qualityTrace.span.type="rpc" name="oteldemo.ProductCatalogService/GetProduct" rpc.system="grpc" rpc.method="GetProduct" rpc.service="oteldemo.ProductCatalogService"] + selector: span[qualitytrace.span.type="rpc" name="oteldemo.ProductCatalogService/GetProduct" rpc.system="grpc" rpc.method="GetProduct" rpc.service="oteldemo.ProductCatalogService"] assertions: - attr:rpc.grpc.status_code = 0 - attr:app.product.id = "0PUK6V6EV0" diff --git a/testing/synthetic-monitoring/otel-demo/04-add-product-to-cart.yaml b/testing/synthetic-monitoring/otel-demo/04-add-product-to-cart.yaml index 35b1dfd..1bd7ec2 100644 --- a/testing/synthetic-monitoring/otel-demo/04-add-product-to-cart.yaml +++ b/testing/synthetic-monitoring/otel-demo/04-add-product-to-cart.yaml @@ -1,4 +1,4 @@ -# test suite based on https://github.com/open-telemetry/opentelemetry-demo/tree/main/test/qualityTraceing/frontend-service +# test suite based on https://github.com/open-telemetry/opentelemetry-demo/tree/main/test/qualitytraceing/frontend-service type: Test spec: @@ -23,15 +23,15 @@ spec: } specs: - name: It called the frontend with success - selector: span[qualityTrace.span.type="general" name="Tracetest trigger"] + selector: span[qualitytrace.span.type="general" name="Tracetest trigger"] assertions: - - attr:qualityTrace.response.status = 200 + - attr:qualitytrace.response.status = 200 - name: It added an item correctly into the shopping cart selector: span[name="oteldemo.CartService/AddItem"] assertions: - attr:rpc.grpc.status_code = 0 - attr:app.product.id = "0PUK6V6EV0" - name: It set the cart item correctly on the database - selector: span[qualityTrace.span.type="database" name="HMSET" db.system="redis" db.redis.database_index="0"] + selector: span[qualitytrace.span.type="database" name="HMSET" db.system="redis" db.redis.database_index="0"] assertions: - attr:db.statement = "HMSET 2491f868-88f1-4345-8836-d5d8511a9f83" diff --git a/testing/synthetic-monitoring/otel-demo/05-view-cart.yaml b/testing/synthetic-monitoring/otel-demo/05-view-cart.yaml index 2c3bc08..99d28d6 100644 --- a/testing/synthetic-monitoring/otel-demo/05-view-cart.yaml +++ b/testing/synthetic-monitoring/otel-demo/05-view-cart.yaml @@ -1,4 +1,4 @@ -# test suite based on https://github.com/open-telemetry/opentelemetry-demo/tree/main/test/qualityTraceing/frontend-service +# test suite based on https://github.com/open-telemetry/opentelemetry-demo/tree/main/test/qualitytraceing/frontend-service type: Test spec: @@ -15,9 +15,9 @@ spec: value: application/json specs: - name: It called the frontend with success - selector: span[qualityTrace.span.type="general" name="Tracetest trigger"] + selector: span[qualitytrace.span.type="general" name="Tracetest trigger"] assertions: - - attr:qualityTrace.response.status = 200 + - attr:qualitytrace.response.status = 200 - name: It retrieved the cart items correctly selector: span[name="oteldemo.CartService/GetCart"] assertions: diff --git a/testing/synthetic-monitoring/otel-demo/06-checking-out-cart.yaml b/testing/synthetic-monitoring/otel-demo/06-checking-out-cart.yaml index 254a4ca..a11faf8 100644 --- a/testing/synthetic-monitoring/otel-demo/06-checking-out-cart.yaml +++ b/testing/synthetic-monitoring/otel-demo/06-checking-out-cart.yaml @@ -1,4 +1,4 @@ -# test suite based on https://github.com/open-telemetry/opentelemetry-demo/tree/main/test/qualityTraceing/frontend-service +# test suite based on https://github.com/open-telemetry/opentelemetry-demo/tree/main/test/qualitytraceing/frontend-service type: Test spec: @@ -34,41 +34,41 @@ spec: } specs: - name: It called the frontend with success - selector: span[qualityTrace.span.type="general" name="Tracetest trigger"] + selector: span[qualitytrace.span.type="general" name="Tracetest trigger"] assertions: - - attr:qualityTrace.response.status = 200 + - attr:qualitytrace.response.status = 200 - name: "The order was placed" - selector: span[qualityTrace.span.type="rpc" name="oteldemo.CheckoutService/PlaceOrder" rpc.system="grpc" rpc.method="PlaceOrder" rpc.service="oteldemo.CheckoutService"] + selector: span[qualitytrace.span.type="rpc" name="oteldemo.CheckoutService/PlaceOrder" rpc.system="grpc" rpc.method="PlaceOrder" rpc.service="oteldemo.CheckoutService"] assertions: - attr:app.user.id = "2491f868-88f1-4345-8836-d5d8511a9f83" - attr:app.order.items.count = 1 - name: "The user was charged" - selector: span[qualityTrace.span.type="rpc" name="oteldemo.PaymentService/Charge" rpc.system="grpc" rpc.method="Charge" rpc.service="oteldemo.PaymentService"] + selector: span[qualitytrace.span.type="rpc" name="oteldemo.PaymentService/Charge" rpc.system="grpc" rpc.method="Charge" rpc.service="oteldemo.PaymentService"] assertions: - attr:rpc.grpc.status_code = 0 - - attr:qualityTrace.selected_spans.count >= 1 + - attr:qualitytrace.selected_spans.count >= 1 - name: "The product was shipped" - selector: span[qualityTrace.span.type="rpc" name="oteldemo.ShippingService/ShipOrder" rpc.system="grpc" rpc.method="ShipOrder" rpc.service="oteldemo.ShippingService"] + selector: span[qualitytrace.span.type="rpc" name="oteldemo.ShippingService/ShipOrder" rpc.system="grpc" rpc.method="ShipOrder" rpc.service="oteldemo.ShippingService"] assertions: - attr:rpc.grpc.status_code = 0 - - attr:qualityTrace.selected_spans.count >= 1 + - attr:qualitytrace.selected_spans.count >= 1 - name: "The cart was emptied" - selector: span[qualityTrace.span.type="rpc" name="oteldemo.CartService/EmptyCart" rpc.system="grpc" rpc.method="EmptyCart" rpc.service="oteldemo.CartService"] + selector: span[qualitytrace.span.type="rpc" name="oteldemo.CartService/EmptyCart" rpc.system="grpc" rpc.method="EmptyCart" rpc.service="oteldemo.CartService"] assertions: - attr:rpc.grpc.status_code = 0 - - attr:qualityTrace.selected_spans.count >= 1 + - attr:qualitytrace.selected_spans.count >= 1 - name: The order was sent to be processed asyncronously - selector: span[qualityTrace.span.type="messaging" name="orders publish" messaging.system="kafka" messaging.destination.name="orders" messaging.destination.kind="topic" messaging.operation="publish"] + selector: span[qualitytrace.span.type="messaging" name="orders publish" messaging.system="kafka" messaging.destination.name="orders" messaging.destination.kind="topic" messaging.operation="publish"] assertions: - attr:messaging.destination.name = "orders" # TODO: Accountability service is not working in our Demo env, we need to understand why # - name: The order was sent to accountability # # captures the span emitted by Kafka instrumentation for Go - # selector: span[qualityTrace.span.type="messaging" name="orders receive" messaging.system="kafka" messaging.destination.name="orders" messaging.destination.kind="topic" messaging.operation="receive"] + # selector: span[qualitytrace.span.type="messaging" name="orders receive" messaging.system="kafka" messaging.destination.name="orders" messaging.destination.kind="topic" messaging.operation="receive"] # assertions: # - attr:name = "orders receive" - name: The order was sent to fraud detection team # captures the span emitted by Kafka instrumentation for Kotlin - selector: span[qualityTrace.span.type="messaging" name="orders process" messaging.system="kafka" messaging.operation="process"] + selector: span[qualitytrace.span.type="messaging" name="orders process" messaging.system="kafka" messaging.operation="process"] assertions: - attr:name = "orders process" diff --git a/testing/synthetic-monitoring/otel-demo/_testsuite.yaml b/testing/synthetic-monitoring/otel-demo/_testsuite.yaml index 9519e53..cb6ce39 100644 --- a/testing/synthetic-monitoring/otel-demo/_testsuite.yaml +++ b/testing/synthetic-monitoring/otel-demo/_testsuite.yaml @@ -1,4 +1,4 @@ -# test suite based on https://github.com/open-telemetry/opentelemetry-demo/tree/main/test/qualityTraceing/frontend-service +# test suite based on https://github.com/open-telemetry/opentelemetry-demo/tree/main/test/qualitytraceing/frontend-service type: TestSuite spec: diff --git a/testing/synthetic-monitoring/otel-demo/_variableset.yaml b/testing/synthetic-monitoring/otel-demo/_variableset.yaml index 397068b..5298946 100644 --- a/testing/synthetic-monitoring/otel-demo/_variableset.yaml +++ b/testing/synthetic-monitoring/otel-demo/_variableset.yaml @@ -1,7 +1,7 @@ type: VariableSet spec: - id: qualityTraceing-vars - name: qualityTraceing-vars + id: qualitytraceing-vars + name: qualitytraceing-vars values: - key: FRONTEND_ADDR value: demo-otel-frontend:8080 diff --git a/testing/synthetic-monitoring/pokeshop-serverless/01-add-pokemon-with-api.yaml b/testing/synthetic-monitoring/pokeshop-serverless/01-add-pokemon-with-api.yaml index 2390dfc..1f9cc95 100644 --- a/testing/synthetic-monitoring/pokeshop-serverless/01-add-pokemon-with-api.yaml +++ b/testing/synthetic-monitoring/pokeshop-serverless/01-add-pokemon-with-api.yaml @@ -13,11 +13,11 @@ spec: - key: Content-Type value: application/json specs: - - selector: span[qualityTrace.span.type="http" name="POST /pokemon"] + - selector: span[qualitytrace.span.type="http" name="POST /pokemon"] name: The POST /pokemon was called correctly assertions: - - attr:qualityTrace.selected_spans.count = 1 - - selector: span[qualityTrace.span.type="database" name="create pokeshop.pokemon" db.operation="create" db.sql.table="pokemon"] + - attr:qualitytrace.selected_spans.count = 1 + - selector: span[qualitytrace.span.type="database" name="create pokeshop.pokemon" db.operation="create" db.sql.table="pokemon"] name: A Pokemon was inserted on database assertions: - attr:db.result | json_path '$.imageUrl' = "https://assets.pokemon.com/assets/cms2/img/pokedex/full/052.png" diff --git a/testing/synthetic-monitoring/pokeshop-serverless/02-import-pokemon-with-queue.yaml b/testing/synthetic-monitoring/pokeshop-serverless/02-import-pokemon-with-queue.yaml index cc491c7..955d367 100644 --- a/testing/synthetic-monitoring/pokeshop-serverless/02-import-pokemon-with-queue.yaml +++ b/testing/synthetic-monitoring/pokeshop-serverless/02-import-pokemon-with-queue.yaml @@ -13,19 +13,19 @@ spec: - key: Content-Type value: application/json specs: - - selector: span[qualityTrace.span.type="http" name="POST /pokemon/import"] + - selector: span[qualitytrace.span.type="http" name="POST /pokemon/import"] name: POST /pokemon/import was called successfuly assertions: - attr:http.request.body contains "6" - - selector: span[qualityTrace.span.type="messaging" name="queue.synchronizePokemon publish" messaging.system="sqs" messaging.destination="queue.synchronizePokemon" messaging.operation="publish"] + - selector: span[qualitytrace.span.type="messaging" name="queue.synchronizePokemon publish" messaging.system="sqs" messaging.destination="queue.synchronizePokemon" messaging.operation="publish"] name: A message was enqueued to the worker assertions: - attr:messaging.payload | json_path '$.id' = "6" - - selector: span[qualityTrace.span.type="messaging" name="queue.synchronizePokemon process" messaging.system="sqs" messaging.destination="queue.synchronizePokemon" messaging.operation="process"] + - selector: span[qualitytrace.span.type="messaging" name="queue.synchronizePokemon process" messaging.system="sqs" messaging.destination="queue.synchronizePokemon" messaging.operation="process"] name: A message was read by the worker assertions: - attr:messaging.payload | json_path '$.attributes.MessageGroupId' = "queue.synchronizePokemon" - - selector: span[qualityTrace.span.type="general" name="import pokemon"] + - selector: span[qualitytrace.span.type="general" name="import pokemon"] name: A "import pokemon" action was triggered assertions: - - attr:qualityTrace.selected_spans.count >= 1 + - attr:qualitytrace.selected_spans.count >= 1 diff --git a/testing/synthetic-monitoring/pokeshop-serverless/04-list-pokemons.yaml b/testing/synthetic-monitoring/pokeshop-serverless/04-list-pokemons.yaml index 6bd591e..3a54c0e 100644 --- a/testing/synthetic-monitoring/pokeshop-serverless/04-list-pokemons.yaml +++ b/testing/synthetic-monitoring/pokeshop-serverless/04-list-pokemons.yaml @@ -11,15 +11,15 @@ spec: - key: Content-Type value: application/json specs: - - selector: span[qualityTrace.span.type="http" name="GET /pokemon"] + - selector: span[qualitytrace.span.type="http" name="GET /pokemon"] name: GET /pokemon endpoint was called and returned valid data assertions: - - attr:qualityTrace.selected_spans.count = 1 - - selector: span[qualityTrace.span.type="database" name="count pokeshop.pokemon" db.system="postgres" db.name="pokeshop" db.user="ashketchum" db.operation="count" db.sql.table="pokemon"] + - attr:qualitytrace.selected_spans.count = 1 + - selector: span[qualitytrace.span.type="database" name="count pokeshop.pokemon" db.system="postgres" db.name="pokeshop" db.user="ashketchum" db.operation="count" db.sql.table="pokemon"] name: A count operation was triggered on database assertions: - attr:db.operation = "count" - - selector: span[qualityTrace.span.type="database" name="findMany pokeshop.pokemon" db.system="postgres" db.name="pokeshop" db.user="ashketchum" db.operation="findMany" db.sql.table="pokemon"] + - selector: span[qualitytrace.span.type="database" name="findMany pokeshop.pokemon" db.system="postgres" db.name="pokeshop" db.user="ashketchum" db.operation="findMany" db.sql.table="pokemon"] name: A select operation was triggered on database assertions: - attr:db.operation = "findMany" diff --git a/testing/synthetic-monitoring/pokeshop-serverless/_variableset.yaml b/testing/synthetic-monitoring/pokeshop-serverless/_variableset.yaml index b8823a5..171fd9f 100644 --- a/testing/synthetic-monitoring/pokeshop-serverless/_variableset.yaml +++ b/testing/synthetic-monitoring/pokeshop-serverless/_variableset.yaml @@ -1,7 +1,7 @@ type: VariableSet spec: - id: qualityTraceing-vars-serverless - name: qualityTraceing-vars-serverless + id: qualitytraceing-vars-serverless + name: qualitytraceing-vars-serverless values: - key: POKESHOP_API_URL value: https://75yj353nn7.execute-api.us-east-1.amazonaws.com diff --git a/testing/synthetic-monitoring/pokeshop/01-add-pokemon-with-api.yaml b/testing/synthetic-monitoring/pokeshop/01-add-pokemon-with-api.yaml index 9dadffc..1b59db7 100644 --- a/testing/synthetic-monitoring/pokeshop/01-add-pokemon-with-api.yaml +++ b/testing/synthetic-monitoring/pokeshop/01-add-pokemon-with-api.yaml @@ -19,15 +19,15 @@ spec: - key: Content-Type value: application/json specs: - - selector: span[qualityTrace.span.type="http" name="POST /pokemon" http.method="POST"] + - selector: span[qualitytrace.span.type="http" name="POST /pokemon" http.method="POST"] name: The POST /pokemon was called correctly assertions: - attr:http.status_code = 201 - - selector: span[qualityTrace.span.type="general" name="validate request"] + - selector: span[qualitytrace.span.type="general" name="validate request"] name: The request sent to API is valid assertions: - attr:validation.is_valid = "true" - - selector: span[qualityTrace.span.type="database" name="create pokeshop.pokemon" db.operation="create" db.sql.table="pokemon"] + - selector: span[qualitytrace.span.type="database" name="create pokeshop.pokemon" db.operation="create" db.sql.table="pokemon"] name: A Pokemon was inserted on database assertions: - attr:db.result | json_path '$.imageUrl' = "https://assets.pokemon.com/assets/cms2/img/pokedex/full/052.png" diff --git a/testing/synthetic-monitoring/pokeshop/02-import-pokemon-with-queue.yaml b/testing/synthetic-monitoring/pokeshop/02-import-pokemon-with-queue.yaml index d72f265..da439c0 100644 --- a/testing/synthetic-monitoring/pokeshop/02-import-pokemon-with-queue.yaml +++ b/testing/synthetic-monitoring/pokeshop/02-import-pokemon-with-queue.yaml @@ -16,29 +16,29 @@ spec: - key: Content-Type value: application/json specs: - - selector: span[qualityTrace.span.type="http" name="POST /pokemon/import" http.method="POST"] + - selector: span[qualitytrace.span.type="http" name="POST /pokemon/import" http.method="POST"] name: POST /pokemon/import was called successfuly assertions: - attr:http.status_code = 200 - attr:http.response.body | json_path '$.id' = "143" - - selector: span[qualityTrace.span.type="general" name="validate request"] + - selector: span[qualitytrace.span.type="general" name="validate request"] name: The request was validated correctly assertions: - attr:validation.is_valid = "true" - - selector: span[qualityTrace.span.type="messaging" name="queue.synchronizePokemon publish" messaging.system="rabbitmq" messaging.destination="queue.synchronizePokemon" messaging.operation="publish"] + - selector: span[qualitytrace.span.type="messaging" name="queue.synchronizePokemon publish" messaging.system="rabbitmq" messaging.destination="queue.synchronizePokemon" messaging.operation="publish"] name: A message was enqueued to the worker assertions: - attr:messaging.payload | json_path '$.id' = "143" - - selector: span[qualityTrace.span.type="messaging" name="queue.synchronizePokemon process" messaging.system="rabbitmq" messaging.destination="queue.synchronizePokemon" messaging.operation="process"] + - selector: span[qualitytrace.span.type="messaging" name="queue.synchronizePokemon process" messaging.system="rabbitmq" messaging.destination="queue.synchronizePokemon" messaging.operation="process"] name: A message was read by the worker assertions: - attr:messaging.payload | json_path '$.fields.routingKey' = "queue.synchronizePokemon" - - selector: span[qualityTrace.span.type="general" name="import pokemon"] + - selector: span[qualitytrace.span.type="general" name="import pokemon"] name: A "import pokemon" action was triggered assertions: - - attr:qualityTrace.selected_spans.count >= 1 + - attr:qualitytrace.selected_spans.count >= 1 # TODO: sometimes this assertion fails due to Pokeshop cache - # - selector: span[qualityTrace.span.type="http" name="GET" http.method="GET"] + # - selector: span[qualitytrace.span.type="http" name="GET" http.method="GET"] # name: The PokeAPI was called with success # assertions: # - attr:http.status_code = 200 diff --git a/testing/synthetic-monitoring/pokeshop/03-import-pokemon-with-stream.yaml b/testing/synthetic-monitoring/pokeshop/03-import-pokemon-with-stream.yaml index b7415ff..7a14cd0 100644 --- a/testing/synthetic-monitoring/pokeshop/03-import-pokemon-with-stream.yaml +++ b/testing/synthetic-monitoring/pokeshop/03-import-pokemon-with-stream.yaml @@ -13,11 +13,11 @@ spec: messageKey: snorlax-key messageValue: "{\"id\":144}" specs: - - selector: span[qualityTrace.span.type="messaging" name="pokemon process" messaging.system="kafka" messaging.destination="pokemon" messaging.destination_kind="topic" messaging.operation="process"] + - selector: span[qualitytrace.span.type="messaging" name="pokemon process" messaging.system="kafka" messaging.destination="pokemon" messaging.destination_kind="topic" messaging.operation="process"] name: A message was received from Kafka stream assertions: - attr:messaging.system = "kafka" - - selector: span[qualityTrace.span.type="general" name="import pokemon"] + - selector: span[qualitytrace.span.type="general" name="import pokemon"] name: Import Pokemon use case was triggered assertions: - attr:name = "import pokemon" diff --git a/testing/synthetic-monitoring/pokeshop/04-list-pokemons.yaml b/testing/synthetic-monitoring/pokeshop/04-list-pokemons.yaml index 23c2708..e962e61 100644 --- a/testing/synthetic-monitoring/pokeshop/04-list-pokemons.yaml +++ b/testing/synthetic-monitoring/pokeshop/04-list-pokemons.yaml @@ -12,15 +12,15 @@ spec: - key: Content-Type value: application/json specs: - - selector: span[qualityTrace.span.type="http" name="GET /pokemon?take=100&skip=0" http.method="GET"] + - selector: span[qualitytrace.span.type="http" name="GET /pokemon?take=100&skip=0" http.method="GET"] name: GET /pokemon endpoint was called and returned valid data assertions: - attr:http.status_code = 200 - - selector: span[qualityTrace.span.type="database" name="count pokeshop.pokemon" db.system="postgres" db.name="pokeshop" db.user="ashketchum" db.operation="count" db.sql.table="pokemon"] + - selector: span[qualitytrace.span.type="database" name="count pokeshop.pokemon" db.system="postgres" db.name="pokeshop" db.user="ashketchum" db.operation="count" db.sql.table="pokemon"] name: A count operation was triggered on database assertions: - attr:db.operation = "count" - - selector: span[qualityTrace.span.type="database" name="findMany pokeshop.pokemon" db.system="postgres" db.name="pokeshop" db.user="ashketchum" db.operation="findMany" db.sql.table="pokemon"] + - selector: span[qualitytrace.span.type="database" name="findMany pokeshop.pokemon" db.system="postgres" db.name="pokeshop" db.user="ashketchum" db.operation="findMany" db.sql.table="pokemon"] name: A select operation was triggered on database assertions: - attr:db.operation = "findMany" diff --git a/testing/synthetic-monitoring/pokeshop/_variableset.yaml b/testing/synthetic-monitoring/pokeshop/_variableset.yaml index af97ffb..d55d698 100644 --- a/testing/synthetic-monitoring/pokeshop/_variableset.yaml +++ b/testing/synthetic-monitoring/pokeshop/_variableset.yaml @@ -1,9 +1,9 @@ type: VariableSet spec: - id: qualityTraceing-vars - name: qualityTraceing-vars + id: qualitytraceing-vars + name: qualitytraceing-vars values: - key: POKESHOP_API_URL - value: https://demo-pokeshop.qualityTrace.io + value: https://demo-pokeshop.qualitytrace.io - key: POKESHOP_KAFKA_BROKER - value: demo-pokeshop.qualityTrace.io:9092 + value: demo-pokeshop.qualitytrace.io:9092 diff --git a/web/cypress/e2e/TestRunDetail/CreateAssertion.spec.ts b/web/cypress/e2e/TestRunDetail/CreateAssertion.spec.ts index d0c92d3..80f4074 100644 --- a/web/cypress/e2e/TestRunDetail/CreateAssertion.spec.ts +++ b/web/cypress/e2e/TestRunDetail/CreateAssertion.spec.ts @@ -30,7 +30,7 @@ describe('Create Assertion', () => { cy.get('[data-cy=assertion-check-attribute] [contenteditable="true"]') .last() - .type('qualityTrace.span.ty', {delay: 100}); + .type('qualitytrace.span.ty', {delay: 100}); cy.get(getAttributeListId(0)).click(); cy.get('[data-cy=assertion-check-value] .cm-content').last().click(); cy.get(getValueFromList(1)).last().click(); @@ -62,7 +62,7 @@ describe('Create Assertion', () => { cy.get('[data-cy=editor-fallback]').should('not.exist'); cy.get('[data-cy=selector-editor] [contenteditable]') .clear() - .type('span[qualityTrace.span.type = "http"] span[qualityTrace.span.type = "database"]:first'); + .type('span[qualitytrace.span.type = "http"] span[qualitytrace.span.type = "database"]:first'); cy.get('[data-cy=assertion-check-attribute] [contenteditable="true"]').type('db.name', {delay: 100}); cy.get(getAttributeListId(0)).click(); @@ -106,7 +106,7 @@ describe('Create Assertion', () => { cy.get('[data-cy=assertion-form]').should('be.visible'); cy.get('[data-cy=editor-fallback]').should('not.exist'); - cy.get('[data-cy=selector-editor] [contenteditable]').clear().type('span[qualityTrace.span.type = "database"]:last'); + cy.get('[data-cy=selector-editor] [contenteditable]').clear().type('span[qualitytrace.span.type = "database"]:last'); cy.selectOperator(0); diff --git a/web/cypress/e2e/TestRunDetail/Outputs.spec.ts b/web/cypress/e2e/TestRunDetail/Outputs.spec.ts index 59ae489..368fbf5 100644 --- a/web/cypress/e2e/TestRunDetail/Outputs.spec.ts +++ b/web/cypress/e2e/TestRunDetail/Outputs.spec.ts @@ -23,7 +23,7 @@ describe('Outputs', () => { cy.get('#testOutput_name').type('status_code'); cy.get('[data-cy=selector-editor] [contenteditable=true]') .clear() - .type('span[qualityTrace.span.type = "http"]:first'); + .type('span[qualitytrace.span.type = "http"]:first'); cy.get('[data-cy=expression-editor] [contenteditable=true]').type('attr:http.status_code'); }); cy.wait('@getSelect'); @@ -62,7 +62,7 @@ describe('Outputs', () => { cy.get('#testOutput_name').type('status_code'); cy.get('[data-cy=selector-editor] [contenteditable=true]') .clear() - .type('span[qualityTrace.span.type = "http"]:first'); + .type('span[qualitytrace.span.type = "http"]:first'); cy.get('[data-cy=expression-editor] [contenteditable=true]').type('attr:http.status_code'); }); cy.wait('@getSelect'); diff --git a/web/docker-compose.yaml b/web/docker-compose.yaml index c46ba1b..499acb7 100644 --- a/web/docker-compose.yaml +++ b/web/docker-compose.yaml @@ -1,18 +1,18 @@ version: '3.2' services: - qualityTrace: + qualitytrace: restart: unless-stopped - image: intelops/qualityTrace:${TAG:-latest} + image: intelops/qualitytrace:${TAG:-latest} extra_hosts: - 'host.docker.internal:host-gateway' build: context: . volumes: - type: bind - source: ../local-config/qualityTrace.config.yaml - target: /app/qualityTrace.yaml + source: ../local-config/qualitytrace.config.yaml + target: /app/qualitytrace.yaml - type: bind - source: ../local-config/qualityTrace.provision.yaml + source: ../local-config/qualitytrace.provision.yaml target: /app/provisioning.yaml ports: - 11633:11633 @@ -56,7 +56,7 @@ services: volumes: - ../local-config/collector.config.yaml:/otel-local-config.yaml depends_on: - - qualityTrace + - qualitytrace cache: image: redis:6 diff --git a/web/package.json b/web/package.json index bf6bb65..7e65f3e 100644 --- a/web/package.json +++ b/web/package.json @@ -65,7 +65,7 @@ "scripts": { "start": "npm run less && craco start", "dev": "concurrently 'npm run start' 'npm run port-forward'", - "port-forward": "while true; do kubectl -n qualityTrace-beta port-forward svc/qualityTrace-beta 11633; done", + "port-forward": "while true; do kubectl -n qualitytrace-beta port-forward svc/qualitytrace-beta 11633; done", "build": "npm run less && craco build", "test": "npm run test:unit", "test:integration": "npm run cy:run", diff --git a/web/src/antd-theme/antd-customized.less b/web/src/antd-theme/antd-customized.less index 601409e..df31170 100644 --- a/web/src/antd-theme/antd-customized.less +++ b/web/src/antd-theme/antd-customized.less @@ -1,3 +1,3 @@ // @import 'antd/lib/style/themes/default.less'; @import 'antd/dist/antd.less'; -@import './qualityTrace-antd-theme.less'; +@import './qualitytrace-antd-theme.less'; diff --git a/web/src/antd-theme/tracetest-antd-theme.less b/web/src/antd-theme/qualitytrace-antd-theme.less similarity index 100% rename from web/src/antd-theme/tracetest-antd-theme.less rename to web/src/antd-theme/qualitytrace-antd-theme.less diff --git a/web/src/components/HeaderRow/HeaderRow.tsx b/web/src/components/HeaderRow/HeaderRow.tsx index dca8244..3a280d3 100644 --- a/web/src/components/HeaderRow/HeaderRow.tsx +++ b/web/src/components/HeaderRow/HeaderRow.tsx @@ -20,7 +20,7 @@ const HeaderRow = ({header: {key = '', value = ''}, onCreateTestOutput, onCreate diff --git a/web/src/components/Inputs/Editor/Expression/grammar/__tests__/cases.txt b/web/src/components/Inputs/Editor/Expression/grammar/__tests__/cases.txt index 39d7cb9..a447a51 100644 --- a/web/src/components/Inputs/Editor/Expression/grammar/__tests__/cases.txt +++ b/web/src/components/Inputs/Editor/Expression/grammar/__tests__/cases.txt @@ -1,6 +1,6 @@ # Right side interpolation -attr:qualityTrace.span.type +attr:qualitytrace.span.type ==> @@ -9,7 +9,7 @@ Program(Expression(ComposedValue(OutsideInput(Source,Identifier)))) # Expression for both sides -attr:qualityTrace.span.duration + 2 +attr:qualitytrace.span.duration + 2 ==> diff --git a/web/src/components/Inputs/Editor/Expression/grammar/syntax.grammar b/web/src/components/Inputs/Editor/Expression/grammar/syntax.grammar index e6ee5ee..c2c0271 100644 --- a/web/src/components/Inputs/Editor/Expression/grammar/syntax.grammar +++ b/web/src/components/Inputs/Editor/Expression/grammar/syntax.grammar @@ -2,12 +2,12 @@ @skip { space } -// attr:qualityTrace.span.type = "${env:TRACETEST_SPAN_TYPE}" -// att:qualityTrace.span.duration + 2 = 5 + env:TRACETEST_SPAN_DURATION +// attr:qualitytrace.span.type = "${env:TRACETEST_SPAN_TYPE}" +// att:qualitytrace.span.duration + 2 = 5 + env:TRACETEST_SPAN_DURATION // 5 + 5 = 10 // 10 != 20 // "Jorge" == "Ecuador" + ${attr:http.message} -// att:http.message = "error at line ${attr:qualityTrace.span.duration}" +// att:http.message = "error at line ${attr:qualitytrace.span.duration}" expression {Expression (Comparator Expression)*} diff --git a/web/src/components/RunDetailAutomateMethods/methods/GithubActions/GithubActions.tsx b/web/src/components/RunDetailAutomateMethods/methods/GithubActions/GithubActions.tsx index 13d3a22..3909078 100644 --- a/web/src/components/RunDetailAutomateMethods/methods/GithubActions/GithubActions.tsx +++ b/web/src/components/RunDetailAutomateMethods/methods/GithubActions/GithubActions.tsx @@ -6,7 +6,7 @@ import {FramedCodeBlock} from 'components/CodeBlock'; import * as S from './GithubActions.styled'; const actionConfig = `- name: Configure Tracetest CLI - uses: intelops/qualityTrace-github-action@v1 + uses: intelops/qualitytrace-github-action@v1 with: endpoint: ${getServerBaseUrl()} `; @@ -29,7 +29,7 @@ const GithubActions = () => { The endpoint parameter is the base address where your Tracetest Core Server is installed.
Here's a full example of how to use it:{' '} - qualityTrace-cli-with-qualityTrace-core.yml + qualitytrace-cli-with-qualitytrace-core.yml diff --git a/web/src/components/RunDetailTrace/Search.tsx b/web/src/components/RunDetailTrace/Search.tsx index 980339b..4f722e7 100644 --- a/web/src/components/RunDetailTrace/Search.tsx +++ b/web/src/components/RunDetailTrace/Search.tsx @@ -54,7 +54,7 @@ const Search = ({runId, testId}: IProps) => { { onSearch(query); setSearch(query); diff --git a/web/src/components/RunDetailTriggerResponse/ResponseBody.tsx b/web/src/components/RunDetailTriggerResponse/ResponseBody.tsx index 80a7e50..8456f28 100644 --- a/web/src/components/RunDetailTriggerResponse/ResponseBody.tsx +++ b/web/src/components/RunDetailTriggerResponse/ResponseBody.tsx @@ -22,7 +22,7 @@ const ResponseBody = ({body = '', bodyMimeType = '', state, onCreateTestOutput, diff --git a/web/src/components/RunDetailTriggerResponse/RunDetailTriggerResponse.tsx b/web/src/components/RunDetailTriggerResponse/RunDetailTriggerResponse.tsx index 1b790f2..cc2d3d4 100644 --- a/web/src/components/RunDetailTriggerResponse/RunDetailTriggerResponse.tsx +++ b/web/src/components/RunDetailTriggerResponse/RunDetailTriggerResponse.tsx @@ -27,7 +27,7 @@ const TabsKeys = { Metadata: 'metadata', }; -const qualityTraceTriggerSelector = 'span[qualityTrace.span.type="general" name="Tracetest trigger"]'; +const qualitytraceTriggerSelector = 'span[qualitytrace.span.type="general" name="Tracetest trigger"]'; const RunDetailTriggerResponse = ({ runId, @@ -49,7 +49,7 @@ const RunDetailTriggerResponse = ({ const handleCreateTestOutput = useCallback( ({key}: TSpanFlatAttribute) => { TestRunAnalyticsService.onAddAssertionButtonClick(); - const selector = qualityTraceTriggerSelector; + const selector = qualitytraceTriggerSelector; const output = TestOutput({ selector, @@ -66,7 +66,7 @@ const RunDetailTriggerResponse = ({ const handleCreateTestSpec = useCallback( ({value, key}: TSpanFlatAttribute) => { TestRunAnalyticsService.onAddAssertionButtonClick(); - const selector = qualityTraceTriggerSelector; + const selector = qualitytraceTriggerSelector; open({ isEditing: false, @@ -98,7 +98,7 @@ const RunDetailTriggerResponse = ({ Status: = 400}>{statusCode} @@ -111,7 +111,7 @@ const RunDetailTriggerResponse = ({ diff --git a/web/src/components/Settings/DataStorePlugin/forms/OpenTelemetryCollector/Ingestor.tsx b/web/src/components/Settings/DataStorePlugin/forms/OpenTelemetryCollector/Ingestor.tsx index d1a87cf..63b6e39 100644 --- a/web/src/components/Settings/DataStorePlugin/forms/OpenTelemetryCollector/Ingestor.tsx +++ b/web/src/components/Settings/DataStorePlugin/forms/OpenTelemetryCollector/Ingestor.tsx @@ -9,17 +9,17 @@ const Ingestor = () => ( Ingestor Endpoint Tracetest exposes trace ingestion endpoints on ports 4317 for gRPC and 4318 for HTTP. Use the Tracetest Server’s - hostname and port to connect. For example, with Docker use qualityTrace:4317 for gRPC. + hostname and port to connect. For example, with Docker use qualitytrace:4317 for gRPC. - gRPC + gRPC - HTTP + HTTP diff --git a/web/src/components/TestSpecDetail/Search.tsx b/web/src/components/TestSpecDetail/Search.tsx index b196777..0f8c8fd 100644 --- a/web/src/components/TestSpecDetail/Search.tsx +++ b/web/src/components/TestSpecDetail/Search.tsx @@ -54,7 +54,7 @@ const Search = () => { { onSearch(query); setSearch(query); diff --git a/web/src/constants/Automate.constants.ts b/web/src/constants/Automate.constants.ts index 9545655..f2ec5e0 100644 --- a/web/src/constants/Automate.constants.ts +++ b/web/src/constants/Automate.constants.ts @@ -1,7 +1,7 @@ export function CypressCodeSnippet(testName: string) { - return `import Tracetest, { Types } from '@qualityTrace/cypress'; + return `import Tracetest, { Types } from '@qualitytrace/cypress'; const TRACETEST_API_TOKEN = Cypress.env('TRACETEST_API_TOKEN') || ''; -let qualityTrace: Types.TracetestCypress | undefined = undefined; +let qualitytrace: Types.TracetestCypress | undefined = undefined; describe('Home', { defaultCommandTimeout: 60000 }, () => { before(done => { @@ -10,13 +10,13 @@ describe('Home', { defaultCommandTimeout: 60000 }, () => { beforeEach(() => { cy.visit('/', { - onBeforeLoad: win => qualityTrace.capture(win.document), + onBeforeLoad: win => qualitytrace.capture(win.document), }); }); // uncomment to wait for trace tests to be done after(done => { - qualityTrace.summary().then(() => done()); + qualitytrace.summary().then(() => done()); }); it('${testName}', () => { @@ -27,24 +27,24 @@ describe('Home', { defaultCommandTimeout: 60000 }, () => { export function PlaywrightCodeSnippet(testName: string) { return `import { test, expect } from '@playwright/test'; -import Tracetest, { Types } from '@qualityTrace/playwright'; +import Tracetest, { Types } from '@qualitytrace/playwright'; const { TRACETEST_API_TOKEN = '' } = process.env; -let qualityTrace: Types.TracetestPlaywright | undefined = undefined; +let qualitytrace: Types.TracetestPlaywright | undefined = undefined; test.describe.configure({ mode: 'serial' }); test.beforeAll(async () => { - qualityTrace = await Tracetest({ apiToken: TRACETEST_API_TOKEN }); + qualitytrace = await Tracetest({ apiToken: TRACETEST_API_TOKEN }); }); test.beforeEach(async ({ page }, { title }) => { await page.goto('/'); - await qualityTrace?.capture(title, page); + await qualitytrace?.capture(title, page); }); // optional step to break the playwright script in case a Tracetest test fails test.afterAll(async ({}, testInfo) => { testInfo.setTimeout(60000); - await qualityTrace?.summary(); + await qualitytrace?.summary(); }); test('${testName}', () => { diff --git a/web/src/constants/CollectorConfig.constants.ts b/web/src/constants/CollectorConfig.constants.ts index e331661..9792b08 100644 --- a/web/src/constants/CollectorConfig.constants.ts +++ b/web/src/constants/CollectorConfig.constants.ts @@ -1,8 +1,8 @@ import {SupportedDataStores} from 'types/DataStore.types'; -export const qualityTrace = `# OTLP for Tracetest - otlp/qualityTrace: - endpoint: qualityTrace:4317 # Send traces to Tracetest. Read more in docs here: https://docs.qualityTrace.io/configuration/connecting-to-data-stores/opentelemetry-collector +export const qualitytrace = `# OTLP for Tracetest + otlp/qualitytrace: + endpoint: qualitytrace:4317 # Send traces to Tracetest. Read more in docs here: https://docs.qualitytrace.io/configuration/connecting-to-data-stores/opentelemetry-collector tls: insecure: true`; @@ -30,10 +30,10 @@ exporters: service: pipelines: - traces/qualityTrace: + traces/qualitytrace: receivers: [otlp] processors: [batch] - exporters: [otlp/qualityTrace] + exporters: [otlp/qualitytrace] traces/lightstep: receivers: [otlp] processors: [batch] @@ -58,7 +58,7 @@ service: traces/1: receivers: [otlp] processors: [batch] - exporters: [otlp/qualityTrace] + exporters: [otlp/qualitytrace] `; export const NewRelic = (traceTestBlock: string) => `receivers: @@ -87,10 +87,10 @@ exporters: service: pipelines: - traces/qualityTrace: + traces/qualitytrace: receivers: [otlp] processors: [batch] - exporters: [otlp/qualityTrace] + exporters: [otlp/qualitytrace] traces/newrelic: receivers: [otlp] processors: [batch] @@ -120,10 +120,10 @@ exporters: # Read more in docs here: https://docs.datadoghq.com/opentelemetry/otel_collector_datadog_exporter service: pipelines: - traces/qualityTrace: + traces/qualitytrace: receivers: [otlp] processors: [batch] - exporters: [otlp/qualityTrace] + exporters: [otlp/qualitytrace] traces/datadog: receivers: [otlp] processors: [batch] @@ -155,10 +155,10 @@ exporters: service: pipelines: - traces/qualityTrace: + traces/qualitytrace: receivers: [otlp] processors: [batch] - exporters: [otlp/qualityTrace] + exporters: [otlp/qualitytrace] traces/honeycomb: receivers: [otlp] processors: [batch] @@ -182,10 +182,10 @@ exporters: service: pipelines: - traces/qualityTrace: + traces/qualitytrace: receivers: [otlp] processors: [batch] - exporters: [otlp/qualityTrace] + exporters: [otlp/qualitytrace] traces/appinsights: receivers: [otlp] exporters: [azuremonitor] @@ -215,10 +215,10 @@ exporters: service: pipelines: - traces/qualityTrace: + traces/qualitytrace: receivers: [otlp] processors: [batch] - exporters: [logging, otlp/qualityTrace] + exporters: [logging, otlp/qualitytrace] traces/signoz: receivers: [otlp] processors: [batch] @@ -249,10 +249,10 @@ exporters: service: pipelines: - traces/qualityTrace: + traces/qualitytrace: receivers: [otlp] processors: [batch] - exporters: [logging, otlp/qualityTrace] + exporters: [logging, otlp/qualitytrace] traces/dynatrace: receivers: [otlp] processors: [batch] @@ -284,10 +284,10 @@ exporters: service: pipelines: - traces/qualityTrace: + traces/qualitytrace: receivers: [otlp] processors: [batch] - exporters: [logging, otlp/qualityTrace] + exporters: [logging, otlp/qualitytrace] traces/instana: receivers: [otlp] processors: [batch] @@ -295,15 +295,15 @@ service: `; export const CollectorConfigMap = { - [SupportedDataStores.AzureAppInsights]: AzureAppInsights(qualityTrace), - [SupportedDataStores.Datadog]: Datadog(qualityTrace), - [SupportedDataStores.Dynatrace]: Dynatrace(qualityTrace), - [SupportedDataStores.Honeycomb]: Honeycomb(qualityTrace), - [SupportedDataStores.Instana]: Instana(qualityTrace), - [SupportedDataStores.Lightstep]: Lightstep(qualityTrace), - [SupportedDataStores.NewRelic]: NewRelic(qualityTrace), - [SupportedDataStores.OtelCollector]: OtelCollector(qualityTrace), - [SupportedDataStores.Signoz]: Signoz(qualityTrace), + [SupportedDataStores.AzureAppInsights]: AzureAppInsights(qualitytrace), + [SupportedDataStores.Datadog]: Datadog(qualitytrace), + [SupportedDataStores.Dynatrace]: Dynatrace(qualitytrace), + [SupportedDataStores.Honeycomb]: Honeycomb(qualitytrace), + [SupportedDataStores.Instana]: Instana(qualitytrace), + [SupportedDataStores.Lightstep]: Lightstep(qualitytrace), + [SupportedDataStores.NewRelic]: NewRelic(qualitytrace), + [SupportedDataStores.OtelCollector]: OtelCollector(qualitytrace), + [SupportedDataStores.Signoz]: Signoz(qualitytrace), } as const; export const CollectorConfigFunctionMap = { diff --git a/web/src/constants/Common.constants.ts b/web/src/constants/Common.constants.ts index d9740f8..23724b3 100644 --- a/web/src/constants/Common.constants.ts +++ b/web/src/constants/Common.constants.ts @@ -1,18 +1,18 @@ export const SENTRY_DNS = 'https://8411cbb3b7d84c879f711f0e642a28e3@o1229268.ingest.sentry.io/6375361'; -export const SENTRY_ALLOWED_URLS = [/.*?localhost:3000/, /.*?qualityTrace.io/]; +export const SENTRY_ALLOWED_URLS = [/.*?localhost:3000/, /.*?qualitytrace.io/]; export const DOCUMENT_TITLE = 'Tracetest'; -export const DOCUMENTATION_URL = 'https://docs.qualityTrace.io'; -export const GITHUB_URL = 'https://github.com/intelops/qualityTrace'; -export const GITHUB_ISSUES_URL = 'https://github.com/intelops/qualityTrace/issues/new/choose'; -export const COMMUNITY_SLACK_URL = 'https://dub.sh/qualityTrace-community'; -export const OCTOLIINT_ISSUE_URL = 'https://github.com/intelops/qualityTrace/issues/2615'; -export const CLI_RUNNING_TESTS_URL = 'https://docs.qualityTrace.io/cli/running-tests'; -export const CLI_RUNNING_TEST_SUITES_URL = 'https://docs.qualityTrace.io/cli/running-test-suites'; +export const DOCUMENTATION_URL = 'https://docs.qualitytrace.io'; +export const GITHUB_URL = 'https://github.com/intelops/qualitytrace'; +export const GITHUB_ISSUES_URL = 'https://github.com/intelops/qualitytrace/issues/new/choose'; +export const COMMUNITY_SLACK_URL = 'https://dub.sh/qualitytrace-community'; +export const OCTOLIINT_ISSUE_URL = 'https://github.com/intelops/qualitytrace/issues/2615'; +export const CLI_RUNNING_TESTS_URL = 'https://docs.qualitytrace.io/cli/running-tests'; +export const CLI_RUNNING_TEST_SUITES_URL = 'https://docs.qualitytrace.io/cli/running-test-suites'; export const INGESTOR_ENDPOINT_URL = - 'https://docs.qualityTrace.io/configuration/opentelemetry-collector-configuration-file-reference'; + 'https://docs.qualitytrace.io/configuration/opentelemetry-collector-configuration-file-reference'; export const TRACE_SEMANTIC_CONVENTIONS_URL = 'https://github.com/open-telemetry/opentelemetry-specification/tree/main/specification/trace/semantic_conventions'; @@ -21,28 +21,28 @@ export const RESOURCE_SEMANTIC_CONVENTIONS_URL = export const TRACE_DOCUMENTATION_URL = 'https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md'; -export const OPENING_TRACETEST_URL = 'https://docs.qualityTrace.io/getting-started/open/'; -export const ADD_TEST_URL = 'https://docs.qualityTrace.io/web-ui/creating-tests'; -export const ADD_TEST_SUITE_URL = 'https://docs.qualityTrace.io/web-ui/creating-test-suites'; -export const ADD_TEST_OUTPUTS_DOCUMENTATION_URL = 'https://docs.qualityTrace.io/web-ui/creating-test-outputs'; -export const ANALYZER_DOCUMENTATION_URL = 'https://docs.qualityTrace.io/analyzer/concepts'; -export const TEST_RUNNER_DOCUMENTATION_URL = 'https://docs.qualityTrace.io/configuration/test-runner'; -export const ANALYZER_RULES_DOCUMENTATION_URL = 'https://docs.qualityTrace.io/analyzer/rules'; -export const EXPRESSIONS_DOCUMENTATION_URL = 'https://docs.qualityTrace.io/concepts/expressions'; -export const VARIABLE_SET_DOCUMENTATION_URL = 'https://docs.qualityTrace.io/concepts/variable-sets'; +export const OPENING_TRACETEST_URL = 'https://docs.qualitytrace.io/getting-started/open/'; +export const ADD_TEST_URL = 'https://docs.qualitytrace.io/web-ui/creating-tests'; +export const ADD_TEST_SUITE_URL = 'https://docs.qualitytrace.io/web-ui/creating-test-suites'; +export const ADD_TEST_OUTPUTS_DOCUMENTATION_URL = 'https://docs.qualitytrace.io/web-ui/creating-test-outputs'; +export const ANALYZER_DOCUMENTATION_URL = 'https://docs.qualitytrace.io/analyzer/concepts'; +export const TEST_RUNNER_DOCUMENTATION_URL = 'https://docs.qualitytrace.io/configuration/test-runner'; +export const ANALYZER_RULES_DOCUMENTATION_URL = 'https://docs.qualitytrace.io/analyzer/rules'; +export const EXPRESSIONS_DOCUMENTATION_URL = 'https://docs.qualitytrace.io/concepts/expressions'; +export const VARIABLE_SET_DOCUMENTATION_URL = 'https://docs.qualitytrace.io/concepts/variable-sets'; export const GITHUB_ACTION_URL = - 'https://github.com/intelops/qualityTrace-github-action/tree/main/examples/qualityTrace-cli-with-qualityTrace-core'; -export const CLI_DOCS_URL = 'https://docs.qualityTrace.io/cli/cli-installation-reference'; -export const TRACE_POLLING_DOCUMENTATION_URL = 'https://docs.qualityTrace.io/configuration/trace-polling/'; -export const DEMO_DOCUMENTATION_URL = 'https://docs.qualityTrace.io/configuration/demo/'; + 'https://github.com/intelops/qualitytrace-github-action/tree/main/examples/qualitytrace-cli-with-qualitytrace-core'; +export const CLI_DOCS_URL = 'https://docs.qualitytrace.io/cli/cli-installation-reference'; +export const TRACE_POLLING_DOCUMENTATION_URL = 'https://docs.qualitytrace.io/configuration/trace-polling/'; +export const DEMO_DOCUMENTATION_URL = 'https://docs.qualitytrace.io/configuration/demo/'; export const SELECTOR_LANGUAGE_CHEAT_SHEET_URL = `${process.env.PUBLIC_URL}/SL_cheat_sheet.pdf`; export const POKESHOP_GITHUB = 'https://github.com/kubeshop/pokeshop'; export const OTEL_DEMO_GITHUB = 'https://github.com/open-telemetry/opentelemetry-demo'; -export const AGENT_DOCS_URL = 'https://docs.qualityTrace.io/concepts/agent'; -export const CLOUD_AGENT_DOCS_URL = 'https://docs.qualityTrace.io/concepts/cloud-agent'; +export const AGENT_DOCS_URL = 'https://docs.qualitytrace.io/concepts/agent'; +export const CLOUD_AGENT_DOCS_URL = 'https://docs.qualitytrace.io/concepts/cloud-agent'; export enum HTTP_METHOD { GET = 'GET', diff --git a/web/src/constants/DataStore.constants.tsx b/web/src/constants/DataStore.constants.tsx index b2b1f36..ced1728 100644 --- a/web/src/constants/DataStore.constants.tsx +++ b/web/src/constants/DataStore.constants.tsx @@ -20,22 +20,22 @@ export const SupportedDataStoresToName = { } as const; export const SupportedDataStoresToDocsLink = { - [SupportedDataStores.AWSXRay]: 'https://docs.qualityTrace.io/configuration/connecting-to-data-stores/aws-x-ray', - [SupportedDataStores.AzureAppInsights]: 'https://docs.qualityTrace.io/configuration/connecting-to-data-stores/azure-app-insights', - [SupportedDataStores.Datadog]: 'https://docs.qualityTrace.io/configuration/connecting-to-data-stores/datadog', - [SupportedDataStores.Dynatrace]: 'https://docs.qualityTrace.io/configuration/connecting-to-data-stores/dynatrace', - [SupportedDataStores.ElasticApm]: 'https://docs.qualityTrace.io/configuration/connecting-to-data-stores/elasticapm', - [SupportedDataStores.Honeycomb]: 'https://docs.qualityTrace.io/configuration/connecting-to-data-stores/honeycomb', - [SupportedDataStores.Instana]: 'https://docs.qualityTrace.io/configuration/connecting-to-data-stores/instana', - [SupportedDataStores.JAEGER]: 'https://docs.qualityTrace.io/configuration/connecting-to-data-stores/jaeger', - [SupportedDataStores.Lightstep]: 'https://docs.qualityTrace.io/configuration/connecting-to-data-stores/lightstep', - [SupportedDataStores.NewRelic]: 'https://docs.qualityTrace.io/configuration/connecting-to-data-stores/new-relic', - [SupportedDataStores.OpenSearch]: 'https://docs.qualityTrace.io/configuration/connecting-to-data-stores/opensearch', - [SupportedDataStores.OtelCollector]: 'https://docs.qualityTrace.io/configuration/connecting-to-data-stores/opentelemetry-collector', - [SupportedDataStores.SignalFX]: 'https://docs.qualityTrace.io/configuration/connecting-to-data-stores/signalfx', - [SupportedDataStores.Signoz]: 'https://docs.qualityTrace.io/configuration/connecting-to-data-stores/signoz', - [SupportedDataStores.SumoLogic]: 'https://docs.qualityTrace.io/configuration/connecting-to-data-stores/sumologic', - [SupportedDataStores.TEMPO]: 'https://docs.qualityTrace.io/configuration/connecting-to-data-stores/tempo', + [SupportedDataStores.AWSXRay]: 'https://docs.qualitytrace.io/configuration/connecting-to-data-stores/aws-x-ray', + [SupportedDataStores.AzureAppInsights]: 'https://docs.qualitytrace.io/configuration/connecting-to-data-stores/azure-app-insights', + [SupportedDataStores.Datadog]: 'https://docs.qualitytrace.io/configuration/connecting-to-data-stores/datadog', + [SupportedDataStores.Dynatrace]: 'https://docs.qualitytrace.io/configuration/connecting-to-data-stores/dynatrace', + [SupportedDataStores.ElasticApm]: 'https://docs.qualitytrace.io/configuration/connecting-to-data-stores/elasticapm', + [SupportedDataStores.Honeycomb]: 'https://docs.qualitytrace.io/configuration/connecting-to-data-stores/honeycomb', + [SupportedDataStores.Instana]: 'https://docs.qualitytrace.io/configuration/connecting-to-data-stores/instana', + [SupportedDataStores.JAEGER]: 'https://docs.qualitytrace.io/configuration/connecting-to-data-stores/jaeger', + [SupportedDataStores.Lightstep]: 'https://docs.qualitytrace.io/configuration/connecting-to-data-stores/lightstep', + [SupportedDataStores.NewRelic]: 'https://docs.qualitytrace.io/configuration/connecting-to-data-stores/new-relic', + [SupportedDataStores.OpenSearch]: 'https://docs.qualitytrace.io/configuration/connecting-to-data-stores/opensearch', + [SupportedDataStores.OtelCollector]: 'https://docs.qualitytrace.io/configuration/connecting-to-data-stores/opentelemetry-collector', + [SupportedDataStores.SignalFX]: 'https://docs.qualitytrace.io/configuration/connecting-to-data-stores/signalfx', + [SupportedDataStores.Signoz]: 'https://docs.qualitytrace.io/configuration/connecting-to-data-stores/signoz', + [SupportedDataStores.SumoLogic]: 'https://docs.qualitytrace.io/configuration/connecting-to-data-stores/sumologic', + [SupportedDataStores.TEMPO]: 'https://docs.qualitytrace.io/configuration/connecting-to-data-stores/tempo', } as const; export const SupportedDataStoresToDefaultEndpoint = { diff --git a/web/src/constants/Integrations.constants.ts b/web/src/constants/Integrations.constants.ts index 3a15f5a..3778774 100644 --- a/web/src/constants/Integrations.constants.ts +++ b/web/src/constants/Integrations.constants.ts @@ -15,7 +15,7 @@ export enum SupportedIntegrations { const Cypress: IIntegration = { name: SupportedIntegrations.CYPRESS, title: 'Cypress', - url: 'https://docs.qualityTrace.io/tools-and-integrations/cypress', + url: 'https://docs.qualitytrace.io/tools-and-integrations/cypress', isActive: true, isAvailable: false, }; @@ -23,7 +23,7 @@ const Cypress: IIntegration = { const K6: IIntegration = { name: SupportedIntegrations.K6, title: 'K6', - url: 'https://docs.qualityTrace.io/tools-and-integrations/k6', + url: 'https://docs.qualitytrace.io/tools-and-integrations/k6', isActive: true, isAvailable: true, }; @@ -31,7 +31,7 @@ const K6: IIntegration = { const Playwright: IIntegration = { name: SupportedIntegrations.PLAYWRIGHT, title: 'Playwright', - url: 'https://docs.qualityTrace.io/tools-and-integrations/playwright', + url: 'https://docs.qualitytrace.io/tools-and-integrations/playwright', isActive: true, isAvailable: false, }; diff --git a/web/src/constants/SpanAttribute.constants.ts b/web/src/constants/SpanAttribute.constants.ts index c3568dd..d42ba04 100644 --- a/web/src/constants/SpanAttribute.constants.ts +++ b/web/src/constants/SpanAttribute.constants.ts @@ -2,13 +2,13 @@ import {SemanticAttributes, SemanticResourceAttributes} from '@opentelemetry/sem export const TraceTestAttributes = { NAME: 'name', - KIND: 'qualityTrace.span.kind', - TRACETEST_SPAN_TYPE: 'qualityTrace.span.type', - TRACETEST_SPAN_DURATION: 'qualityTrace.span.duration', - TRACETEST_RESPONSE_STATUS: 'qualityTrace.response.status', - TRACETEST_RESPONSE_BODY: 'qualityTrace.response.body', - TRACETEST_RESPONSE_HEADERS: 'qualityTrace.response.headers', - TRACETEST_SELECTED_SPANS_COUNT: 'qualityTrace.selected_spans.count', + KIND: 'qualitytrace.span.kind', + TRACETEST_SPAN_TYPE: 'qualitytrace.span.type', + TRACETEST_SPAN_DURATION: 'qualitytrace.span.duration', + TRACETEST_RESPONSE_STATUS: 'qualitytrace.response.status', + TRACETEST_RESPONSE_BODY: 'qualitytrace.response.body', + TRACETEST_RESPONSE_HEADERS: 'qualitytrace.response.headers', + TRACETEST_SELECTED_SPANS_COUNT: 'qualitytrace.selected_spans.count', }; export const Attributes: Record = { diff --git a/web/src/constants/TestSpecs.constants.ts b/web/src/constants/TestSpecs.constants.ts index 7e0c87e..60eca1c 100644 --- a/web/src/constants/TestSpecs.constants.ts +++ b/web/src/constants/TestSpecs.constants.ts @@ -4,7 +4,7 @@ export type TSnippet = Required; export const HTTP_SPANS_STATUS_CODE: TSnippet = { name: 'All HTTP Spans: Status code is 200', - selector: 'span[qualityTrace.span.type="http"]', + selector: 'span[qualitytrace.span.type="http"]', assertions: [ { left: 'attr:http.status_code', @@ -16,10 +16,10 @@ export const HTTP_SPANS_STATUS_CODE: TSnippet = { export const TRIGGER_SPAN_RESPONSE_TIME: TSnippet = { name: 'Trigger Span: Response time is less than 200ms', - selector: 'span[qualityTrace.span.type="general" name="Tracetest trigger"]', + selector: 'span[qualitytrace.span.type="general" name="Tracetest trigger"]', assertions: [ { - left: 'attr:qualityTrace.span.duration', + left: 'attr:qualitytrace.span.duration', comparator: '<', right: '200ms', }, @@ -28,10 +28,10 @@ export const TRIGGER_SPAN_RESPONSE_TIME: TSnippet = { export const DB_SPANS_RESPONSE_TIME: TSnippet = { name: 'All Database Spans: Processing time is less than 100ms', - selector: 'span[qualityTrace.span.type="database"]', + selector: 'span[qualitytrace.span.type="database"]', assertions: [ { - left: 'attr:qualityTrace.span.duration', + left: 'attr:qualitytrace.span.duration', comparator: '<', right: '100ms', }, @@ -40,10 +40,10 @@ export const DB_SPANS_RESPONSE_TIME: TSnippet = { export const TRIGGER_SPAN_RESPONSE_BODY_CONTAINS: TSnippet = { name: 'Trigger Span: Response body contains "this string"', - selector: 'span[qualityTrace.span.type="general" name="Tracetest trigger"]', + selector: 'span[qualitytrace.span.type="general" name="Tracetest trigger"]', assertions: [ { - left: 'attr:qualityTrace.response.body', + left: 'attr:qualitytrace.response.body', comparator: 'contains', right: '"this string"', }, @@ -52,7 +52,7 @@ export const TRIGGER_SPAN_RESPONSE_BODY_CONTAINS: TSnippet = { export const GRPC_SPANS_STATUS_CODE: TSnippet = { name: 'All gRPC Spans: Status is Ok', - selector: 'span[qualityTrace.span.type="rpc" rpc.system="grpc"]', + selector: 'span[qualitytrace.span.type="rpc" rpc.system="grpc"]', assertions: [ { left: 'attr:rpc.grpc.status_code', @@ -64,7 +64,7 @@ export const GRPC_SPANS_STATUS_CODE: TSnippet = { export const DB_SPANS_QUALITY_DB_STATEMENT_PRESENT: TSnippet = { name: 'All Database Spans: db.statement should always be defined (QUALITY)', - selector: 'span[qualityTrace.span.type="database"]', + selector: 'span[qualitytrace.span.type="database"]', assertions: [ { left: 'attr:db.system', diff --git a/web/src/constants/TracetestAttributes.constants.ts b/web/src/constants/TracetestAttributes.constants.ts index b6675b7..05b48ce 100644 --- a/web/src/constants/TracetestAttributes.constants.ts +++ b/web/src/constants/TracetestAttributes.constants.ts @@ -9,12 +9,12 @@ export default { note: '', tags: ['id'], }, - 'qualityTrace.span.duration': { + 'qualitytrace.span.duration': { description: 'Tracetest attribute that reflects the elapsed real time of the operation.', note: '', tags: ['ms', 'second', 'time'], }, - 'qualityTrace.span.type': { + 'qualitytrace.span.type': { description: 'Tracetest attribute based on the [OTel Trace Semantic Conventions](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/README.md)', note: '', diff --git a/web/src/models/__mocks__/AssertionResult.mock.ts b/web/src/models/__mocks__/AssertionResult.mock.ts index d36f9b2..6cd475d 100644 --- a/web/src/models/__mocks__/AssertionResult.mock.ts +++ b/web/src/models/__mocks__/AssertionResult.mock.ts @@ -7,7 +7,7 @@ const AssertionResultMock: IMockFactory = raw(data = {}) { return { allPassed: faker.datatype.boolean(), - assertion: 'attr:qualityTrace.span.type = "http', + assertion: 'attr:qualitytrace.span.type = "http', spanResults: new Array(4).fill(null).map(() => AssertionSpanResultMock.raw()), ...data, }; diff --git a/web/src/models/__mocks__/Span.mock.ts b/web/src/models/__mocks__/Span.mock.ts index 80e1ec2..847a830 100644 --- a/web/src/models/__mocks__/Span.mock.ts +++ b/web/src/models/__mocks__/Span.mock.ts @@ -12,7 +12,7 @@ const SpanMock: IMockFactory = () => ({ endTime: faker.date.recent().getMilliseconds(), attributes: { 'service.name': 'mock', - 'qualityTrace.span.duration': '10', + 'qualitytrace.span.duration': '10', }, children: [], ...data, diff --git a/web/src/models/__mocks__/TestSpecs.mock.ts b/web/src/models/__mocks__/TestSpecs.mock.ts index 5a56cc8..614d671 100644 --- a/web/src/models/__mocks__/TestSpecs.mock.ts +++ b/web/src/models/__mocks__/TestSpecs.mock.ts @@ -10,7 +10,7 @@ const TestSpecsMock: IMockFactory = () => ({ selectorParsed: {query: `span[http.status_code] = "20${index}"]`}, assertions: new Array(faker.datatype.number({min: 2, max: 10})) .fill(null) - .map(() => 'attr:qualityTrace.span.type = "http"'), + .map(() => 'attr:qualitytrace.span.type = "http"'), })), ...data, }; diff --git a/web/src/models/__tests__/Span.model.test.ts b/web/src/models/__tests__/Span.model.test.ts index d28acba..65dd99a 100644 --- a/web/src/models/__tests__/Span.model.test.ts +++ b/web/src/models/__tests__/Span.model.test.ts @@ -12,6 +12,6 @@ describe('Span', () => { const value = rawSpan.attributes!['service.name']; expect(span.attributes['service.name'].value).toEqual(value); expect(span.name).toEqual(rawSpan.name); - expect(span.duration).toEqual(rawSpan.attributes!['qualityTrace.span.duration']); + expect(span.duration).toEqual(rawSpan.attributes!['qualitytrace.span.duration']); }); }); diff --git a/web/src/redux/apis/Tracetest/Tracetest.api.ts b/web/src/redux/apis/Tracetest/Tracetest.api.ts index 737f1da..0053163 100644 --- a/web/src/redux/apis/Tracetest/Tracetest.api.ts +++ b/web/src/redux/apis/Tracetest/Tracetest.api.ts @@ -16,7 +16,7 @@ import {wizardEndpoints} from './endpoints/Wizard.endpoint'; export type TTestApiEndpointBuilder = EndpointBuilder< BaseQueryFn, TracetestApiTags, - 'qualityTrace' + 'qualitytrace' >; export type TBaseQueryFn = BaseQueryFn; @@ -41,7 +41,7 @@ type TSingletonTracetestAPI = { const generateAPI = (customBaseQuery = defaultBaseQuery) => { return createApi({ - reducerPath: 'qualityTrace', + reducerPath: 'qualitytrace', baseQuery: customBaseQuery, tagTypes: Object.values(TracetestApiTags), endpoints: builder => ({ diff --git a/web/src/selectors/__tests__/Span.selectors.test.ts b/web/src/selectors/__tests__/Span.selectors.test.ts index 4af1bef..c0c1a64 100644 --- a/web/src/selectors/__tests__/Span.selectors.test.ts +++ b/web/src/selectors/__tests__/Span.selectors.test.ts @@ -17,7 +17,7 @@ describe('SpanSelectors', () => { it('should return matchedSpans when selector matches', () => { const matchedSpans = ['pokeshop']; - const selector = `span[qualityTrace.span.type="http"]`; + const selector = `span[qualitytrace.span.type="http"]`; const result = SpanSelectors.selectMatchedSpans({ spans: {matchedSpans}, testSpecs: { @@ -29,8 +29,8 @@ describe('SpanSelectors', () => { }); it('should return matchedSpans when selector does not matches', () => { - const selector = `span[qualityTrace.span.type="http"]`; - const selectedSpec = `span[qualityTrace.span.type="gRPC"]`; + const selector = `span[qualitytrace.span.type="http"]`; + const selectedSpec = `span[qualitytrace.span.type="gRPC"]`; const result = SpanSelectors.selectMatchedSpans({ spans: {matchedSpans: ['pokeshop']}, testSpecs: { diff --git a/web/src/services/CliCommand.service.ts b/web/src/services/CliCommand.service.ts index bb3b085..00d03b0 100644 --- a/web/src/services/CliCommand.service.ts +++ b/web/src/services/CliCommand.service.ts @@ -51,8 +51,8 @@ const CliCommandService = () => ({ [CliCommandOption.useDocker]: ({enabled, command}) => `${ enabled - ? 'docker run --rm -it -v$(pwd):$(pwd) -w $(pwd) --network host --entrypoint qualityTrace intelops/qualityTrace:latest -s http://localhost:11633/' - : 'qualityTrace' + ? 'docker run --rm -it -v$(pwd):$(pwd) -w $(pwd) --network host --entrypoint qualitytrace intelops/qualitytrace:latest -s http://localhost:11633/' + : 'qualitytrace' } ${command}`, } as Record, diff --git a/web/src/services/SelectorSuggestions/__tests__/SelectorSuggestions.service.test.ts b/web/src/services/SelectorSuggestions/__tests__/SelectorSuggestions.service.test.ts index 9779f16..805641e 100644 --- a/web/src/services/SelectorSuggestions/__tests__/SelectorSuggestions.service.test.ts +++ b/web/src/services/SelectorSuggestions/__tests__/SelectorSuggestions.service.test.ts @@ -29,11 +29,11 @@ describe('SelectorSuggestionsService', () => { it('should get TRACETEST_SPAN_TYPE suggestion', () => { const selector: TSelector = { - query: 'span[qualityTrace.span.type="general" attribute="value"]', + query: 'span[qualitytrace.span.type="general" attribute="value"]', structure: [ { filters: [ - {operator: '=', property: 'qualityTrace.span.type', value: 'general'}, + {operator: '=', property: 'qualitytrace.span.type', value: 'general'}, {operator: '=', property: 'attribute', value: 'value'}, ], }, @@ -47,7 +47,7 @@ describe('SelectorSuggestionsService', () => { selectedParentSpanSelector ); - expect(suggestions).toContainEqual({query: 'span[qualityTrace.span.type="general"]', title: 'All general spans'}); + expect(suggestions).toContainEqual({query: 'span[qualitytrace.span.type="general"]', title: 'All general spans'}); }); it('should get SERVICE_NAME suggestion', () => { @@ -75,11 +75,11 @@ describe('SelectorSuggestionsService', () => { it('should get structural pseudo class suggestion', () => { const selector: TSelector = { - query: 'span[qualityTrace.span.type="general" attribute="value"]', + query: 'span[qualitytrace.span.type="general" attribute="value"]', structure: [ { filters: [ - {operator: '=', property: 'qualityTrace.span.type', value: 'general'}, + {operator: '=', property: 'qualitytrace.span.type', value: 'general'}, {operator: '=', property: 'attribute', value: 'value'}, ], }, @@ -98,11 +98,11 @@ describe('SelectorSuggestionsService', () => { it('should get descendant suggestion', () => { const selector: TSelector = { - query: 'span[qualityTrace.span.type="general" attribute="value"]', + query: 'span[qualitytrace.span.type="general" attribute="value"]', structure: [ { filters: [ - {operator: '=', property: 'qualityTrace.span.type', value: 'general'}, + {operator: '=', property: 'qualitytrace.span.type', value: 'general'}, {operator: '=', property: 'attribute', value: 'value'}, ], }, @@ -117,18 +117,18 @@ describe('SelectorSuggestionsService', () => { ); expect(suggestions).toContainEqual({ - query: `span[parent="parent"] span[qualityTrace.span.type="general"]`, + query: `span[parent="parent"] span[qualitytrace.span.type="general"]`, title: 'general descendants', }); }); it('should get selected span suggestion', () => { const selector: TSelector = { - query: 'span[qualityTrace.span.type="general" attribute="value"]', + query: 'span[qualitytrace.span.type="general" attribute="value"]', structure: [ { filters: [ - {operator: '=', property: 'qualityTrace.span.type', value: 'general'}, + {operator: '=', property: 'qualitytrace.span.type', value: 'general'}, {operator: '=', property: 'attribute', value: 'value'}, ], }, diff --git a/web/src/services/__tests__/Assertion.service.test.ts b/web/src/services/__tests__/Assertion.service.test.ts index 8ee921f..04ceb31 100644 --- a/web/src/services/__tests__/Assertion.service.test.ts +++ b/web/src/services/__tests__/Assertion.service.test.ts @@ -16,8 +16,8 @@ describe('AssertionService', () => { expect(extractExpectedString('300.3')).toEqual('300.3'); expect(extractExpectedString('300ms')).toEqual('300ms'); expect(extractExpectedString('300.3ms')).toEqual('300.3ms'); - expect(extractExpectedString('qualityTrace.span.duration')).toEqual('qualityTrace.span.duration'); - expect(extractExpectedString('qualityTrace.span.duration + 30ms')).toEqual('qualityTrace.span.duration + 30ms'); + expect(extractExpectedString('qualitytrace.span.duration')).toEqual('qualitytrace.span.duration'); + expect(extractExpectedString('qualitytrace.span.duration + 30ms')).toEqual('qualitytrace.span.duration + 30ms'); }); }); describe('getSpanIds', () => { diff --git a/web/src/services/__tests__/Span.service.test.ts b/web/src/services/__tests__/Span.service.test.ts index 375c256..9c834d6 100644 --- a/web/src/services/__tests__/Span.service.test.ts +++ b/web/src/services/__tests__/Span.service.test.ts @@ -35,7 +35,7 @@ describe('SpanService', () => { it('should return the spanList', () => { const span = SpanMock.model(); - const selectorInfo = SpanService.searchSpanList([span], 'qualityTrace'); + const selectorInfo = SpanService.searchSpanList([span], 'qualitytrace'); expect(selectorInfo).toHaveLength(1); }); diff --git a/web/src/utils/__tests__/Validator.test.ts b/web/src/utils/__tests__/Validator.test.ts index dd406cb..1f3cc15 100644 --- a/web/src/utils/__tests__/Validator.test.ts +++ b/web/src/utils/__tests__/Validator.test.ts @@ -25,7 +25,7 @@ describe('Validator', () => { }); it('should be valid', () => { - expect(Validator.required('https://qualityTrace.io/')).toBeTruthy(); + expect(Validator.required('https://qualitytrace.io/')).toBeTruthy(); expect(Validator.url('http://demo')).toBe(true); expect(Validator.url('http://demo.com')).toBe(true); expect(Validator.url('https://www.demo.com')).toBe(true);