Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Table of Contents

...

GAB is prepared as an independent library used for simple searching inside the yaml-file content. SDC exposes dedicated endpoint providing GABs base functionality over ONAP internal artifacts-data. Below you can find screenshot from the SDC swagger page, prepared to check documentation of describing the SDC endpoint for searching for a json paths inside the yaml file

...

ParentId and artifactUniqueId properties are needed to download artifact data from the Cassandra DAO. Content of the artifact is scanned for wanted fields and parsed to JSON response , - friendly for UI representations:

Code Block
{
	"data": [{
			"path1": "value1",
			"path2": "value2"
		},
		{
			"path1": "value3",
			"path2": "value4"
		}
	]
}


SDC FE integration

SDC's VF screen of Deployment Artifacts is extended to show also a button in shape of magnifier icon. Currently magnifier-button should be available for limited kinds of artifacts (at the moment for Dublin release only VES_EVENTS is supported), but there are also plans to handle other types of artifacts in next releases. Image Removedartifacts, for Frankfurt VES_EVENTS and PM_DICTIONARY are supported).

Image Added


On a magnifier-button click, a dialog with populated data should appear. It is important to know that even GAB back-end services provides possibility to ask for whatever-fields with only one restriction about correct format (json paths) - for Dublin current release only few predefined columns are considered to be shown by the GUI dialog - for VES_EVENTS: event.action[2], event.comment and event.faultFields.alarmAdditionalInformation.keyValuePair[ structure.key.value==faultId].comment; for PM_DICTIONARY: measType, measDescription, measCondition, measResultUnits, measResultRange, measObjClass, measCollectionMethod, measInfoId, iMeasInfoId. Some of these fields can be searched for a substring (all defined for VES_EVENTS and measType, measDescription, measObjClass, measFamily, measInfoId for PM_DICTIONARY). Format of VES_EVENTS and PM_DICTIONARY was discussed and agreed between operators and examples of these artifacts can be found in SDC repository: VES_EVENTS - sdc/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/Files/fm_metadata_three_fault_defs.yml, PM_DICTIONARY - /sdc/common/onap-generic-artifact-browser/onap-generic-artifact-browser-service/src/test/resources/yaml/pmDictionary.yml.

Layout of GAB for example VES_EVENTS artifact: 

Image Added

Layout of GAB for example PM_DICTIONARY artifact:

Image Added


UI Sanity

Both cases are covered by sanity tests available in the repository under the catalog: onap/sdc/ui-ci/src/main/resources/ci/testSuites/gabSanity.xml


Image AddedImage Added

More info