We use proprietary and third party´s cookies to improve your experience and our services, identifying your Internet Browsing preferences on our website; develop analytic activities and display advertising based on your preferences. If you keep browsing, you accept its use. You can get more information on our Cookie Policy
Cookies Policy
Ask Your Question
0

Fiware-Biz end to end testing help needed

asked 2020-08-03 13:45:48 +0200

Gen3tics gravatar image

updated 2020-08-05 09:40:27 +0200

I am attempting to set up a docker deployment of the FIWARE-BIZ ecosystem as shown in guide as well as do the end-to-end testing as shown at the end of the installation and administration document

The first problem I think I've run into was the fact that the docker deployment guide specifies no idm and the end to end testing guide states that an idm and a seller role account are necessary. To that end I have added a fiware/idm:7.6.0 container to the end of the biz ecosystem docker-compose.yml

keyrock:
image: fiware/idm:7.6.0
containername: fiware-keyrock
hostname: keyrock
networks:
main:
aliases:
- idm.docker
ipv4
address: 172.18.0.9
dependson:
- mysql
ports:
- "3000:3000"
- "443:443"
environment:
- DEBUG=idm:*
- IDM
DBHOST=mysql
- IDM
HOST=http://localhost:3000
- IDMPORT=3000
# Development use only
# Use Docker Secrets for Sensitive Data
- IDM
DBPASS=my-secret-pw
- IDM
DBUSER=root
- IDM
ADMINUSER=admin
- IDM
ADMINEMAIL=admin@test.com
- IDM
ADMINPASS=1234
mysql:
image: mysql:5.7
restart: always
volumes:
- ./mysql-data:/var/lib/mysql
networks:
main:
environment:
- MYSQL
ROOTPASSWORD=my-secret-pw
- MYSQL
DATABASE=RSS

as well as changed the proxy setting - BAELPOAUTH2SERVER=http://idm.docker:8000 to - BAELPOAUTH2SERVER=http://localhost:3000

Now when I click sign-in on the fiware tmforum marketplace (proxy) page, I am taken to the keyrock sign-in where I can log in with the credentials specified in the docker-compose.yml but I am at a loss on how to make it take me back to the tmforum marketplace (proxy) page despite the fact that I think I've sucessfully made a seller account.

EDIT : I've also changed the :
- BAELPOAUTH2CLIENTID=71644c8b-c413-440e-9699-6d2f44db5623
- BAELPOAUTH2CLIENTSECRET=c15d82aa-b217-4148-a6da-1eacf3d3a989
- BAELPOAUTH2_CALLBACK=http://localhost:8004/auth/fiware/callback

The client ID and secret are now identical to the ones in the example app I made in keyrock with the help of the built in tutorial, and the callback is now on localhost. I am now after logging in taken to a Authorization page for "First App" but after I click authorize I I get status code 400 "invalid client".

Is there any way to set up a biz ecosystem instance in docker and do the end to end testing as described in the guide above ?

In case it wasn't bountifully clear I am a complete beginner with fiware and I apologise if I've broken any rules with this post or asked a dumb question.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
1

answered 2020-08-17 11:46:39 +0200

fdelavega gravatar image

The problem is related with the callback URL. You are using docker so they behave as virtual machines. In this regard you cannot use localhost:8004 as it is not pointing to the BAE, but to the 8004 port of the IDM docker image.

Try to use the docker container name or create a network alias in order to communicate between docker containers.

edit flag offensive delete link more

Comments

Hello, I managed to set everything up using the ipv4_address tags to configure addresses of docker containers. I can now log into BAE with admin and another account I made however when I do on the left hand side I only see the "My inventory" tab, the "My Stock" and "Revenue Sharing" tabs are missing

Gen3tics gravatar imageGen3tics ( 2020-08-31 14:53:49 +0200 )edit

Nevermind, if anyone has a similar problem, the solution is to manually create an "admin" role in the IDM and assign it to your IDM admin.

Gen3tics gravatar imageGen3tics ( 2020-09-03 11:00:11 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-08-03 13:45:48 +0200

Seen: 431 times

Last updated: Aug 17 '20