appc/cdt.git
5 years agoAPPC CDT to Support Multiple Templates -addit.fix 57/66257/1
od7427 [Thu, 13 Sep 2018 01:42:41 +0000 (21:42 -0400)]
APPC CDT to Support Multiple Templates -addit.fix

Additional minor changes (minor error fix) added to the previously
 submitted implementation of the original APPC-1010 requirement:
APPC CDT Should Support Multiple Templates For Configure and
 ConfigModify for VNFs with VNFC level templates.

Change-Id: Ie7e38be60f1de4e4649eb0b9ccf7310ceffa4307
Issue-ID: APPC-1010
Signed-off-by: od7427 <od7427@att.com>
5 years agoUpdate password for new odl version 07/66207/2
Patrick Brady [Wed, 12 Sep 2018 19:35:35 +0000 (12:35 -0700)]
Update password for new odl version

Update the password in the cdt proxy service so it
can connect to rest on the new odl version.

Change-Id: I5fdc4ecf76246c62b006675bbbd31d565cf54ae4
Signed-off-by: Patrick Brady <pb071s@att.com>
Issue-ID: APPC-1158

5 years agoreference-dataform.util- added test case 97/65797/2
Arundathi Patil [Tue, 11 Sep 2018 10:45:34 +0000 (16:15 +0530)]
reference-dataform.util- added test case

Wrote test case to test and cover checkResult function when status code
is 400

Issue-ID: APPC-1064
Change-Id: Ic951f3b83bd3ab68f4a6a14df2ad7aea88f5ad09
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoreference-dataform.component: added test case 93/65793/1
Arundathi Patil [Tue, 11 Sep 2018 10:39:29 +0000 (16:09 +0530)]
reference-dataform.component: added test case

Wrote test case to test and cover displayHandleVnfc function when vnfc
variable in mapping-editor.sevice is true.

Issue-ID: APPC-1064
Change-Id: Ia90c1c9a50540d32776f251f49444d0ac165f789
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoreference-dataform.component- added test case 73/65473/1
Arundathi Patil [Mon, 10 Sep 2018 08:43:16 +0000 (14:13 +0530)]
reference-dataform.component- added test case

Wrote test case to test and cover displayHandleVnfc() function

Issue-ID: APPC-1064
Change-Id: I0bc81df5c458d44cc044cad60967c0a051f82af0
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoadded test case to reference-dataform.util service 57/65257/2
Arundathi Patil [Fri, 7 Sep 2018 16:21:52 +0000 (21:51 +0530)]
added test case to reference-dataform.util service

wrote test case to test and cover checkresult  function

Issue-ID: APPC-1064
Change-Id: I6ba4d926ba525be3a842f73f6b6d0e727e9bfa1a
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoreference-dataform- added test case 59/65259/1
Arundathi Patil [Fri, 7 Sep 2018 16:28:10 +0000 (21:58 +0530)]
reference-dataform- added test case

wrote test case to test and cover validateVnfcName function

Issue-ID: APPC-1064
Change-Id: I453f8d3d971db1af82c1db80dd0e901fc4c0810b
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoupdate name tag for sonar report 51/65051/1
Taka Cho [Thu, 6 Sep 2018 18:30:21 +0000 (14:30 -0400)]
update name tag for sonar report

the name tag is the pom.xml is helping writing
the correct name in the Sonar report

Change-Id: Id0c38722645460fe4d348ff264724085a0bc0766
Issue-ID: APPC-1193
Signed-off-by: Taka Cho <tc012c@att.com>
5 years agoreference-dataform.component - fixed test cases 63/64963/2
Arundathi Patil [Thu, 6 Sep 2018 09:56:44 +0000 (15:26 +0530)]
reference-dataform.component - fixed test cases

Fixed rest of the failing test cases

Issue-ID: APPC-1064
Change-Id: Idab0b2550959eb51d7f144a493338255fbbbc8dc
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoreference-dataform.util - added spec file 75/64975/2
Arundathi Patil [Thu, 6 Sep 2018 10:36:50 +0000 (16:06 +0530)]
reference-dataform.util - added spec file

wrote test case for reference-dataform.util service

Issue-ID: APPC-1064
Change-Id: I9a2fe38107f7305979ed1997087eab20efadb53e
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agobuild-artifacts.component: added test case 83/64983/1
Arundathi Patil [Thu, 6 Sep 2018 10:50:02 +0000 (16:20 +0530)]
build-artifacts.component: added test case

wrote test case to test and cover newly added lines of code in
build-artifacts component.

Issue-ID: APPC-1064
Change-Id: I0cf6a4973b13dd493b48a96a34ca708bcb4a6ceb
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoreference-dataform- fixed few test cases 63/64763/1
Arundathi Patil [Wed, 5 Sep 2018 13:40:44 +0000 (19:10 +0530)]
reference-dataform- fixed few test cases

Fixed few failing test cases.

Issue-ID: APPC-1064
Change-Id: I2398983d732173b82abfeb5335c6ecf0f357531a
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoreference-dataform.component.spec- fixed test case 17/64317/2
Arundathi Patil [Tue, 4 Sep 2018 06:12:00 +0000 (11:42 +0530)]
reference-dataform.component.spec- fixed test case

Fixed few of the errors which caused test case failures

Issue-ID: APPC-1064
Change-Id: I22ff94900b608b3132848c76a418701df40d3d2c
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoaboutus.component.ts- added test cas 27/64327/2
Arundathi Patil [Tue, 4 Sep 2018 06:34:16 +0000 (12:04 +0530)]
aboutus.component.ts- added test cas

wrote test cases to test and cover the new methods tlplus() and
tlMinus().

Issue-ID: APPC-1064
Change-Id: I8ceb987b622cad3a805a05a00496ac6dd307d53d
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agovm-filtering.pipe- test case 33/64333/2
Arundathi Patil [Tue, 4 Sep 2018 07:07:42 +0000 (12:37 +0530)]
vm-filtering.pipe- test case

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>
5 years agoorder-by.pipe- added test case 55/64355/2
Arundathi Patil [Tue, 4 Sep 2018 08:08:46 +0000 (13:38 +0530)]
order-by.pipe- added test case

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>
5 years agoutility.service.spec.ts : added test case 59/64359/2
Arundathi Patil [Tue, 4 Sep 2018 08:46:51 +0000 (14:16 +0530)]
utility.service.spec.ts : added test case

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>
5 years agomapping-editor.service- added test case 69/64369/1
Arundathi Patil [Tue, 4 Sep 2018 09:11:13 +0000 (14:41 +0530)]
mapping-editor.service- added test case

Wrote test case to test selectedObj() function

Issue-ID: APPC-1064
Change-Id: I9be14de56c537f3ba16c8535eb278ccb5fb179cc
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoreference-dataform.component: fixed test case 23/64223/1
Arundathi Patil [Mon, 3 Sep 2018 10:30:17 +0000 (16:00 +0530)]
reference-dataform.component: fixed test case

Fixed test case that failed with error "cannot read property length of
undefined"

Issue-ID: APPC-1064
Change-Id: Ie007d431b5d9ece826fc60e1a318f9092cb02e12
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agomyvnfs.component.spec- added test cases 25/64025/2
Arundathi Patil [Fri, 31 Aug 2018 15:59:10 +0000 (21:29 +0530)]
myvnfs.component.spec- added test cases

Added test cases to cover the new changes in method buildNewDesign()
function

Issue-ID: APPC-1064
Change-Id: Icd4e48509b64c40a77f893fa5ca9490605878b2a
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agobuild-artifacts.component.spec- added test cases 27/64027/2
Arundathi Patil [Fri, 31 Aug 2018 16:02:39 +0000 (21:32 +0530)]
build-artifacts.component.spec- added test cases

added test case to cover setAllowotherUpdates function and to test a
condition in checkRefDataReqFields() function

Issue-ID: APPC-1064
Change-Id: I01bbd061894b98e6afe07b4fc8f87dab65d2378d
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoutility.service- added test case 31/64031/1
Arundathi Patil [Fri, 31 Aug 2018 16:16:20 +0000 (21:46 +0530)]
utility.service- added test case

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>
5 years agoupgrade spring-boot to 2.0.4 85/63885/1
Taka Cho [Thu, 30 Aug 2018 18:31:51 +0000 (14:31 -0400)]
upgrade spring-boot to 2.0.4

Artifact:  tomcat-embed-core
Version:  8.5.31
to
Version:        8.5.32

Change-Id: Id68d7a6049ebe5032e5dee7d22a07f7a9133d7b9
Issue-ID: APPC-1018
Signed-off-by: Taka Cho <tc012c@att.com>
5 years agoaboutus.component.spec-Fix error due to codeChange 65/63765/2
Arundathi Patil [Thu, 30 Aug 2018 09:45:09 +0000 (15:15 +0530)]
aboutus.component.spec-Fix error due to codeChange

All the test cases in about.component.spec file failed with below error.
Fixed this.

Error:'No provider for utility service'

Issue-ID: APPC-1064
Change-Id: I9d9e4937d91731eaf1245f861b5e9663c2453415
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agomapping-editor service- added test case 67/63767/2
Arundathi Patil [Thu, 30 Aug 2018 09:49:26 +0000 (15:19 +0530)]
mapping-editor service- added test case

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>
5 years agoutility.service- added test cases 69/63769/2
Arundathi Patil [Thu, 30 Aug 2018 09:53:07 +0000 (15:23 +0530)]
utility.service- added test cases

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>
5 years agomynfs.component- added test cases 71/63771/2
Arundathi Patil [Thu, 30 Aug 2018 09:56:57 +0000 (15:26 +0530)]
mynfs.component- added test cases

added test case to test and cover the new method 'validateVnfName()'
in myvnfs.component.

Issue-ID: APPC-1064
Change-Id: I5e45480efd7c18ced7d56b01e3dbb7aff4f3d9e8
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoreference-dataform.component.spec- Fixed errors 95/63695/1
Arundathi Patil [Thu, 30 Aug 2018 07:06:28 +0000 (12:36 +0530)]
reference-dataform.component.spec- Fixed errors

Fixed ng test errors that were caused due to code changes in
reference-dataform component

Issue-ID: APPC-1064
Change-Id: Idd2a4ded0efa6d5955911cdab3e85cd819de481b
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoAPPC CDT to Support Multiple Templates for VNFCs 37/62237/2
od7427 [Thu, 23 Aug 2018 15:49:12 +0000 (11:49 -0400)]
APPC CDT to Support Multiple Templates for VNFCs

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>
5 years agoparameter-definition service- removed unused code 33/62033/2
Arundathi Patil [Thu, 23 Aug 2018 09:49:53 +0000 (15:19 +0530)]
parameter-definition service- removed unused code

The HttpUtilService was injected into parameter-definition service, but
was never used. Hence removing it.

Issue-ID: APPC-1149
Change-Id: Iec30f6ab4a36920b46f9458b01be8cc58f964cc0
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoaboutus.component.spec - fixed test case 47/62047/1
Arundathi Patil [Thu, 23 Aug 2018 10:10:14 +0000 (15:40 +0530)]
aboutus.component.spec - fixed test case

Test case in aboutus.component spec file failed iwth below error. Fixed
this.

"Failed: Expected Response with status: null null for url:null to be
'some data'"

Issue-ID: APPC-1064
Change-Id: If1b0dbbc68c69cbb62799b31ccb93b7ab06ee9ac
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoaboutus component - removed unused code 35/60235/2
Arundathi Patil [Mon, 13 Aug 2018 09:26:23 +0000 (14:56 +0530)]
aboutus component - removed unused code

The NgbModal from ng-bootstrap library was injected in aboutus
component, but never used. Hence removing he code that injects the
NgbModal into component.
The getDismissReason() function in aboutus component is also not used.
hence removing that method.

Issue-ID: APPC-1149
Change-Id: I41f20cc1d55acac61dd1e8865f4c2d8cb5f0bee9
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agologin-guard-service - removed unused code 89/60889/2
Arundathi Patil [Thu, 16 Aug 2018 10:39:58 +0000 (16:09 +0530)]
login-guard-service - removed unused code

The mapping-editor service is injected into login-guard-service, but is
never used. Hence removed it.

Issue-ID: APPC-1149
Change-Id: Ic11bcb8246199cc308fca0914e7e4e0d690716fb
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agotest.component - removed unused code 39/60239/2
Arundathi Patil [Mon, 13 Aug 2018 09:33:00 +0000 (15:03 +0530)]
test.component - removed unused code

The NotificationService was injected into test component , but was never
used. Hence removing it.

Issue-ID: APPC-1149
Change-Id: I602eacec516877663e6c22881460573bc4259107
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agonavigation.component.html:removed unused code 95/59995/2
Arundathi Patil [Fri, 10 Aug 2018 11:16:18 +0000 (16:46 +0530)]
navigation.component.html:removed unused code

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>
5 years agomodal component : added spec file 35/59635/2
Arundathi Patil [Wed, 8 Aug 2018 09:33:28 +0000 (15:03 +0530)]
modal component : added spec file

wrote test cases to cover modal component.

Issue-ID: APPC-1064
Change-Id: I0ad365ef28e4ae411cdf5d02588767cf79bdc4c5
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoparameter-definition.service:removed hardcoded val 33/59633/2
Arundathi Patil [Wed, 8 Aug 2018 09:27:40 +0000 (14:57 +0530)]
parameter-definition.service:removed hardcoded val

Moved the hardcoded values from parameter-definition service to
app-contants as variables.

Issue-ID: APPC-1054
Change-Id: Ib61aea5eec6d9c87405179711a347a18e58b2c4a
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoauth-guard-modal : removed unused code 67/60267/2
Arundathi Patil [Mon, 13 Aug 2018 09:52:03 +0000 (15:22 +0530)]
auth-guard-modal : removed unused code

The NgbActiveModal of ng-bootstarp is injected into auth-guard-modal,
but is never used. hence removing it.

Issue-ID: APPC-1149
Change-Id: Ie1ba8b11ffb334105bbc6a5a2575fe1507d276e5
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agotemplate-configuartion spec- fixed test cases 41/60241/2
Arundathi Patil [Mon, 13 Aug 2018 09:38:36 +0000 (15:08 +0530)]
template-configuartion spec- fixed test cases

5 of the test cases in template-configuration spec file failed as these
tets cases were trying to access the component instance which was only declared but not defined. Fixed this issue.

Issue-ID: APPC-1064
Change-Id: Iadbc3b7b66ed30089400e35cf5632a72f5a34991
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoMapping-editor service- added test case 65/60265/1
Arundathi Patil [Mon, 13 Aug 2018 09:48:33 +0000 (15:18 +0530)]
Mapping-editor service- added test case

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>
5 years agomapping-editor-service : added test case 91/59991/1
Arundathi Patil [Fri, 10 Aug 2018 10:54:49 +0000 (16:24 +0530)]
mapping-editor-service : added test case

wrote test case to test getKeysForValues() function

Issue-ID: APPC-1064
Change-Id: I7055986e9722a9b3889601ce94c3da7dcc16b96e
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoparameter-definition.service : added test case 61/59861/2
Arundathi Patil [Thu, 9 Aug 2018 13:35:44 +0000 (19:05 +0530)]
parameter-definition.service : added test case

wrote test case to cover processResponseKeys function

Issue-ID: APPC-1064
Change-Id: Id8ba082a07ef046485aafae6b9be1f6f80db4ef9
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agobuild-artifacts - added test case 63/59863/1
Arundathi Patil [Thu, 9 Aug 2018 13:39:30 +0000 (19:09 +0530)]
build-artifacts - added test case

wrote test case to test checkRefDataReqFields() funtion when action,
device-protocol and scope values are set to blank.

Issue-ID: APPC-1064
Change-Id: I405aca5092e631183e690bcd60b10439f1396568
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoTemplate-configration-unsubscribed from observable 13/57813/2
Arundathi Patil [Fri, 27 Jul 2018 10:33:14 +0000 (16:03 +0530)]
Template-configration-unsubscribed from observable

Unsubscribed from subscription in template-configuration component. This
will release any resources that the subscription holds when the
component is destroyed.

Issue-ID: APPC-1049
Change-Id: Icbf3575e034a693f7357782826690d079945faa7
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoorder-by.pipe : added test case 37/59637/2
Arundathi Patil [Wed, 8 Aug 2018 09:37:10 +0000 (15:07 +0530)]
order-by.pipe : added test case

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>
5 years agotable-filter pipe : added test case 39/59639/1
Arundathi Patil [Wed, 8 Aug 2018 09:41:01 +0000 (15:11 +0530)]
table-filter pipe : added test case

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>
5 years agoUtility service : added test case 95/59395/2
Arundathi Patil [Tue, 7 Aug 2018 09:49:32 +0000 (15:19 +0530)]
Utility service : added test case

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>
5 years agobuild-artifacts component : added test case 99/59399/2
Arundathi Patil [Tue, 7 Aug 2018 09:54:52 +0000 (15:24 +0530)]
build-artifacts component : added test case

wrote test case to test checkRefDataReqFields() function to notify error
message when no valid template identifier is selected.

Issue-ID: APPC-1064
Change-Id: I083abfd29aac325938116c5acc604e737a0d09ae
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoLoginGuardService : added test case 05/59405/2
Arundathi Patil [Tue, 7 Aug 2018 09:58:21 +0000 (15:28 +0530)]
LoginGuardService : added test case

wrote test case to test canActivate function to navigate user to login
page if the user is not logged in.

Issue-ID: APPC-1064
Change-Id: Icc5a137474f69b8f9a8c2bc386ecc2b784f64ebb
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoReferenceDataForm : added test case 07/59407/1
Arundathi Patil [Tue, 7 Aug 2018 10:01:40 +0000 (15:31 +0530)]
ReferenceDataForm : added test case

wrote unit test case to test openModel function of referenceDataForm
component.

Issue-ID: APPC-1064
Change-Id: I4dcd719876df1bd1ce4a30baa7131f081b9923b2
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agodropdownnotclosablezone directive :added test case 73/59173/3
Arundathi Patil [Mon, 6 Aug 2018 11:19:52 +0000 (16:49 +0530)]
dropdownnotclosablezone directive :added test case

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>
5 years agodropdownopen directive : added test case 71/59171/3
Arundathi Patil [Mon, 6 Aug 2018 11:16:40 +0000 (16:46 +0530)]
dropdownopen directive : added test case

wrote test case to cover toggle function.

Issue-ID: APPC-1064
Change-Id: Ia10c602e385bb087114b16e58fed03ddc51b8d31
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoutility service : added test case 69/59169/3
Arundathi Patil [Mon, 6 Aug 2018 11:13:28 +0000 (16:43 +0530)]
utility service : added test case

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>
5 years agoReference-dataform : Removed hardcoded values 05/58405/2
Arundathi Patil [Wed, 1 Aug 2018 10:49:07 +0000 (16:19 +0530)]
Reference-dataform : Removed hardcoded values

Moved few of the hardcoded values from reference-dataform component to
app-constants file as variables

Issue-ID: APPC-1054
Change-Id: Ib8afe569b7c669f50bf3eeec88deec27711c49a4
Signed-off-by: Arundathi patil <arundpil@in.ibm.com>
5 years agogcauth.guard.service - added test case 65/59165/1
Arundathi Patil [Mon, 6 Aug 2018 11:09:01 +0000 (16:39 +0530)]
gcauth.guard.service - added test case

Added test case to cover canActivate method when referenceObject is not
defined.

Issue-ID: APPC-1064
Change-Id: I19d08cf1e0b6426e52d1db48be89ed8e76864560
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoreference-data-form - added test case 15/58915/2
Arundathi Patil [Fri, 3 Aug 2018 10:13:05 +0000 (15:43 +0530)]
reference-data-form - added test case

added test case to cover fileChange() method in reference-data-form spec
file.

Issue-ID: APPC-1064
Change-Id: Id27e82a648e9bb578035bc90505e15b12a0c8654
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoauth-guard-modal component : Removed fdescribe 01/58901/2
Arundathi Patil [Fri, 3 Aug 2018 09:33:56 +0000 (15:03 +0530)]
auth-guard-modal component : Removed fdescribe

removed fdescribe from auth-gurad-modal spec file which was accidentally checkedin in the previos checkin

Issue-ID: APPC-1064
Change-Id: I15856005e9ef7df13ec58e46287b6437d610917d
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agogcauth-guard service - removed fdescribe 03/58903/2
Arundathi Patil [Fri, 3 Aug 2018 09:37:59 +0000 (15:07 +0530)]
gcauth-guard service - removed fdescribe

Removed fdescribe from gcauth-guard spec file which was accidentally
checkdin in the previous change.

Issue-ID: APPC-1064
Change-Id: Iaefd0d3ed9d7909b0fb55b16a19070227ae6b86b
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoparameter.component - fixed test case 09/58909/2
Arundathi Patil [Fri, 3 Aug 2018 09:59:16 +0000 (15:29 +0530)]
parameter.component - fixed test case

fixed test case 'should retrive PD from cache' that was failing with the
below error as it was expecting wrong value.
Error: Expected [ ] to be 'TEST PD INFORMATION'

In this test case, ngAfterViewInit() method is called which returns the
PD data. This PD data is stored into variable called
'displayParamObjects' and then this variable is returned to the calling
function.

The value for 'displayParamObjects' is set in getPDFromSession() method
which makes a async http call to get the PD data, so even before the
results of the async call are returned, ngAfterViewInit() method
returns the empty 'displayParamObject' variable.

Hence changed the expected value to the actual value returned by
ngAfterViewInit() method.

We can write a seperate test case to test the async call made by
getPDFromSession() method.

Issue-ID: APPC-1064
Change-Id: I0b8f38b6e52dc7478a4ab510ca3ff10ff81ae0ca
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoparam-name-value - fixed test case 13/58913/2
Arundathi Patil [Fri, 3 Aug 2018 10:09:58 +0000 (15:39 +0530)]
param-name-value - fixed test case

Test case in param-name-value was failing as it was expecting wrong
value. Fixed this issue.

Issue-ID: APPC-1064
Change-Id: Iaee9cb29b40ee2e2e39632cd91ef81c91d9e8c1c
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoadding a new folder for design studio self service 65/58965/2
Taka Cho [Fri, 3 Aug 2018 15:35:20 +0000 (11:35 -0400)]
adding a new folder for design studio self service

Change-Id: Iff159e8cc2c9e9a181b7ad1db20183560e23b2df
Issue-ID: APPC-1126
Signed-off-by: Taka Cho <tc012c@att.com>
5 years agoFixed error in param-name-value spec file 95/57995/2
Arundathi Patil [Mon, 30 Jul 2018 09:53:25 +0000 (15:23 +0530)]
Fixed error in param-name-value spec file

Test cases in param-name-value.component.spec file failed with below
error,
Error: No Provider for Utility service
Fixed this error

Issue-ID: APPC-1064
Change-Id: Ie0e63be45b1cdde0bd2169168c562452babd6aa5
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoAdded spec file for gcauth guard service 31/58631/2
Arundathi Patil [Thu, 2 Aug 2018 08:59:21 +0000 (14:29 +0530)]
Added spec file for gcauth guard service

Wrote test cases to cover gcauth guard service

Issue-ID: APPC-1064
Change-Id: Iaa01bc22b1fdb52f0cecb7b6c20502c8f6f05a14
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoadded spec for auth-guard component 75/58675/2
Arundathi Patil [Thu, 2 Aug 2018 10:58:45 +0000 (16:28 +0530)]
added spec for auth-guard component

Wrote test case to cover auth-guard component

Issue-ID: APPC-1064
Change-Id: Id9da15a608fd7954c380cffac4d94044ae4fe1f5
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoFixed error in test component spec file 03/58403/2
Arundathi Patil [Wed, 1 Aug 2018 10:56:34 +0000 (16:26 +0530)]
Fixed error in test component spec file

Test cases in test component spec file failed with below error,
Eroor: No provider for NgxSpinnerModule.
Fixed this error

Issue-ID: APPC-1064
Change-Id: I89db4044b3fbc62cae4656e93a6b4519fb5cd0aa
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoReference-dataform- test cases 97/57997/3
Arundathi Patil [Mon, 30 Jul 2018 09:58:56 +0000 (15:28 +0530)]
Reference-dataform- test cases

Wrote test case to cover upload function in refernce-dataform.component

Issue-ID: APPC-1064
Change-Id: I44c62b944c14b9f66fc2117ad7d578b2388e973b
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoTest cases - UtilityService 03/58003/3
Arundathi Patil [Mon, 30 Jul 2018 10:21:36 +0000 (15:51 +0530)]
Test cases - UtilityService

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>
5 years agoTest Case - Paramete-definitions.service 93/58193/3
Arundathi Patil [Tue, 31 Jul 2018 09:01:40 +0000 (14:31 +0530)]
Test Case - Paramete-definitions.service

Wrote test case to cover setValues method pf parameter-definitions
service

Issue-ID: APPC-1064
Change-Id: I5e43aba3c6af733cf20922036ef7ad09b86a7cdd
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoTest cases - build-artifacts component 97/58197/3
Arundathi Patil [Tue, 31 Jul 2018 09:08:10 +0000 (14:38 +0530)]
Test cases - build-artifacts component

Wrote test cases to cover updateAccessUpdatePages method in
build-artifacts component.

Issue-ID: APPC-1064
Change-Id: If654c89d1daf1d9639aa172c08f3270b6337ba0e
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoabousUs Component : Fixed test case 37/58637/3
Arundathi Patil [Thu, 2 Aug 2018 09:05:40 +0000 (14:35 +0530)]
abousUs Component : Fixed test case

Test case in aboutus component spec file failed with below error,
Error: this.http.get is not a function
Fixed this error

Issue-ID: APPC-1064
Change-Id: I59426d9a96ab67a7fbef6c540be26b7204a7ee7f
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoTest case- myVnfs component 95/58195/2
Arundathi Patil [Tue, 31 Jul 2018 09:04:39 +0000 (14:34 +0530)]
Test case- myVnfs component

Wrote test case to cover navigateToreference method of myVnfs component

Issue-ID: APPC-1064
Change-Id: Ie6417fb2e975164c9d5226d7e270ec4f7dbbdb1a
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agouserloginForm- Fixed test case 43/58643/2
Arundathi Patil [Thu, 2 Aug 2018 09:13:20 +0000 (14:43 +0530)]
userloginForm- Fixed test case

Test case in userlogin form was expecting wrong values because of which
the test case failed. Changed the test case expecting values to proper
values.

Issue-ID: APPC-1064
Change-Id: I9b1aedc70a806b235c0b56d936370e8a1a62d2dd
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoFixed error in user-login-form spec file 01/58001/4
Arundathi Patil [Mon, 30 Jul 2018 10:15:23 +0000 (15:45 +0530)]
Fixed error in user-login-form spec file

Test cases in userLogin-form spec file failed with below error,
Error: Cannot read property 'root' of undefined.

This error was because, activated route was not injected into the
testingbed. Fixed this error.

Issue-ID: APPC-1064
Change-Id: Ib9978b73be744204e8dd64b97abbc0959a4e5839
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agofixed error in aboutUs component spec 91/58191/4
Arundathi Patil [Tue, 31 Jul 2018 08:55:02 +0000 (14:25 +0530)]
fixed error in aboutUs component spec

Test cases in aboutus component spec file failed due to the changes made in ts
file. Fixed these issues

Issue-ID: APPC-1064
Change-Id: Ief9c517de5ecb57bac8787e064b2bec3f7c50f2c
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoRemoved unwanted code 15/57515/2
Arundathi Patil [Wed, 25 Jul 2018 11:43:56 +0000 (17:13 +0530)]
Removed unwanted code

Removed ngbModal from imports and constructor as it was not used.

Issue-ID: APPC-1054
Change-Id: I92406941099384b1b17472d57c888041deb7e0a4
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoFixed error in template-configuration spec 15/57815/2
Arundathi Patil [Fri, 27 Jul 2018 10:36:59 +0000 (16:06 +0530)]
Fixed error in template-configuration spec

Test cases in template-configuration spec file failed with the below
error,
Error: No provider for UtilityService.
Fixed this error.

Issue-ID: APPC-1064
Change-Id: Ibb580435a3f70024988434eba74b61be80423990
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agorefactored payload in uploadArtifact of reference 31/57031/3
Sandeep J [Fri, 20 Jul 2018 09:09:04 +0000 (14:39 +0530)]
refactored payload in uploadArtifact of reference

refactored payload in uploadArtifact method of reference dataform using
createPayloadForSave method of utlity service

Issue-ID: APPC-1100
Change-Id: I9f91725371da96e6d2384b2348e288ebc0af238d
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
5 years agoadded progress spinner for spreadsheet upload 39/57039/5
Sandeep J [Fri, 20 Jul 2018 10:26:31 +0000 (15:56 +0530)]
added progress spinner for spreadsheet upload

added progress spinner for spreadsheet upload in test.component,ts

Issue-ID: APPC-1102
Change-Id: I9d030da990eae2e8efe5ae82cd1afd3c675aa286
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
5 years agoUtilityService: Removed hard coded values 91/57991/1
Arundathi Patil [Mon, 30 Jul 2018 09:46:54 +0000 (15:16 +0530)]
UtilityService: Removed hard coded values

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>
5 years agoFixed error in spec file 01/57301/2
Arundathi Patil [Tue, 24 Jul 2018 11:27:04 +0000 (16:57 +0530)]
Fixed error in spec file

Test cases in parameter.component spec file failed with below error,
Error: No provider for NGXSpinnerService
Fixed this issue

Issue-ID: APPC-1064
Change-Id: I51d8e79888e182fef11d0c99936953ed0eabd380
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agorefactored payload creation proces in retrieve API 19/57019/3
Sandeep J [Fri, 20 Jul 2018 07:58:33 +0000 (13:28 +0530)]
refactored payload creation proces in retrieve API

refactored payload creation in retrieveNameValueFromAppc method of
param-name-value.component.ts by using the createPayloadForRetrieve
method in utility.service.ts

Issue-ID: APPC-1098
Change-Id: Ia5b4a7c259c9a27958b6df9c59869a79b03064ee
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
5 years agoAdded spec file for loginGuardService 17/57517/2
Arundathi Patil [Wed, 25 Jul 2018 11:47:05 +0000 (17:17 +0530)]
Added spec file for loginGuardService

Wrote test cases for loginGuardService

Issue-ID: APPC-1064
Change-Id: I9b742c860aa6a523b1c858380e8a025a621f01fd
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoadded spec file for confirm.component 93/57493/2
Arundathi Patil [Wed, 25 Jul 2018 11:13:30 +0000 (16:43 +0530)]
added spec file for confirm.component

Wrote test cases for confirm modal component.

Issue-ID: APPC-1064
Change-Id: I6cac13f52730c31cd98e14fc8874012224b938f9
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoFixed error in spec file 97/57297/3
Arundathi Patil [Tue, 24 Jul 2018 11:23:55 +0000 (16:53 +0530)]
Fixed error in spec file

Test cases in myvnfs component spec file failed with the below error,
Error: No provider for notification service
Fixed this issue

Issue-ID: APPC-1064
Change-Id: I39a451414e56b9db3eab7910c79d2d103b44380a
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agorefactor payload creation in parameter.ts 21/57021/3
Sandeep J [Fri, 20 Jul 2018 08:23:22 +0000 (13:53 +0530)]
refactor payload creation in parameter.ts

refactor payload creation in getPD parameter.ts using createPayloadForRetrieve
method in utility.service.ts

Issue-ID: APPC-1099
Change-Id: I976dfebfe60a123784853a7294125cf6075a653b
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
5 years agoFixed test case 93/57293/2
Arundathi Patil [Tue, 24 Jul 2018 11:20:51 +0000 (16:50 +0530)]
Fixed test case

Test case was expecting wrong value from function in test.component.
fixed this issue.

Issue-ID: APPC-1064
Change-Id: I668778c0ae30f218204d652ed9efbd9bc0ace097
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoRemoved hard coded values in myVNFs component 11/57511/2
Arundathi Patil [Wed, 25 Jul 2018 11:38:41 +0000 (17:08 +0530)]
Removed hard coded values in myVNFs component

removed error messages that were hard coded in myvnfs component. Used
the variables from app-constants file for these errors.

Issue-ID: APPC-1064
Change-Id: I5acffb29e18cd0b135ee4bf206c507db26b9765c
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agowrote test case for mapping-editor service 59/57159/3
Arundathi Patil [Mon, 23 Jul 2018 11:50:53 +0000 (17:20 +0530)]
wrote test case for mapping-editor service

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>
5 years agorefactord payload creatn for template & param save 43/57143/3
Sandeep J [Mon, 23 Jul 2018 10:42:26 +0000 (16:12 +0530)]
refactord payload creatn for template & param save

refactored payload creation for saving template and param artifacts to
APPC using createPayloadForSave method in utility.service.ts

Issue-ID: APPC-1105
Change-Id: I2dd446aebdbcbc1ffc070993ee53d09e25eeae6b
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
5 years agoFixed error 77/57177/2
Arundathi Patil [Mon, 23 Jul 2018 14:40:06 +0000 (20:10 +0530)]
Fixed error

Test cases in param-name-value component spec file failed with the below
error,
Error: No provider for NgxSpinnerService

Fixed this error

Issue-ID: APPC-1064
Change-Id: Ib4e0b3276525973fb6a625d2366ed26cf3d94173
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoRemoved hard coded values 01/56601/3
Arundathi Patil [Tue, 17 Jul 2018 10:16:17 +0000 (15:46 +0530)]
Removed hard coded values

Moved all the constant values in parameter component to app-Constants
file.

Issue-ID: APPC-1054
Change-Id: I507cc0a4aa8ddc8d6d42e97129b21a235b96b225
Signed-off-by: Arundathi Patil<arundpil@in.ibm.com>
5 years agoMade use of ng2-bootstrap-modal. 13/56713/4
Arundathi Patil [Wed, 18 Jul 2018 10:11:05 +0000 (15:41 +0530)]
Made use of ng2-bootstrap-modal.

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>
5 years agoadded test case in app component 05/56605/2
Arundathi Patil [Tue, 17 Jul 2018 11:23:26 +0000 (16:53 +0530)]
added test case in app component

wrote test case to test selectedNavItem method in app component.

Issue-ID: APPC-1064
Change-Id: I8770fa19b024cbaa0f0bb86217ebe9255469f64b
Signed-off-by: Arundathi <arundpil@in.ibm.com>
5 years agounsubscribed from observables 03/56603/2
Arundathi Patil [Tue, 17 Jul 2018 10:35:00 +0000 (16:05 +0530)]
unsubscribed from observables

Unsubscribed from observables in ngOndestroy method of myvnfs component.
This will release the resources held by the subscription.

Issue-ID: APPC-1049
Change-Id: I7cc7bd5aabeeb20934332541b99314a611d66f93
Signed-off-by: Arundathi Patil<arundpil@in.ibm.com>
5 years agoFixed error in spec file 61/56861/2
Arundathi Patil [Thu, 19 Jul 2018 08:53:13 +0000 (14:23 +0530)]
Fixed error in spec file

All the test cases in template-configuration spec file failed with the
below error.

Error: "No provider for NGXSpinnerService".

Fixed this error.

Issue-ID: APPC-1064
Change-Id: I9ea042519e0f6ba94344d17b9d0e457c4c4480cd
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agoUnsubscribed observables 27/56727/4
Arundathi Patil [Wed, 18 Jul 2018 11:19:11 +0000 (16:49 +0530)]
Unsubscribed observables

Unsubscribed from observables in param-name-value component. This will
release any resources that the subscription holds.

Issue-ID: APPC-1049
Change-Id: Ie3aa18bfa9d5129a26abb2f33dd2f80e1cfc8bba
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 years agocorrected commenting style in licence header 87/56887/2
Sandeep J [Thu, 19 Jul 2018 11:16:48 +0000 (16:46 +0530)]
corrected commenting style in licence header

corrected commenting style in licence header of template configuration
html from "/*" to "<!--"

Issue-ID: APPC-1092
Change-Id: Ie3421a37db62e48495394f54ffd70b14ec2d053b
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
5 years agoadded progress spinner for uploading param file 59/56359/5
Sandeep J [Fri, 13 Jul 2018 08:23:46 +0000 (13:53 +0530)]
added progress spinner for uploading param file

added progress spinner while uplaoding param file for the user to have a visual representation of the upload

Issue-ID: APPC-1066
Change-Id: I411cca1677e924ee43050843401fd957a2aba3f9
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
5 years agoadded progress spinner in PD to show file upload 83/56883/2
Sandeep J [Thu, 19 Jul 2018 11:11:13 +0000 (16:41 +0530)]
added progress spinner in PD to show file upload

added progress spinner in PD to show file upload progress

Issue-ID: APPC-1070
Change-Id: I28d237a3a69f68a9e9dbc6433c95dc53c4fbffbf
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
5 years agorefactord payload creation for retrieving template 91/56891/2
Sandeep J [Thu, 19 Jul 2018 11:43:19 +0000 (17:13 +0530)]
refactord payload creation for retrieving template

refactored payload creation process for template using utility service
createPayloadForRetrieve method

Issue-ID: APPC-1094
Change-Id: I1901a20c07f5d577ad5962b891f277771040b85f
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>