void TestNetctlAuto::removeTestProfiles() { NetctlProfile *netctl = createNetctlProfileObj(); netctl->removeProfile(QString("netctlgui-test-dummy")); netctl->removeProfile(QString("netctlgui-test-dummy-snd")); delete netctl; }
void TestNetctl::createTestProfile() { NetctlProfile *netctl = createNetctlProfileObj(); QMap<QString, QString> profileSettings; profileSettings["Connection"] = QString("dummy"); profileSettings["Description"] = QString("\"Simple test profile\""); profileSettings["IP"] = QString("no"); profileSettings["IP6"] = QString("no"); profileSettings["Interface"] = QString("ngtest"); netctl->copyProfile(netctl->createProfile(QString("netctlgui-test-dummy"), profileSettings)); delete netctl; }