diff --git a/core/src/tests/testing_common.h b/core/src/tests/testing_common.h index 45fd05030f9..0e4258619b4 100644 --- a/core/src/tests/testing_common.h +++ b/core/src/tests/testing_common.h @@ -19,19 +19,18 @@ 02110-1301, USA. */ -#ifndef TESTING_COMMON_H -#define TESTING_COMMON_H +#ifndef BAREOS_TESTS_TESTING_COMMON_H_ +#define BAREOS_TESTS_TESTING_COMMON_H_ #if defined(HAVE_MINGW) # include "include/bareos.h" #endif #include "gtest/gtest.h" -#include "gmock/gmock.h" #include "lib/parse_conf.h" typedef std::unique_ptr PConfigParser; -#endif // TESTING_COMMON_H +#endif // BAREOS_TESTS_TESTING_COMMON_H_ diff --git a/core/src/tests/testing_dir_common.h b/core/src/tests/testing_dir_common.h index d355360a9d9..f6c98bc5f6d 100644 --- a/core/src/tests/testing_dir_common.h +++ b/core/src/tests/testing_dir_common.h @@ -19,8 +19,8 @@ 02110-1301, USA. */ -#ifndef TESTING_DIR_COMMON_H -#define TESTING_DIR_COMMON_H +#ifndef BAREOS_TESTS_TESTING_DIR_COMMON_H_ +#define BAREOS_TESTS_TESTING_DIR_COMMON_H_ #include "testing_common.h" @@ -31,4 +31,4 @@ void InitDirGlobals(); PConfigParser DirectorPrepareResources(const std::string& path_to_config); -#endif // TESTING_DIR_COMMON_H +#endif // BAREOS_TESTS_TESTING_DIR_COMMON_H_ diff --git a/core/src/tests/testing_sd_common.cc b/core/src/tests/testing_sd_common.cc index baa780fd209..32663063b03 100644 --- a/core/src/tests/testing_sd_common.cc +++ b/core/src/tests/testing_sd_common.cc @@ -40,9 +40,9 @@ PConfigParser StoragePrepareResources(const std::string& path_to_config) EXPECT_NE(storage_config.get(), nullptr); if (!storage_config) { return nullptr; } - bool parse_director_config_ok = storage_config->ParseConfig(); - EXPECT_TRUE(parse_director_config_ok) << "Could not parse storage config"; - if (!parse_director_config_ok) { return nullptr; } + bool parse_storage_config_ok = storage_config->ParseConfig(); + EXPECT_TRUE(parse_storage_config_ok) << "Could not parse storage config"; + if (!parse_storage_config_ok) { return nullptr; } Dmsg0(200, "Start UA server\n"); storagedaemon::me diff --git a/core/src/tests/testing_sd_common.h b/core/src/tests/testing_sd_common.h index 804857c0cdc..563757e0f41 100644 --- a/core/src/tests/testing_sd_common.h +++ b/core/src/tests/testing_sd_common.h @@ -1,5 +1,26 @@ -#ifndef TESTING_SD_COMMON_H -#define TESTING_SD_COMMON_H +/* + BAREOSĀ® - Backup Archiving REcovery Open Sourced + + Copyright (C) 2021-2022 Bareos GmbH & Co. KG + + This program is Free Software; you can redistribute it and/or + modify it under the terms of version three of the GNU Affero General Public + License as published by the Free Software Foundation and included + in the file LICENSE. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. +*/ + +#ifndef BAREOS_TESTS_TESTING_SD_COMMON_H_ +#define BAREOS_TESTS_TESTING_SD_COMMON_H_ #include "testing_common.h" @@ -10,4 +31,4 @@ void InitSdGlobals(); PConfigParser StoragePrepareResources(const std::string& path_to_config); -#endif // TESTING_SD_COMMON_H +#endif // BAREOS_TESTS_TESTING_SD_COMMON_H_