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

No way to define endpoint URL for AET reports #88

Closed
zietas opened this issue Apr 28, 2017 · 3 comments
Closed

No way to define endpoint URL for AET reports #88

zietas opened this issue Apr 28, 2017 · 3 comments
Labels
documentation Documentation update, need to be deployed on Wiki later.

Comments

@zietas
Copy link

zietas commented Apr 28, 2017

Instance setup:

  1. Windows PC with 2 VM's installed using cookbook for windows Windows automation aet-cookbook#9 created by @karoldrazek
  2. network for VM's using NAT - all relevant ports are forwarded
  3. we have no proxy setup so all requests have to have port defined

Steps to reproduce

  1. Run AET in given setup
  2. open up report.html and wait for redirect

Expected
I should be able to see report

Actual
Report app is displaying connection error alerts

Reason
In JS Console we can see that reports app is trying to contact "http://192.168.37.12/api/metadata?company=cognifide&project=pioneer&correlationId=cognifide-pioneer-pioneer-ci-1493362630699", but due to fact that we have no proxy, nothing is dispatching request to Apache Karaf. If we execute the same request with port "http://192.168.37.12:8181/api/metadata?company=cognifide&project=pioneer&correlationId=cognifide-pioneer-pioneer-ci-1493362630699" we can see that report is there.

In order to fix this issue we need to have an ability to define endpoint for reports app as well. At the moment in "endpointConfiguration" module we can se that it's simply using current domain as endpoint.

@zietas
Copy link
Author

zietas commented Apr 28, 2017

Simply changing endpoint configuration will not fix anything as it causing CORS issues.

I've manage to fix it by altering rule on apache vhosts configuration.
<Location "/api"> Header set Access-Control-Allow-Origin "*" ProxyPass http://192.168.123.111:81/api </Location>

I have raised an issue with aet-coockbook pull request for windows-automation

@zietas
Copy link
Author

zietas commented Apr 28, 2017

Seems like the solution is in place. The only thing that should also be provide is a guide on how and why we have to do it this way. There is no mention about this in manual.

@malaskowski malaskowski added the documentation Documentation update, need to be deployed on Wiki later. label May 25, 2017
@wiiitek
Copy link
Contributor

wiiitek commented Jul 6, 2017

When doing this task please update also documentation at:

https://github.com/Cognifide/aet/blob/master/documentation/src/main/wiki/LinuxAndWindowsSetup.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation update, need to be deployed on Wiki later.
Projects
None yet
Development

No branches or pull requests

3 participants