Adding query APIs for AppIntents 97/105697/1
authorRajamohan Raj <rajamohan.raj@intel.com>
Thu, 9 Apr 2020 16:54:55 +0000 (16:54 +0000)
committerRajamohan Raj <rajamohan.raj@intel.com>
Thu, 9 Apr 2020 17:05:32 +0000 (17:05 +0000)
commitf65daf54a4ab24be9e2c82236a511cedc3bdf230
tree293d16c3e15904a3f7474769c8ced4acbb7222fc
parent1e240a189cfc4a02d9072241fdf30adbc8c1539b
Adding query APIs for AppIntents

In this patch the following tasks where performed:
1. Added APIs for query Intents for each App
in the compositeApp. For example, you can see all
intents of collectd or prometheus seperately if
both formed a compositeApp Collection.

2. Added 'provider-name' parameter to denote the cluster
objects used in all intents. Earlier we had only
clusterName and clusterlabel to denote a cluster.
Modified the tests also for this.

3. Fixed bugs in the plugin_collection_v2.sh.

4. Fixed some minor logging and formatting bugs.

Issue-ID: MULTICLOUD-1048
Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com>
Change-Id: Ic452d7ba5d98bb265eb301de84d679d1abe0e34e
12 files changed:
kud/tests/plugin_collection_v2.sh
src/orchestrator/api/api.go
src/orchestrator/api/app_intent_handler.go
src/orchestrator/api/app_profilehandler.go
src/orchestrator/pkg/appcontext/appcontext_test.go
src/orchestrator/pkg/infra/db/mongo.go
src/orchestrator/pkg/infra/db/store.go
src/orchestrator/pkg/infra/validation/validation.go
src/orchestrator/pkg/module/add_intents.go
src/orchestrator/pkg/module/app_intent.go
src/orchestrator/pkg/module/app_intent_test.go
src/orchestrator/pkg/module/app_profile.go