OSAM infra seed code - merge with osam-core side-by-side - fixed warnings in onap-enabler POMs

Change-Id: I0cd9ea39d4b7c1dc088ab0ecd6fb787c7f490e5e
Signed-off-by: Aharoni, Pavel (pa0916) <pavel.aharoni@intl.att.com>
diff --git a/onap-enabler-be/src/test/resources/WEB-INF/conf/asdc.properties b/onap-enabler-be/src/test/resources/WEB-INF/conf/asdc.properties
new file mode 100644
index 0000000..970730b
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/WEB-INF/conf/asdc.properties
@@ -0,0 +1,17 @@
+asdc.client.type=REST

+#

+#asdc.client.rest.protocol=http

+#asdc.client.rest.host=135.21.125.36

+#asdc.client.rest.port=8080

+#asdc.client.rest.auth=Basic VklEOnZpbjNSaXBlbmVkSnVtYjBKZXRTcHJpbmtsZXM=

+#

+#dev

+#asdc.client.rest.protocol=http

+#asdc.client.rest.host=135.21.125.105

+#asdc.client.rest.port=8080

+#asdc.client.rest.auth=Basic VGVzdDoxMjM0NTY=

+#IST

+asdc.client.rest.protocol=https

+asdc.client.rest.host=asdcbe.mtsnjpw1.aic.cip.att.com

+asdc.client.rest.port=8443

+asdc.client.rest.auth=Basic dmlkOnZpZGlzdA==

diff --git a/onap-enabler-be/src/test/resources/WEB-INF/conf/quartz.properties b/onap-enabler-be/src/test/resources/WEB-INF/conf/quartz.properties
new file mode 100644
index 0000000..92ab425
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/WEB-INF/conf/quartz.properties
@@ -0,0 +1,36 @@
+#################################################################################

+# Quartz configurations for Quantum Work Flow									#

+#################################################################################

+

+org.quartz.scheduler.instanceId = AUTO

+

+#################################################################################

+# Main configurations

+org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool

+org.quartz.threadPool.threadCount = 30

+

+============================================================================

+# Configure JobStore  

+#============================================================================

+

+org.quartz.jobStore.misfireThreshold = 60000

+

+org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreTX

+org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.StdJDBCDelegate

+org.quartz.jobStore.useProperties = false

+#org.quartz.jobStore.dataSource = myDS

+org.quartz.jobStore.tablePrefix = FN_QZ_

+

+org.quartz.jobStore.isClustered = true

+org.quartz.jobStore.clusterCheckinInterval = 20000

+

+#============================================================================

+# Configure Datasources  

+#============================================================================

+

+org.quartz.dataSource.myDS.driver = org.mariadb.jdbc.Driver

+org.quartz.dataSource.myDS.URL = jdbc:mariadb://localhost:3306/vid_openecomp_epsdk

+org.quartz.dataSource.myDS.user = euser

+org.quartz.dataSource.myDS.password = euser

+org.quartz.dataSource.myDS.maxConnections = 5

+org.quartz.dataSource.myDS.validationQuery=select 0 from dual

diff --git a/onap-enabler-be/src/test/resources/WEB-INF/conf/raptor.properties b/onap-enabler-be/src/test/resources/WEB-INF/conf/raptor.properties
new file mode 100644
index 0000000..d0d01fd
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/WEB-INF/conf/raptor.properties
@@ -0,0 +1,168 @@
+##C## Mention the name of the framework. At present RAPTOR supports FUSION

+system=fusion

+##C## Determines the priority for the debug message.

+debug_level=5

+##C## Determines the number of records can be downloaded in excel when you select "download all" option.

+download_limit=65000

+csv_download_limit=10

+##C## Determines the number of records to be displayed in a single page.

+default_page_size=50

+##C## Determines the list size in the form field.

+form_fields_list_size=99000

+##C## Determines the scheduler interval

+#scheduler_interval=0 => disabled

+scheduler_interval=0

+##C## System Name

+system_name=RAPTOR

+##C## This is used for Bread crumbs.

+base_title=ANALYSIS

+##C## whether to allow SQL-based report definition (security risk); super users are always allowed to create SQL-based reports

+allow_sql_based_reports=yes

+##C## Determines whether to include disclaimer page at the bottom of each screen

+show_disclaimer=yes

+disclaimer_positioned_top_in_csvexcel=yes

+##C## Determines whether to display the form page as a separate page before running the report

+display_form_before_run=yes

+##C## Determines whether to include the form page on the report data page

+include_form_with_data=yes

+##C## Determines whether to cache chart data in the session => faster re-display if the data volume does not get too large

+cache_chart_data=yes

+##C## Determines whether to cache report data for the currently displayed page in the session => faster re-display

+	##C## if the data volume does not get too large

+cache_cur_page_data=yes

+##C## Determines Chart width

+default_chart_width=700

+##C## Determines Chart height

+default_chart_height=420

+##C## Determines whether to permit report deletion only by report owner or by everyone with "write" access

+delete_only_by_owner=no

+##C## Determines whether to log each report execution and update time and user ID

+enable_report_log=yes

+##C## Determines whether to cache user roles info in memory (saves many DB reads, but does not account for roles

+	##C## assigned after the cache was loaded)

+cache_user_roles=yes

+##C## Determines whether to convert month formats (e.g. MM/YYYY) to the last day of the month (true) or

+        ##C## first day (false) - like 12/2003 is converted to either 12/31/2003 or 12/01/2003

+month_format_use_last_day=no

+##C## Determines whether to print the report title in the download files

+print_title_in_download=yes

+##C## Determines whether to show report description when the report is run and in the quick links

+show_descr_at_runtime=no

+##C## Determines whether to skip labels on the Line chart axis when they overlap

+#DEPRECATED skip_chart_labels_to_fit=no

+##C## Determines whether to show chart types that are purpose and/or data specific

+show_nonstandard_charts=yes

+##C## Determines whether to allow the user to change the chart type at runtime

+allow_runtime_chart_sel=yes

+##C## Determines whether to display the report title as chart title as well

+display_chart_title=yes

+##C## Determines whether to merge/blank multi-level row headings in cross-tab report

+merge_crosstab_row_headings=yes

+##C## Determines whether to display chart when displaying the report at first or just a "Show Chart" button

+display_chart_by_default=yes

+##C## Determines whether to print the form field values in the download files

+print_params_in_download=yes

+##C## Determines the limitation to the characters in chart label.

+skip_chart_labels_limit=30

+##C## Determines whether to users with read-only rights for a report can copy it

+can_copy_on_read_only=yes

+##C## Determines the no of decimals to be displayed in Totals column

+#max_decimals_on_totals=-1 => don't truncate, display all decimal digits

+max_decimals_on_totals=2

+##C## Determines which JFreeChart to use.

+jfree_version=latest

+#jfree_version=0.9.11

+# Added this restriction so that heavily used system which contain

+# more than 1000 users can enable this feature not to display whole

+# users in the drop down menu

+display_all_users=yes

+##Sheet name

+sheet_name=raptor

+#shell_script_name=/home/sundar/test.sh

+#download_query_folder=/titan/PROJECT3/RAPTOR/raptor/dwnld/query/

+## this directory is mentioned if the flat file is downloaded using shell script

+shell_script_dir=/titan/PROJECT3/RAPTOR/raptor/dwnld/

+flat_file_lower_limit=1

+flat_file_upper_limit=200000

+## whatever request mentioned here would be parsed in sql and request parameter would be filled

+request_get_params=isEmbedded

+print_footer_in_download=yes

+## footer mentioned here appears in downloaded excel

+footer_first_line=AT&T Proprietary

+footer_second_line=Use Pursuant to Company Instructions

+## to run report in popup window

+report_in_popup_window=yes

+## to run each report in new popup window if the above is selected

+popup_in_new_window=yes

+## "Yes" allows the request param to be passed to the drill down report

+pass_request_param_in_drilldown=yes

+## Show PDF download icon

+show_pdf_download=yes

+# Show Folder Tree

+show_folder_tree=no

+#Show folder tree only for Admin Users

+show_folder_tree_only_to_admin_users=no

+#folder tree should be minimized

+folder_tree_minimized=yes

+## whatever session mentioned here would be parsed in sql and session parameter would be filled

+session_params=login_id

+display_formfield_info=yes

+customize_formfield_info=yes

+#schedule limit for end users

+schedule_limit=10

+# customized query if you need any restrictions for schedule and security tab for fusion

+#schedule_custom_query_for_users=getAllUsersByCustomer

+#schedule_custom_query_for_roles=getAllRolesByCustomer

+# customized query if you need any restrictions for schedule and security tab for prisms example

+#schedule_custom_query_for_users=SELECT au.user_id, au.first_name||' '||au.last_name user_name FROM app_user au order by 2

+schedule_custom_query_for_users=SELECT au.user_id id, au.first_name||' '||au.last_name name FROM app_user au where user_id = 1 order by 2

+#schedule_custom_query_for_roles=SELECT ar.role_id, ar.descr role_name FROM app_role ar order by 2

+schedule_date_pattern=MM/dd/yyyy hh:mm:ss a

+## This is used to display in right format in chart timestamp axis as we give in the sql

+#chart_yearly_format=yyyy

+#chart_monthly_format=MMM-yyyy

+chart_daily_format=MM/dd/yyyy

+chart_hourly_format=MM/dd HH

+#chart_minute_format=HH:mm

+chart_minute_format=MM-dd-yyyy-HH:mm

+#chart_second_format=HH:mm:ss

+chart_second_format=MM-dd-yyyy

+#chart_millisecond_format=HH:mm:ss.S

+schedule_help_text=This form is used to schedule a specific Reporting Platform report to be delivered to one or more email addresses associated with your Company's Business Direct user logins.  Note that report output delivered via email does not include the capability to drill down/back up to additional data levels.  So, select the appropriate data level report for the scheduled report.  View the status of scheduled report requests in the My Schedules menu item.

+use_loginid_in_schedYN=Y

+session_params_for_scheduling=login_id

+session_date_formfield_auto_incr=yes

+display_session_param_pdfexcel=login_id;Login Id

+session_params_for_displaying_in_scheduling=login_id;Login Id

+application_server=tomcat

+#gmap properties

+gmap_key=ABQIAAAAToJSSetKBMjBJx8MiRw4ghQiU0SbbKnm8C5eu25cpyLwgkLzyRShrQTbgZtqnKAqZU9JwcSq1bKwiA

+PROJECT-FOLDER=/Users/sundar/git/st_quantum/quantum/target/quantum-1.0

+# 

+MARKET-SHAPEFILE-FOLDER=resources/files

+# output folder for files generated on server side

+OUTPUT-FOLDER=resources/temp

+# tile size in pixel

+TILE-SIZE=256

+#check if map is disabled or not

+map_allowed=Y

+max_drilldown_level=2

+admin_role_equiv_to_super_role=N

+show_loading_during_formfield_chain=Y

+show_print_icon=N

+globally_nowrap=N

+calendar_output_date_format=MM/dd/yyyy

+memory_threshold_percentage=99

+print_params_in_csv_download=yes

+notitle_in_dashboard=yes

+generate_store_sched_reports=yes

+show_excel_2007_download=yes

+print_excel_in_landscape=yes

+show_animated_chart_option=yes

+show_animated_chart_only=no

+adjust_content_based_on_height=yes

+custom_submit_button_text=Run Button

+customize_formfield_layout=yes

+#db_type=postgresql

+#db_type=oracle

+db_type=mysql

diff --git a/onap-enabler-be/src/test/resources/WEB-INF/conf/raptor_app_fusion.properties b/onap-enabler-be/src/test/resources/WEB-INF/conf/raptor_app_fusion.properties
new file mode 100644
index 0000000..2c65ad8
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/WEB-INF/conf/raptor_app_fusion.properties
@@ -0,0 +1,20 @@
+temp_folder_path=/demeter/WebApps/dev/ECOMP_PORTAL/temp/

+upload_folder_path=/demeter/WebApps/dev/ECOMP_PORTAL/files/

+excel_template_path=/demeter/WebApps/dev/ECOMP_PORTAL/files/raptor_template/

+temp_folder_url=temp/

+upload_folder_url=upload/

+smtp_server=zeus.homer.att.com

+default_email_sender=dev-local@homer.att.com

+error_page=error_page.jsp

+jsp_context_path=raptor/

+img_folder_url=static/fusion/raptor/images/

+base_folder_url=static/fusion/raptor/

+direct_access_url=http://localhost:8080/quantum/raptor_email_attachment.htm?action=raptor&source_page=report_run&display_content=y

+#base_action_url=report.htm#/report_run/

+drill_action_url=report.htm#/report_run/c_master=

+base_action_url=report_wizard.htm?action=

+base_action_url_ng=report#/

+base_action_param=c_master=

+super_role_id=1

+admin_role_ids=1

+quick_links_menu_ids=HOME,CUSTOMER,REPORTS

diff --git a/onap-enabler-be/src/test/resources/WEB-INF/conf/raptor_db_fusion.properties b/onap-enabler-be/src/test/resources/WEB-INF/conf/raptor_db_fusion.properties
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/WEB-INF/conf/raptor_db_fusion.properties
diff --git a/onap-enabler-be/src/test/resources/WEB-INF/conf/raptor_pdf.properties b/onap-enabler-be/src/test/resources/WEB-INF/conf/raptor_pdf.properties
new file mode 100644
index 0000000..ffb42a7
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/WEB-INF/conf/raptor_pdf.properties
@@ -0,0 +1,30 @@
+## pdf file specific properties

+pdf_data_font_size=9

+pdf_data_font_family=Arial

+#reduce the font size from html config

+pdf_data_font_size_offset=2

+pdf_data_alternate_color=true

+#data row background(white), alternate(light light blue/gray)

+pdf_data_background_alternate_hex_code=#EDEDED

+pdf_data_default_background_hex_code=#FFFFFF

+#header font (white)  background (gray)

+pdf_data_table_header_font_hex_code=#FFFFFF

+pdf_data_table_header_background_hex_code=#8A9BB3

+#footer header

+pdf_footer_font_size=9

+pdf_footer_font_family=Arial

+pdf_att_proprietary=AT&T Proprietary\nUse Pursuant to Company Instructions

+pdf_att_proprierary_font_size=7

+pdf_date_timezone=GMT

+pdf_date_pattern=MM/dd/yyyy hh:mm:ss a

+##page number position at 1 - footer middle, 0 -- header right, 2 - both

+pdf_page_number_position=1

+pdf_word_before_page_number=Page

+pdf_word_after_page_number=

+pdf_coverpage_firstcolumn_size=0.3

+pdf_image_auto_rotate=false

+display_create_owner_info=true

+#session_info=customer,customerId

+display_loginid_for_downloaded_by=false

+# please use false if you want landscape to be default.

+is_default_orientation_portrait=true

diff --git a/onap-enabler-be/src/test/resources/WEB-INF/conf/sql.properties b/onap-enabler-be/src/test/resources/WEB-INF/conf/sql.properties
new file mode 100644
index 0000000..e0f89f0
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/WEB-INF/conf/sql.properties
@@ -0,0 +1,303 @@
+#SQL Statements for PostgreSQL

+

+#ReportLoader.java

+

+load.custom.report.xml = SELECT cr.report_xml FROM cr_report cr WHERE rep_id=?

+

+# need to copy to oracle

+load.remoteDB.schema = SELECT 'local' SCHEMA_ID, 'local' SCHEMA_DESC, null DATASOURCE_TYPE  FROM dual union SELECT a.SCHEMA_ID, a.SCHEMA_DESC, DATASOURCE_TYPE  FROM SCHEMA_INFO a  where schema_id <> 'local' order by schema_id

+load.remoteDB.schema.where = SELECT a.SCHEMA_ID, a.SCHEMA_DESC, DATASOURCE_TYPE  FROM SCHEMA_INFO a where schema_id = '[schema_id]'

+#formfield rendering

+

+formfield.id.name.sql.prefix=SELECT id, name FROM (

+formfield.id.name.sql=SELECT id, name

+

+formfield.id.name.sql.suffix=

+

+report.security.create= SELECT coalesce(cr.owner_id, cr.create_id) AS owner_id, cr.create_id,  DATE_FORMAT(cr.create_date, '%m/%d/%Y') create_date, maint_id,  DATE_FORMAT(cr.maint_date, '%m/%d/%Y')  update_date, cr.public_yn FROM cr_report cr WHERE cr.rep_id = [rw.getReportID()]

+

+db.update.report.xml = SELECT cr.rep_id, cr.report_xml FROM cr_report cr WHERE rep_id=? FOR UPDATE

+

+update.custom.report.rec = UPDATE cr_report SET title='[Utils.oracleSafe(rw.getReportName())]', descr='[Utils.oracleSafe(rw.getReportDescr())]', public_yn='[(rw.isPublic()]', menu_id='[rw.getMenuID()]', menu_approved_yn='[(rw.isMenuApproved()]', owner_id=[rw.getOwnerID()], maint_id=[rw.getUpdateID()], maint_date=STR_TO_DATE('[rw.getUpdateDate()]', '[Globals.getOracleTimeFormat()]'), dashboard_type_yn='[(rw.isDashboardType()]', dashboard_yn= '[(rw.getReportType().equals(AppConstants.RT_DASHBOARD)]' WHERE rep_id = [rw.getReportID()]

+

+is.report.already.scheduled = select rep_id from cr_report_schedule where rep_id = ?

+

+create.custom.report.rec = INSERT INTO cr_report(rep_id, title, descr, public_yn, menu_id, menu_approved_yn, report_xml, owner_id, create_id, create_date, maint_id, maint_date, dashboard_type_yn, dashboard_yn, folder_id) VALUES([rw.getReportID()], '[Utils.oracleSafe(rw.getReportName())]', '[Utils.oracleSafe(rw.getReportDescr())]', '[rw.isPublic()]', '[rw.getMenuID()]', '[rw.isMenuApproved()]', '<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>', [rw.getOwnerID()], [rw.getCreateID()], STR_TO_DATE('[rw.getCreateDate()]', '[Globals.getOracleTimeFormat()]'), [rw.getUpdateID()], STR_TO_DATE('[rw.getUpdateDate()]', '[Globals.getOracleTimeFormat()]'), '[rw.isDashboardType()]', '[rw.getReportType().equals(AppConstants.RT_DASHBOARD)]',[rw.getFolderId()]) 

+

+get.user.report.names = SELECT cr.rep_id, cr.title FROM cr_report cr WHERE coalesce(cr.owner_id, cr.create_id) = [userID]							

+								

+get.report.owner.id = SELECT coalesce(cr.owner_id, cr.create_id) AS owner FROM cr_report cr WHERE rep_id = ?						

+

+delete.report.record.log = DELETE FROM cr_report_log WHERE rep_id = [reportID]

+

+delete.report.record.users = DELETE FROM cr_report_schedule_users WHERE rep_id = [reportID]

+

+delete.report.record.schedule = DELETE FROM cr_report_schedule WHERE rep_id = [reportID]

+

+delete.report.record.access = DELETE FROM cr_report_access WHERE rep_id = [reportID]

+

+delete.report.record.email = DELETE FROM cr_report_email_sent_log WHERE rep_id = [reportID]

+

+delete.report.record.favorite = DELETE FROM cr_favorite_reports WHERE rep_id = [reportID]

+

+delete.report.record.report = DELETE FROM cr_report WHERE rep_id = [reportID]

+																						

+load.quick.links =  select finalcr.rep_id, finalcr.title, finalcr.descr from (SELECT cr.rep_id, cr.title, cr.descr FROM (SELECT rep_id, MIN(read_only_yn) read_only_yn FROM ((SELECT ua.rep_id, ua.read_only_yn FROM cr_report_access ua WHERE ua.user_id = [userID]) UNION ALL (SELECT ra.rep_id, ra.read_only_yn FROM cr_report_access ra WHERE ra.role_id IN ([roleList.toString()]))) report_access GROUP BY rep_id) ra LEFT JOIN cr_report cr ON cr.rep_id = ra.rep_id WHERE cr.menu_id LIKE '%[nvls(menuId)]%' AND cr.menu_approved_yn = 'Y' AND (coalesce(cr.owner_id, cr.create_id) = [userID] OR cr.public_yn = 'Y' OR ra.read_only_yn IS NOT NULL) UNION SELECT cr.rep_id, cr.title, cr.descr FROM cr_report cr WHERE cr.menu_id LIKE '%[nvls(menuId)]%' AND (coalesce(cr.owner_id, cr.create_id) = [userID] OR cr.public_yn = 'Y' or EXISTS (select * from fn_user_role where user_id=[userID] and role_id in (1)))) finalcr ORDER BY finalcr.title

+

+load.folder.reports = SELECT cr.rep_id, cr.rep_id report_id, concat([rep_title_sql] , (CASE WHEN cr.public_yn = 'Y' THEN '' ELSE '[PRIVATE_ICON]' END),cr.title,'</a>') title, cr.descr, concat(au.first_name,' ',au.last_name) owner_name, DATE_FORMAT(cr.create_date, '%m/%d/%Y') create_date, CASE WHEN coalesce(cr.owner_id, cr.create_id) = [userID] THEN 'N' ELSE coalesce(ra.read_only_yn, 'Y') END read_only_yn, CASE WHEN coalesce(cr.owner_id, cr.create_id) = [userID] THEN 'Y' ELSE 'N' END user_is_owner_yn FROM cr_report cr JOIN app_user au ON coalesce(cr.owner_id, cr.create_id) = au.user_id AND cr.folder_id= '[folderId]' LEFT JOIN (SELECT rep_id, MIN(read_only_yn) read_only_yn FROM ((SELECT ua.rep_id, ua.read_only_yn FROM cr_report_access ua WHERE ua.user_id = [userID]) UNION ALL(SELECT ra.rep_id, ra.read_only_yn FROM cr_report_access ra WHERE ra.role_id IN ([roleList.toString()]))) report_access GROUP BY rep_id) ra ON cr.rep_id = ra.rep_id

+#If roleList.toString() is '' PostgreSQL returns an error - needs to be null instead of empty

+

+load.folder.reports.user = AND coalesce(cr.owner_id, cr.create_id) = [userID]	

+

+load.folder.reports.publicsql = AND (coalesce(cr.owner_id, cr.create_id) = [userID] OR cr.public_yn = 'Y' OR ra.read_only_yn IS NOT NULL)

+

+load.quick.download.links = SELECT a.file_name, b.title,DATE_FORMAT(a.dwnld_start_time, '%W %d-%m-%Y %H:%i:%s') as time, a.dwnld_start_time FROM cr_report_dwnld_log a, cr_report b where a.user_id = [userID] and a.rep_id = b.rep_id and (a.dwnld_start_time) >= STR_TO_DATE(DATE_FORMAT(now() -  INTERVAL 1 DAY, '%m/%d/%Y'), '%m/%d/%Y') and a.record_ready_time is not null order by a.dwnld_start_time

+

+load.reports.to.schedule = SELECT cr.rep_id, Initcap(cr.title), cr.descr FROM cr_report cr LEFT OUTER JOIN (SELECT rep_id, MIN(read_only_yn) read_only_yn FROM ((SELECT ua.rep_id, ua.read_only_yn FROM cr_report_access ua WHERE ua.user_id = [userID]) UNION ALL (SELECT ra.rep_id, ra.read_only_yn FROM cr_report_access ra WHERE ra.role_id IN ([roleList.toString()]))) report_access GROUP BY rep_id) ra ON cr.rep_id = ra.rep_id AND (cr.public_yn = 'Y' OR ra.read_only_yn IS NOT NULL or cr.owner_id = [userID] )ORDER BY Initcap(cr.title)

+		

+load.reports.to.add.in.dashboard = SELECT cr.rep_id, cr.title, cr.descr FROM cr_report cr LEFT OUTER JOIN (SELECT rep_id, MIN(read_only_yn) read_only_yn FROM ((SELECT ua.rep_id, ua.read_only_yn FROM cr_report_access ua WHERE ua.user_id = [userID]) UNION ALL (SELECT ra.rep_id, ra.read_only_yn FROM cr_report_access ra WHERE ra.role_id IN ([roleList.toString()]))) report_access GROUP BY rep_id) ra ON cr.rep_id = ra.rep_id AND (coalesce(cr.owner_id, cr.create_id) = [userID] OR cr.public_yn = 'Y' OR ra.read_only_yn IS NOT NULL) AND (cr.dashboard_yn = 'N' or cr.dashboard_yn is null) ORDER BY cr.title

+

+load.my.recent.links = select rep_id, title, descr, form_fields from ( select rep_id, title, descr, form_fields from  (select cr.rep_id, cr.title, a.form_fields,  cr.descr, a.log_time, a.user_id, a.action, a.action_value from cr_report_log a, cr_report cr where user_id = [userID] AND action = 'Report Execution Time' and a.rep_id = cr.rep_id order by log_time desc) AS x) AS y where LIMIT 1, 6

+

+create.report.log.entry = INSERT INTO cr_report_log (rep_id, log_time, user_id, action, action_value, form_fields) VALUES([reportID], now(), [userID], '[action]' , '[executionTime]', '[form_fields]')

+

+create.report.log.entry.exec.time = INSERT INTO cr_report_log (rep_id, log_time, user_id, action, action_value, form_fields) VALUES([reportID], NOW() + INTERVAL 1 SECOND, [userID], '[action]' , '[executionTime]', '[formFields]')

+

+clear.report.log.entries = DELETE FROM cr_report_log WHERE rep_id = ? and user_id = ?

+

+load.report.log.entries = SELECT x.log_time, x.user_id, (CASE WHEN x.action = 'Report Execution Time' THEN  concat('<a href=\"[AppUtils.getRaptorActionURL()]report.run.container&c_master=',x.rep_id,'&',x.form_fields,'&fromReportLog=Y&display_content=Y&noFormFields=Y&refresh=Y\">',x.action,'</a>') ELSE x.action END) action, (CASE WHEN x.action = 'Report Execution Time' THEN  action_value  ELSE 'N/A' END) time_taken, (CASE WHEN x.action = 'Report Execution Time' THEN concat('<a href=\"[AppUtils.getRaptorActionURL()]report.run.container&c_master=',x.rep_id,'&',x.form_fields,'&fromReportLog=Y&display_content=Y&noFormFields=Y&refresh=Y\"><img src=\"[AppUtils.getImgFolderURL()]test_run.gif" width=\"12\" height=\"12\" border=0 alt=\"Run report\"/></a>') ELSE 'N/A' END) run_image, x.name FROM  (SELECT rl.rep_id, DATE_FORMAT(rl.log_time, '%m/%d/%Y %h:%i:%s %p') log_time, rl.action_value, concat(fuser.last_name ,', ',fuser.first_name) name, rl.user_id, rl.action, rl.form_fields FROM cr_report_log rl, fn_user fuser WHERE rl.rep_id = [nvls(reportId)] and rl.action != 'Report Run' and fuser.user_id = rl.user_id ORDER BY rl.log_time DESC) x  LIMIT 100

+

+does.user.can.schedule.report = select crs.sched_user_id, count(*) from cr_report_schedule crs where sched_user_id = [userId] group by crs.sched_user_id having count(*) >= [Globals.getScheduleLimit()]

+

+does.user.can.schedule = select crs.schedule_id from cr_report_schedule crs where schedule_id = [scheduleId]

+

+get.system.date.time = select DATE_FORMAT(now(),'%m/%d/%Y %H:%i:%s')

+

+get.next.day.date.time = select DATE_FORMAT(NOW() + INTERVAL 1 DAY,'%m/%d/%Y %H:%i:%s')

+

+get.next.fifteen.minutes.date.time = select DATE_FORMAT(NOW() + INTERVAL 15 MINUTES,'%m/%d/%Y %H:%i:%s')

+

+get.next.thirty.minutes.date.time = select DATE_FORMAT(NOW() + INTERVAL 30 MINUTES,'%m/%d/%Y %H:%i:%s')

+

+get.template.file = select template_file from cr_report_template_map where report_id = [reportId]

+

+load.pdf.img.lookup = select image_id, image_loc from cr_raptor_pdf_img

+

+load.action.img.lookup = select image_id, image_loc from cr_raptor_action_img

+

+

+#ActionHandler.java

+

+report.values.map.def.a = SELECT x FROM (SELECT DISTINCT 

+

+report.values.map.def.b = TO_CHAR([colName], '[nvl(displayFormat, AppConstants.DEFAULT_DATE_FORMAT)]')

+

+report.values.map.def.c = [colName] 

+

+report.values.map.def.d =  x FROM [rdef.getTableById(tableId).getTableName()] WHERE [colName] IS NOT NULL ORDER BY 1) xx LIMIT <= [Globals.getDefaultPageSize()]

+

+test.sched.cond.popup = SELECT 1 WHERE EXISTS ([sql])

+

+download.all.email.sent = Select user_id, rep_id from CR_REPORT_EMAIL_SENT_LOG where gen_key='[pdfAttachmentKey.trim()]' and log_id =[report_email_sent_log_id.trim()] and (now() - sent_date) < '1 day' limit 1

+

+download.all.gen.key = select schedule_id from cr_report_email_sent_log u where U.GEN_KEY = '[pdfAttachmentKey]'

+

+download.all.retrieve = SELECT au.user_id FROM (SELECT rs.schedule_id, rs.rep_id FROM cr_report_schedule rs WHERE rs.enabled_yn='Y' AND rs.run_date IS NOT NULL  AND rs.schedule_id = [scheduleId]) x, cr_report r, app_user au WHERE x.rep_id = r.rep_id  AND au.user_id IN (SELECT rsu.user_id FROM cr_report_schedule_users rsu WHERE rsu.schedule_id = x.schedule_id and rsu.schedule_id = [scheduleId]  UNION SELECT ur.user_id FROM fn_user_role ur WHERE ur.role_id IN (SELECT rsu2.role_id FROM cr_report_schedule_users rsu2 WHERE rsu2.schedule_id = x.schedule_id and  rsu2.schedule_id = [scheduleId]))

+

+download.all.insert = insert into cr_report_dwnld_log (user_id,rep_id,file_name,dwnld_start_time,filter_params) values (?,?,?,?,?)

+

+#ReportWrapper.java

+

+report.wrapper.format = SELECT coalesce(cr.owner_id, cr.create_id) owner_id, cr.create_id, DATE_FORMAT(cr.create_date, '[Globals.getOracleTimeFormat()]') create_date, maint_id, DATE_FORMAT(cr.maint_date, '[Globals.getOracleTimeFormat()]') update_date, cr.menu_id, cr.menu_approved_yn FROM cr_report cr WHERE cr.rep_id= [reportID]

+

+generate.subset.sql = SELECT [colNames.toString()] FROM (SELECT  [colNames.toString()] FROM ([reportSQL]) AS x ) AS y 

+

+report.sql.only.first.part = SELECT [colNames.toString()] FROM (SELECT [colNames.toString()] FROM (

+

+report.sql.only.second.part.a = [startRow] 

+

+report.sql.only.second.part.b = [pageSize]

+#MYSQL: LIMIT [startRow], [pageSize]

+#ORacle: rownum >= [startRow] and rownum <= ([startRow]+[pageSize])

+#Postgre: limit [pageSize] offset [startRow] 

+

+report.sql.only.second.part.b.noorderby =  LIMIT [startRow]

+

+generate.sql.visual.select = SELECT

+

+generate.sql.visual.count = COUNT(*) cnt

+

+generate.sql.visual.dual = 

+#No DUAL table in PostgreSQL so this is blank

+

+#ReportRuntime.java

+

+load.crosstab.report.data = SELECT  [colNames.toString()] FROM ( [reportSQL] 

+

+#RaptorRunHandler.java

+

+generate.sql.handler = SELECT  x.* from ([sql]) AS x LIMIT 2

+

+generate.sql.select = SELECT [colNames.toString()] FROM (SELECT  [colNames.toString()] FROM ([sql]) AS y) AS x 

+			

+#ReportSchedule.java

+

+load.schedule.data = SELECT rs.enabled_yn, DATE_FORMAT(rs.start_date, '%m/%d/%Y') start_date, DATE_FORMAT(rs.end_date, '%m/%d/%Y') end_date, DATE_FORMAT(rs.run_date, '%m/%d/%Y') run_date, coalesce(DATE_FORMAT(rs.run_date, '%h'), '12') run_hour, coalesce(DATE_FORMAT(rs.run_date, '%i'), '00') run_min, coalesce(DATE_FORMAT(rs.run_date, '%p'), 'AM') run_ampm, rs.recurrence, rs.conditional_yn, rs.notify_type, rs.max_row, rs.initial_formfields, rs.schedule_id, coalesce(DATE_FORMAT(rs.end_date, '%h'), '11') end_hour, coalesce(DATE_FORMAT(rs.end_date, '%i'), '45') end_min, coalesce(DATE_FORMAT(rs.end_date, '%p'), 'PM') end_ampm, encrypt_yn, attachment_yn FROM cr_report_schedule rs WHERE rs.rep_id = [reportID]

+

+load.schedule.getid = SELECT rsu.user_id, concat(fuser.last_name,', ',fuser.first_name), fuser.login_id FROM cr_report_schedule_users rsu, fn_user fuser WHERE rsu.rep_id = [reportID]  AND rsu.schedule_id = [getScheduleID()] and rsu.user_id IS NOT NULL and rsu.user_id = fuser.user_id

+

+load.schedule.users = SELECT rsu.role_id FROM cr_report_schedule_users rsu WHERE rsu.rep_id = [reportID] AND rsu.schedule_id = [getScheduleID()] AND rsu.role_id IS NOT NULL

+

+new.schedule.data = select coalesce(max(schedule_id),0)+1  AS sequence from cr_report_schedule

+

+new.report.data = select coalesce(max(rep_id),0)+1  AS rep_id from cr_report

+

+execute.update = DELETE FROM cr_report_schedule_users WHERE rep_id = [reportID] and schedule_id = [getScheduleID()]

+

+execute.update.users = INSERT INTO cr_report_schedule_users (schedule_id, rep_id, user_id, role_id, order_no) VALUES([getScheduleID()], [reportID], [emailToUsers.get(i)).getId()], NULL, [(i + 1)])

+

+execute.update.roles = INSERT INTO cr_report_schedule_users (schedule_id, rep_id, user_id, role_id, order_no) VALUES([getScheduleID()], [reportID], NULL, [emailToRoles.get(i)).getId()], [((emailToUsers.size() + i + 1)])

+

+execute.update.activity = INSERT into cr_schedule_activity_log (schedule_id, notes, run_time) values ([getScheduleID()],'Submitted:Schedule',TO_DATE('[getRunDate()] [getRunHour()]:[getRunMin()] [getRunAMPM()]', 'MM/DD/YYYY HH:MI AM'))

+ 

+delete.schedule.data = SELECT 1 FROM cr_report_schedule WHERE rep_id = [reportID] and sched_user_id = [getScheduleUserID()] and schedule_id = [getScheduleID()]

+ 

+delete.schedule.data.users = DELETE FROM cr_report_schedule_users WHERE rep_id = [reportID]  and schedule_id = [getScheduleID()]

+ 

+delete.schedule.data.id = DELETE FROM cr_report_schedule where rep_id = [reportID] and sched_user_id = [getScheduleUserID()] and schedule_id = [getScheduleID()]

+

+load.cond.sql = SELECT condition_large_sql FROM cr_report_schedule WHERE schedule_id=?

+

+load.cond.sql.select = SELECT condition_sql FROM cr_report_schedule WHERE schedule_id = [scheduleId]

+

+persist.cond.sql.update = update cr_report_schedule set condition_large_sql = '' where  schedule_id = [scheduleId]

+#EMPTY CLOB() changed to ''

+

+persist.cond.sql.large = SELECT condition_large_sql FROM cr_report_schedule cr WHERE schedule_id=? FOR UPDATE

+

+persist.cond.sql.set = update cr_report_schedule set condition_sql = ? where schedule_id = [scheduleId]

+

+#DataCache.java

+

+get.data.view.actions = SELECT ts.web_view_action FROM cr_table_source ts WHERE ts.web_view_action IS NOT NULL

+

+get.public.report.id.names = SELECT rep_id, title FROM cr_report WHERE public_yn = 'Y' ORDER BY title

+

+get.private.accessible.names.a = SELECT cr.rep_id, cr.title FROM cr_report cr WHERE cr.rep_id not in (select rep_id from cr_report_access cra where user_id =  '[user_id]' 

+

+get.private.accessible.names.if =  OR role_id in (

+

+get.private.accessible.names.b =  ) AND public_yn = 'N' and cr.owner_id = '[user_id]' order by 2 

+

+get.group.accessible.names.a = SELECT cr.rep_id, cr.title FROM cr_report cr  WHERE cr.rep_id  in (select rep_id from cr_report_access cra where user_id =  '[user_id]'

+

+get.group.accessible.names.b =  )  AND public_yn = 'N' order by 2 

+

+get.report.table.sources.a = SELECT table_name, display_name, pk_fields, web_view_action, large_data_source_yn, filter_sql FROM cr_table_source 

+

+get.report.table.sources.where =  where SOURCE_DB= '[dBInfo]'

+

+get.report.table.sources.if =  where SOURCE_DB is null or SOURCE_DB = '[AppConstants.DB_LOCAL]'

+

+get.report.table.sources.else =  ORDER BY table_name

+

+grab.report.table.a = SELECT ts.table_name, ts.display_name, ts.pk_fields, ts.web_view_action, ts.large_data_source_yn, ts.filter_sql FROM cr_table_source ts  WHERE 

+

+grab.report.table.if = ts.SOURCE_DB= '[dBInfo]'

+

+grab.report.table.else = (ts.SOURCE_DB is null or ts.SOURCE_DB = '[AppConstants.DB_LOCAL]')

+

+grab.report.table.b =  except SELECT ts.table_name, ts.display_name, ts.pk_fields,  ts.web_view_action,  ts.large_data_source_yn, ts.filter_sql from cr_table_source ts where table_name in (select table_name from  cr_table_role where role_id not IN [sb.toString()]) and 

+

+grab.report.table.c =  ORDER BY 1 

+

+get.report.table.crjoin = SELECT src_table_name, dest_table_name, join_expr FROM cr_table_join

+

+get.report.table.joins = SELECT tj.src_table_name, tj.dest_table_name, tj.join_expr FROM cr_table_join tj WHERE ((EXISTS (SELECT 1 FROM cr_table_role trs WHERE trs.table_name=tj.src_table_name AND trs.role_id IN [sb.toString()])) OR (NOT EXISTS (SELECT 1 FROM cr_table_role trs WHERE trs.table_name=tj.src_table_name))) AND ((EXISTS (SELECT 1 FROM cr_table_role trd WHERE trd.table_name=tj.dest_table_name AND trd.role_id IN [sb.toString()])) OR (NOT EXISTS (SELECT 1 FROM cr_table_role trd WHERE trd.table_name=tj.dest_table_name)))

+

+generate.report.table.col = SELECT a.table_name, a.column_name, a.data_type, a.label FROM user_column_def a WHERE a.table_name = '[tableName.toUpperCase()]' ORDER BY a.column_id

+

+generate.db.user.sql.a = SELECT utc.table_name, utc.column_name, utc.data_type, 

+

+generate.db.user.sql.if = utc.column_name FROM user_tab_columns utc 

+

+generate.db.user.sql.else = coalesce(x.label, utc.column_name) FROM user_tab_columns utc 

+

+generate.db.user.sql.b = WHERE utc.table_name = '[tableName.toUpperCase()]' 

+

+generate.db.user.sql.c = AND utc.table_name = x.table_name AND utc.column_name = x.column_name 

+

+generate.db.user.sql.d = ORDER BY utc.column_id 

+

+#SearchHandler.java

+

+load.report.search.result = SELECT cr.rep_id, cr.rep_id report_id, [rep_title_sql] title, cr.descr, concat(au.first_name,' ',au.last_name) owner_name, DATE_FORMAT(cr.create_date, '%m/%d/%Y') create_date, CASE WHEN coalesce(cr.owner_id, cr.create_id) = [userID] THEN 'N' ELSE coalesce(ra.read_only_yn, 'Y') END read_only_yn, CASE WHEN coalesce(cr.owner_id, cr.create_id) = [userID] THEN 'Y' ELSE 'N' END user_is_owner_yn, case when report_xml like '%<allowSchedule>N</allowSchedule>%' then 'N' when report_xml like '%<allowSchedule>Y</allowSchedule>%' or 1 = (select distinct 1 from cr_report_schedule where rep_id = cr.rep_id) then 'Y' else 'N' end FROM cr_report cr JOIN fn_user au ON coalesce (cr.owner_id, cr.create_id) = au.user_id [fReportID] [fReportName] LEFT JOIN(SELECT rep_id, MIN(read_only_yn) read_only_yn FROM ((SELECT ua.rep_id, ua.read_only_yn FROM cr_report_access ua WHERE ua.user_id = [userID]) UNION ALL (SELECT ra.rep_id, ra.read_only_yn FROM cr_report_access ra WHERE ra.role_id IN ([roleList.toString()]))) report_access GROUP BY rep_id) ra ON ra.rep_id = cr.rep_id

+

+load.report.search.instr = WHERE cr.menu_id LIKE '%[menuId]%'

+

+load.report.search.result.user = WHERE coalesce(cr.owner_id, cr.create_id) = [userID]

+

+load.report.search.result.public = WHERE (coalesce(cr.owner_id, cr.create_id) = [userID] OR cr.public_yn = 'Y' OR ra.read_only_yn IS NOT NULL)

+

+load.report.search.result.fav =  WHERE cr.rep_id in (select rep_id from cr_favorite_reports where user_id = [userID]

+

+load.report.search.result.sort = ORDER BY CASE coalesce(cr.owner_id, cr.create_id) WHEN [userID] THEN ' ' WHEN 'upper(concat(au.first_name,' ',au.last_name))' ELSE 'upper(cr.title)' END

+

+load.folder.report.result = SELECT cr.rep_id, cr.rep_id report_id, concat([rep_title_sql] , (CASE WHEN cr.public_yn = 'Y' THEN '' ELSE '[PRIVATE_ICON]' END),cr.title,'</a>') title, cr.descr, concat(au.first_name,' ',au.last_name) owner_name, TO_CHAR(cr.create_date, 'MM/DD/YYYY') create_date, CASE WHEN coalesce(cr.owner_id, cr.create_id) = [userID] THEN 'N' ELSE coalesce(ra.read_only_yn, 'Y') END read_only_yn, CASE WHEN coalesce(cr.owner_id, cr.create_id) = [userID] THEN 'Y' ELSE 'N' END user_is_owner_yn FROM cr_report cr JOIN fn_user au ON coalesce (cr.owner_id, cr.create_id) = au.user_id AND TO_CHAR(cr.rep_id, 'FM99999999') like coalesce('%[fReportID]%', TO_CHAR(cr.rep_id, 'FM99999999')) AND UPPER(cr.title) LIKE UPPER('%[fReportName]%') LEFT JOIN(SELECT rep_id, MIN(read_only_yn) read_only_yn FROM ((SELECT ua.rep_id, ua.read_only_yn FROM cr_report_access ua WHERE ua.user_id = [userID]) UNION ALL (SELECT ra.rep_id, ra.read_only_yn FROM cr_report_access ra WHERE ra.role_id IN ([roleList.toString()]))) report_access GROUP BY rep_id) ra ON ra.rep_id = cr.rep_id

+

+load.folder.report.result.sort =  ORDER BY CASE coalesce(cr.owner_id, cr.create_id) WHEN [userID] THEN ' ' WHEN '(concat(au.first_name,' ',au.last_name))' ELSE 'cr.title' END

+

+#WizardProcessor.java

+

+process.filter.add.edit = '[argValue]'

+

+#ReportDefinition.java

+

+persist.report.adhoc = SELECT nextval('[Globals.getAdhocReportSequence()]') AS sequence

+

+#Globals.java

+

+initialize.roles = SELECT 1 WHERE EXISTS (SELECT 1 FROM cr_table_role)

+

+initialize.version = SELECT cr_raptor.get_version

+

+# scheduler

+

+

+scheduler.available.schedules = SELECT x.rep_id, x.schedule_id, x.conditional_yn, x.condition_large_sql, x.notify_type, x.max_row, x.initial_formfields, x.processed_formfields, r.title, x.user_id FROM ( SELECT rs.rep_id, rs.schedule_id, rs.sched_user_id user_id, rs.conditional_yn, rs.condition_large_sql, rs.notify_type, rs.max_row, rs.initial_formfields, rs.processed_formfields  FROM cr_report_schedule rs  WHERE rs.enabled_yn='Y'  AND rs.start_date <= [currentDate]  AND  (rs.end_date >= [currentDate] or rs.end_date is null )  AND rs.run_date IS NOT NULL  ) x, cr_report r  WHERE x.rep_id = r.rep_id

+

+random.string = select ( concat('Z' , round(random() * 1000000000000) ) )

+

+

+scheduler.user.emails = SELECT au.user_id FROM (SELECT rs.schedule_id, rs.rep_id FROM cr_report_schedule rs WHERE rs.enabled_yn='Y' AND rs.start_date <= now() AND rs.end_date  >= now() AND rs.run_date IS NOT NULL AND rs.schedule_id = [p_schedule_id] ) x, cr_report r, fn_user au WHERE x.rep_id = r.rep_id AND au.user_id IN (SELECT rsu.user_id FROM cr_report_schedule_users rsu WHERE rsu.schedule_id = x.schedule_id and rsu.schedule_id = [p_schedule_id] UNION SELECT ur.user_id FROM fn_user_role ur WHERE ur.role_id IN (SELECT rsu2.role_id FROM cr_report_schedule_users rsu2 WHERE rsu2.schedule_id = x.schedule_id and rsu2.schedule_id = [p_schedule_id]))  

+

+

+# my logins

+

+app.query = SELECT APP_ID, ML_APP_NAME, MOTS_ID from fn_app

+

+user.log.query = SELECT DISTINCT  IFNULL(SBCID, '') CUID, '' AWID, CONCAT('"',IFNULL(SBCID, ''),'"') APPLICATIONUSERID,  CONCAT('"',IFNULL(FIRST_NAME, ''),'"') FIRST_NAME, CONCAT('"',substr(IFNULL(MIDDLE_NAME, ''), 0, 1),'"') MIDDLE_INITIAL, CONCAT('"',IFNULL(LAST_NAME, ''),'"') LAST_NAME, IFNULL(DATE_FORMAT(LAST_LOGIN_DATE, '%Y/%m/%d'), '') LAST_LOGON_DATE, DATE_FORMAT(CREATED_DATE, '%Y/%m/%d') ACCOUNT_ACTIVATION_DATE, IFNULL(DATE_FORMAT(MODIFIED_DATE, '%Y/%m/%d'), '') LAST_DATE_ACCOUNT_MODIFIED,  '' LAST_PASSWORD_CHANGE_DATE, CONCAT('"',IFNULL(FIRST_NAME, ''),' ',IFNULL(MIDDLE_NAME, ''),' ',IFNULL(LAST_NAME, ''),'"')  FULL_USER_NAME, '' NT_ID, IFNULL(EMAIL, '') EMAIL   FROM FN_USER FU, FN_USER_ROLE FUR WHERE FU.USER_ID \= FUR.USER_ID and FUR.app_id \= ? and ACTIVE_YN \= 'Y' and sbcid is not null order by 1

+

+profile.log.query = SELECT DISTINCT CONCAT('"' , ROLE_NAME , '"') PROFILE_NAME, '""' SECURITY_SETTINGS FROM FN_ROLE FR, FN_USER_ROLE FUR WHERE FUR.ROLE_ID \= FR.ROLE_ID and FR.ACTIVE_YN \= 'Y' and ((FUR.APP_ID \= 1 and FR.ROLE_NAME <> 'Standard User') or (FUR.APP_ID \= ? and FUR.APP_ID <> 1))  ORDER BY 1

+

+user.profile.log.query = SELECT DISTINCT IFNULL(SBCID, '') CUID, '' AWID, CONCAT('"' , IFNULL(SBCID, '') , '"') APPLICATIONUSERID , CONCAT('"' , ROLE_NAME , '"')  PROFILE_NAME  FROM FN_USER A, FN_USER_ROLE B, FN_ROLE C WHERE A.USER_ID \= B.USER_ID AND B.ROLE_ID \= C.ROLE_ID AND A.ACTIVE_YN \= 'Y' AND C.ACTIVE_YN \= 'Y' AND a.sbcid is not null  AND ((B.APP_ID \= 1 and C.ROLE_NAME <> 'Standard User') or (B.APP_ID \= ? and B.APP_ID <> 1)) ORDER BY 1

+

+all.accounts.log.query = SELECT DISTINCT IFNULL(SBCID, '') CUID, (case when A.ACTIVE_YN\='Y' then 'ACTIVE' else 'INACTIVE' end) ACTIVE_YN, CONCAT('"' , IFNULL(SBCID, '') , '"') APPLICATIONUSERID , IFNULL(DATE_FORMAT(LAST_LOGIN_DATE, '%Y/%m/%d'), '') LAST_LOGON_DATE, '' LAST_PASSWORD_CHANGE_DATE, CONCAT('"' , ROLE_NAME , '"')  PROFILE_NAME  FROM FN_USER A, FN_USER_ROLE B, FN_ROLE C WHERE A.USER_ID \= B.USER_ID AND B.ROLE_ID \= C.ROLE_ID AND a.sbcid is not null  AND ((B.APP_ID \= 1 and C.ROLE_NAME <> 'Standard User') or (B.APP_ID \= ? and B.APP_ID <> 1)) ORDER BY 1

+

+# basic sql

+

+seq.next.val = SELECT nextval('[sequenceName]') AS id

+

+current.date = now()

+

+nvl = IFNULL

+

+# report security

+report.user.access = SELECT ra.role_id, ra.user_id, ra.read_only_yn FROM cr_report_access ra WHERE ra.rep_id = [reportID]

+add.user.access = INSERT INTO cr_report_access (rep_id, order_no, role_id, user_id, read_only_yn) VALUES([reportID], IFNULL((select order_no from (SELECT MAX(order_no) AS order_no FROM cr_report_access WHERE rep_id=[reportID]) AS temp), 0)+1, NULL, [userID], '[readOnlyAccess]')

+update.user.access = UPDATE cr_report_access SET read_only_yn='[readOnlyAccess]' WHERE rep_id=[reportID] AND user_id=[userID]

+remove.user.access = DELETE FROM cr_report_access WHERE rep_id=[reportID] AND user_id=[userID]

+add.role.access = INSERT INTO cr_report_access (rep_id, order_no, role_id, user_id, read_only_yn) VALUES([reportID], IFNULL((select order_no from (SELECT MAX(order_no) AS order_no FROM cr_report_access WHERE rep_id=[reportID]) AS temp), 0)+1, [roleID], NULL, '[readOnlyAccess]')

+update.role.access = UPDATE cr_report_access SET read_only_yn='[readOnlyAccess]' WHERE rep_id=[reportID] AND role_id=[roleID]

+remove.role.access = DELETE FROM cr_report_access WHERE rep_id=[reportID] AND role_id=[roleID]

+

diff --git a/onap-enabler-be/src/test/resources/WEB-INF/conf/system.properties b/onap-enabler-be/src/test/resources/WEB-INF/conf/system.properties
new file mode 100644
index 0000000..20ddc0f
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/WEB-INF/conf/system.properties
@@ -0,0 +1,190 @@
+# Properties read by ECOMP Core library, epsdk-core.jar

+

+##########################################################################

+# The following properties should NOT be changed by partner applications.

+##########################################################################

+

+application_user_id           = 30000

+post_default_role_id          = 16

+clustered                     = true

+

+#Enable Fusion Mobile capabilities for the application

+mobile_enable			  	  = false

+

+# Cache config file is needed on the classpath

+cache_config_file_path        = /WEB-INF/classes/cache.ccf

+cache_switch                  = 199

+cache_load_on_startup         = false

+

+user_name					  = fullName

+decryption_key				  = AGLDdG4D04BKm2IxIWEr8o==

+#db.userName=XXXX

+#db.password=XXXX

+#db.connectionURL=jdbc:oracle:thin:@XXXX/XX

+#db.hib.dialect=org.hibernate.dialect.Oracle10gDialect

+#db.driver=oracle.jdbc.driver.OracleDriver

+#Hibernate 

+#hb.dialect=org.hibernate.dialect.Oracle10gDialect

+#hb.show_sql=true

+

+#Postgre

+#db.userName=XXXX

+#db.password=XXXX

+#db.connectionURL=jdbc:postgresql://XXXX/XX

+#db.hib.dialect=org.hibernate.dialect.PostgreSQLDialect

+#db.driver=org.postgresql.Driver

+#hb.dialect=org.hibernate.dialect.PostgreSQLDialect

+#hb.show_sql=true

+

+#Mysql

+db.driver = com.mysql.jdbc.Driver

+#db.connectionURL = jdbc:mysql://demeter.homer.att.com:3306/ecomp_sdk_1707_att

+db.connectionURL = jdbc:mysql://localhost:3306/vid_portal

+db.userName = euser

+db.password = euser

+db.hib.dialect = org.hibernate.dialect.MySQLDialect

+db.min_pool_size = 5

+db.max_pool_size = 10

+hb.dialect = org.hibernate.dialect.MySQLDialect

+# SQL statements are logged to stdout

+hb.show_sql = true

+hb.idle_connection_test_period = 3600

+app_display_name					  = VID

+files_path = /opt/app/vid/license

+

+# menu settings

+#menu_query_name                      = menuData

+#menu_properties_file_location        = /WEB-INF/fusion/menu/

+#application_menu_set_name            = APP

+#application_menu_attribute_name      = applicationMenuData

+#application_menu_properties_name     = menu.properties

+#business_direct_menu_set_name        = BD

+#business_direct_menu_properties_name = bd.menu.properties

+#business_direct_menu_attribute_name  = businessDirectMenuData

+

+application_name              = Virtual Infrastructure Deployment

+

+

+#element map files

+#element_map_file_path = /tmp

+#element_map_icon_path = app/vid/icons/

+element_map_file_path = app/fusionapp/files/

+element_map_icon_path = app/fusionapp/icons/

+

+#aai related properties

+#dev server

+#aai.server.url.base=https://mtanjv9aaas40.aic.cip.att.com:8443/aai/

+#aai.server.url=https://mtanjv9aaas40.aic.cip.att.com:8443/aai/v10/

+#aai.oldserver.url.base=https://mtanjv9aaas40.aic.cip.att.com:8443/aai/servers/

+#aai.oldserver.url=https://mtanjv9aaas40.aic.cip.att.com:8443/aai/servers/v3/

+#ist servers

+aai.server.url.base=https://aai-ext1.test.att.com:8443/aai/

+#aai.server.url=https://aai-ext1.test.att.com:8443/aai/v12/

+aai.server.url=http://localhost:8080/vidSimulator/aai/v12/

+#aai.server.url=http://localhost:1080/aai

+#aai.server.url=https://aai-int2.test.att.com:8443/aai/v12/

+aai.vid.username=VID

+aai.vid.passwd.x=OBF:1jm91i0v1jl9

+

+

+

+

+

+

+

+

+aai.oldserver.url.base=https://aai-ext1.test.att.com:8443/aai/servers/

+aai.oldserver.url=https://aai-ext1.test.att.com:8443/aai/servers/v3/

+aai.truststore.filename=tomcat_keystore

+aai.truststore.passwd.x=OBF:1i9a1u2a1unz1lr61wn51wn11lss1unz1u301i6o

+aai.keystore.filename=aai-client-cert.p12

+aai.keystore.passwd.x=OBF:1i9a1u2a1unz1lr61wn51wn11lss1unz1u301i6o

+aai.use.client.cert=false

+aai.vnf.provstatus=PREPROV,NVTPROV,PROV,CAPPED

+

+#Cron Schedules have 6 required fields and 1 optional field:

+# Seconds Minutes Hours Day-of-Month Month Day-of-Week Year

+log_cron                      = 0 0/1 * * * ?;

+mylogins_feed_cron            = 0 0/60 * * * ?;

+#sessiontimeout_feed_cron	  = 0 * * * * ? *

+my_login_feed_output_dir      = /tmp/MyLogins

+

+# ECOMP Portal Shared Context REST API URL

+ecomp_shared_context_rest_url= https://www.ecomp.att.com:8080/ecompportal/context

+

+# Link shown in Help menu

+contact_us_link = https://wiki.web.att.com/display/EcompPortal/ECOMP+Portal+Home

+

+# Camunda cockpit link

+camunda_cockpit_link = https://cloopwf.client.research.att.com:8443/camunda/app/cockpit/default/#/dashboard

+# An Unique 128-bit value defined to identify a specific version

+# of an application deployed on a specific virtual machine.

+# This value must be generated and updated by the application 

+# which is using the ECOMP SDK at the time of its deployment.

+# Online Unique UUID generator - https://www.uuidgenerator.net/

+instance_uuid=8da691c9-987d-43ed-a358-00ac2f35685d

+

+#  R Cloud feature

+guard_notebook_url=https://rcloud.research.att.com/mini.html?notebook=a06a9cf14211012e221bf842c168849d&

+

+#ECOMP redirect url

+#ecomp_redirect_url = https://webtest.csp.att.com/ecomp_portal_dev_n1/ecompui/process_csp

+#ecomp_rest_url = https://webtest.csp.att.com/ecomp_portal_dev_n1/ecompui/auxapi

+# Replace these default values with the ones for your specific App.  Ecomp Portal admin obtains from EP website.

+#ueb_app_mailbox_name = ECOMP-PORTAL-OUTBOX-90

+#ueb_app_key = sYH0NJnsKmJC1B2A

+#ueb_app_secret = YOtknsT2wVFz9WISlSPDaAtd

+

+#MSO related properties

+#simulator

+#mso.server.url=http://localhost:8089

+#mso.server.url=https://msoapih-app.mtsnj.aic.cip.att.com:8443/ecomp/mso/infra

+#dev2dev

+#good

+#dev

+#mso.server.url=http://mtanjv9moah10-eth0.aic.cip.att.com:8080/ecomp/mso/infra

+#istScrum-Master

+mso.client.type=LOCAL

+mso.server.url=http://vm1.mso.simpledemo.openecomp.org:8080

+mso.polling.interval.msecs=10000

+mso.max.polls=10

+mso.user.name=infraportal

+mso.password.x=OBF:1ghz1kfx1j1w1m7w1i271e8q1eas1hzj1m4i1iyy1kch1gdz

+mso.restapi.svc.instance=/serviceInstances/v5

+mso.restapi.vnf.instance=/serviceInstances/v5/<service_instance_id>/vnfs

+mso.restapi.vnf.changemanagement.instance=/serviceInstances/v5/<service_instance_id>/vnfs/<vnf_instance_id>/<request_type>

+mso.restapi.network.instance=/serviceInstances/v5/<service_instance_id>/networks

+mso.restapi.vf.module.instance=/serviceInstances/v6/<service_instance_id>/vnfs/<vnf_instance_id>/vfModules

+mso.restapi.vf.module.scaleout=/serviceInstantiation/v7/serviceInstances/<service_instance_id>/vnfs/<vnf_instance_id>/vfModules/scaleOut

+mso.restapi.volume.group.instance=/serviceInstances/v5/<service_instance_id>/vnfs/<vnf_instance_id>/volumeGroups

+mso.restapi.get.orc.req=/orchestrationRequests/v5

+mso.restapi.get.orc.reqs=/orchestrationRequests/v5?

+mso.restapi.get.man.tasks=/tasks/v1

+mso.restapi.configurations=/serviceInstances/v6/<service_instance_id>/configurations

+mso.restapi.configuration.instance=${mso.restapi.configurations}<configuration_id>

+

+vid.truststore.filename=/opt/app/vid/etc/vid_keystore.jks

+mso.dme2.client.timeout=30000

+mso.dme2.client.read.timeout=120000

+

+scheduler.server.url=http://mtanjv9sdlg10.aic.cip.att.com:8989/scheduler

+scheduler.create.new.vnf.change.instance=/v1/ChangeManagement/schedules/

+scheduler.get.time.slots=/v1/ChangeManagement/schedules/

+scheduler.get.schedules=/v1/ChangeManagement/schedules/scheduleDetails/

+

+

+#vid.truststore.filename=/Users/Oren/Downloads/vid_keystore2.jks

+

+vid.truststore.passwd.x=OBF:1wgg1wfq1uus1uui1x131x0r1x1v1x1j1uvo1uve1wg81wfi

+#mso.dme2.server.url=http://mso-api-handler-anap-v1.mso.ecomp.att.com/services/ecomp/mso?

+mso.dme2.server.url=http://mso-api-handler-anap-v1.mso.ecomp.att.com/services/ecomp/mso?version=1607&envContext=TEST&routeOffer=st_mtsnj

+#mso.dme2.server.url=https://ActiveAndAvailableInventory-CloudNetwork-v1.aai.att.com/aai?version=1&envContext=DEV&routeOffer=devINT1

+mso.dme2.enabled=false

+asdc.model.namespace=org.openecomp.

+sdc.svc.api.path=sdc/v1/catalog/services

+sdc.resource.api.path=sdc/v1/catalog/resource

+

+# Application base URL has the host and app context only; a proper prefix of the on-boarded URL.

+# Only required for applications using WebJunction or FE/BE separation.  For example:

+# app_base_url = https://www.e-access.att.com/app_junction/app_context/

+

diff --git a/onap-enabler-be/src/test/resources/WEB-INF/conf/system.properties.cml b/onap-enabler-be/src/test/resources/WEB-INF/conf/system.properties.cml
new file mode 100644
index 0000000..51e788e
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/WEB-INF/conf/system.properties.cml
@@ -0,0 +1,93 @@
+# Properties read by ECOMP Core library, epsdk-core.jar

+

+##########################################################################

+# The following properties should NOT be changed by partner applications.

+##########################################################################

+

+application_user_id           = 30000

+post_default_role_id          = 16

+clustered                     = true

+

+#Enable Fusion Mobile capabilities for the application

+mobile_enable			  	  = false

+

+# Cache config file is needed on the classpath

+cache_config_file_path        = /WEB-INF/classes/cache.ccf

+cache_switch                  = 199

+cache_load_on_startup         = false

+

+user_name					  = fullName

+decryption_key				  = AGLDdG4D04BKm2IxIWEr8o==

+

+##########################################################################

+# The following properties REQUIRE changes by partner applications.

+##########################################################################

+

+#Oracle

+#db.userName=quantumbd

+#db.password=c1syn2yhmr

+#db.connectionURL=jdbc:oracle:thin:@dbhost.yourcompany.com:1527:mod112a

+#db.hib.dialect=org.hibernate.dialect.Oracle10gDialect

+#db.driver=oracle.jdbc.driver.OracleDriver

+#Hibernate 

+#hb.dialect=org.hibernate.dialect.Oracle10gDialect

+#hb.show_sql=true

+

+#Postgres

+#db.userName=quantumbd

+#db.password=c1syn2yhmr

+#db.connectionURL=jdbc:postgresql://dbhost.yourcompany.com:61382/quantum

+#db.hib.dialect=org.hibernate.dialect.PostgreSQLDialect

+#db.driver=org.postgresql.Driver

+#hb.dialect=org.hibernate.dialect.PostgreSQLDialect

+#hb.show_sql=true

+

+

+

+#Mysql

+db.driver = org.mariadb.jdbc.Driver

+#db.connectionURL = jdbc:mariadb://localhost:3306/vid_openecomp_epsdk

+#db.userName = ecomp_sdk_user

+#db.password = ecomp_sdk_pass

+db.hib.dialect = org.hibernate.dialect.MySQLDialect

+db.min_pool_size = 5

+db.max_pool_size = 10

+hb.dialect = org.hibernate.dialect.MySQLDialect

+# SQL statements are logged to stdout

+hb.show_sql = true

+hb.idle_connection_test_period = 3600

+

+app_display_name = EPSDK App ATT

+# license file area

+files_path = /tmp

+

+#element map files

+element_map_file_path = app/fusionapp/files/

+element_map_icon_path = app/fusionapp/icons/

+

+#Cron Schedules have 6 required fields and 1 optional field:

+# Seconds Minutes Hours Day-of-Month Month Day-of-Week Year

+log_cron                      = 0 0/1 * * * ?;

+

+# ECOMP Portal Shared Context REST API URL

+ecomp_shared_context_rest_url= https://www.ecomp.att.com:8080/ecompportal/context

+

+# Link shown in Help menu

+contact_us_link = https://wiki.web.att.com/display/EcompPortal/ECOMP+Portal+Home

+

+# Camunda cockpit link

+camunda_cockpit_link = https://cloopwf.client.research.att.com:8443/camunda/app/cockpit/default/#/dashboard

+

+# An Unique 128-bit value defined to identify a specific version

+# of an application deployed on a specific virtual machine.

+# This value must be generated and updated by the application 

+# which is using the ECOMP SDK at the time of its deployment.

+# Online Unique UUID generator - https://www.uuidgenerator.net/

+instance_uuid=8da691c9-987d-43ed-a358-00ac2f35685d

+

+#  R Cloud feature

+guard_notebook_url=https://rcloud.research.att.com/mini.html?notebook=a06a9cf14211012e221bf842c168849d&

+

+# Application base URL has the host and app context only; a proper prefix of the on-boarded URL.

+# Only required for applications using WebJunction or FE/BE separation.  For example:

+# app_base_url = https://www.e-access.att.com/app_junction/app_context/

diff --git a/onap-enabler-be/src/test/resources/WEB-INF/fusion/conf/fusion.properties b/onap-enabler-be/src/test/resources/WEB-INF/fusion/conf/fusion.properties
new file mode 100644
index 0000000..b482c21
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/WEB-INF/fusion/conf/fusion.properties
@@ -0,0 +1,69 @@
+# domain settings

+#domain_class_location = com.att.fusion.domain.

+

+# validator settings

+#default_error_message = Default error message

+

+# login settings

+login_method_csp            = csp

+login_method_web_junction   = web_junction

+login_method_backdoor       = backdoor

+login_method_attribute_name = login_method

+

+#login message

+login.error.hrid.empty = Login failed, please contact system administrator. 

+login.error.hrid.not-found = User not found, please contact system administrator.

+login.error.user.inactive = Account is disabled, please contact system administrator.

+

+# CSP settings

+csp_cookie_name          = attESSec

+csp_gate_keeper_data_key = MgmtSysCtr

+csp_gate_keeper_prod_key = PROD

+csp_login_url            = https://www.e-access.att.com/empsvcs/hrpinmgt/pagLogin/?sysName=MgmtSysCtr&retURL=

+csp_logout_url           = https://www.e-access.att.com/empsvcs/hrpinmgt/pagLogout/?retURL=

+

+authentication_mechanism = BOTH

+

+#csp_gate_keeper_prod_key = DEVL

+user_attribute_name      = user

+#csp_login_url = https://www.e-access.att.com/empsvcs/hrpinmgt/pagLogin/?sysName=MgmtSysCtr&retURL=

+#csp_logout_url = https://webtest.csp.att.com/empsvcs/hrpinmgt/pagLogout/?retURL=

+

+# Web Junction settings

+#web_junction_user_id_header_name = iv-user

+

+# User Session settings

+#user_attribute_name           = user

+roles_attribute_name          = roles

+role_functions_attribute_name = role_functions

+role_function_list            = role_function_list

+#client_device_attribute_name  = client_device

+#client_device_emulation       = false

+#client_device_type_to_emulate = com.att.fusion.web.clientdevice.mobile.IPhoneDevice

+

+# POST settings

+post_initial_context_factory = com.sun.jndi.ldap.LdapCtxFactory

+post_provider_url            = ldap://ldap.webphone.att.com:389

+post_security_principal      = ou=people,o=att,c=us

+post_max_result_size         = 499

+

+# menu settings

+menu_query_name                      = menuData

+#menu_properties_file_location        = /WEB-INF/fusion/menu/

+application_menu_set_name            = APP

+application_menu_attribute_name      = applicationMenuData

+#application_menu_properties_name     = menu.properties

+business_direct_menu_set_name        = BD

+#business_direct_menu_properties_name = bd.menu.properties

+business_direct_menu_attribute_name  = businessDirectMenuData

+

+# RAPTOR config settings

+#raptor_config_file_path = /WEB-INF/conf/

+

+# Role settings

+sys_admin_role_id = 1

+#sys_admin_role_function_delete_from_ui = true

+

+# Profile Search settings

+#profile_search_report_id=181

+#callable_profile_search_report_id=386

diff --git a/onap-enabler-be/src/test/resources/asdc.properties b/onap-enabler-be/src/test/resources/asdc.properties
new file mode 100644
index 0000000..bbe736d
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/asdc.properties
@@ -0,0 +1,6 @@
+asdc.client.type=LOCAL

+

+asdc.client.rest.protocol=http

+asdc.client.rest.host=c2.vm1.sdc.simpledemo.openecomp.org

+asdc.client.rest.port=8080

+asdc.client.rest.auth=Basic dmlkOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=

diff --git a/onap-enabler-be/src/test/resources/cr-csar.JSON b/onap-enabler-be/src/test/resources/cr-csar.JSON
new file mode 100644
index 0000000..326ec16
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/cr-csar.JSON
@@ -0,0 +1,77 @@
+{

+  "service": {

+    "uuid": "76f27dfe-33e5-472f-8e0b-acf524adc4f0",

+    "invariantUuid": "c3618e16-bb5b-433a-a6e0-565ca79d8b65",

+    "name": "MSO_Example_Service",

+    "version": "1.0",

+    "toscaModelURL": null,

+    "category": "Network L4+",

+    "serviceType": "",

+    "serviceRole": "",

+    "description": "MSO_Example_Service",

+    "serviceEcompNaming": "true",

+    "instantiationType": "ClientConfig",

+    "inputs": {

+

+    }

+  },

+  "vnfs": {

+

+  },

+  "networks": {

+

+  },

+  "collectionResource": {

+    "MSO_Example 0": {

+      "uuid": "4f8068d9-fb13-49fc-9e39-634d2094b659",

+      "invariantUuid": "2fc1b3b8-b8ed-413e-add8-3d903cf2b458",

+      "description": "MSO_Example",

+      "name": "MSO_Example",

+      "version": "0.2",

+      "customizationUuid": "fffc356d-9e95-4d9c-aa64-7273f33aae84",

+      "inputs": null,

+      "commands": {

+

+      },

+      "properties": {

+        "MSO_Example..NetworkCollection..0_network_collection_function": "fffff",

+        "MSO_Example..NetworkCollection..0_network_collection_description": "ddd",

+        "MSO_Example..Fixed..0_quantity": "89"

+      },

+      "type": "CR",

+      "category": "Network L2-3",

+      "subcategory": "Infrastructure",

+      "resourceVendor": "cisco",

+      "customizationUUID": "fffc356d-9e95-4d9c-aa64-7273f33aae84",

+      "resourceVendorRelease": "1.0",

+      "resourceVendorModelNumber": "",

+      "networksCollection": {

+        "MSO_Example..NetworkCollection..0": {

+          "uuid": "f4cb3cb6-a45d-474d-9af8-f4ae2e733ef7",

+          "invariantUuid": "f3cf3727-f779-4721-b989-851722c64ca4",

+          "name": "MSO_Example..NetworkCollection..0",

+          "version": "1",

+          "networkCollectionProperties": {

+            "networkCollectionFunction": "fffff",

+            "networkCollectionDescription": "ddd"

+          }

+        }

+      }

+    }

+  },

+  "configurations": {

+

+  },

+  "serviceProxies": {

+

+  },

+  "vfModules": {

+

+  },

+  "volumeGroups": {

+

+  },

+  "pnfs": {

+

+  }

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/test/resources/csv_files/csv_to_json.csv b/onap-enabler-be/src/test/resources/csv_files/csv_to_json.csv
new file mode 100644
index 0000000..2e0f41d
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/csv_files/csv_to_json.csv
@@ -0,0 +1,99 @@
+payload,request-parameters,,,vnf-name,ibcx0099v

+payload,request-parameters,[vm],,vm-name,ibcx0001vm001

+payload,request-parameters,[vm],[vnfc],vnfc-name,ibcx0001vm001dbg001

+payload,request-parameters,[vm],[vnfc],vnfc-function-code,dbg

+payload,request-parameters,[vm],[vnfc],vnfc-type,DBE-VM #1

+payload,request-parameters,[vm],[vnfc],group-notation,ibcx0001vm001dbg001pair

+payload,request-parameters,[vm],[vnfc],ipaddress-v4-oam-vip,135.21.166.39

+payload,request-parameters,[vm],,vm-name,ibcx0001vm002

+payload,request-parameters,[vm],[vnfc],vnfc-name,ibcx0001vm002dbg001

+payload,request-parameters,[vm],[vnfc],vnfc-function-code,dbg

+payload,request-parameters,[vm],[vnfc],vnfc-type,DBE-VM #1

+payload,request-parameters,[vm],[vnfc],group-notation,ibcx0001vm001dbg001pair

+,,,,,

+payload,request-parameters,,,template-name,vdbe_template1

+payload,configuration,,,configuration-string,"   <configuration xmlns=""http://xml.juniper.net/xnm/1.1/xnm"" 

+    xmlns:a=""http://xml.juniper.net/junos/15.1X49/junos"" >

+            <version>15.1X49-D50.3</version>

+            <groups>

+                <name>node0</name>

+                <system>

+                    <host-name>$node0_hostname</host-name>

+                    <backup-router>

+                        <address>$node0_backup_router_address</address>

+                        <destination>0.0.0.0/0</destination>

+             </backup-router>

+                </system>

+     </groups>

+    </configuration>"

+payload,configuration,,,configuration-json,"{

+   ""version"": ""15.1X49-D50.3"",

+   ""groups"": {

+      ""name"": ""node0"",

+      ""system"": {

+         ""host-name"": ""$node0_hostname"",

+         ""backup-router"": {

+            ""address"": ""$node0_backup_router_address"",

+            ""destination"": ""0.0.0.0/0""

+         }

+      }

+   }

+}"

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+payload,configuration-parameters,nat_source_sp_v6rogerssnat_address1,2001:1890:fc45:f025:135:25:246:c806/128

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

diff --git a/onap-enabler-be/src/test/resources/csv_files/empty_file.csv b/onap-enabler-be/src/test/resources/csv_files/empty_file.csv
new file mode 100644
index 0000000..e7bc056
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/csv_files/empty_file.csv
@@ -0,0 +1,18 @@
+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,

+,,,,,
\ No newline at end of file
diff --git a/onap-enabler-be/src/test/resources/csv_files/missing_content.csv b/onap-enabler-be/src/test/resources/csv_files/missing_content.csv
new file mode 100644
index 0000000..0c02fc8
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/csv_files/missing_content.csv
@@ -0,0 +1,2 @@
+payload,request-parameters,,,ibcx0099v

+payload,request-parameters,,aa,vv
\ No newline at end of file
diff --git a/onap-enabler-be/src/test/resources/csv_files/missing_values.csv b/onap-enabler-be/src/test/resources/csv_files/missing_values.csv
new file mode 100644
index 0000000..9a2a8d6
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/csv_files/missing_values.csv
@@ -0,0 +1,2 @@
+payload,,,,,

+payload,request-parameters,,aa,vv

diff --git a/onap-enabler-be/src/test/resources/csv_files/one_line.csv b/onap-enabler-be/src/test/resources/csv_files/one_line.csv
new file mode 100644
index 0000000..315e939
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/csv_files/one_line.csv
@@ -0,0 +1 @@
+payload,request-parameters,,,vnf-name,ibcx0099v
\ No newline at end of file
diff --git a/onap-enabler-be/src/test/resources/git.properties b/onap-enabler-be/src/test/resources/git.properties
new file mode 100644
index 0000000..ada0a47
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/git.properties
@@ -0,0 +1,3 @@
+git.commit.id=123987

+git.commit.message.short=Test short commit message

+git.commit.time=1999-09-12T13\:48\:55+0200
\ No newline at end of file
diff --git a/onap-enabler-be/src/test/resources/mso.properties b/onap-enabler-be/src/test/resources/mso.properties
new file mode 100644
index 0000000..b58ba56
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/mso.properties
@@ -0,0 +1,17 @@
+mso.server.url=http://mtanjv9moah01-eth0.aic.cip.att.com:8080/ecomp/mso/infra

+mso.polling.interval.msecs=2000

+mso.max.polls=3

+mso.user.name=infraportal

+mso.password.x=OBF:1ghz1kfx1j1w1m7w1i271e8q1eas1hzj1m4i1iyy1kch1gdz

+mso.restapi.svc.instance=/serviceInstances/v3

+mso.restapi.vnf.instance=/serviceInstances/v3/<service_instance_id>/vnfs

+mso.restapi.network.instance=/serviceInstances/v3/<service_instance_id>/networks

+mso.restapi.vf.module.instance=/serviceInstantiation/v7/<service_instance_id>/vnfs/<vnf_instance_id>/vfModules/scaleOut

+mso.restapi.volume.group.instance=/serviceInstances/v3/<service_instance_id>/vnfs/<vnf_instance_id>/volumeGroups

+mso.restapi.configurations=/serviceInstances/v6/<service_instance_id>/configurations

+mso.restapi.get.orc.req=/orchestrationRequests/v3

+mso.restapi.get.orc.reqs=/orchestrationRequests/v3?

+mso.restapi.get.man.tasks=/tasks/v1

+mso.dme2.client.timeout=30000

+mso.dme2.client.read.timeout=120000

+mso.dme2.server.url=http://mso-api-handler-anap-v1.mso.ecomp.att.com/services/ecomp/mso?version=1607&envContext=TEST&routeOffer=st_mtsnj
\ No newline at end of file
diff --git a/onap-enabler-be/src/test/resources/msoRequest.json b/onap-enabler-be/src/test/resources/msoRequest.json
new file mode 100644
index 0000000..f7f0a82
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/msoRequest.json
@@ -0,0 +1,25 @@
+{

+  "requestDetails": {

+    "requestInfo": {

+      "instanceName": "KLKLKL",

+      "source": "VID",

+      "suppressRollback": false,

+      "requestorId": "1"

+    },

+    "modelInfo": {

+      "modelType": "service",

+      "modelInvariantId": "709d1be4-9a3f-4a29-8c4d-a20465e808a3",

+      "modelVersionId": "1de57bcf-365a-4ba7-8a51-7377b7144586",

+      "modelName": "1707vidnf",

+      "modelVersion": "2.0"

+    },

+    "requestParameters": {

+      "userParams": [],

+      "subscriptionServiceType": "HNGATEWAY",

+      "aLaCarte": true

+    },

+    "subscriberInfo": {

+      "globalSubscriberId": "21014aa2-9e71128cae7-jl319x"

+    }

+  }

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/test/resources/objectconfig.properties b/onap-enabler-be/src/test/resources/objectconfig.properties
new file mode 100644
index 0000000..0093129
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/objectconfig.properties
@@ -0,0 +1,18 @@
+baseURL=http://vid.onap.org:9080/vid/login_external.htm

+

+

+

+login=//input[@class='fn-ebz-text ng-pristine ng-valid']

+pwd=//input[@class='span3 ng-pristine ng-valid']

+loginButton=loginBtn

+

+

+profilelink=html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[5]/a/span

+refreshButtonSubscriberName=//img[@src='static/fusion/images/refresh.jpg']

+

+subscriberNameDropDown=.//*[@id='mContent']/div/div/table/tbody/tr[1]/td[2]/div/select

+serviceTypeDropDown=.//*[@id='mContent']/div/div/table/tbody/tr[2]/td[2]/div/select

+submitButton=.//*[@id='mContent']/div/div/table/tbody/tr[3]/td/div/button

+

+test.loginId=2222

+test.loginPassword=2222

diff --git a/onap-enabler-be/src/test/resources/payload_jsons/activateOperationalEnvironmentsPayloadToMso.json b/onap-enabler-be/src/test/resources/payload_jsons/activateOperationalEnvironmentsPayloadToMso.json
new file mode 100644
index 0000000..c6a8cf7
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/payload_jsons/activateOperationalEnvironmentsPayloadToMso.json
@@ -0,0 +1,23 @@
+{

+  "requestDetails": {

+    "requestInfo": {

+      "resourceType": "operationalEnvironment",

+      "source": "VID",

+      "requestorId": "<userId>"

+    },

+    "relatedInstanceList": [

+      {

+        "relatedInstance": {

+          "resourceType": "operationalEnvironment",

+          "instanceId": "<relatedInstanceId>",

+          "instanceName": "<relatedInstanceName>"

+        }

+      }

+    ],

+    "requestParameters": {

+      "operationalEnvironmentType": "VNF",

+      "workloadContext": "<workloadContext>",

+      "manifest": <manifest>

+    }

+  }

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/test/resources/payload_jsons/bulk_service_request.json b/onap-enabler-be/src/test/resources/payload_jsons/bulk_service_request.json
new file mode 100644
index 0000000..e57c5a9
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/payload_jsons/bulk_service_request.json
@@ -0,0 +1,95 @@
+{

+	"requestDetails": {

+		"modelInfo": {

+			"modelType": "service",

+			"modelInvariantId": "5d48acb5-097d-4982-aeb2-f4a3bd87d31b",

+			"modelVersionId": "3c40d244-808e-42ca-b09a-256d83d19d0a",

+			"modelName": "MOW AVPN vMX BV vPE 1 Service",

+			"modelVersion": "10.0"

+		},

+		"owningEntity": {

+			"owningEntityId": "038d99af-0427-42c2-9d15-971b99b9b489",

+			"owningEntityName": "PACKET CORE"

+		},

+		"project": {

+			"projectName": "{some project name}"

+		},

+		"subscriberInfo": {

+			"globalSubscriberId": "{some subscriber id}"

+		},

+		"requestInfo": {

+			"instanceName": "vPE_Service",

+			"productFamilyId": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",

+			"source": "VID",

+			"suppressRollback": true,

+			"requestorId": "az2016"

+		},

+		"requestParameters": {

+			"subscriptionServiceType": "VMX",

+			"aLaCarte": false,

+			"userParams": [{

+				"service": {

+					"modelInfo": {

+						"modelType": "service",

+						"modelName": "MOW AVPN vMX BV vPE 1 Service",

+						"modelVersionId": "3c40d244-808e-42ca-b09a-256d83d19d0a"

+					},

+					"instanceName": "vPE_Service",

+					"instanceParams": [{

+						"instanceParams_test1": "some text",

+						"instanceParams_test2": "another text"

+					}],

+					"resources": {

+						"vnfs": [{

+							"modelInfo": {

+								"modelType": "vnf",

+								"modelName": "2016-73_MOW-AVPN-vPE-BV-L",

+								"modelVersionId": "7f40c192-f63c-463e-ba94-286933b895f8",

+								"modelCustomizationName": "2016-73_MOW-AVPN-vPE-BV-L 0",

+								"modelCustomizationId": "ab153b6e-c364-44c0-bef6-1f2982117f04"

+							},

+							"cloudConfiguration": {

+								"lcpCloudRegionId": "mdt1",

+								"tenantId": "88a6ca3ee0394ade9403f075db23167e"

+							},

+							"platform": {

+								"platformName": "platformName"

+							},

+							"lineOfBusiness": {

+								"lineOfBusinessName": "lineOfBusinessName"

+							},

+							"productFamilyId": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",

+							"instanceName": "vmxnjr001",

+							"instanceParams": [],

+							"vfModules": [{

+                              "modelInfo": {

+                                "modelType": "vfModule",

+                                "modelName": "201673MowAvpnVpeBvL..AVPN_base_vPE_BV..module-0",

+                                "modelVersionId": "4c75f813-fa91-45a4-89d0-790ff5f1ae79",

+                                "modelCustomizationId": "a25e8e8c-58b8-4eec-810c-97dcc1f5cb7f"

+                              },

+                              "instanceName": "vmxnjr001_AVPN_base_vPE_BV_base_001",

+                              "instanceParams": [{

+                                "vmx_int_net_len": "24"

+                              }]

+                            },

+                              {

+                                "modelInfo": {

+                                  "modelType": "vfModule",

+                                  "modelName": "201673MowAvpnVpeBvL..AVPN_vRE_BV..module-1",

+                                  "modelVersionId": "56e2b103-637c-4d1a-adc8-3a7f4a6c3240",

+                                  "modelCustomizationId": "72d9d1cd-f46d-447a-abdb-451d6fb05fa8"

+                                },

+                                "instanceName": "vmxnjr001_AVPN_base_vRE_BV_expansion_001",

+                                "instanceParams": [{

+                                  "availability_zone_0": "mtpocdv-kvm-az01",

+                                  "vre_a_volume_size_0": "100"

+                                }]

+                              }]

+						}]

+					}

+				}

+			}]

+		}

+	}

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/test/resources/payload_jsons/bulk_service_request_ecomp_naming.json b/onap-enabler-be/src/test/resources/payload_jsons/bulk_service_request_ecomp_naming.json
new file mode 100644
index 0000000..52e9b54
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/payload_jsons/bulk_service_request_ecomp_naming.json
@@ -0,0 +1,90 @@
+{

+	"requestDetails": {

+		"modelInfo": {

+			"modelType": "service",

+			"modelInvariantId": "5d48acb5-097d-4982-aeb2-f4a3bd87d31b",

+			"modelVersionId": "3c40d244-808e-42ca-b09a-256d83d19d0a",

+			"modelName": "MOW AVPN vMX BV vPE 1 Service",

+			"modelVersion": "10.0"

+		},

+		"owningEntity": {

+			"owningEntityId": "038d99af-0427-42c2-9d15-971b99b9b489",

+			"owningEntityName": "PACKET CORE"

+		},

+		"project": {

+			"projectName": "{some project name}"

+		},

+		"subscriberInfo": {

+			"globalSubscriberId": "{some subscriber id}"

+		},

+		"requestInfo": {

+			"productFamilyId": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",

+			"source": "VID",

+			"suppressRollback": false,

+			"requestorId": "az2016"

+		},

+		"requestParameters": {

+			"subscriptionServiceType": "VMX",

+			"aLaCarte": false,

+			"userParams": [{

+				"service": {

+					"modelInfo": {

+						"modelType": "service",

+						"modelName": "MOW AVPN vMX BV vPE 1 Service",

+						"modelVersionId": "3c40d244-808e-42ca-b09a-256d83d19d0a"

+					},

+					"instanceParams": [{

+						"instanceParams_test1": "some text",

+						"instanceParams_test2": "another text"

+					}],

+					"resources": {

+						"vnfs": [{

+							"modelInfo": {

+								"modelType": "vnf",

+								"modelName": "2016-73_MOW-AVPN-vPE-BV-L",

+								"modelVersionId": "7f40c192-f63c-463e-ba94-286933b895f8",

+								"modelCustomizationName": "2016-73_MOW-AVPN-vPE-BV-L 0",

+								"modelCustomizationId": "ab153b6e-c364-44c0-bef6-1f2982117f04"

+							},

+							"cloudConfiguration": {

+								"lcpCloudRegionId": "mdt1",

+								"tenantId": "88a6ca3ee0394ade9403f075db23167e"

+							},

+							"platform": {

+								"platformName": "platformName"

+							},

+							"lineOfBusiness": {

+								"lineOfBusinessName": "lineOfBusinessName"

+							},

+							"productFamilyId": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",

+							"instanceParams": [],

+							"vfModules": [{

+                              "modelInfo": {

+                                "modelType": "vfModule",

+                                "modelName": "201673MowAvpnVpeBvL..AVPN_base_vPE_BV..module-0",

+                                "modelVersionId": "4c75f813-fa91-45a4-89d0-790ff5f1ae79",

+                                "modelCustomizationId": "a25e8e8c-58b8-4eec-810c-97dcc1f5cb7f"

+                              },

+                              "instanceParams": [{

+                                "vmx_int_net_len": "24"

+                              }]

+                            },

+                              {

+                                "modelInfo": {

+                                  "modelType": "vfModule",

+                                  "modelName": "201673MowAvpnVpeBvL..AVPN_vRE_BV..module-1",

+                                  "modelVersionId": "56e2b103-637c-4d1a-adc8-3a7f4a6c3240",

+                                  "modelCustomizationId": "72d9d1cd-f46d-447a-abdb-451d6fb05fa8"

+                                },

+                                "instanceParams": [{

+                                  "availability_zone_0": "mtpocdv-kvm-az01",

+                                  "vre_a_volume_size_0": "100"

+                                }]

+                              }]

+						}]

+					}

+				}

+			}]

+		}

+	}

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/test/resources/payload_jsons/bulk_service_request_no_vfmodule_ecomp_naming.json b/onap-enabler-be/src/test/resources/payload_jsons/bulk_service_request_no_vfmodule_ecomp_naming.json
new file mode 100644
index 0000000..3640593
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/payload_jsons/bulk_service_request_no_vfmodule_ecomp_naming.json
@@ -0,0 +1,67 @@
+{

+	"requestDetails": {

+		"modelInfo": {

+			"modelType": "service",

+			"modelInvariantId": "5d48acb5-097d-4982-aeb2-f4a3bd87d31b",

+			"modelVersionId": "3c40d244-808e-42ca-b09a-256d83d19d0a",

+			"modelName": "MOW AVPN vMX BV vPE 1 Service",

+			"modelVersion": "10.0"

+		},

+		"owningEntity": {

+			"owningEntityId": "038d99af-0427-42c2-9d15-971b99b9b489",

+			"owningEntityName": "PACKET CORE"

+		},

+		"project": {

+			"projectName": "{some project name}"

+		},

+		"subscriberInfo": {

+			"globalSubscriberId": "{some subscriber id}"

+		},

+		"requestInfo": {

+			"productFamilyId": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",

+			"source": "VID",

+			"suppressRollback": false,

+			"requestorId": "az2016"

+		},

+		"requestParameters": {

+			"subscriptionServiceType": "VMX",

+			"aLaCarte": false,

+			"userParams": [{

+				"service": {

+					"modelInfo": {

+						"modelType": "service",

+						"modelName": "MOW AVPN vMX BV vPE 1 Service",

+						"modelVersionId": "3c40d244-808e-42ca-b09a-256d83d19d0a"

+					},

+					"instanceParams": [{

+						"instanceParams_test1": "some text",

+						"instanceParams_test2": "another text"

+					}],

+					"resources": {

+						"vnfs": [{

+							"modelInfo": {

+								"modelType": "vnf",

+								"modelName": "2016-73_MOW-AVPN-vPE-BV-L",

+								"modelVersionId": "7f40c192-f63c-463e-ba94-286933b895f8",

+								"modelCustomizationName": "2016-73_MOW-AVPN-vPE-BV-L 0",

+								"modelCustomizationId": "ab153b6e-c364-44c0-bef6-1f2982117f04"

+							},

+							"cloudConfiguration": {

+								"lcpCloudRegionId": "mdt1",

+								"tenantId": "88a6ca3ee0394ade9403f075db23167e"

+							},

+							"platform": {

+								"platformName": "platformName"

+							},

+							"lineOfBusiness": {

+								"lineOfBusinessName": "lineOfBusinessName"

+							},

+							"productFamilyId": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",

+							"instanceParams": []

+						}]

+					}

+				}

+			}]

+		}

+	}

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/test/resources/payload_jsons/bulk_service_request_unique_names.json b/onap-enabler-be/src/test/resources/payload_jsons/bulk_service_request_unique_names.json
new file mode 100644
index 0000000..e6c58b9
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/payload_jsons/bulk_service_request_unique_names.json
@@ -0,0 +1,96 @@
+{

+	"requestDetails": {

+		"modelInfo": {

+			"modelType": "service",

+			"modelInvariantId": "5d48acb5-097d-4982-aeb2-f4a3bd87d31b",

+			"modelVersionId": "3c40d244-808e-42ca-b09a-256d83d19d0a",

+			"modelName": "MOW AVPN vMX BV vPE 1 Service",

+			"modelVersion": "10.0"

+		},

+		"owningEntity": {

+			"owningEntityId": "038d99af-0427-42c2-9d15-971b99b9b489",

+			"owningEntityName": "PACKET CORE"

+		},

+		"project": {

+			"projectName": "{some project name}"

+		},

+		"subscriberInfo": {

+			"globalSubscriberId": "{some subscriber id}"

+		},

+		"requestInfo": {

+			"instanceName": "vPE_Service_{SERVICE_UNIQENESS}",

+			"productFamilyId": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",

+			"source": "VID",

+			"suppressRollback": true,

+			"requestorId": "az2016"

+		},

+		"requestParameters": {

+			"subscriptionServiceType": "VMX",

+			"aLaCarte": false,

+			"userParams": [{

+				"service": {

+					"modelInfo": {

+						"modelType": "service",

+						"modelName": "MOW AVPN vMX BV vPE 1 Service",

+						"modelVersionId": "3c40d244-808e-42ca-b09a-256d83d19d0a"

+					},

+					"instanceName": "vPE_Service_{SERVICE_UNIQENESS}",

+					"instanceParams": [{

+						"instanceParams_test1": "some text",

+						"instanceParams_test2": "another text"

+					}],

+					"resources": {

+						"vnfs": [{

+							"modelInfo": {

+								"modelType": "vnf",

+								"modelName": "2016-73_MOW-AVPN-vPE-BV-L",

+								"modelVersionId": "7f40c192-f63c-463e-ba94-286933b895f8",

+								"modelCustomizationName": "2016-73_MOW-AVPN-vPE-BV-L 0",

+								"modelCustomizationId": "ab153b6e-c364-44c0-bef6-1f2982117f04"

+							},

+							"cloudConfiguration": {

+								"lcpCloudRegionId": "mdt1",

+								"tenantId": "88a6ca3ee0394ade9403f075db23167e"

+							},

+							"platform": {

+								"platformName": "platformName"

+							},

+							"lineOfBusiness": {

+								"lineOfBusinessName": "lineOfBusinessName"

+							},

+							"productFamilyId": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",

+							"instanceName": "vmxnjr001_{VNF_UNIQENESS}",

+							"instanceParams": [],

+							"vfModules": [{

+                              "modelInfo": {

+                                "modelType": "vfModule",

+                                "modelName": "201673MowAvpnVpeBvL..AVPN_base_vPE_BV..module-0",

+                                "modelVersionId": "4c75f813-fa91-45a4-89d0-790ff5f1ae79",

+                                "modelCustomizationId": "a25e8e8c-58b8-4eec-810c-97dcc1f5cb7f"

+                              },

+                              "instanceName": "vmxnjr001_AVPN_base_vPE_BV_base_{VF_MODULE_UNIQENESS}",

+                              "instanceParams": [{

+                                "vmx_int_net_len": "24"

+                              }]

+                            },

+                              {

+                                "modelInfo": {

+                                  "modelType": "vfModule",

+                                  "modelName": "201673MowAvpnVpeBvL..AVPN_vRE_BV..module-1",

+                                  "modelVersionId": "56e2b103-637c-4d1a-adc8-3a7f4a6c3240",

+                                  "modelCustomizationId": "72d9d1cd-f46d-447a-abdb-451d6fb05fa8"

+                                },

+                                "instanceName": "vmxnjr001_AVPN_base_vRE_BV_expansion_{VF_MODULE_2_UNIQENESS}",

+                                "volumeGroupInstanceName" : "myVgName_{VG_UNIQUENESS}",

+                                "instanceParams": [{

+                                  "availability_zone_0": "mtpocdv-kvm-az01",

+                                  "vre_a_volume_size_0": "100"

+                                }]

+                              }]

+						}]

+					}

+				}

+			}]

+		}

+	}

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/test/resources/payload_jsons/createOperationalEnvironmentsPayloadToMso.json b/onap-enabler-be/src/test/resources/payload_jsons/createOperationalEnvironmentsPayloadToMso.json
new file mode 100644
index 0000000..3a96bb9
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/payload_jsons/createOperationalEnvironmentsPayloadToMso.json
@@ -0,0 +1,24 @@
+{

+  "requestDetails": {

+    "requestInfo": {

+      "resourceType": "operationalEnvironment",

+      "instanceName": "<instanceName>",

+      "source": "VID",

+      "requestorId": "<userId>"

+    },

+    "relatedInstanceList": [

+      {

+        "relatedInstance": {

+          "resourceType": "operationalEnvironment",

+          "instanceId": "<ecompInstanceId>",

+          "instanceName": "<ecompInstanceName>"

+        }

+      }

+    ],

+    "requestParameters": {

+      "operationalEnvironmentType": "<operationalEnvType>",

+      "tenantContext": "<tenantContext>",

+      "workloadContext": "<workloadContext>"

+    }

+  }

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/test/resources/payload_jsons/deactivateOperationalEnvironmentsPayloadToMso.json b/onap-enabler-be/src/test/resources/payload_jsons/deactivateOperationalEnvironmentsPayloadToMso.json
new file mode 100644
index 0000000..38c2224
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/payload_jsons/deactivateOperationalEnvironmentsPayloadToMso.json
@@ -0,0 +1,12 @@
+{

+  "requestDetails": {

+    "requestInfo": {

+      "resourceType": "operationalEnvironment",

+      "source": "VID",

+      "requestorId": "<userId>"

+    },

+    "requestParameters": {

+      "operationalEnvironmentType": "VNF"

+    }

+  }

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/test/resources/payload_jsons/mso_request_create_configuration.json b/onap-enabler-be/src/test/resources/payload_jsons/mso_request_create_configuration.json
new file mode 100644
index 0000000..5502e8f
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/payload_jsons/mso_request_create_configuration.json
@@ -0,0 +1,62 @@
+

+{

+  "requestDetails": {

+    "modelInfo": {

+      "modelType": "configuration",

+      "modelInvariantId": "c30a024e-a6c6-4670-b73c-3df64eb57ff6",

+      "modelVersionId": "f58d039d-4cfc-40ec-bd75-1f05f0458a6c",

+      "modelName": "Port Mirroring Configuration By Policy",

+      "modelVersion": "1.0",

+      "modelCustomizationId": "4b7ebace-bad6-4526-9be6-bf248e20fc5f",

+      "modelCustomizationName": "Port Mirroring Configuration By Policy 1"

+    },

+    "cloudConfiguration": {

+      "lcpCloudRegionId": "AAIAIC25"

+    },

+    "requestInfo": {

+      "instanceName":"test_sssdad",

+      "source": "VID",

+      "requestorId": "1"

+    },

+    "relatedInstanceList": [

+      {

+        "relatedInstance": {

+          "instanceId": "c187e9fe-40c3-4862-b73e-84ff056205f6 ",

+          "modelInfo": {

+            "modelType": "service",

+            "modelInvariantId": "b7d923c9-6175-41f1-91ba-4565c4953408",

+            "modelVersionId": "ee6d61be-4841-4f98-8f23-5de9da846ca7",

+            "modelName": "ServiceContainerMultiplepProbes",

+            "modelVersion": "1.0"

+          }

+        }

+      },

+      {

+        "relatedInstance": {

+          "instanceId": "9be14a4f-7367-4cf9-96a1-f08f10f485a7",

+          "instanceDirection": "source",

+          "modelInfo": {

+            "modelType": "vnf",

+            "modelInvariantId": "a7eac2b3-8444-40ee-92e3-b3359b32445c",

+            "modelVersionId": "2a2ea15f-07c6-4b89-bfca-e8aba39a34d6",

+            "modelName": "vmmeService2",

+            "modelVersion": "1.0",

+            "modelCustomizationId": "060be63d-5f9c-4fd0-8ef7-830d5e8eca17"

+          }

+        }

+      },

+      {

+        "relatedInstance": {

+          "instanceId": "AS-pnf2-10219--as988q",

+          "instanceDirection": "destination",

+          "modelInfo": {

+            "modelType": "pnf"

+          }

+        }

+      }

+    ],

+    "requestParameters": {

+      "userParams": []

+    }

+  }

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/test/resources/payload_jsons/mso_service_instantiation.json b/onap-enabler-be/src/test/resources/payload_jsons/mso_service_instantiation.json
new file mode 100644
index 0000000..115a715
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/payload_jsons/mso_service_instantiation.json
@@ -0,0 +1,95 @@
+{

+  "requestDetails": {

+    "modelInfo": {

+      "modelType": "service",

+      "modelInvariantId": "ff3514e3-5a33-55df-13ab-12abad84e7ff",

+      "modelVersionId": "fe6985cd-ea33-3346-ac12-ab121484a3fe",

+      "modelName": "Test",

+      "modelVersion": "1.0"

+    },

+    "cloudConfiguration": {

+      "lcpCloudRegionId": "mdt1",

+      "tenantId": "88a6ca3ee0394ade9403f075db23167e"

+    },

+    "owningEntity": {

+      "owningEntityId": "038d99af-0427-42c2-9d15-971b99b9b489",

+      "owningEntityName": "PACKET CORE"

+    },

+    "project": {

+      "projectName": "TODO"

+    },

+    "subscriberInfo": {

+      "globalSubscriberId": "TODO",

+      "subscriberName": "TODO"

+    },

+    "requestInfo": {

+      "productFamilyId":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",

+      "source": "VID",

+      "suppressRollback": true,

+      "requestorId": "az2016"

+    },

+    "requestParameters": {

+      "subscriptionServiceType":"MOG",

+      "aLaCarte": false,

+      "userParams": [{

+        "name": "TODO",

+        "value": "TODO"

+      }

+      ]

+    }

+  }

+}

+/*

+{

+  "modelInfo":{

+    "modelType":"service",

+    "modelInvariantId":"5d48acb5-097d-4982-aeb2-f4a3bd87d31b",

+    "modelVersionId":"3c40d244-808e-42ca-b09a-256d83d19d0a",

+    "modelName":"MOW AVPN vMX BV vPE 1 Service",

+    "modelVersion":"10.0"

+  },

+  "owningEntityId":"038d99af-0427-42c2-9d15-971b99b9b489",

+  "owningEntityName":"PACKET CORE",

+  "projectName":"{some project name}",

+  "globalSubscriberId":"{some subscriber id}",

+  "productFamilyId":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",

+  "instanceName":"vPE_Service",

+  "subscriptionServiceType":"VMX",

+  "lcpCloudRegionId":"mdt1",

+  "tenantId":"88a6ca3ee0394ade9403f075db23167e",

+  "vnfs":[

+    {

+      "modelInfo":{

+        "modelName":"2016-73_MOW-AVPN-vPE-BV-L",

+        "modelVersionId":"7f40c192-f63c-463e-ba94-286933b895f8",

+        "modelCustomizationName":"2016-73_MOW-AVPN-vPE-BV-L 0",

+        "modelCustomizationId":"ab153b6e-c364-44c0-bef6-1f2982117f04"

+      },

+      "lcpCloudRegionId":"mdt1",

+      "tenantId":"88a6ca3ee0394ade9403f075db23167e",

+      "platformName":"test",

+      "productFamilyId":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",

+      "instanceName":"vmxnjr001",

+      "instanceParams":[

+

+      ],

+      "vfModules":[

+        {

+          "modelInfo":{

+            "modelType":"vfModule",

+            "modelName":"201673MowAvpnVpeBvL..AVPN_base_vPE_BV..module-0",

+            "modelVersionId":"4c75f813-fa91-45a4-89d0-790ff5f1ae79",

+            "modelCustomizationId":"a25e8e8c-58b8-4eec-810c-97dcc1f5cb7f"

+          },

+          "instanceName":"vmxnjr001_AVPN_base_vPE_BV_base_001",

+          "instanceParams":[

+            {

+              "vmx_int_net_len":"24"

+            }

+          ]

+        }

+      ]

+    }

+  ]

+}

+*/
\ No newline at end of file
diff --git a/onap-enabler-be/src/test/resources/payload_jsons/scaleOutVfModulePayload.json b/onap-enabler-be/src/test/resources/payload_jsons/scaleOutVfModulePayload.json
new file mode 100644
index 0000000..5fde429
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/payload_jsons/scaleOutVfModulePayload.json
@@ -0,0 +1,67 @@
+{

+    "vnfName":"test",

+    "vnfInstanceId":"123",

+    "relatedInstanceList": [

+      {

+        "relatedInstance": {

+          "instanceId": "fd84f066-ea75-4b23-acd0-3cf3fce7a99b",

+          "modelInfo": {

+            "modelType": "service",

+            "modelInvariantId": "c9817f08-07b2-458b-a02f-cd5407ee7a7b",

+            "modelVersionId": "0e0bb964-e687-4439-9a9e-de9cd1ff5367",

+            "modelName": "ws-service",

+            "modelVersion": "1.0",

+            "additionalProperties": {}

+          }

+        }

+      },

+      {

+        "relatedInstance": {

+          "instanceId": "980fe98e-47f8-4164-862d-4ebb026cec75",

+          "modelInfo": {

+            "modelType": "vnf",

+            "modelInvariantId": "734f0952-6678-44e7-8918-f9aa4694b687",

+            "modelVersionId": "0e0bb964-e687-4439-9a9e-de9cd1ff5367",

+            "modelName": "ws-sp",

+            "modelVersion": "1.0",

+            "modelCustomizationName": "ws-sp 0",

+            "modelCustomizationId": "5815868c-35f8-4c5a-b899-e6eb49f52986",

+            "additionalProperties": {}

+          }

+        }

+      }

+    ],

+    "cloudConfiguration": {

+      "lcpCloudRegionId": "RegionOne",

+      "tenantId": "1e097c6713e74fd7ac8e4295e605ee1e",

+      "additionalProperties": {}

+    },

+    "modelInfo": {

+      "modelCustomizationName": "WsSp..base_ws..module-0",

+      "modelCustomizationId": "bfcc8f57-7b56-4be8-a8f1-e44262c83318",

+      "modelInvariantId": "763b1172-b5f5-4062-9d79-2459710fa0bc",

+      "modelVersionId": "53f52586-236b-4d52-a94c-990883e054f0",

+      "modelName": "WsSp..base_ws..module-0",

+      "modelNameVersionId": null,

+      "modelType": "vfModule",

+      "modelVersion": "1",

+      "additionalProperties": {}

+    },

+    "requestInfo": {

+      "instanceName": "ws-test-0310-8_NaN",

+      "source": "VID",

+      "suppressRollback": false,

+      "requestorId": "demo",

+      "additionalProperties": {}

+    },

+    "requestParameters": {

+      "additionalProperties": {}

+    },

+    "configurationParameters": [

+      {

+        "availability-zone": "$.vnf-topology.vnf-resource-assignments.availability-zones.availability-zone[0]",

+        "xtz-123": "$.vnf-topology.vnf-resource-assignments.availability-zones.availability-zone[0]"

+      }

+    ]

+  }

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/test/resources/payload_jsons/scaleOutVfModulePayloadToMso.json b/onap-enabler-be/src/test/resources/payload_jsons/scaleOutVfModulePayloadToMso.json
new file mode 100644
index 0000000..5409f89
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/payload_jsons/scaleOutVfModulePayloadToMso.json
@@ -0,0 +1,66 @@
+{

+  "requestDetails": {

+    "relatedInstanceList": [

+      {

+        "relatedInstance": {

+          "instanceId": "fd84f066-ea75-4b23-acd0-3cf3fce7a99b",

+          "modelInfo": {

+            "modelType": "service",

+            "modelInvariantId": "c9817f08-07b2-458b-a02f-cd5407ee7a7b",

+            "modelVersionId": "0e0bb964-e687-4439-9a9e-de9cd1ff5367",

+            "modelName": "ws-service",

+            "modelVersion": "1.0",

+            "additionalProperties": {}

+          }

+        }

+      },

+      {

+        "relatedInstance": {

+          "instanceId": "980fe98e-47f8-4164-862d-4ebb026cec75",

+          "modelInfo": {

+            "modelType": "vnf",

+            "modelInvariantId": "734f0952-6678-44e7-8918-f9aa4694b687",

+            "modelVersionId": "0e0bb964-e687-4439-9a9e-de9cd1ff5367",

+            "modelName": "ws-sp",

+            "modelVersion": "1.0",

+            "modelCustomizationName": "ws-sp 0",

+            "modelCustomizationId": "5815868c-35f8-4c5a-b899-e6eb49f52986",

+            "additionalProperties": {}

+          }

+        }

+      }

+    ],

+    "cloudConfiguration": {

+      "lcpCloudRegionId": "RegionOne",

+      "tenantId": "1e097c6713e74fd7ac8e4295e605ee1e",

+      "additionalProperties": {}

+    },

+    "modelInfo": {

+      "modelCustomizationName": "WsSp..base_ws..module-0",

+      "modelCustomizationId": "bfcc8f57-7b56-4be8-a8f1-e44262c83318",

+      "modelInvariantId": "763b1172-b5f5-4062-9d79-2459710fa0bc",

+      "modelVersionId": "53f52586-236b-4d52-a94c-990883e054f0",

+      "modelName": "WsSp..base_ws..module-0",

+      "modelNameVersionId": null,

+      "modelType": "vfModule",

+      "modelVersion": "1",

+      "additionalProperties": {}

+    },

+    "requestInfo": {

+      "instanceName": "ws-test-0310-8_NaN",

+      "source": "VID",

+      "suppressRollback": false,

+      "requestorId": "demo",

+      "additionalProperties": {}

+    },

+    "requestParameters": {

+      "additionalProperties": {}

+    },

+    "configurationParameters": [

+      {

+        "availability-zone": "$.vnf-topology.vnf-resource-assignments.availability-zones.availability-zone[0]",

+        "xtz-123": "$.vnf-topology.vnf-resource-assignments.availability-zones.availability-zone[0]"

+      }

+    ]

+  }

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/test/resources/pnf.csar b/onap-enabler-be/src/test/resources/pnf.csar
new file mode 100644
index 0000000..eb42484
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/pnf.csar
Binary files differ
diff --git a/onap-enabler-be/src/test/resources/policy-configuration-by-policy-false.JSON b/onap-enabler-be/src/test/resources/policy-configuration-by-policy-false.JSON
new file mode 100644
index 0000000..648ff70
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/policy-configuration-by-policy-false.JSON
@@ -0,0 +1,166 @@
+{

+  "service": {

+    "uuid": "ee6d61be-4841-4f98-8f23-5de9da845544",

+    "invariantUuid": "b7d923c9-6175-41f1-91ba-4565c4955555",

+    "name": "ServiceContainerMultiplepProbes2",

+    "version": "2.0",

+    "toscaModelURL": null,

+    "category": "Network L1-3",

+    "serviceType": "portMirroring",

+    "serviceRole": "pProbe",

+    "description": "sdfsdfsdf",

+    "serviceEcompNaming": "true",

+    "inputs": {}

+  },

+  "vnfs": {},

+  "networks": {},

+  "configurations": {

+    "Port Mirroring Configuration By Policy 1": {

+      "uuid": "f58d039d-4cfc-40ec-bd75-1f05f0434567",

+      "invariantUuid": "c30a024e-a6c6-4670-b73c-3df64eb57ff6",

+      "description": "A port mirroring configuration by policy object",

+      "name": "Port Mirroring Configuration By Policy",

+      "version": "1.0",

+      "customizationUuid": "4b7ebace-bad6-4526-9be6-bf248e20fc5f",

+      "inputs": {},

+      "commands": {},

+      "properties": {

+        "collector_node": "pprobeservice_proxy 5",

+        "policy_name": "policy2",

+        "equip_vendor": "Cisco",

+        "equip_model": "Nexus 3048-TP"

+      },

+      "type": "Configuration",

+      "modelCustomizationName": "Port Mirroring Configuration By Policy 1",

+      "sourceNodes": [

+        "vmmeservice2_proxy 2",

+        "vmmeservice2_proxy 3"

+      ],

+      "collectorNodes": [

+        "pprobeservice_proxy 5"

+      ],

+      "configurationByPolicy": false

+    },

+    "Port Mirroring Configuration By Policy 0": {

+      "uuid": "f58d039d-4cfc-40ec-bd75-1f05f0458a6c",

+      "invariantUuid": "c30a024e-a6c6-4670-b73c-3df64eb57ff6",

+      "description": "A port mirroring configuration by policy object",

+      "name": "Port Mirroring Configuration By Policy",

+      "version": "1.0",

+      "customizationUuid": "08a181aa-72eb-435f-9593-e88a3ad0a86b",

+      "inputs": {},

+      "commands": {},

+      "properties": {

+        "collector_node": "pprobeservice_proxy 4",

+        "policy_name": "policy1",

+        "equip_vendor": "Cisco",

+        "equip_model": "Nexus 3048-TP"

+      },

+      "type": "Configuration",

+      "modelCustomizationName": "Port Mirroring Configuration By Policy 0",

+      "sourceNodes": [

+        "vmmeservice2_proxy 2",

+        "vmmeservice_proxy 1",

+        "vmmeservice_proxy 0"

+      ],

+      "collectorNodes": [

+      ],

+      "configurationByPolicy": true

+    }

+  },

+  "serviceProxies": {

+    "vmmeservice_proxy 0": {

+      "uuid": "a32fee17-5b59-4c34-ba6f-6dd2f1c61fee",

+      "invariantUuid": "2933b574-d28d-45ea-bf22-4df2907e4a10",

+      "description": "A Proxy for Service vmmeService",

+      "name": "vmmeService Service Proxy",

+      "version": "1.0",

+      "customizationUuid": "d7cfe338-eeda-4217-ba13-f24b0811fb17",

+      "inputs": {},

+      "commands": {},

+      "properties": {},

+      "type": "Service Proxy",

+      "sourceModelUuid": "c3e6c9bd-b24d-458e-aa99-e0cadf70c5e5",

+      "sourceModelInvariant": "dd8a805d-3946-4f11-9831-e26cd6aec9a3",

+      "sourceModelName": "vmmeService"

+    },

+    "vmmeservice_proxy 1": {

+      "uuid": "a32fee17-5b59-4c34-ba6f-6dd2f1c61fee",

+      "invariantUuid": "2933b574-d28d-45ea-bf22-4df2907e4a10",

+      "description": "A Proxy for Service vmmeService",

+      "name": "vmmeService Service Proxy",

+      "version": "1.0",

+      "customizationUuid": "7a69f133-564c-4eb6-b93e-0a8281967efb",

+      "inputs": {},

+      "commands": {},

+      "properties": {},

+      "type": "Service Proxy",

+      "sourceModelUuid": "c3e6c9bd-b24d-458e-aa99-e0cadf70c5e5",

+      "sourceModelInvariant": "dd8a805d-3946-4f11-9831-e26cd6aec9a3",

+      "sourceModelName": "vmmeService"

+    },

+    "vmmeservice2_proxy 3": {

+      "uuid": "a32fee17-5b59-4c34-ba6f-6dd2f1c61fee",

+      "invariantUuid": "2933b574-d28d-45ea-bf22-4df2907e4a10",

+      "description": "A Proxy for Service vmmeService2",

+      "name": "vmmeService2 Service Proxy",

+      "version": "1.0",

+      "customizationUuid": "9d81c21f-e29c-44f6-b5f6-caa974ee078a",

+      "inputs": {},

+      "commands": {},

+      "properties": {},

+      "type": "Service Proxy",

+      "sourceModelUuid": "2a2ea15f-07c6-4b89-bfca-e8aba39a34d6",

+      "sourceModelInvariant": "a7eac2b3-8444-40ee-92e3-b3359b32445c",

+      "sourceModelName": "vmmeService2"

+    },

+    "pprobeservice_proxy 4": {

+      "uuid": "a32fee17-5b59-4c34-ba6f-6dd2f1c61fee",

+      "invariantUuid": "2933b574-d28d-45ea-bf22-4df2907e4a10",

+      "description": "A Proxy for Service pProbeService",

+      "name": "pProbeService Service Proxy",

+      "version": "1.0",

+      "customizationUuid": "271efa3b-276e-4536-976a-cc9c9c014f1e",

+      "inputs": {},

+      "commands": {},

+      "properties": {},

+      "type": "Service Proxy",

+      "sourceModelUuid": "8a84e59b-45fe-4851-8ff1-34225a0b32c3",

+      "sourceModelInvariant": "83b458fd-5dd3-419b-a9e3-7335814a0911",

+      "sourceModelName": "pProbeService"

+    },

+    "pprobeservice_proxy 5": {

+      "uuid": "a32fee17-5b59-4c34-ba6f-6dd2f1c61fee",

+      "invariantUuid": "2933b574-d28d-45ea-bf22-4df2907e4a10",

+      "description": "A Proxy for Service pProbeService",

+      "name": "pProbeService Service Proxy",

+      "version": "1.0",

+      "customizationUuid": "d64623ae-5935-4afd-803e-c86e94d8e740",

+      "inputs": {},

+      "commands": {},

+      "properties": {},

+      "type": "Service Proxy",

+      "sourceModelUuid": "8a84e59b-45fe-4851-8ff1-34225a0b32c3",

+      "sourceModelInvariant": "83b458fd-5dd3-419b-a9e3-7335814a0911",

+      "sourceModelName": "pProbeService"

+    },

+    "vmmeservice2_proxy 2": {

+      "uuid": "a32fee17-5b59-4c34-ba6f-6dd2f1c61fee",

+      "invariantUuid": "2933b574-d28d-45ea-bf22-4df2907e4a10",

+      "description": "A Proxy for Service vmmeService2",

+      "name": "vmmeService2 Service Proxy",

+      "version": "1.0",

+      "customizationUuid": "060be63d-5f9c-4fd0-8ef7-830d5e8eca17",

+      "inputs": {},

+      "commands": {},

+      "properties": {},

+      "type": "Service Proxy",

+      "sourceModelUuid": "2a2ea15f-07c6-4b89-bfca-e8aba39a34d6",

+      "sourceModelInvariant": "a7eac2b3-8444-40ee-92e3-b3359b32445c",

+      "sourceModelName": "vmmeService2"

+    }

+  },

+  "vfModules": {},

+  "volumeGroups": {},

+  "pnfs": {}

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/test/resources/policy-configuration-csar.JSON b/onap-enabler-be/src/test/resources/policy-configuration-csar.JSON
new file mode 100644
index 0000000..77f2685
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/policy-configuration-csar.JSON
@@ -0,0 +1,168 @@
+{

+  "service": {

+    "uuid": "ee6d61be-4841-4f98-8f23-5de9da846ca7",

+    "invariantUuid": "b7d923c9-6175-41f1-91ba-4565c4953408",

+    "name": "ServiceContainerMultiplepProbes",

+    "version": "1.0",

+    "toscaModelURL": null,

+    "category": "Network L1-3",

+    "serviceType": "portMirroring",

+    "serviceRole": "pProbe",

+    "description": "sdfsdfsdf",

+    "serviceEcompNaming": "true",

+    "inputs": {}

+  },

+  "vnfs": {},

+  "networks": {},

+  "configurations": {

+    "Port Mirroring Configuration By Policy 1": {

+      "uuid": "f58d039d-4cfc-40ec-bd75-1f05f0458a6c",

+      "invariantUuid": "c30a024e-a6c6-4670-b73c-3df64eb57ff6",

+      "description": "A port mirroring configuration by policy object",

+      "name": "Port Mirroring Configuration By Policy",

+      "version": "1.0",

+      "customizationUuid": "4b7ebace-bad6-4526-9be6-bf248e20fc5f",

+      "inputs": {},

+      "commands": {},

+      "properties": {

+        "collector_node": "pprobeservice_proxy 5",

+        "policy_name": "policy2",

+        "equip_vendor": "Cisco",

+        "equip_model": "Nexus 3048-TP"

+      },

+      "type": "Configuration",

+      "modelCustomizationName": "Port Mirroring Configuration By Policy 1",

+      "sourceNodes": [

+        "vmmeservice2_proxy 2",

+        "vmmeservice2_proxy 3",

+        "vmmeservice_proxy 1"

+      ],

+      "collectorNodes": [

+        "pprobeservice_proxy 5"

+      ],

+      "configurationByPolicy": true

+    },

+    "Port Mirroring Configuration By Policy 0": {

+      "uuid": "f58d039d-4cfc-40ec-bd75-1f05f0458a6c",

+      "invariantUuid": "c30a024e-a6c6-4670-b73c-3df64eb57ff6",

+      "description": "A port mirroring configuration by policy object",

+      "name": "Port Mirroring Configuration By Policy",

+      "version": "1.0",

+      "customizationUuid": "08a181aa-72eb-435f-9593-e88a3ad0a86b",

+      "inputs": {},

+      "commands": {},

+      "properties": {

+        "collector_node": "pprobeservice_proxy 4",

+        "policy_name": "policy1",

+        "equip_vendor": "Cisco",

+        "equip_model": "Nexus 3048-TP"

+      },

+      "type": "Configuration",

+      "modelCustomizationName": "Port Mirroring Configuration By Policy 0",

+      "sourceNodes": [

+        "vmmeservice2_proxy 2",

+        "vmmeservice_proxy 1",

+        "vmmeservice_proxy 0"

+      ],

+      "collectorNodes": [

+        "pprobeservice_proxy 4"

+      ],

+      "configurationByPolicy": true

+    }

+  },

+  "serviceProxies": {

+    "vmmeservice_proxy 0": {

+      "uuid": "a32fee17-5b59-4c34-ba6f-6dd2f1c61fee",

+      "invariantUuid": "2933b574-d28d-45ea-bf22-4df2907e4a10",

+      "description": "A Proxy for Service vmmeService",

+      "name": "vmmeService Service Proxy",

+      "version": "1.0",

+      "customizationUuid": "d7cfe338-eeda-4217-ba13-f24b0811fb17",

+      "inputs": {},

+      "commands": {},

+      "properties": {},

+      "type": "Service Proxy",

+      "sourceModelUuid": "c3e6c9bd-b24d-458e-aa99-e0cadf70c5e5",

+      "sourceModelInvariant": "dd8a805d-3946-4f11-9831-e26cd6aec9a3",

+      "sourceModelName": "vmmeService"

+    },

+    "vmmeservice_proxy 1": {

+      "uuid": "a32fee17-5b59-4c34-ba6f-6dd2f1c61fee",

+      "invariantUuid": "2933b574-d28d-45ea-bf22-4df2907e4a10",

+      "description": "A Proxy for Service vmmeService",

+      "name": "vmmeService Service Proxy",

+      "version": "1.0",

+      "customizationUuid": "7a69f133-564c-4eb6-b93e-0a8281967efb",

+      "inputs": {},

+      "commands": {},

+      "properties": {},

+      "type": "Service Proxy",

+      "sourceModelUuid": "c3e6c9bd-b24d-458e-aa99-e0cadf70c5e5",

+      "sourceModelInvariant": "dd8a805d-3946-4f11-9831-e26cd6aec9a3",

+      "sourceModelName": "vmmeService"

+    },

+    "vmmeservice2_proxy 3": {

+      "uuid": "a32fee17-5b59-4c34-ba6f-6dd2f1c61fee",

+      "invariantUuid": "2933b574-d28d-45ea-bf22-4df2907e4a10",

+      "description": "A Proxy for Service vmmeService2",

+      "name": "vmmeService2 Service Proxy",

+      "version": "1.0",

+      "customizationUuid": "9d81c21f-e29c-44f6-b5f6-caa974ee078a",

+      "inputs": {},

+      "commands": {},

+      "properties": {},

+      "type": "Service Proxy",

+      "sourceModelUuid": "2a2ea15f-07c6-4b89-bfca-e8aba39a34d6",

+      "sourceModelInvariant": "a7eac2b3-8444-40ee-92e3-b3359b32445c",

+      "sourceModelName": "vmmeService2"

+    },

+    "pprobeservice_proxy 4": {

+      "uuid": "a32fee17-5b59-4c34-ba6f-6dd2f1c61fee",

+      "invariantUuid": "2933b574-d28d-45ea-bf22-4df2907e4a10",

+      "description": "A Proxy for Service pProbeService",

+      "name": "pProbeService Service Proxy",

+      "version": "1.0",

+      "customizationUuid": "271efa3b-276e-4536-976a-cc9c9c014f1e",

+      "inputs": {},

+      "commands": {},

+      "properties": {},

+      "type": "Service Proxy",

+      "sourceModelUuid": "8a84e59b-45fe-4851-8ff1-34225a0b32c3",

+      "sourceModelInvariant": "83b458fd-5dd3-419b-a9e3-7335814a0911",

+      "sourceModelName": "pProbeService"

+    },

+    "pprobeservice_proxy 5": {

+      "uuid": "a32fee17-5b59-4c34-ba6f-6dd2f1c61fee",

+      "invariantUuid": "2933b574-d28d-45ea-bf22-4df2907e4a10",

+      "description": "A Proxy for Service pProbeService",

+      "name": "pProbeService Service Proxy",

+      "version": "1.0",

+      "customizationUuid": "d64623ae-5935-4afd-803e-c86e94d8e740",

+      "inputs": {},

+      "commands": {},

+      "properties": {},

+      "type": "Service Proxy",

+      "sourceModelUuid": "8a84e59b-45fe-4851-8ff1-34225a0b32c3",

+      "sourceModelInvariant": "83b458fd-5dd3-419b-a9e3-7335814a0911",

+      "sourceModelName": "pProbeService"

+    },

+    "vmmeservice2_proxy 2": {

+      "uuid": "a32fee17-5b59-4c34-ba6f-6dd2f1c61fee",

+      "invariantUuid": "2933b574-d28d-45ea-bf22-4df2907e4a10",

+      "description": "A Proxy for Service vmmeService2",

+      "name": "vmmeService2 Service Proxy",

+      "version": "1.0",

+      "customizationUuid": "060be63d-5f9c-4fd0-8ef7-830d5e8eca17",

+      "inputs": {},

+      "commands": {},

+      "properties": {},

+      "type": "Service Proxy",

+      "sourceModelUuid": "2a2ea15f-07c6-4b89-bfca-e8aba39a34d6",

+      "sourceModelInvariant": "a7eac2b3-8444-40ee-92e3-b3359b32445c",

+      "sourceModelName": "vmmeService2"

+    }

+  },

+  "vfModules": {},

+  "volumeGroups": {},

+  "pnfs": {}

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/test/resources/roles.json b/onap-enabler-be/src/test/resources/roles.json
new file mode 100644
index 0000000..db32392
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/roles.json
@@ -0,0 +1,8 @@
+{

+  "roles": [

+    "VID_Subscriber_serviceType1_Tenant1",

+    "VID_Subscriber_serviceType1_Tenant2",

+    "read_motorola_epost_tow",

+    "read_motorola_epost"

+  ]

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/test/resources/sampleTosca.csar b/onap-enabler-be/src/test/resources/sampleTosca.csar
new file mode 100644
index 0000000..d9c469a
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/sampleTosca.csar
Binary files differ
diff --git a/onap-enabler-be/src/test/resources/services/change_management_software_update_expected_mso_request.json b/onap-enabler-be/src/test/resources/services/change_management_software_update_expected_mso_request.json
new file mode 100644
index 0000000..5bdc9ea
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/services/change_management_software_update_expected_mso_request.json
@@ -0,0 +1,15 @@
+{

+  "requestDetails": {

+    "cloudConfiguration": {

+      "lcpCloudRegionId": "mdt1",

+      "tenantId": "88a6ca3ee0394ade9403f075db23167e"

+    },

+    "requestInfo": {

+      "source": "VID",

+      "requestorId": "az2016"

+    },

+    "requestParameters": {

+      "payload": "{\"existing_software_version\": \"3.1\",\"new_software_version\": \"3.2\", \"operations_timeout\": \"3600\"}"

+    }

+  }

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/test/resources/services/change_management_software_update_request.json b/onap-enabler-be/src/test/resources/services/change_management_software_update_request.json
new file mode 100644
index 0000000..2ce2a77
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/services/change_management_software_update_request.json
@@ -0,0 +1,26 @@
+{ "requestDetails": [

+    {

+      "cloudConfiguration": {

+        "lcpCloudRegionId": "mdt1",

+        "tenantId": "88a6ca3ee0394ade9403f075db23167e"

+      },

+      "requestInfo": {

+        "source": "VID",

+        "requestorId": "az2016"

+      },

+      "requestParameters": {

+        "payload": "{\"existing_software_version\": \"3.1\",\"new_software_version\": \"3.2\", \"operations_timeout\": \"3600\"}"

+      },

+      "vnfName": "vidVnf",

+      "vnfInstanceId": "abe59ceb-6909-4a2c-ad6a-c46d90b18f0b",

+      "relatedInstanceList": [

+        {

+          "relatedInstance": {

+            "instanceId": "166b2c5b-6746-4613-bd38-faf46f7afb73"

+          }

+        }

+      ]

+    }

+  ],

+  "requestType": "VNF In Place Software Update"

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/test/resources/vf-csar.JSON b/onap-enabler-be/src/test/resources/vf-csar.JSON
new file mode 100644
index 0000000..b07ff37
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/vf-csar.JSON
@@ -0,0 +1,178 @@
+{

+  "networks": {

+

+  },

+  "service": {

+    "category": "Mobility",

+    "description": "Bla bla",

+    "serviceRole": null,

+    "serviceType": null,

+    "inputs": {

+      "greatdefect0_availability_zone_max_count": {

+        "constraints": [

+

+        ],

+        "default": 1,

+        "description": "",

+        "entry_schema": null,

+        "required": true,

+        "type": "integer"

+      },

+      "greatdefect0_itc_name_0": {

+        "constraints": [

+

+        ],

+        "default": "ab",

+        "description": "ixla itc instance name",

+        "entry_schema": null,

+        "required": true,

+        "type": "string"

+      },

+      "greatdefect0_vf_module_id": {

+        "constraints": [

+

+        ],

+        "default": "abc",

+        "description": "Unique ID for this VF Module instance",

+        "entry_schema": null,

+        "required": true,

+        "type": "string"

+      }

+    },

+    "invariantUuid": "bd9bf71a-df22-4c95-8638-89f15d875395",

+    "name": "Moriya_new_test",

+    "serviceEcompNaming": "true",

+    "toscaModelURL": null,

+    "uuid": "48a52540-8772-4368-9cdb-1f124ea5c931",

+    "version": "1.0",

+    "instantiationType": null

+  },

+  "vfModules": {

+    "greatdefect0..Greatdefect..base_ixla..module-0": {

+      "customizationUuid": "316e323d-611d-4007-a647-b1d2ecdaee9e",

+      "description": null,

+      "invariantUuid": "80ff85fb-cb11-42cb-9737-e47095d42756",

+      "modelCustomizationName": "Greatdefect..base_ixla..module-0",

+      "name": "Greatdefect..base_ixla..module-0",

+      "uuid": "01166434-ef34-4969-aaf2-626203d72e48",

+      "version": "3",

+      "volumeGroupAllowed": false

+    },

+    "greatdefect0..Greatdefect..module_1_ixla..module-2": {

+      "customizationUuid": "1106fca3-235a-4f92-8d5a-960a7336b32f",

+      "description": null,

+      "invariantUuid": "e0297a51-c670-452e-b31c-c5b37c6ad40f",

+      "modelCustomizationName": "Greatdefect..module_1_ixla..module-2",

+      "name": "Greatdefect..module_1_ixla..module-2",

+      "uuid": "6f09e053-56a6-4fbb-8299-e1de616825cc",

+      "version": "3",

+      "volumeGroupAllowed": false

+    },

+    "greatdefect0..Greatdefect..module_2_ixla..module-1": {

+      "customizationUuid": "b52c1fda-fbbf-4de3-ad9b-190d4a14990c",

+      "description": null,

+      "invariantUuid": "23befc6e-aa97-4004-b215-4979c3f84913",

+      "modelCustomizationName": "Greatdefect..module_2_ixla..module-1",

+      "name": "Greatdefect..module_2_ixla..module-1",

+      "uuid": "dea8e41f-c996-4557-b521-263210d96baa",

+      "version": "3",

+      "volumeGroupAllowed": false

+    }

+  },

+  "vnfs": {

+    "greatdefect 0": {

+      "uuid": "3b25707a-d345-4a80-8744-73adf8f2e67b",

+      "invariantUuid": "d149c45a-b42f-419a-9fac-f9c359fc2034",

+      "description": "checl-IdanWithSecondFix",

+      "name": "greatdefect",

+      "version": "3.0",

+      "customizationUuid": "9123ced3-fbcd-42f7-b103-5965c54bbd66",

+      "inputs": {

+

+      },

+      "commands": {

+

+      },

+      "properties": {

+        "availability_zone_max_count": "get_input:greatdefect0_availability_zone_max_count",

+        "itc_flavor_name": "nv.c8r24d160",

+        "itc_image_name": "NIMBUS_IXLA-ITC_8.20_EA_KVM_210117.qcow2",

+        "itc_name_0": "get_input:greatdefect0_itc_name_0",

+        "itm_flavor_name": "nv.c2r4d50",

+        "itm_image_name": "NIMBUS_IXLA-ITM_8.20.EA_KVM.qcow2",

+        "vf_module_id": "get_input:greatdefect0_vf_module_id"

+      },

+      "type": "VF",

+      "modelCustomizationName": "greatdefect 0",

+      "vfModules": {

+        "greatdefect0..Greatdefect..module_1_ixla..module-2": {

+          "uuid": "6f09e053-56a6-4fbb-8299-e1de616825cc",

+          "invariantUuid": "e0297a51-c670-452e-b31c-c5b37c6ad40f",

+          "customizationUuid": "1106fca3-235a-4f92-8d5a-960a7336b32f",

+          "description": null,

+          "name": "Greatdefect..module_1_ixla..module-2",

+          "version": "3",

+          "modelCustomizationName": "Greatdefect..module_1_ixla..module-2",

+          "properties": {

+            "minCountInstances": 0,

+            "maxCountInstances": null,

+            "initialCount": 0,

+            "vfModuleLabel": null

+          },

+          "inputs": {

+

+          },

+          "volumeGroupAllowed": false

+        },

+        "greatdefect0..Greatdefect..base_ixla..module-0": {

+          "uuid": "01166434-ef34-4969-aaf2-626203d72e48",

+          "invariantUuid": "80ff85fb-cb11-42cb-9737-e47095d42756",

+          "customizationUuid": "316e323d-611d-4007-a647-b1d2ecdaee9e",

+          "description": null,

+          "name": "Greatdefect..base_ixla..module-0",

+          "version": "3",

+          "modelCustomizationName": "Greatdefect..base_ixla..module-0",

+          "properties": {

+            "minCountInstances": 1,

+            "maxCountInstances": 1,

+            "initialCount": 1,

+            "vfModuleLabel": null

+          },

+          "inputs": {

+

+          },

+          "volumeGroupAllowed": false

+        },

+        "greatdefect0..Greatdefect..module_2_ixla..module-1": {

+          "uuid": "dea8e41f-c996-4557-b521-263210d96baa",

+          "invariantUuid": "23befc6e-aa97-4004-b215-4979c3f84913",

+          "customizationUuid": "b52c1fda-fbbf-4de3-ad9b-190d4a14990c",

+          "description": null,

+          "name": "Greatdefect..module_2_ixla..module-1",

+          "version": "3",

+          "modelCustomizationName": "Greatdefect..module_2_ixla..module-1",

+          "properties": null,

+          "inputs": {

+

+          },

+          "volumeGroupAllowed": false

+        }

+      },

+      "volumeGroups": {

+

+      }

+    }

+  },

+  "volumeGroups": {

+

+  },

+  "configurations": {

+

+  },

+  "serviceProxies": {

+

+  },

+  "pnfs": {

+

+  }

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/test/resources/vf-with-annotation-csar.json b/onap-enabler-be/src/test/resources/vf-with-annotation-csar.json
new file mode 100644
index 0000000..2729d6c
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/vf-with-annotation-csar.json
@@ -0,0 +1,644 @@
+{

+  "service": {

+    "uuid": "f4d84bb4-a416-4b4e-997e-0059973630b9",

+    "invariantUuid": "598e3f9e-3244-4d8f-a8e0-0e5d7a29eda9",

+    "name": "ADIOD vMX vPE_BV Service 488",

+    "version": "1.0",

+    "toscaModelURL": null,

+    "category": "Network L1-3",

+    "serviceType": "",

+    "serviceRole": "",

+    "description": "ADIOD vMX vPE based on Juniper 17.2 release. Updated with updated VF for v8.0 of VLM",

+    "serviceEcompNaming": "true",

+    "instantiationType": "Macro",

+    "inputs": {

+      "2017488_adiodvpe0_ASN": {

+        "type": "string",

+        "description": "AV/PE",

+        "entry_schema": null,

+        "inputProperties": null,

+        "constraints": [

+          

+        ],

+        "required": true,

+        "default": "AV_vPE"

+      }

+    }

+  },

+  "vnfs": {

+    "2017-488_ADIOD-vPE 0": {

+      "uuid": "ea81d6f7-0861-44a7-b7d5-d173b562c350",

+      "invariantUuid": "5be7e99e-8eb2-4d97-be63-8081ff3cd10e",

+      "description": "Name ADIOD vPE Description The provider edge function for the ADIOD service supported by the Junipers VMX product Category Router Vendor Juniper Vendor Release Code 17.2 Owners Mary Fragale. Updated 9-25 to use v8.0 of the Juniper Valid 2 VLM",

+      "name": "2017-488_ADIOD-vPE",

+      "version": "9.0",

+      "customizationUuid": "41516cc6-5098-4b40-a619-f8d5f55fc4d8",

+      "inputs": {

+

+      },

+      "commands": {

+        

+      },

+      "properties": {

+        "vmxvre_retype": "RE-VMX",

+        "vnf_config_template_version": "get_input:2017488_adiodvpe0_vnf_config_template_version",

+        "sriov44_net_id": "48d399b3-11ee-48a8-94d2-f0ea94d6be8d",

+        "int_ctl_net_id": "2f323477-6936-4d01-ac53-d849430281d9",

+        "vmxvpfe_sriov41_0_port_mac": "00:11:22:EF:AC:DF",

+        "int_ctl_net_name": "VMX-INTXI",

+        "vmx_int_ctl_prefix": "128.0.0.0",

+        "sriov43_net_id": "da349ca1-6de9-4548-be88-2d88e99bfef5",

+        "sriov42_net_id": "760669ba-013d-4d9b-b0e7-4151fe2e6279",

+        "sriov41_net_id": "25ad52d5-c165-40f8-b3b0-ddfc2373280a",

+        "nf_type": "ROUTER",

+        "vmxvpfe_int_ctl_ip_1": "128.0.0.16",

+        "is_AVPN_service": "false",

+        "vmx_RSG_name": "vREXI-affinity",

+        "vmx_int_ctl_forwarding": "l2",

+        "vmxvre_oam_ip_0": "10.40.123.5",

+        "vmxvpfe_sriov44_0_port_mac": "00:11:22:EF:AC:DF",

+        "vmxvpfe_sriov41_0_port_vlanstrip": "false",

+        "vmxvpfe_sriov42_0_port_vlanfilter": "4001",

+        "vmxvpfe_sriov44_0_port_unknownunicastallow": "true",

+        "vmxvre_image_name_0": "vre172_nova_img",

+        "vmxvre_instance": "0",

+        "vmxvpfe_sriov43_0_port_mac": "00:11:22:EF:AC:DF",

+        "vmxvre_flavor_name": "ns.c1r16d32.v5",

+        "vmxvpfe_volume_size_0": "40.0",

+        "vmxvpfe_sriov43_0_port_vlanfilter": "4001",

+        "nf_naming": "{ecomp_generated_naming=true}",

+        "multi_stage_design": "false",

+        "nf_naming_code": "me6",

+        "vmxvre_name_0": "vREXI",

+        "vmxvpfe_sriov42_0_port_vlanstrip": "false",

+        "vmxvpfe_volume_name_0": "vPFEXI_FBVolume",

+        "vmx_RSG_id": "bd89a33c-13c3-4a04-8fde-1a57eb123141",

+        "vmxvpfe_image_name_0": "vpfe172_nova_img",

+        "vmxvpfe_sriov43_0_port_unknownunicastallow": "true",

+        "vmxvpfe_sriov44_0_port_unknownmulticastallow": "true",

+        "vmxvre_console": "vidconsole",

+        "vmxvpfe_sriov44_0_port_vlanfilter": "4001",

+        "vmxvpfe_sriov42_0_port_mac": "00:11:22:EF:AC:DF",

+        "vmxvpfe_volume_id_0": "47cede15-da2f-4397-a101-aa683220aff3",

+        "vmxvpfe_sriov42_0_port_unknownmulticastallow": "true",

+        "vmxvpfe_sriov44_0_port_vlanstrip": "false",

+        "vf_module_id": "123",

+        "nf_function": "ADIOD vPE",

+        "vmxvpfe_sriov43_0_port_unknownmulticastallow": "true",

+        "vmxvre_int_ctl_ip_0": "128.0.0.1",

+        "AIC_CLLI": "get_input:2017488_adiodvpe0_AIC_CLLI",

+        "vnf_name": "mtnj309me6vre",

+        "vmxvpfe_sriov41_0_port_unknownunicastallow": "true",

+        "vmxvre_volume_type_1": "HITACHI",

+        "vmxvpfe_sriov44_0_port_broadcastallow": "true",

+        "vmxvre_volume_type_0": "HITACHI",

+        "vmxvpfe_volume_type_0": "HITACHI",

+        "vmxvpfe_sriov43_0_port_broadcastallow": "true",

+        "bandwidth_units": "get_input:2017488_adiodvpe0_bandwidth_units",

+        "vnf_id": "123",

+        "vmxvre_oam_prefix": "24",

+        "availability_zone_0": "get_input:2017488_adiodvpe0_availability_zone_0",

+        "ASN": "get_input:2017488_adiodvpe0_ASN",

+        "vmxvre_chassis_i2cid": "161",

+        "vmxvpfe_name_0": "vPFEXI",

+        "bandwidth": "get_input:2017488_adiodvpe0_bandwidth",

+        "availability_zone_max_count": "1",

+        "vmxvre_volume_size_0": "45.0",

+        "vmxvre_volume_size_1": "50.0",

+        "vmxvpfe_sriov42_0_port_broadcastallow": "true",

+        "vmxvre_oam_gateway": "10.40.123.1",

+        "vmxvre_volume_name_1": "vREXI_FAVolume",

+        "vmxvre_ore_present": "0",

+        "vmxvre_volume_name_0": "vREXI_FBVolume",

+        "vmxvre_type": "0",

+        "vnf_instance_name": "get_input:2017488_adiodvpe0_vnf_instance_name",

+        "vmxvpfe_sriov41_0_port_unknownmulticastallow": "true",

+        "oam_net_id": "b95eeb1d-d55d-4827-abb4-8ebb94941429",

+        "vmx_int_ctl_len": "24",

+        "vmxvpfe_sriov43_0_port_vlanstrip": "false",

+        "vmxvpfe_sriov41_0_port_broadcastallow": "true",

+        "vmxvre_volume_id_1": "6e86797e-03cd-4fdc-ba72-2957119c746d",

+        "vmxvpfe_sriov41_0_port_vlanfilter": "4001",

+        "nf_role": "vPE",

+        "vmxvre_volume_id_0": "f4eacb79-f687-4e9d-b760-21847c8bb15a",

+        "vmxvpfe_sriov42_0_port_unknownunicastallow": "true",

+        "vmxvpfe_flavor_name": "ns.c20r16d25.v5"

+      },

+      "type": "VF",

+      "modelCustomizationName": "2017-488_ADIOD-vPE 0",

+      "vfModules": {

+        "2017488_adiodvpe0..2017488AdiodVpe..ADIOD_vRE_BV..module-1": {

+          "uuid": "a5d8df05-11cb-4351-96e0-b6d4168ea4df",

+          "invariantUuid": "7253ff5c-97f0-4b8b-937c-77aeb4d79aa1",

+          "customizationUuid": "f3d97417-0c8d-424e-8ff7-b2eb4fbcecc3",

+          "description": null,

+          "name": "2017488AdiodVpe..ADIOD_vRE_BV..module-1",

+          "version": "8",

+          "modelCustomizationName": "2017488AdiodVpe..ADIOD_vRE_BV..module-1",

+          "properties": {

+            "minCountInstances": 0,

+            "maxCountInstances": null,

+            "initialCount": 0,

+            "vfModuleLabel": "ADIOD_vRE_BV"

+          },

+          "inputs": {

+            "2017488_adiodvpe0_bandwidth_units": {

+              "type": "string",

+              "description": "Units of bandwidth",

+              "entry_schema": null,

+              "inputProperties": {

+                "sourceType": "HEAT",

+                "vfModuleLabel": "ADIOD_vRE_BV",

+                "paramName": "bandwidth_units"

+              },

+              "constraints": null,

+              "required": true,

+              "default": "Gbps"

+            },

+            "2017488_adiodvpe0_bandwidth": {

+              "type": "string",

+              "description": "Requested VPE bandwidth",

+              "entry_schema": null,

+              "inputProperties": {

+                "sourceType": "HEAT",

+                "vfModuleLabel": "ADIOD_vRE_BV",

+                "paramName": "bandwidth"

+              },

+              "constraints": null,

+              "required": true,

+              "default": "10"

+            },

+            "2017488_adiodvpe0_vnf_instance_name": {

+              "type": "string",

+              "description": "The hostname assigned to the vpe.",

+              "entry_schema": null,

+              "inputProperties": {

+                "sourceType": "HEAT",

+                "vfModuleLabel": "ADIOD_vRE_BV",

+                "paramName": "vnf_instance_name"

+              },

+              "constraints": null,

+              "required": true,

+              "default": "mtnj309me6"

+            },

+            "2017488_adiodvpe0_vnf_config_template_version": {

+              "type": "string",

+              "description": "VPE Software Version",

+              "entry_schema": null,

+              "inputProperties": {

+                "sourceType": "HEAT",

+                "vfModuleLabel": "ADIOD_vRE_BV",

+                "paramName": "vnf_config_template_version"

+              },

+              "constraints": null,

+              "required": true,

+              "default": "17.2"

+            },

+            "2017488_adiodvpe0_AIC_CLLI": {

+              "type": "string",

+              "description": "AIC Site CLLI",

+              "entry_schema": null,

+              "inputProperties": {

+                "sourceType": "HEAT",

+                "vfModuleLabel": "ADIOD_vRE_BV",

+                "paramName": "AIC_CLLI"

+              },

+              "constraints": null,

+              "required": true,

+              "default": "ATLMY8GA"

+            }

+          },

+          "volumeGroupAllowed": true

+        },

+        "2017488_adiodvpe0..2017488AdiodVpe..ADIOD_base_vPE_BV..module-0": {

+          "uuid": "040e591e-5d30-4e0d-850f-7266e5a8e013",

+          "invariantUuid": "b34833bb-6aa9-4ad6-a831-70b06367a091",

+          "customizationUuid": "5c5f91f9-5e31-4120-b892-5536587ec258",

+          "description": null,

+          "name": "2017488AdiodVpe..ADIOD_base_vPE_BV..module-0",

+          "version": "6",

+          "modelCustomizationName": "2017488AdiodVpe..ADIOD_base_vPE_BV..module-0",

+          "properties": {

+            "minCountInstances": 1,

+            "maxCountInstances": 1,

+            "initialCount": 1,

+            "vfModuleLabel": "ADIOD_base_vPE_BV"

+          },

+          "inputs": {

+            

+          },

+          "volumeGroupAllowed": false

+        },

+        "2017488_adiodvpe0..2017488AdiodVpe..ADIOD_vPFE_BV..module-2": {

+          "uuid": "b3e8b26e-cff0-49fc-a4e6-f3e16c8440fe",

+          "invariantUuid": "eff8cc59-53a1-4101-aed7-8cf24ecf8339",

+          "customizationUuid": "6e410843-257c-46d9-ba8a-8d94e1362452",

+          "description": null,

+          "name": "2017488AdiodVpe..ADIOD_vPFE_BV..module-2",

+          "version": "8",

+          "modelCustomizationName": "2017488AdiodVpe..ADIOD_vPFE_BV..module-2",

+          "properties": {

+            "minCountInstances": 0,

+            "maxCountInstances": null,

+            "initialCount": 0,

+            "vfModuleLabel": "ADIOD_vPFE_BV"

+          },

+          "inputs": {

+            "2017488_adiodvpe0_availability_zone_0": {

+              "type": "string",

+              "description": "The Availability Zone to launch the instance.",

+              "entry_schema": null,

+              "inputProperties": {

+                "sourceType": "HEAT",

+                "vfModuleLabel": "ADIOD_vPFE_BV",

+                "paramName": "availability_zone_0"

+              },

+              "constraints": null,

+              "required": true,

+              "default": "mtpocfo-kvm-az01"

+            }

+          },

+          "volumeGroupAllowed": true

+        }

+      },

+      "volumeGroups": {

+        "2017488_adiodvpe0..2017488AdiodVpe..ADIOD_vRE_BV..module-1": {

+          "uuid": "a5d8df05-11cb-4351-96e0-b6d4168ea4df",

+          "invariantUuid": "7253ff5c-97f0-4b8b-937c-77aeb4d79aa1",

+          "customizationUuid": "f3d97417-0c8d-424e-8ff7-b2eb4fbcecc3",

+          "description": null,

+          "name": "2017488AdiodVpe..ADIOD_vRE_BV..module-1",

+          "version": "8",

+          "modelCustomizationName": "2017488AdiodVpe..ADIOD_vRE_BV..module-1",

+          "properties": {

+            "minCountInstances": 0,

+            "maxCountInstances": null,

+            "initialCount": 0,

+            "vfModuleLabel": "ADIOD_vRE_BV"

+          },

+          "inputs": {

+            "2017488_adiodvpe0_bandwidth_units": {

+              "type": "string",

+              "description": "Units of bandwidth",

+              "entry_schema": null,

+              "inputProperties": {

+                "sourceType": "HEAT",

+                "vfModuleLabel": "ADIOD_vRE_BV",

+                "paramName": "bandwidth_units"

+              },

+              "constraints": null,

+              "required": true,

+              "default": "Gbps"

+            },

+            "2017488_adiodvpe0_bandwidth": {

+              "type": "string",

+              "description": "Requested VPE bandwidth",

+              "entry_schema": null,

+              "inputProperties": {

+                "sourceType": "HEAT",

+                "vfModuleLabel": "ADIOD_vRE_BV",

+                "paramName": "bandwidth"

+              },

+              "constraints": null,

+              "required": true,

+              "default": "10"

+            },

+            "2017488_adiodvpe0_vnf_instance_name": {

+              "type": "string",

+              "description": "The hostname assigned to the vpe.",

+              "entry_schema": null,

+              "inputProperties": {

+                "sourceType": "HEAT",

+                "vfModuleLabel": "ADIOD_vRE_BV",

+                "paramName": "vnf_instance_name"

+              },

+              "constraints": null,

+              "required": true,

+              "default": "mtnj309me6"

+            },

+            "2017488_adiodvpe0_vnf_config_template_version": {

+              "type": "string",

+              "description": "VPE Software Version",

+              "entry_schema": null,

+              "inputProperties": {

+                "sourceType": "HEAT",

+                "vfModuleLabel": "ADIOD_vRE_BV",

+                "paramName": "vnf_config_template_version"

+              },

+              "constraints": null,

+              "required": true,

+              "default": "17.2"

+            },

+            "2017488_adiodvpe0_AIC_CLLI": {

+              "type": "string",

+              "description": "AIC Site CLLI",

+              "entry_schema": null,

+              "inputProperties": {

+                "sourceType": "HEAT",

+                "vfModuleLabel": "ADIOD_vRE_BV",

+                "paramName": "AIC_CLLI"

+              },

+              "constraints": null,

+              "required": true,

+              "default": "ATLMY8GA"

+            }

+          }

+        },

+        "2017488_adiodvpe0..2017488AdiodVpe..ADIOD_vPFE_BV..module-2": {

+          "uuid": "b3e8b26e-cff0-49fc-a4e6-f3e16c8440fe",

+          "invariantUuid": "eff8cc59-53a1-4101-aed7-8cf24ecf8339",

+          "customizationUuid": "6e410843-257c-46d9-ba8a-8d94e1362452",

+          "description": null,

+          "name": "2017488AdiodVpe..ADIOD_vPFE_BV..module-2",

+          "version": "8",

+          "modelCustomizationName": "2017488AdiodVpe..ADIOD_vPFE_BV..module-2",

+          "properties": {

+            "minCountInstances": 0,

+            "maxCountInstances": null,

+            "initialCount": 0,

+            "vfModuleLabel": "ADIOD_vPFE_BV"

+          },

+          "inputs": {

+            "2017488_adiodvpe0_availability_zone_0": {

+              "type": "string",

+              "description": "The Availability Zone to launch the instance.",

+              "entry_schema": null,

+              "inputProperties": {

+                "sourceType": "HEAT",

+                "vfModuleLabel": "ADIOD_vPFE_BV",

+                "paramName": "availability_zone_0"

+              },

+              "constraints": null,

+              "required": true,

+              "default": "mtpocfo-kvm-az01"

+            }

+          }

+        }

+      }

+    }

+  },

+  "networks": {

+    

+  },

+  "collectionResource": {

+    

+  },

+  "configurations": {

+    

+  },

+  "serviceProxies": {

+    

+  },

+  "vfModules": {

+    "2017488_adiodvpe0..2017488AdiodVpe..ADIOD_vRE_BV..module-1": {

+      "uuid": "a5d8df05-11cb-4351-96e0-b6d4168ea4df",

+      "invariantUuid": "7253ff5c-97f0-4b8b-937c-77aeb4d79aa1",

+      "customizationUuid": "f3d97417-0c8d-424e-8ff7-b2eb4fbcecc3",

+      "description": null,

+      "name": "2017488AdiodVpe..ADIOD_vRE_BV..module-1",

+      "version": "8",

+      "modelCustomizationName": "2017488AdiodVpe..ADIOD_vRE_BV..module-1",

+      "properties": {

+        "minCountInstances": 0,

+        "maxCountInstances": null,

+        "initialCount": 0,

+        "vfModuleLabel": "ADIOD_vRE_BV"

+      },

+      "inputs": {

+        "2017488_adiodvpe0_bandwidth_units": {

+          "type": "string",

+          "description": "Units of bandwidth",

+          "entry_schema": null,

+          "inputProperties": {

+            "sourceType": "HEAT",

+            "vfModuleLabel": "ADIOD_vRE_BV",

+            "paramName": "bandwidth_units"

+          },

+          "constraints": null,

+          "required": true,

+          "default": "Gbps"

+        },

+        "2017488_adiodvpe0_bandwidth": {

+          "type": "string",

+          "description": "Requested VPE bandwidth",

+          "entry_schema": null,

+          "inputProperties": {

+            "sourceType": "HEAT",

+            "vfModuleLabel": "ADIOD_vRE_BV",

+            "paramName": "bandwidth"

+          },

+          "constraints": null,

+          "required": true,

+          "default": "10"

+        },

+        "2017488_adiodvpe0_vnf_instance_name": {

+          "type": "string",

+          "description": "The hostname assigned to the vpe.",

+          "entry_schema": null,

+          "inputProperties": {

+            "sourceType": "HEAT",

+            "vfModuleLabel": "ADIOD_vRE_BV",

+            "paramName": "vnf_instance_name"

+          },

+          "constraints": null,

+          "required": true,

+          "default": "mtnj309me6"

+        },

+        "2017488_adiodvpe0_vnf_config_template_version": {

+          "type": "string",

+          "description": "VPE Software Version",

+          "entry_schema": null,

+          "inputProperties": {

+            "sourceType": "HEAT",

+            "vfModuleLabel": "ADIOD_vRE_BV",

+            "paramName": "vnf_config_template_version"

+          },

+          "constraints": null,

+          "required": true,

+          "default": "17.2"

+        },

+        "2017488_adiodvpe0_AIC_CLLI": {

+          "type": "string",

+          "description": "AIC Site CLLI",

+          "entry_schema": null,

+          "inputProperties": {

+            "sourceType": "HEAT",

+            "vfModuleLabel": "ADIOD_vRE_BV",

+            "paramName": "AIC_CLLI"

+          },

+          "constraints": null,

+          "required": true,

+          "default": "ATLMY8GA"

+        }

+      },

+      "volumeGroupAllowed": true

+    },

+    "2017488_adiodvpe0..2017488AdiodVpe..ADIOD_base_vPE_BV..module-0": {

+      "uuid": "040e591e-5d30-4e0d-850f-7266e5a8e013",

+      "invariantUuid": "b34833bb-6aa9-4ad6-a831-70b06367a091",

+      "customizationUuid": "5c5f91f9-5e31-4120-b892-5536587ec258",

+      "description": null,

+      "name": "2017488AdiodVpe..ADIOD_base_vPE_BV..module-0",

+      "version": "6",

+      "modelCustomizationName": "2017488AdiodVpe..ADIOD_base_vPE_BV..module-0",

+      "properties": {

+        "minCountInstances": 1,

+        "maxCountInstances": 1,

+        "initialCount": 1,

+        "vfModuleLabel": "ADIOD_base_vPE_BV"

+      },

+      "inputs": {

+        

+      },

+      "volumeGroupAllowed": false

+    },

+    "2017488_adiodvpe0..2017488AdiodVpe..ADIOD_vPFE_BV..module-2": {

+      "uuid": "b3e8b26e-cff0-49fc-a4e6-f3e16c8440fe",

+      "invariantUuid": "eff8cc59-53a1-4101-aed7-8cf24ecf8339",

+      "customizationUuid": "6e410843-257c-46d9-ba8a-8d94e1362452",

+      "description": null,

+      "name": "2017488AdiodVpe..ADIOD_vPFE_BV..module-2",

+      "version": "8",

+      "modelCustomizationName": "2017488AdiodVpe..ADIOD_vPFE_BV..module-2",

+      "properties": {

+        "minCountInstances": 0,

+        "maxCountInstances": null,

+        "initialCount": 0,

+        "vfModuleLabel": "ADIOD_vPFE_BV"

+      },

+      "inputs": {

+        "2017488_adiodvpe0_availability_zone_0": {

+          "type": "string",

+          "description": "The Availability Zone to launch the instance.",

+          "entry_schema": null,

+          "inputProperties": {

+            "sourceType": "HEAT",

+            "vfModuleLabel": "ADIOD_vPFE_BV",

+            "paramName": "availability_zone_0"

+          },

+          "constraints": null,

+          "required": true,

+          "default": "mtpocfo-kvm-az01"

+        }

+      },

+      "volumeGroupAllowed": true

+    }

+  },

+  "volumeGroups": {

+    "2017488_adiodvpe0..2017488AdiodVpe..ADIOD_vRE_BV..module-1": {

+      "uuid": "a5d8df05-11cb-4351-96e0-b6d4168ea4df",

+      "invariantUuid": "7253ff5c-97f0-4b8b-937c-77aeb4d79aa1",

+      "customizationUuid": "f3d97417-0c8d-424e-8ff7-b2eb4fbcecc3",

+      "description": null,

+      "name": "2017488AdiodVpe..ADIOD_vRE_BV..module-1",

+      "version": "8",

+      "modelCustomizationName": "2017488AdiodVpe..ADIOD_vRE_BV..module-1",

+      "properties": {

+        "minCountInstances": 0,

+        "maxCountInstances": null,

+        "initialCount": 0,

+        "vfModuleLabel": "ADIOD_vRE_BV"

+      },

+      "inputs": {

+        "2017488_adiodvpe0_bandwidth_units": {

+          "type": "string",

+          "description": "Units of bandwidth",

+          "entry_schema": null,

+          "inputProperties": {

+            "sourceType": "HEAT",

+            "vfModuleLabel": "ADIOD_vRE_BV",

+            "paramName": "bandwidth_units"

+          },

+          "constraints": null,

+          "required": true,

+          "default": "Gbps"

+        },

+        "2017488_adiodvpe0_bandwidth": {

+          "type": "string",

+          "description": "Requested VPE bandwidth",

+          "entry_schema": null,

+          "inputProperties": {

+            "sourceType": "HEAT",

+            "vfModuleLabel": "ADIOD_vRE_BV",

+            "paramName": "bandwidth"

+          },

+          "constraints": null,

+          "required": true,

+          "default": "10"

+        },

+        "2017488_adiodvpe0_vnf_instance_name": {

+          "type": "string",

+          "description": "The hostname assigned to the vpe.",

+          "entry_schema": null,

+          "inputProperties": {

+            "sourceType": "HEAT",

+            "vfModuleLabel": "ADIOD_vRE_BV",

+            "paramName": "vnf_instance_name"

+          },

+          "constraints": null,

+          "required": true,

+          "default": "mtnj309me6"

+        },

+        "2017488_adiodvpe0_vnf_config_template_version": {

+          "type": "string",

+          "description": "VPE Software Version",

+          "entry_schema": null,

+          "inputProperties": {

+            "sourceType": "HEAT",

+            "vfModuleLabel": "ADIOD_vRE_BV",

+            "paramName": "vnf_config_template_version"

+          },

+          "constraints": null,

+          "required": true,

+          "default": "17.2"

+        },

+        "2017488_adiodvpe0_AIC_CLLI": {

+          "type": "string",

+          "description": "AIC Site CLLI",

+          "entry_schema": null,

+          "inputProperties": {

+            "sourceType": "HEAT",

+            "vfModuleLabel": "ADIOD_vRE_BV",

+            "paramName": "AIC_CLLI"

+          },

+          "constraints": null,

+          "required": true,

+          "default": "ATLMY8GA"

+        }

+      }

+    },

+    "2017488_adiodvpe0..2017488AdiodVpe..ADIOD_vPFE_BV..module-2": {

+      "uuid": "b3e8b26e-cff0-49fc-a4e6-f3e16c8440fe",

+      "invariantUuid": "eff8cc59-53a1-4101-aed7-8cf24ecf8339",

+      "customizationUuid": "6e410843-257c-46d9-ba8a-8d94e1362452",

+      "description": null,

+      "name": "2017488AdiodVpe..ADIOD_vPFE_BV..module-2",

+      "version": "8",

+      "modelCustomizationName": "2017488AdiodVpe..ADIOD_vPFE_BV..module-2",

+      "properties": {

+        "minCountInstances": 0,

+        "maxCountInstances": null,

+        "initialCount": 0,

+        "vfModuleLabel": "ADIOD_vPFE_BV"

+      },

+      "inputs": {

+        "2017488_adiodvpe0_availability_zone_0": {

+          "type": "string",

+          "description": "The Availability Zone to launch the instance.",

+          "entry_schema": null,

+          "inputProperties": {

+            "sourceType": "HEAT",

+            "vfModuleLabel": "ADIOD_vPFE_BV",

+            "paramName": "availability_zone_0"

+          },

+          "constraints": null,

+          "required": true,

+          "default": "mtpocfo-kvm-az01"

+        }

+      }

+    }

+  },

+  "pnfs": {

+    

+  }

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/test/resources/vf-with-vfcInstanceGroups.json b/onap-enabler-be/src/test/resources/vf-with-vfcInstanceGroups.json
new file mode 100644
index 0000000..334e2a7
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/vf-with-vfcInstanceGroups.json
@@ -0,0 +1,135 @@
+{

+  "service": {

+    "uuid": "6bce7302-70bd-4057-b48e-8d5b99e686ca",

+    "invariantUuid": "9aa04749-c02c-432d-a90c-18caa361c833",

+    "name": "vDBE_srv",

+    "version": "1.0",

+    "toscaModelURL": null,

+    "category": "Network L4+",

+    "serviceType": "",

+    "serviceRole": "",

+    "description": "vDBE_srv",

+    "serviceEcompNaming": "true",

+    "instantiationType": "A-La-Carte",

+    "inputs": {

+      

+    }

+  },

+  "vnfs": {

+    "vDBE 0": {

+      "uuid": "61535073-2e50-4141-9000-f66fea69b433",

+      "invariantUuid": "fcdf49ce-6f0b-4ca2-b676-a484e650e734",

+      "description": "vDBE",

+      "name": "vDBE",

+      "version": "0.2",

+      "customizationUuid": "882e5dcb-ba9f-4766-8cde-e326638107db",

+      "inputs": {

+        

+      },

+      "commands": {

+        

+      },

+      "properties": {

+        "nf_naming": "{ecomp_generated_naming=true}",

+        "multi_stage_design": "false",

+        "oam_vfc_instance_group_function": "oambbb",

+        "availability_zone_max_count": "1",

+        "oam_network_collection_function": "oamaaa",

+        "ecomp_generated_naming": "true",

+        "untr_vfc_instance_group_function": "untrbbb",

+        "untr_network_collection_function": "untraaa"

+      },

+      "type": "VF",

+      "modelCustomizationName": "vDBE 0",

+      "vfModules": {

+        "vdbe0..Vdbe..main..module-0": {

+          "uuid": "25a4d009-2f5a-44b4-b02a-62c584c15912",

+          "invariantUuid": "614afb1a-3e7e-44e9-90ab-424d0070c781",

+          "customizationUuid": "3443b341-7b0b-498c-a84a-a7ee736cba7e",

+          "description": null,

+          "name": "Vdbe..main..module-0",

+          "version": "1",

+          "modelCustomizationName": "Vdbe..main..module-0",

+          "properties": {

+            "minCountInstances": 1,

+            "maxCountInstances": 1,

+            "initialCount": 1,

+            "vfModuleLabel": "main"

+          },

+          "inputs": {

+            

+          },

+          "volumeGroupAllowed": false

+        }

+      },

+      "volumeGroups": {

+        

+      },

+      "vfcInstanceGroups": {

+        "untr_group": {

+          "uuid": "5fca04e2-a889-4579-8338-f60f1bf285fa",

+          "invariantUuid": "fb1e384b-117a-46ae-9ad1-bf2f1ee1e49f",

+          "name": "untr_group",

+          "version": "1",

+          "vfcInstanceGroupProperties": {

+            "vfcParentPortRole": "untr",

+            "networkCollectionFunction": "untraaa",

+            "vfcInstanceGroupFunction": null,

+            "subinterfaceRole": "untr"

+          }

+        },

+        "oam_group": {

+          "uuid": "a0efd5fc-f7be-4502-936a-a6c6392b958f",

+          "invariantUuid": "9384abf9-1231-4da4-bd8d-89e4d2f8a749",

+          "name": "oam_group",

+          "version": "1",

+          "vfcInstanceGroupProperties": {

+            "vfcParentPortRole": "untr",

+            "networkCollectionFunction": "untraaa",

+            "vfcInstanceGroupFunction": null,

+            "subinterfaceRole": "untr"

+          }

+        }

+      }

+    }

+  },

+  "networks": {

+    

+  },

+  "collectionResource": {

+    

+  },

+  "configurations": {

+    

+  },

+  "serviceProxies": {

+    

+  },

+  "vfModules": {

+    "vdbe0..Vdbe..main..module-0": {

+      "uuid": "25a4d009-2f5a-44b4-b02a-62c584c15912",

+      "invariantUuid": "614afb1a-3e7e-44e9-90ab-424d0070c781",

+      "customizationUuid": "3443b341-7b0b-498c-a84a-a7ee736cba7e",

+      "description": null,

+      "name": "Vdbe..main..module-0",

+      "version": "1",

+      "modelCustomizationName": "Vdbe..main..module-0",

+      "properties": {

+        "minCountInstances": 1,

+        "maxCountInstances": 1,

+        "initialCount": 1,

+        "vfModuleLabel": "main"

+      },

+      "inputs": {

+        

+      },

+      "volumeGroupAllowed": false

+    }

+  },

+  "volumeGroups": {

+    

+  },

+  "pnfs": {

+    

+  }

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/test/resources/vl-csar.JSON b/onap-enabler-be/src/test/resources/vl-csar.JSON
new file mode 100644
index 0000000..8be2d09
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/vl-csar.JSON
@@ -0,0 +1,94 @@
+{

+    "service": {

+        "uuid": "68101369-6f08-4e99-9a28-fa6327d344f3",

+        "invariantUuid": "d752a44c-ac7b-4bda-8111-fb52312d101e",

+        "name": "Macro_flow_test",

+        "version": "1.0",

+        "toscaModelURL": null,

+        "category": "Network L1-3",

+        "serviceType": null,

+        "serviceRole": null,

+        "description": "dsfg",

+        "serviceEcompNaming": "true",

+        "instantiationType": "ClientConfig",

+        "inputs": {

+            "extvl0_network_scope": {

+                "type": "string",

+                "description": "Uniquely identifies the network scope. Valid values for the network scope   includes: VF - VF-level network. Intra-VF network which connects the VFCs (VMs) inside the VF. SERVICE - Service-level network. Intra-Service network which connects  the VFs within the service GLOBAL - Global network which can be shared by multiple services\n",

+                "entry_schema": null,

+                "inputProperties": null,

+                "constraints": [

+

+                ],

+                "required": true,

+                "default": null

+            },

+            "extvl0_network_role": {

+                "type": "string",

+                "description": "Unique label that defines the role that this network performs.   example: vce oam network, vnat sr-iov1 network\n",

+                "entry_schema": null,

+                "inputProperties": null,

+                "constraints": [

+

+                ],

+                "required": true,

+                "default": null

+            },

+            "extvl0_exVL_naming_naming_policy": {

+                "type": "string",

+                "description": "Reference to naming policy that ECOMP will use when the name is auto-generated",

+                "entry_schema": null,

+                "inputProperties": null,

+                "constraints": [

+

+                ],

+                "required": true,

+                "default": null

+            }

+        }

+    },

+    "vnfs": {

+

+    },

+    "networks": {

+        "ExtVL 0": {

+            "uuid": "af584529-d7f0-420e-a6f3-c38b689c030f",

+            "invariantUuid": "379f816b-a7aa-422f-be30-17114ff50b7c",

+            "description": "ECOMP generic virtual link (network) base type for all other service-level and global networks",

+            "name": "ExtVL",

+            "version": "4.0",

+            "customizationUuid": "664f8aa7-3989-46ac-81c0-dd72a8a63f26",

+            "inputs": {

+

+            },

+            "commands": {

+

+            },

+            "properties": {

+                "network_role": "get_input:extvl0_network_role",

+                "exVL_naming": "{naming_policy=get_input:extvl0_exVL_naming_naming_policy}",

+                "network_scope": "get_input:extvl0_network_scope"

+            },

+            "type": "VL",

+            "modelCustomizationName": "ExtVL 0"

+        }

+    },

+    "collectionResource": {

+

+    },

+    "configurations": {

+

+    },

+    "serviceProxies": {

+

+    },

+    "vfModules": {

+

+    },

+    "volumeGroups": {

+

+    },

+    "pnfs": {

+

+    }

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/test/resources/vnfConfigUpdatePayload.json b/onap-enabler-be/src/test/resources/vnfConfigUpdatePayload.json
new file mode 100644
index 0000000..94161d9
--- /dev/null
+++ b/onap-enabler-be/src/test/resources/vnfConfigUpdatePayload.json
@@ -0,0 +1,40 @@
+{

+    "payload":{

+        "request-parameters":{

+            "vm":[

+                {

+                    "vnfc":[

+                        {

+                            "ipaddress-v4-oam-vip":"135.21.166.39",

+                            "vnfc-name":"ibcx0001vm001dbg001",

+                            "vnfc-function-code":"dbg",

+                            "vnfc-type":"DBE-VM #1",

+                            "group-notation":"ibcx0001vm001dbg001pair"

+                        }

+                    ],

+                    "vm-name":"ibcx0001vm001"

+                },

+                {

+                    "vnfc":[

+                        {

+                            "vnfc-name":"ibcx0001vm002dbg001",

+                            "vnfc-function-code":"dbg",

+                            "vnfc-type":"DBE-VM #1",

+                            "group-notation":"ibcx0001vm001dbg001pair"

+                        }

+                    ],

+                    "vm-name":"ibcx0001vm002"

+                }

+            ],

+            "vnf-name":"ibcx0099v",

+            "template-name":"vdbe_template1"

+        },

+        "configuration":{

+            "configuration-json":"{\n   \"version\": \"15.1X49-D50.3\",\n   \"groups\": {\n      \"name\": \"node0\",\n      \"system\": {\n         \"host-name\": \"$node0_hostname\",\n         \"backup-router\": {\n            \"address\": \"$node0_backup_router_address\",\n            \"destination\": \"0.0.0.0/0\"\n         }\n      }\n   }\n}",

+            "configuration-string": "   <configuration xmlns=\"http://xml.juniper.net/xnm/1.1/xnm\" \n    xmlns:a=\"http://xml.juniper.net/junos/15.1X49/junos\" >\n            <version>15.1X49-D50.3<\/version>\n            <groups>\n                <name>node0<\/name>\n                <system>\n                    <host-name>$node0_hostname<\/host-name>\n                    <backup-router>\n                        <address>$node0_backup_router_address<\/address>\n                        <destination>0.0.0.0/0<\/destination>\n             <\/backup-router>\n                <\/system>\n     <\/groups>\n    <\/configuration>"

+        },

+        "configuration-parameters":{

+            "nat_source_sp_v6rogerssnat_address1":"2001:1890:fc45:f025:135:25:246:c806/128"

+        }

+    }

+}
\ No newline at end of file