backstage / community-plugins

Community plugins for Backstage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plugin : Allure - getReportUrl returns incorrect Url

nalexeyev opened this issue Β· comments

Plugin Name

allure

πŸ“œ Description

The method in AllureApiClient.ts:28 adds index.html in the end.
However it is not accepted by Allure Docker Service.

πŸ‘ Expected behavior

Remove index.html in the end of AllureApiClient.ts:28

Or add some ALLURE_NO_INDEX_HTML_FILE env variable to AppConfig to enable/disable it

πŸ‘Ž Actual Behavior with Screenshots

  • with index.html
    image

  • without index.html
    image

πŸ‘Ÿ Reproduction steps

  1. Deploy allure-docker-service in k8s using https://github.com/fescobar/allure-docker-service-examples/tree/master/allure-docker-kubernetes-example
  2. Use istio ingress (not gateway) instead on nginx as following
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: allure-ingress-service-load-balancer
  namespace: allure-docker-service
  annotations:
    kubernetes.io/ingress.class: istio
spec:
  tls:
    - hosts:
        - myhost.io
      secretName: allure-tlscert-selfsigned
  rules:
    - host: myhost.io
      http:
        paths:
          - path: /allure-api/
            pathType: Prefix
            backend:
              service:
                name: allure-service-load-balancer
                port:
                  number: 6060
          - path: /
            pathType: Prefix
            backend:
              service:
                name: allure-service-load-balancer
                port:
                  number: 7070
  1. Observe that plugin creates project urls with index.html, but allure-service does not accept them

πŸ“ƒ Provide the context for the Bug.

No response

πŸ‘€ Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find similar issue

🏒 Have you read the Code of Conduct?

Are you willing to submit PR?

None