diff options
Diffstat (limited to 'blueprints-processor/plugin/assignment-provider/src/test/resources/mapping/db/db-array.json')
-rw-r--r-- | blueprints-processor/plugin/assignment-provider/src/test/resources/mapping/db/db-array.json | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/blueprints-processor/plugin/assignment-provider/src/test/resources/mapping/db/db-array.json b/blueprints-processor/plugin/assignment-provider/src/test/resources/mapping/db/db-array.json new file mode 100644 index 000000000..bab783544 --- /dev/null +++ b/blueprints-processor/plugin/assignment-provider/src/test/resources/mapping/db/db-array.json @@ -0,0 +1,40 @@ +{
+ "locations": {
+ "name": "locations",
+ "property": {
+ "type": "list",
+ "entry_schema": {
+ "type": "dt-location"
+ }
+ },
+ "sources": {
+ "db": {
+ "type": "source-sdnctl-db",
+ "properties": {
+ "query": "SELECT db-country, db-state FROM DEVICE_PROFILE WHERE profile_name = :profile_name",
+ "input-key-mapping": {
+ "profile_name": "profile_name"
+ },
+ "output-key-mapping": {
+ "db-country": "country",
+ "db-state": "state"
+ },
+ "key-dependencies": [
+ "profile_name"
+ ]
+ }
+ }
+ }
+ },
+ "profile_name": {
+ "name": "profile_name",
+ "property": {
+ "type": "string"
+ },
+ "sources": {
+ "input": {
+ "type": "source-input"
+ }
+ }
+ }
+}
\ No newline at end of file |