Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 page not found when running Cypress test #427

Open
AdamGoodApp opened this issue Jun 15, 2024 · 1 comment
Open

404 page not found when running Cypress test #427

AdamGoodApp opened this issue Jun 15, 2024 · 1 comment

Comments

@AdamGoodApp
Copy link

I have installed a fresh setup of Moon on my cluster.

I am trying to run a test on the Moon Cypress example, but when running npm run test I get the error:

npm run test

> moon-cloud-cypress-example@1.0.0 test
> cypress-moon 'https://moon.kawastream.com/cypress/chrome'

2024/06/15 19:15:51 Uploading context...
2024/06/15 19:15:53 bad http response: Not Found
404 page not found
2024/06/15 19:15:53 close tar writer: write |1: broken pipe

package.json

{
  "name": "moon-cloud-cypress-example",
  "version": "1.0.0",
  "description": "A minimalist example of running Cypress tests with Moon Cloud",
  "main": "",
  "repository": {
    "type": "git",
    "url": "git@github.com:aerokube/moon-cloud-cypress-example.git"
  },
  "scripts": {
    "test": "cypress-moon 'https://moon.kawastream.com/cypress/chrome'"
  },
  "devDependencies": {
    "@aerokube/cypress-moon": "^1.0.2",
    "mocha": "^9.0.1"
  }
}

Moon UI can be accessed ok https://moon.kawastream.com/#/

Running Traefik as Ingress controller

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: moon-ingress
  namespace: moon
  annotations:
    traefik.ingress.kubernetes.io/router.entrypoints: websecure
    traefik.ingress.kubernetes.io/router.tls: "true"
    cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
  rules:
  - host: moon.kawastream.com
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: moon
            port:
              number: 8080
  tls:
  - secretName: web-app-cert
    hosts:
    - moon.kawastream.com
@vania-pooh
Copy link
Member

@AdamGoodApp in your chart we have more rules: https://github.com/aerokube/charts/blob/master/moon2/templates/ingress.yaml#L147 including rule for Cypress. Not sure whether in Traefik just / will match all URLs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants