From f4600723aa5e0fa99905eacd3338b33728a6c68f Mon Sep 17 00:00:00 2001 From: Jan Srnicek Date: Wed, 26 Oct 2016 10:14:11 +0200 Subject: HONEYCOMB-266 - Test data injection with @InjectTestData Field/Method param injection of data from json files that are bindable/parsable by provided yang schema Change-Id: I726ef5d92e85d93d1e48175287b6192538965dd5 Signed-off-by: Maros Marsalek Signed-off-by: Jan Srnicek --- .../test-utils/test-tools/src/test/resources/containerInList.json | 5 +++++ infra/test-utils/test-tools/src/test/resources/leafInAugment.json | 7 +++++++ .../test-utils/test-tools/src/test/resources/nestedContainer.json | 5 +++++ .../test-tools/src/test/resources/simpleContainerEmpty.json | 4 ++++ 4 files changed, 21 insertions(+) create mode 100644 infra/test-utils/test-tools/src/test/resources/containerInList.json create mode 100644 infra/test-utils/test-tools/src/test/resources/leafInAugment.json create mode 100644 infra/test-utils/test-tools/src/test/resources/nestedContainer.json create mode 100644 infra/test-utils/test-tools/src/test/resources/simpleContainerEmpty.json (limited to 'infra/test-utils/test-tools/src/test/resources') diff --git a/infra/test-utils/test-tools/src/test/resources/containerInList.json b/infra/test-utils/test-tools/src/test/resources/containerInList.json new file mode 100644 index 000000000..b55675e7c --- /dev/null +++ b/infra/test-utils/test-tools/src/test/resources/containerInList.json @@ -0,0 +1,5 @@ +{ + "cont-under-list":{ + "nested-name":"nestedName" + } +} \ No newline at end of file diff --git a/infra/test-utils/test-tools/src/test/resources/leafInAugment.json b/infra/test-utils/test-tools/src/test/resources/leafInAugment.json new file mode 100644 index 000000000..d3c52f3b8 --- /dev/null +++ b/infra/test-utils/test-tools/src/test/resources/leafInAugment.json @@ -0,0 +1,7 @@ +{ + "simple-container": { + "augmented-container":{ + "name-in-augment": "nameInAugment" + } + } +} \ No newline at end of file diff --git a/infra/test-utils/test-tools/src/test/resources/nestedContainer.json b/infra/test-utils/test-tools/src/test/resources/nestedContainer.json new file mode 100644 index 000000000..9cc986b87 --- /dev/null +++ b/infra/test-utils/test-tools/src/test/resources/nestedContainer.json @@ -0,0 +1,5 @@ +{ + "nested-container":{ + "name":"abcd" + } +} \ No newline at end of file diff --git a/infra/test-utils/test-tools/src/test/resources/simpleContainerEmpty.json b/infra/test-utils/test-tools/src/test/resources/simpleContainerEmpty.json new file mode 100644 index 000000000..4d56712c3 --- /dev/null +++ b/infra/test-utils/test-tools/src/test/resources/simpleContainerEmpty.json @@ -0,0 +1,4 @@ +{ + "simple-container": { + } +} \ No newline at end of file -- cgit 1.2.3-korg