diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-12-15 17:26:59 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-12-15 17:26:59 +0100 |
commit | 7bd037fae43c963d5f67e9447b3ee6875591a2c7 (patch) | |
tree | e2537369bb21d12e77668f0b2e878cffc1b9b423 /tests | |
parent | 20b4d255509d5a490619afef50e49477ea09c71d (diff) | |
download | sink-7bd037fae43c963d5f67e9447b3ee6875591a2c7.tar.gz sink-7bd037fae43c963d5f67e9447b3ee6875591a2c7.zip |
Don't set capabilities as property on creation.
Instead we make it part of the plugin.
This ensure we also have access to the proper capabilities when creating
a resource via sinksh.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mailsynctest.cpp | 4 | ||||
-rw-r--r-- | tests/mailtest.cpp | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/tests/mailsynctest.cpp b/tests/mailsynctest.cpp index 6658d8b..31e40c4 100644 --- a/tests/mailsynctest.cpp +++ b/tests/mailsynctest.cpp | |||
@@ -46,7 +46,9 @@ void MailSyncTest::initTestCase() | |||
46 | VERIFYEXEC(Store::create(resource)); | 46 | VERIFYEXEC(Store::create(resource)); |
47 | 47 | ||
48 | mResourceInstanceIdentifier = resource.identifier(); | 48 | mResourceInstanceIdentifier = resource.identifier(); |
49 | mCapabilities = resource.getProperty("capabilities").value<QByteArrayList>(); | 49 | //Load the capabilities |
50 | resource = Store::readOne<Sink::ApplicationDomain::SinkResource>(Sink::Query{resource}); | ||
51 | mCapabilities = resource.getCapabilities(); | ||
50 | } | 52 | } |
51 | 53 | ||
52 | void MailSyncTest::cleanup() | 54 | void MailSyncTest::cleanup() |
diff --git a/tests/mailtest.cpp b/tests/mailtest.cpp index ae5295e..fe28cde 100644 --- a/tests/mailtest.cpp +++ b/tests/mailtest.cpp | |||
@@ -45,6 +45,9 @@ void MailTest::initTestCase() | |||
45 | VERIFYEXEC(Store::create(resource)); | 45 | VERIFYEXEC(Store::create(resource)); |
46 | 46 | ||
47 | mResourceInstanceIdentifier = resource.identifier(); | 47 | mResourceInstanceIdentifier = resource.identifier(); |
48 | |||
49 | //Load the capabilities | ||
50 | resource = Store::readOne<Sink::ApplicationDomain::SinkResource>(Sink::Query{resource}); | ||
48 | mCapabilities = resource.getCapabilities(); | 51 | mCapabilities = resource.getCapabilities(); |
49 | } | 52 | } |
50 | 53 | ||