that the `data-directory` parameter has been specified. This parameter
has been is no longer supported. The first argument is the path specified
the second argument is the supported path that will be used. This path
-may be overriddend at runtime by setting the environment variable,
+may be overridden at runtime by setting the environment variable,
'KEA_DHCP_DATA_DIR'
try {
lease_file = conn_.getParameter("name");
} catch (const Exception&) {
- // Not specified, use the defualt.
+ // Not specified, use the default.
return (getDefaultLeaseFilePath(u));
}
BadValue, os.str());
}
-/// @brief Verifies that the supported path may be overriden witn
+/// @brief Verifies that the supported path may be overridden with
/// the environment variable KEA_DHCP_DATA_DIR.
TEST_F(MemfileLeaseMgrTest, dataDirEnvVarOverride) {
ASSERT_TRUE(data_dir_env_var_.getValue().empty());
"/tmp/leasefile6_1.csv");
}
-/// @brief Verifies that the supported path may be overriden with
+/// @brief Verifies that the supported path may be overridden with
/// an explicit path even though its really only for UT testing.
TEST_F(MemfileLeaseMgrTest, dataDirExplicitOveride) {
ASSERT_TRUE(data_dir_env_var_.getValue().empty());
namespace isc {
namespace test {
-/// @brief Wrapper for environment varible that restores
+/// @brief Wrapper for environment variable that restores
class EnvVarWrapper {
public:
/// @brief Constructor
///
/// Makes a call to getPath(true) to initialize the supported path.
///
- /// @param default_path path to use unless overidden by explicitly or via
+ /// @param default_path path to use unless overridden by explicitly or via
/// environment variable.
/// @param env_name name of environment variable (if one), that can override
/// the default path.
PathChecker checker("/tmp/def_path", env_name_.c_str());
ASSERT_EQ(checker.getPath(), checker.getDefaultPath());
- // A subsequent call wiht reset=true and an explicit path
+ // A subsequent call with reset=true and an explicit path
// should return the explicit path.
ASSERT_EQ(checker.getPath(true, "/tmp/explicit"),
"/tmp/explicit");