summaryrefslogtreecommitdiffstats
path: root/src/app/shared
AgeCommit message (Collapse)AuthorFilesLines
2018-09-04vm-filtering.pipe- test caseArundathi Patil1-1/+1
Corrected the test case to test the proper condition Issue-ID: APPC-1064 Change-Id: Icdf24bba4f329399d99b82c60abc5445754f419c Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-09-04order-by.pipe- added test caseArundathi Patil1-0/+10
added test case to test and cover order orderByComparator() when orderby parameter is number. Issue-ID: APPC-1064 Change-Id: Ia3c1c17d4b95f58559c2467769b9071ed08a32ee Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-09-04utility.service.spec.ts : added test caseArundathi Patil1-0/+24
added test case to cover the condition when artifact-type is reference-data in createPayLoadForSave() function. Issue-ID: APPC-1064 Change-Id: I48b799c527cb93a1e186e6f649dc298ad1d0a90c Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-09-04mapping-editor.service- added test caseArundathi Patil1-0/+5
Wrote test case to test selectedObj() function Issue-ID: APPC-1064 Change-Id: I9be14de56c537f3ba16c8535eb278ccb5fb179cc Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-08-31utility.service- added test caseArundathi Patil1-0/+7
Added test case to test and cover processApiError() function. Issue-ID: APPC-1064 Change-Id: I2a6e4a131853bb36d54e40bfe38766b5e62d59b6 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-08-30mapping-editor service- added test caseArundathi Patil1-1/+6
added test case to test and cover the new methods 'setTemplateDataForStore' and 'getTemplateDataFromStore' in mapping-editor.service Issue-ID: APPC-1064 Change-Id: I473672f9976fa29d7412608c88bda6566b525f36 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-08-30utility.service- added test casesArundathi Patil1-1/+13
added test cases to test an cover new metho 'setTraceVl()' function in utility.service Issue-ID: APPC-1064 Change-Id: Ifd9c87e48b36e8d11614de68a0f022b01b4d3537 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-08-28APPC CDT to Support Multiple Templates for VNFCsod74272-1/+23
APPC CDT Should Support Multiple Templates For Configure and ConfigModify for VNFs with VNFC level templates. CDT would be used to create a single reference artifact for a VNF. For the Configure related actions (Configure and ConfigModify) vnfc-type to be shown at the top. The user would have a new link below it, to be able to add each vnfc-type. For each vnfc-type, the user would create the associated template and PD file as usual. The fix required to modify several visual elements and variables related to VNFC Types on MyVNFS page, ReferenceData page, Template page and Parameters page. Also a number of supporting services were modified. New Modal window type is now used for VNFC-related dialogs. Change-Id: Ibbbb50e2ff6f96783c0aea89a6870d7c28021ba0 Issue-ID: APPC-1010 Signed-off-by: od7427 <od7427@att.com>
2018-08-19navigation.component.html:removed unused codeArundathi Patil1-18/+2
In navigation.component.html file, modal-pop-up was implemented which is never used anywhere in the component. Hence removing it. Issue-ID: APPC-1054 Change-Id: Ib9087f7c07a4dd494a350f3a24390150512afbdc Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-08-14modal component : added spec fileArundathi Patil1-0/+49
wrote test cases to cover modal component. Issue-ID: APPC-1064 Change-Id: I0ad365ef28e4ae411cdf5d02588767cf79bdc4c5 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-08-13Mapping-editor service- added test caseArundathi Patil1-0/+6
Wrote test case to cover handleKetCompletion function in mapping-editor service. Issue-ID: APPC-1064 Change-Id: Iefb8e1d5dca1fedbcb6e50d9733ead46d6b5ee0e Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-08-10mapping-editor-service : added test caseArundathi Patil1-0/+5
wrote test case to test getKeysForValues() function Issue-ID: APPC-1064 Change-Id: I7055986e9722a9b3889601ce94c3da7dcc16b96e Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-08-08order-by.pipe : added test caseArundathi Patil1-1/+13
wrote test case to test order-by-pipe to return proper value when orderby parameter is not set. Issue-ID: APPC-1064 Change-Id: I4496e9a3371b540ce0da63ef254a4d9bc4214710 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-08-08table-filter pipe : added test caseArundathi Patil1-1/+14
wrote test case to test table-filter pipe to return proper value when no query parameter is passed Issue-ID: APPC-1064 Change-Id: I29826f3413fd8dfe7b86c6461f0d7a7a237520b4 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-08-07Utility service : added test caseArundathi Patil1-0/+10
Wrote test cases to cover checkNotNull function in utility service. Issue-ID: APPC-1064 Change-Id: Icb9dc8872634e8772349e1bbbb7f15f39d292aec Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-08-06dropdownnotclosablezone directive :added test caseArundathi Patil1-3/+12
wrote test case to cover contains function of the directive Issue-ID: APPC-1064 Change-Id: I510d121be6dff5c286a89db13bde5c9c46216e85 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-08-06dropdownopen directive : added test caseArundathi Patil1-0/+37
wrote test case to cover toggle function. Issue-ID: APPC-1064 Change-Id: Ia10c602e385bb087114b16e58fed03ddc51b8d31 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-08-06utility service : added test caseArundathi Patil1-2/+10
wrote test case to cover processApiSubscribe function on artifact upload Issue-ID: APPC-1064 Change-Id: I9e01f6c9e9a099a5fff44924ed4158efeb56d467 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-08-02Test cases - UtilityServiceArundathi Patil1-0/+10
Wrote test cases in uitilityService to cover processApiSubscribe function Issue-ID: APPC-1064 Change-Id: Id6852114581a761550f49fa59e749140d377f0fc Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-07-30UtilityService: Removed hard coded valuesArundathi Patil1-22/+23
Moved the hard coded values from utility service file to app-contants file as variables. Issue-ID: APPC-1054 Change-Id: Iac62da47deeeb66402f413e90ee0ab50130ca185 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-07-26added spec file for confirm.componentArundathi Patil1-0/+59
Wrote test cases for confirm modal component. Issue-ID: APPC-1064 Change-Id: I6cac13f52730c31cd98e14fc8874012224b938f9 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-07-25wrote test case for mapping-editor serviceArundathi Patil1-1/+196
Wrote unit test cases for mapping-editor service. The covarage for this file is now 75.96% Issue-ID: APPC-1064 Change-Id: I4c413a076dd6194da9a19481c0fdc42f0ffe5789 Signed-off-by: Arundathi Patil<arundpil@in.ibm.com>
2018-07-24Made use of ng2-bootstrap-modal.Arundathi Patil1-7/+20
This will remove all the duplicate code of ng-bootstrap popup. Made following changes to the below files, 1. app.module.ts: a. added the confirm modal component to declarations and entryComponents section because component will be created dynamically. b. imported BootstrapModalModule from ng2-bootstrap-modal 2. vnfs.module.ts: a. removed the confirm modal component from declarations and entryComponents section as it is already declared as part of app.module.ts. 3. confirm.component.ts: a. added two more varibles 'cancelButtonText' and 'confirmButtonText' to ConfirmModel interface. these values will be sent by the caller code and the button lables will be set dynamically. b. implemented cancel method that sets the modal result value to false, this is called on click of close button. 4. about.component.ts: a. Made use of confirm.component.ts. b. on click of 'view change log' buton we are calling open() method which inturn opens the confirm modal component. 5. about.component.html: a. Removed call to versionLogFile() method as this method is called from open() method. b. Removed the ng-template code of ng-bootstrap which is no more required. Issue-ID: APPC-1088 Change-Id: I9de545debed145ef35e31807acd1e9bd9cc2bad4 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-07-19Removed fdescribeArundathi Patil1-1/+1
Removed fdescribe which was accidentally checked-in. Issue-ID: APPC-1064 Change-Id: I08265f3de9cea66836ed7e194e4bd4f9d1159e7f Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-07-18added util methods to utility serviceSandeep J1-5/+132
added methods in utility service for creating common payload method for save andretrieve and downloading artifact Issue-ID: APPC-1063 Change-Id: I05d8e0df05bf74fe30358b0a44506baf03442a99 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-07-18Fixed errorArundathi Patil1-7/+5
Unable to run the test cases due to the below error in paramShare service spec file, "Argument of type '{ displayName: string; displayValue: string;}[]' is not assignable to parameter of type 'Expected<{[index: string]: string } >' " Fixed this error. Issue-ID: APPC-1064 Change-Id: I9b9e99e9a5ed4a14469eb595625d1b3fd91e6672 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-07-17Removed fdescribeArundathi Patil1-1/+1
Removed fdescribe in mapping-editor service file which was accidentally checked-in in the previous checkin Issue-ID: APPC-1064 Change-Id: I1151dda4881ba31198b176e14f9322d18126ab93 Signed-off-by: Arundathi <arundpil@in.ibm.com>
2018-07-16Added a unit test case for collapse directive.IBM602-PC0F1E3C\Arundathi1-2/+8
Added a unit test case that covers the get collapse() function in collapse directive. Issue-ID: APPC-1064 Change-Id: I273cb3a515bae9140fd7807cfa2d11bdee254cfa Signed-off-by: Arundathi <arundpil@in.ibm.com>
2018-07-16Unsubscribed from observable subscription.IBM602-PC0F1E3C\Arundathi1-6/+16
Unsubscribed from observable in navigation component in ngOnDestroy method. This will dispose the resource that the subscription holds. Issue-ID: APPC-1049 Change-Id: I63203c7f3af9fb83b58bea91d9a21219611c7f7f Signed-off-by: Arundathi <arundpil@in.ibm.com>
2018-07-16Added spec file paramShare service.IBM602-PC0F1E3C\Arundathi1-0/+81
Wrote unit test case for paramShare service. The file is now covered 100%. Issue-ID: APPC-1064 Change-Id: Ie3f8768577435eba4b2922d239567871f8a5ccaf Signed-off-by: Arundathi <arundpil@in.ibm.com>
2018-07-16Added spec file for notification service.IBM602-PC0F1E3C\Arundathi1-0/+63
wrote unit test case for notification service. Issue-ID: APPC-1064 Change-Id: Ib5459ae4795b8d2b225d8953a7d707ce516b8ee3 Signed-off-by: Arundathi <arundpil@in.ibm.com>
2018-07-16Added spec file mapping-editor service.IBM602-PC0F1E3C\Arundathi1-0/+111
Wrote unit test case for mapping-editor service. Issue-ID: APPC-1064 Change-Id: I99f439a8b8d841d81bf01d85cf9744e64d78fc35 Signed-off-by: Arundathi <arundpil@in.ibm.com>
2018-05-08added code to allow headers in requestsj108s1-1/+1
changed http util service to allow headers in the api request Issue-ID: APPC-885 Change-Id: Ia85148eefdc217011155099b33ac39cc638dd734 Signed-off-by: sj108s <sj108s@us.att.com>
2018-04-27Fixed parsing of retrieved openstack ref datasj108s1-2/+1
Fixed parsing of retrieved data in case of openstack action and also fixed browser hang while syncing large template Issue-ID: APPC-867 Change-Id: I3058626cb5a21c01a9b261d470672db5d0f17926 Signed-off-by: sj108s <sj108s@us.att.com>
2018-04-03Corrected artifact name for multiple template idssj108s1-7/+4
Made changes in param name value component ts for setting correct artifact name while saving and retrieving artifacts, in case of multiple template ids. Issue-ID: APPC-812 Change-Id: I973f7b763f4c2204425fceb77cdae33944ba3c8d Signed-off-by: sj108s <sj108s@us.att.com>
2018-03-15Added few more test case & fixed modal in templatesj108s2-39/+50
Added few more test cases to improve code coverage and changed trigger command for modal in template page from Enter to ctrl-4 Issue-ID: APPC-697 Change-Id: I4a158ba687bad0bb2f808428333083200714f18a Signed-off-by: sj108s <sj108s@us.att.com>
2018-03-13Fixed defects in test screen & updated test casessj108s13-125/+401
Fixed few defects raised by ST in test screen and also updated test cases to improve coverage. Also,changed code to match onap standards, and rectfied grep code violations. Issue-ID: APPC-730 Change-Id: I0286c38eb4f76dc8c0253a4ccab721b3ccfeff9d Signed-off-by: sj108s <sj108s@us.att.com>
2018-03-08Added some test cases on httputil service.Mohamed Asgar Samiulla(ma926a)2-1/+47
Created a new test for dropdown.ts Issue-ID: APPC-717 Change-Id: Ic4e63520bbf16a7bd0d8ca0e0896d15ce3412d5d Signed-off-by: Mohamed Asgar Samiulla(ma926a) <ma926a@us.att.com>
2018-03-01Initial seed code contribution for CDTSkip Wonnell45-0/+2930
Issue-ID: APPC-682 Change-Id: I0331ffce2a430195c29d0d1b2295966f9eb28699 Signed-off-by: Skip Wonnell <skip@att.com>