Skip to content

Test Cases (draft)

Ziming edited this page Dec 16, 2021 · 3 revisions

tracing

test jaeger

  • install jaeger docker run -it --rm -p 16686:16686 -p 14268:14268 -p 14250:14250 jaegertracing/all-in-one:1.26
  • add yaml in HarborCluster.spec
  trace:
    enabled: true
    sampleRate: 1
    provider: jaeger
    jaeger:
      mode: collector
      collector:
        endpoint: http://x.x.x.x:14268/api/traces

test otel

  • install otel docker run -d --rm -v pwd/otel.yaml:/etc/otel-collector-config.yaml -p 4318:4318 otel/opentelemetry-collector-contrib-dev:latest --config=/etc/otel-collector-config.yaml
  • otel.yaml
receivers:
  otlp:
    protocols:
      http:
 
exporters:
  jaeger:
    endpoint: <jaeger ip>:14250
    tls:
      insecure: true
 
processors:
  batch:
    timeout: 10s
 
service:
  pipelines:
    traces:
      receivers: [otlp]
      processors: [batch]
      exporters: [jaeger]
  • add yaml in HarborCluster.spec
  trace:
    enabled: true
    sampleRate: 1
    provider: otel
    otel:
      endpoint: 10.187.136.211:4318
      urlPath: /v1/traces
      compression: false
      insecure: true
      timeout: 10s

day2 configurate

  • day2.yaml
Kind: Configurate
xxxxxx
xxx
  • kubectl apply -f day2.yaml

  • kubectl wait xxx

  • call api or check db to verify

  • cases to test

remove trivy

  • cases without trivy to test
Clone this wiki locally