cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Hybrid Testing w/ Postgres issue

jorrevynckier
Explorer
1,197

Hi Community,

I'm building a new CAP application with Postgres this time. I'm trying to setup Hybrid testing which was successful for the destination instance, but not for the Postgres instance.

cds bind -2 postgre-sql  
Unknown CDS service name for service postgre-sql. Please specify as argument for cds bind.

 I have tried a couple of different CDS bind commands and some of them actually generate an addition to my .cdsrc-private.json. However when using the cds watch --profile hybrid - command, I don't see my postgres data from BTP in my application.

Any ideas?

Thanks!

Kind Regards, Jorre Vynckier

 

View Entire Topic
protector
Explorer

Try to specify the actual service name as an argument.

If your service on BTP is named my-pg-db, your command would look like:

cds bind -2 my-pg-db postgresql-db

=> postgresql-db being the service technical name.

jorrevynckier
Explorer
0 Kudos

Hi! This does actually generate extra code inside .cdsrc-private.json, but I unfortunately still don't see my data from Postgres on BTP while I locally test using hybrid testing. The destination does work.

{
  "requires": {
    "[hybrid]": {
      "destinations": {
        "binding": {
          "type": "cf",
          "apiEndpoint": "https://anon.hana.ondemand.com",
          "org": "Anon Org",
          "space": "AN",
          "instance": "references-destination",
          "key": "references-destination-key",
          "resolved": false
        },
        "kind": "destinations",
        "vcap": {
          "name": "destinations"
        }
      },
      "postgresql-db": {
        "binding": {
          "type": "cf",
          "apiEndpoint": "https://anon.hana.ondemand.com",
          "org": "Anon Org",
          "space": "AN",
          "instance": "postgre-sql",
          "key": "postgre-sql-key",
          "resolved": false
        },
        "kind": "postgres",
        "vcap": {
          "name": "postgresql-db"
        }
      }
    }
  }
}