diff options
author | 2022-01-04 21:49:42 +0000 | |
---|---|---|
committer | 2022-01-19 09:25:32 +0000 | |
commit | 2d4db3c6375ca761b25700226addea6060432b0d (patch) | |
tree | a7a739e84ebf9a166f95cb881eed00ebe9176e6b /main/src/test/java | |
parent | e63b2a3b636404b8920257d5bf34952728595920 (diff) |
Remove references to MariaDB from resource files
Issue-ID: POLICY-2086
Change-Id: I3c7d95863e1f46f5d0217bad6bd486de95e16b3a
Signed-off-by: Wayne Dunican <wayne.dunican@est.tech>
Diffstat (limited to 'main/src/test/java')
-rw-r--r-- | main/src/test/java/org/onap/policy/api/main/parameters/TestApiParameterHandler.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/main/src/test/java/org/onap/policy/api/main/parameters/TestApiParameterHandler.java b/main/src/test/java/org/onap/policy/api/main/parameters/TestApiParameterHandler.java index 5443e8c6..26ecd026 100644 --- a/main/src/test/java/org/onap/policy/api/main/parameters/TestApiParameterHandler.java +++ b/main/src/test/java/org/onap/policy/api/main/parameters/TestApiParameterHandler.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * Copyright (C) 2018 Samsung Electronics Co., Ltd. All rights reserved. * Copyright (C) 2019, 2021 AT&T Intellectual Property. All rights reserved. - * Modifications Copyright (C) 2021 Nordix Foundation. + * Modifications Copyright (C) 2022 Nordix Foundation. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -127,6 +127,16 @@ public class TestApiParameterHandler { } @Test + public void testApiParameterGroup_Postgres() throws PolicyApiException, CommandLineException { + final String[] apiConfigParameters = {"-c", "parameters/ApiConfigParameters_Postgres.json"}; + final ApiCommandLineArguments arguments = new ApiCommandLineArguments(); + arguments.parse(apiConfigParameters); + final ApiParameterGroup parGroup = new ApiParameterHandler().getParameters(arguments); + assertTrue(arguments.checkSetConfigurationFilePath()); + assertEquals(CommonTestData.API_GROUP_NAME, parGroup.getName()); + } + + @Test public void testApiParameterGroup_Invalid() throws PolicyApiException, CommandLineException { final String[] apiConfigParameters = {"-c", "parameters/ApiConfigParameters_InvalidName.json"}; final ApiCommandLineArguments arguments = new ApiCommandLineArguments(); |