diff options
Diffstat (limited to 'examples/imapresource/tests')
-rw-r--r-- | examples/imapresource/tests/imapmailsynctest.cpp | 5 | ||||
-rw-r--r-- | examples/imapresource/tests/imapmailtest.cpp | 3 |
2 files changed, 5 insertions, 3 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 | ||
29 | using namespace Sink; | 30 | using namespace Sink; |
30 | using namespace Sink::ApplicationDomain; | 31 | using 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 | ||
diff --git a/examples/imapresource/tests/imapmailtest.cpp b/examples/imapresource/tests/imapmailtest.cpp index e6f41f4..60ec1bf 100644 --- a/examples/imapresource/tests/imapmailtest.cpp +++ b/examples/imapresource/tests/imapmailtest.cpp | |||
@@ -5,6 +5,7 @@ | |||
5 | 5 | ||
6 | #include "common/test.h" | 6 | #include "common/test.h" |
7 | #include "common/domain/applicationdomaintype.h" | 7 | #include "common/domain/applicationdomaintype.h" |
8 | #include "common/secretstore.h" | ||
8 | 9 | ||
9 | using namespace Sink; | 10 | using namespace Sink; |
10 | using namespace Sink::ApplicationDomain; | 11 | using namespace Sink::ApplicationDomain; |
@@ -37,7 +38,7 @@ protected: | |||
37 | resource.setProperty("server", "localhost"); | 38 | resource.setProperty("server", "localhost"); |
38 | resource.setProperty("port", 993); | 39 | resource.setProperty("port", 993); |
39 | resource.setProperty("username", "doe"); | 40 | resource.setProperty("username", "doe"); |
40 | resource.setProperty("password", "doe"); | 41 | Sink::SecretStore::instance().insert(resource.identifier(), "doe"); |
41 | return resource; | 42 | return resource; |
42 | } | 43 | } |
43 | }; | 44 | }; |