Back to Meshery

Integration Tests

docs/layouts/shortcodes/integration-tests.html

1.0.184.9 KB
Original Source

{{- /* Load all test results from project/compatibility section */ -}} {{- $test_results := slice -}} {{- range site.AllPages -}} {{- if and (strings.Contains .Path "project/compatibility") (ne .Kind "section") -}} {{- $test_results = $test_results | append . -}} {{- end -}} {{- end -}} {{- /* Group by meshery-component */ -}} {{- $grouped := dict -}} {{- range $test_results -}} {{- $comp := index .Params "meshery-component" -}} {{- if $comp -}} {{- $items := index $grouped $comp | default slice -}} {{- $grouped = merge $grouped (dict $comp ($items | append .)) -}} {{- end -}} {{- end -}}

Edge Channel

Stable Channel

StatusMeshery ComponentMeshery Component VersionMeshery Server VersionInfrastructureInfrastructure Version
{{- range $comp, $items := $grouped -}} {{- /* Sort by timestamp descending for edge tests */ -}} {{- $edge_sorted := sort $items "Params.timestamp" "desc" -}} {{- range first 1 $edge_sorted -}} {{- $version := index .Params "meshery-component-version" -}} {{- if eq $version "edge" -}} {{- $status := trim (index .Params "overall-status"default "") " " -}} {{- $status_class := "status-default" -}} {{- if eq $status "passing" -}} {{- $status_class = "status-passing" -}} {{- else if eq $status "partial" -}} {{- $status_class = "status-partial" -}} {{- else if eq $status "failing" -}} {{- $status_class = "status-failing" -}} {{- end -}}{{ index .Params "timestamp" }}{{ $comp }}{{ $version }}{{ index .Params "meshery-server-version" }}
Platform:
  • {{ index .Params "k8s-distro" | default "Unknown" }} {{ index .Params "k8s-version" | default "" }}

| Test results:

{{- if index .Params "tests" -}} {{- range $pod, $status := index .Params "tests" -}} {{- $test_icon := "/installation/compatibility-matrix/images/service-meshes/passing.svg" -}} {{- if eq (trim $status " ") "Running" -}} {{- $test_icon = "/installation/compatibility-matrix/images/service-meshes/passing.svg" -}} {{- else -}} {{- $test_icon = "/installation/compatibility-matrix/images/service-meshes/failing.svg" -}} {{- end -}} | | {{ $pod }} | {{- end -}} {{- else -}} | No test details available | {{- end -}} | {{- end -}} {{- end -}} {{- end -}} {{- /* Stable channel tests */ -}} {{- range $comp, $items := $grouped -}} {{- /* Sort by component version descending for stable tests */ -}} {{- $stable_items := slice -}} {{- range $items -}} {{- $version := index .Params "meshery-component-version" -}} {{- if ne $version "edge" -}} {{- $stable_items = $stable_items | append . -}} {{- end -}} {{- end -}} {{- $stable_sorted := sort $stable_items "Params.meshery-component-version" "desc" -}} {{- range first 1 $stable_sorted -}} {{- $status := trim (index .Params "overall-status" | default "") " " -}} {{- $status_class := "status-default" -}} {{- if eq $status "passing" -}} {{- $status_class = "status-passing" -}} {{- else if eq $status "partial" -}} {{- $status_class = "status-partial" -}} {{- else if eq $status "failing" -}} {{- $status_class = "status-failing" -}} {{- end -}} | {{ index .Params "timestamp" }} | {{ $comp }} | {{ index .Params "meshery-component-version" }} | {{ index .Params "meshery-server-version" }} | {{ index .Params "service-mesh" }} | {{ index .Params "service-mesh-version" }} | | Platform:

  • {{ index .Params "k8s-distro" | default "Unknown" }} {{ index .Params "k8s-version" | default "" }}

| Test results:

{{- if index .Params "tests" -}} {{- range $pod, $status := index .Params "tests" -}} {{- $test_icon := "/installation/compatibility-matrix/images/service-meshes/passing.svg" -}} {{- if eq (trim $status " ") "Running" -}} {{- $test_icon = "/installation/compatibility-matrix/images/service-meshes/passing.svg" -}} {{- else -}} {{- $test_icon = "/installation/compatibility-matrix/images/service-meshes/failing.svg" -}} {{- end -}} | | {{ $pod }} | {{- end -}} {{- else -}} | No test details available | {{- end -}} | {{- end -}} {{- end -}}