use new sdbus++ camelcase
Change I17a8d7479556596a3cf252b3f4eae9c8df547189 will change
how sdbus++ generates names which start with an acronym.
Prepare for this by keying off the SDBUSPP_NEW_CAMELCASE
define to use the new format.
Changes:
dHCPEnabled -> dhcpEnabled
dNSEnabled -> dnsEnabled
iP -> ip
iPAddress -> ipAddress
iPv6AcceptRA -> ipv6AcceptRA
mACAddress -> macAddress
nICEnabled -> nicEnabled
nTPEnabled -> ntpEnabled
nTPServers -> ntpServers
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I35da2c4f8fc33262d6d096e499220419ebe4d00d
diff --git a/test/test_ethernet_interface.cpp b/test/test_ethernet_interface.cpp
index 67a26dc..6f441f7 100644
--- a/test/test_ethernet_interface.cpp
+++ b/test/test_ethernet_interface.cpp
@@ -101,14 +101,14 @@
void createIPObject(IP::Protocol addressType, const std::string& ipaddress,
uint8_t subnetMask, const std::string& gateway)
{
- interface.iP(addressType, ipaddress, subnetMask, gateway);
+ interface.ip(addressType, ipaddress, subnetMask, gateway);
}
};
TEST_F(TestEthernetInterface, NoIPaddress)
{
EXPECT_EQ(countIPObjects(), 0);
- EXPECT_EQ(mac_address::toString(mac), interface.mACAddress());
+ EXPECT_EQ(mac_address::toString(mac), interface.macAddress());
}
TEST_F(TestEthernetInterface, AddIPAddress)
@@ -194,7 +194,7 @@
{
ServerList servers = {"10.1.1.1", "10.2.2.2", "10.3.3.3"};
EXPECT_CALL(manager, restartSystemdUnit(networkdService)).Times(1);
- interface.nTPServers(servers);
+ interface.ntpServers(servers);
fs::path filePath = confDir;
filePath /= "00-bmc-test0.network";
config::Parser parser(filePath.string());
diff --git a/test/test_vlan_interface.cpp b/test/test_vlan_interface.cpp
index 85f4f40..740b6fd 100644
--- a/test/test_vlan_interface.cpp
+++ b/test/test_vlan_interface.cpp
@@ -103,7 +103,7 @@
void createIPObject(IP::Protocol addressType, const std::string& ipaddress,
uint8_t subnetMask, const std::string& gateway)
{
- interface.iP(addressType, ipaddress, subnetMask, gateway);
+ interface.ip(addressType, ipaddress, subnetMask, gateway);
}
bool isValueFound(const std::vector<std::string>& values,