This is a very niche problem.
I am working to create Unit Tests (autotests for end to end testing) for KDE Printer manager and there is some API issue I am facing. Whenever i try to implement the save printer function present in printermanager.cpp (void PrinterManager::savePrinter(const QString &name, const QVariantMap &saveArgs, bool isClass)) using the CUPS IP (ipp://localhost:631/ipp/print) in the saveArgs it throws error because the system is unable to connect to that server.
Now there might be 2 issues-
- I am not calling the function properly, i.e., the saveArgs is wrongly used.
- This (
ipp://localhost:631/ipp/print) is not the correct url to use for testing without printer. (probably this is the issue)
Can someone help me try to understand the issue. I am linking the PR changes and detailed error log file.
Here is my changeset: Draft: Autotests: add UT for printer configiguration (!271) · Merge requests · Plasma / Print Manager · GitLab
Error log: Error.log
If it helps, I am using KDE Neon community version with latest plasma version as a virtual machine.