cancel
Showing results for 
Search instead for 
Did you mean: 

CAP Hybrid testing ignores cf target

matteoprinetti
Participant
0 Kudos

I have 2 Subaccounts - lets say DEV and QAS. Both have the destination "backend", which is SAP On-premise Server:

On Subaccount DEV "backend" points to our ABAP Dev server (lets say DE1)

On Subaccount QAS "backend" points to our ABAP Quality server (lets say QA1).

Now when I logon to my BAS running on the DEV subaccount I cf login to the DEV Subaccount:

cf login --sso ... etc etc.

If now I do something like curl "backend.dest/sap/opu/odata/sap/MYSERVICE_SRV/$metadata" I correctly get the metadata from service on DE1.

If I now change the target and login to the foundry QAS Subaccount

cf login --sso ... etc etc.

and issue the same curl request, the data still come from the DEV Server !

So it looks the destination proxy ignores the cf target but just used the one where the BAS is running (if I start a BAS on the QAS Subaccount, curl returns alwas data from QA1 does not matter which cf Im targeting.

Is this "bug or feature" ? It would be very handy to have the hybrid testing run against other subaccounts - for example to debug why a certain query is failing which is always impossible to reproduce on DEV.

View Entire Topic
gregorw
Active Contributor
0 Kudos

Have you tried if executing:

curl localhost:8887/reload

after switching the subaccount helps?

matteoprinetti
Participant
0 Kudos

Yes it makes no difference, I think its expected behaviour.