diff options
author | Michael DÜrre <michael.duerre@highstreet-technologies.com> | 2021-04-09 08:01:19 +0200 |
---|---|---|
committer | Michael D�rre <michael.duerre@highstreet-technologies.com> | 2021-04-13 18:37:06 +0000 |
commit | 6ae7e8a1bae83d407b22d8b066dd0bcca730e1bb (patch) | |
tree | f2276fee4fcc61c3d89b942c63d6211e41617cda /sdnr/wt/data-provider/setup/src/test | |
parent | d702f00b71218c56af766363ce19f2459081d73c (diff) |
weekly sdnr code sync
sync internal code progress
add istanbul database structure
cleanup dataprovider test
fix pom files
Issue-ID: CCSDK-3260
Signed-off-by: Michael DÜrre <michael.duerre@highstreet-technologies.com>
Change-Id: Ic1daa6adda173dc8337a51fa930e05c05ee88e2c
Diffstat (limited to 'sdnr/wt/data-provider/setup/src/test')
-rw-r--r-- | sdnr/wt/data-provider/setup/src/test/java/org/onap/ccsdk/features/sdnr/wt/dataprovider/setup/TestMigrationProvider.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sdnr/wt/data-provider/setup/src/test/java/org/onap/ccsdk/features/sdnr/wt/dataprovider/setup/TestMigrationProvider.java b/sdnr/wt/data-provider/setup/src/test/java/org/onap/ccsdk/features/sdnr/wt/dataprovider/setup/TestMigrationProvider.java index aaa33839f..311582a08 100644 --- a/sdnr/wt/data-provider/setup/src/test/java/org/onap/ccsdk/features/sdnr/wt/dataprovider/setup/TestMigrationProvider.java +++ b/sdnr/wt/data-provider/setup/src/test/java/org/onap/ccsdk/features/sdnr/wt/dataprovider/setup/TestMigrationProvider.java @@ -42,7 +42,7 @@ public class TestMigrationProvider { @Test public void testCreateImport() throws Exception { DataMigrationProviderImpl provider = new DataMigrationProviderImpl(hosts, null, null, true, 5000); - + DataMigrationReport report=null; try { @@ -51,11 +51,13 @@ public class TestMigrationProvider { fail("unable to init database"); } //import data into database - DataMigrationReport report = provider.importData(FRANKFURT_BACKUP_FILE, false, Release.FRANKFURT_R2); - assertTrue(report.completed()); - assertEquals(Release.CURRENT_RELEASE, provider.autoDetectRelease()); + report = provider.importData(FRANKFURT_BACKUP_FILE, false, Release.FRANKFURT_R2); } catch (Exception e) { + e.printStackTrace(); fail(e.getMessage()); } + assertTrue(report.completed()); + assertEquals(Release.CURRENT_RELEASE, provider.autoDetectRelease()); + } } |