summaryrefslogtreecommitdiffstats
path: root/examples/imapresource/tests/imapmailsynctest.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-09-20 10:52:30 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-09-20 10:52:30 +0200
commit160f3153cffb110f5b52e244485ccbc2c15b002c (patch)
tree5159a2f7dc3ee04d34998d383357eddeb76da0ea /examples/imapresource/tests/imapmailsynctest.cpp
parentcb21b7d053ab35f61e8316853f57ec1ce121e484 (diff)
downloadsink-160f3153cffb110f5b52e244485ccbc2c15b002c.tar.gz
sink-160f3153cffb110f5b52e244485ccbc2c15b002c.zip
Fixed tests with secretstore
Diffstat (limited to 'examples/imapresource/tests/imapmailsynctest.cpp')
-rw-r--r--examples/imapresource/tests/imapmailsynctest.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/imapresource/tests/imapmailsynctest.cpp b/examples/imapresource/tests/imapmailsynctest.cpp
index 7cdb103..f20a77e 100644
--- a/examples/imapresource/tests/imapmailsynctest.cpp
+++ b/examples/imapresource/tests/imapmailsynctest.cpp
@@ -25,6 +25,7 @@
25 25
26#include "common/test.h" 26#include "common/test.h"
27#include "common/domain/applicationdomaintype.h" 27#include "common/domain/applicationdomaintype.h"
28#include "common/secretstore.h"
28 29
29using namespace Sink; 30using namespace Sink;
30using namespace Sink::ApplicationDomain; 31using namespace Sink::ApplicationDomain;
@@ -57,7 +58,7 @@ protected:
57 resource.setProperty("server", "localhost"); 58 resource.setProperty("server", "localhost");
58 resource.setProperty("port", 993); 59 resource.setProperty("port", 993);
59 resource.setProperty("username", "doe"); 60 resource.setProperty("username", "doe");
60 resource.setProperty("password", "doe"); 61 Sink::SecretStore::instance().insert(resource.identifier(), "doe");
61 return resource; 62 return resource;
62 } 63 }
63 64
@@ -68,7 +69,7 @@ protected:
68 resource.setProperty("server", "111.111.1.1"); 69 resource.setProperty("server", "111.111.1.1");
69 resource.setProperty("port", 993); 70 resource.setProperty("port", 993);
70 resource.setProperty("username", "doe"); 71 resource.setProperty("username", "doe");
71 resource.setProperty("password", "doe"); 72 Sink::SecretStore::instance().insert(resource.identifier(), "doe");
72 return resource; 73 return resource;
73 } 74 }
74 75