Merge lp:~dpm/reminders-app/account-click into lp:reminders-app
- account-click
- Merge into trunk
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Nicholas Skaggs | ||||
Approved revision: | 238 | ||||
Merged at revision: | 261 | ||||
Proposed branch: | lp:~dpm/reminders-app/account-click | ||||
Merge into: | lp:reminders-app | ||||
Diff against target: |
429 lines (+114/-107) 13 files modified
CMakeLists.txt (+12/-0) com.ubuntu.reminders_reminders.application.in (+2/-2) debian/account-plugin-evernote-sandbox.install (+2/-2) debian/account-plugin-evernote.install (+2/-2) debian/control (+13/-13) debian/reminders-app-autopilot.install (+1/-1) debian/rules (+0/-4) manifest.json.in (+19/-6) src/CMakeLists.txt (+0/-2) src/account-plugin/CMakeLists.txt (+53/-69) src/app/qml/reminders.qml (+2/-2) tests/autopilot/reminders/credentials.py (+4/-2) tests/autopilot/reminders/tests/test_credentials.py (+4/-2) |
||||
To merge this branch: | bzr merge lp:~dpm/reminders-app/account-click | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ubuntu Phone Apps Jenkins Bot | continuous-integration | Approve | |
Nicholas Skaggs (community) | Needs Fixing | ||
Michael Zanetti (community) | code review | Approve | |
Chris Wayne | Approve | ||
Alberto Mardegan (community) | Approve | ||
Review via email: mp+230768@code.launchpad.net |
Commit message
Move the account plugin to the click package
Description of the change
Now that there is support for account plugins as click packages, I'd like to move away from the .deb package the app requires on the phone to have a self-contained click package that contains the app and the account plugin.
This will allow us as well to replace the Evernote API key behind Jenkins, while we can leave the current one in the code.
# Notes
- The click reviewers tools show validation errors: bug 1357211
- Click package available for testing at: http://
- The layout of the click package is as follows: http://
- The layout of the installed click package: http://
- The upload to the store should be coordinated with the removal of the Evernote account plugin from the seeds
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
Chris Wayne (cwayne) wrote : | # |
IIRC the .service file should actually technically be included in the app itself, rather than the account-plugin click. I'm not sure how much it matters since it's all 1 click package, but it may still be a good thing to change
Alan Pope πΊπ§π± π¦ (popey) wrote : | # |
I tested this out on device and had an error. Talking to Mardy, he suggested:-
14:53 <mardy> ah, right the manifest.json is wrong
14:53 <mardy> it says "account-
14:54 <popey> what should it be?
14:54 <mardy> s/ACCOUNT_
14:55 <mardy> if I can read the CMakeLists.txt correctly
- 221. By David Planella
-
Fixed manifest path for account qml plugin
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
PASSED: Continuous integration, rev:221
http://
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 222. By David Planella
-
Changed the manifest hooks according to jdstrand's feedback
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
PASSED: Continuous integration, rev:222
http://
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
David Planella (dpm) wrote : | # |
Chris, I've changed the hooks in the manifest as per jdstrand's feedback. Does that address your comment? Or were you suggesting any other changes?
Alberto Mardegan (mardy) wrote : | # |
Hi! I finally spotted what is the issue (sorry, I should have thought of it earlier, as it's quite obvious!): now that the .provider and qml files are shipped via a click package, their name is not just "evernote". The hooks we run will rename them to <click-
So, in your case you should update the evernote code (the parts where you use the AccountServiceModel and the Setup elements) to use this as provider: "com.ubuntu.
- 223. By David Planella
-
Added changes recommended by mardy
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
FAILED: Continuous integration, rev:223
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
- 224. By David Planella
-
Added ability to switch between account providers
David Planella (dpm) wrote : | # |
Ok, I've added all the changes recommended by mardy:
http://
Except for one, which is not essential and I will address separately to keep the changes to a minimum:
- Rename the provider file to com.ubuntu.
There is now a new .click package available for testing at: http://
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
FAILED: Continuous integration, rev:224
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
- 225. By David Planella
-
Merged from trunk, fixed manifest file conflict
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
FAILED: Continuous integration, rev:225
http://
Executed test runs:
UNSTABLE: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Alberto Mardegan (mardy) wrote : | # |
This looks correct :-)
David Planella (dpm) wrote : | # |
#blocked by bug 1368763
David Planella (dpm) wrote : | # |
#blocked by bug 1369941
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
FAILED: Continuous integration, rev:225
http://
Executed test runs:
UNSTABLE: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 226. By David Planella
-
Merged from trunk
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
FAILED: Continuous integration, rev:226
http://
Executed test runs:
UNSTABLE: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
David Planella (dpm) wrote : | # |
So the app now works, but its .deb packaged version used by Jenkins fails the tests.
I can't figure out what's different and could be causing the .deb packages to fail. Unlike the click counterpart, the .deb packaging has remained the same, and only some ids have been redefined.
Here's a diff of the changes in the .deb packages:
- 227. By David Planella
-
Renamed .service and .provider files to make the desktop version work
- 228. By David Planella
-
Fixed installation names in the debian packaging
- 229. By David Planella
-
Updated service and provider names in the manifest file
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
FAILED: Continuous integration, rev:228
http://
Executed test runs:
UNSTABLE: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
FAILED: Continuous integration, rev:229
http://
Executed test runs:
UNSTABLE: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 230. By David Planella
-
Fixed names of services
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
FAILED: Continuous integration, rev:230
http://
Executed test runs:
UNSTABLE: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
FAILED: Continuous integration, rev:230
http://
Executed test runs:
UNSTABLE: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 231. By David Planella
-
Fixed the service file path in the manifest
- 232. By David Planella
-
Really really really fix the manifest now
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
FAILED: Continuous integration, rev:231
http://
Executed test runs:
UNSTABLE: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
FAILED: Continuous integration, rev:232
http://
Executed test runs:
UNSTABLE: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
FAILED: Continuous integration, rev:232
http://
Executed test runs:
None: http://
None: http://
Click here to trigger a rebuild:
http://
Nicholas Skaggs (nskaggs) wrote : | # |
Played a little debugging here:
https:/
Nicholas Skaggs (nskaggs) wrote : | # |
I'll note this works fine locally after dpm's latest tweaks, but fails at this step in jenkins:
session = Signon.
Nicholas Skaggs (nskaggs) wrote : | # |
We can see a bit more detail here about what's happening locally (which works) and what is happening in jenkins:
http://
In short, the authentication data is blank because it appears the initial account creation
account = self._manager.
is blank, instead of having the oauth details and keys.
Nicholas Skaggs (nskaggs) wrote : | # |
I can confirm I can recreate what is occurring in jenkins locally but using the installed binaries instead of the local build. This rules out something specific to jenkins.
This points to something in the cmake or debian build as the potential issue.
David Planella (dpm) wrote : | # |
Thanks a lot Nick. Do you think you could create a small python file to
reproduce the failure?
I'd then test the file with locally installed packages: first the ones from
trunk, and then the ones from this branch. I'd use this to point mardy to
the failure (rather than having to start the test suite to reproduce).
On Tue, Sep 30, 2014 at 9:51 PM, Nicholas Skaggs <
<email address hidden>> wrote:
> I can confirm I can recreate what is occurring in jenkins locally but
> using the installed binaries instead of the local build. This rules out
> something specific to jenkins.
>
> This points to something in the cmake or debian build as the potential
> issue.
> --
> https:/
> You are the owner of lp:~dpm/reminders-app/account-click.
>
Alberto Mardegan (mardy) wrote : | # |
At least one reason for the failure is quite obvious: the provider was renamed from "evernote-sandbox" to "com.ubuntu.
- 233. By David Planella
-
Updated provider and service IDs in the tests too
David Planella (dpm) wrote : | # |
Ok, updated the tests to use the right service and provider IDs now. Fingers crossed!
- 234. By David Planella
-
Added -sandbox suffix to service ID in the tests
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
FAILED: Continuous integration, rev:234
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
- 235. By David Planella
-
Make flake8 happy
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
FAILED: Continuous integration, rev:235
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
- 236. By David Planella
-
Fixed typo in variable name
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
PASSED: Continuous integration, rev:236
http://
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Michael Zanetti (mzanetti) wrote : | # |
code changes look ok to me, didn't test it though
Nicholas Skaggs (nskaggs) wrote : | # |
Can you wrap-and-sort the debian/control file David? I notice there is some duplicated depends in the list. account-
David Planella (dpm) wrote : | # |
It now works for me on the RTM images too. As per mardy's instructions, I needed to uninstall and reinstall the app after the u-s-s-o-a package got updated in my system. So I think that's finally good to go.
- 237. By David Planella
-
Added CMake command to determine the bzr revno upon build
- 238. By David Planella
-
Ran wrap-and-sort on debian files
David Planella (dpm) wrote : | # |
On Wed, Oct 1, 2014 at 5:18 PM, Nicholas Skaggs <
<email address hidden>> wrote:
> Review: Needs Fixing
>
> Can you wrap-and-sort the debian/control file David? I notice there is
> some duplicated depends in the list. account-
> listed twice for instance under reminders-
>
Done, thanks for the review and the hint at wrap-and-sort!
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
PASSED: Continuous integration, rev:238
http://
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Preview Diff
1 | === modified file 'CMakeLists.txt' | |||
2 | --- CMakeLists.txt 2014-09-28 09:10:46 +0000 | |||
3 | +++ CMakeLists.txt 2014-10-01 20:48:08 +0000 | |||
4 | @@ -22,6 +22,11 @@ | |||
5 | 22 | set(EXEC "reminders") | 22 | set(EXEC "reminders") |
6 | 23 | set(UBUNTU_MANIFEST_PATH "manifest.json.in" CACHE INTERNAL "Relative path to the manifest file") | 23 | set(UBUNTU_MANIFEST_PATH "manifest.json.in" CACHE INTERNAL "Relative path to the manifest file") |
7 | 24 | 24 | ||
8 | 25 | set(ACCOUNT_ICON_DIR ${CMAKE_INSTALL_DATADIR}/icons/hicolor/32x32/apps) | ||
9 | 26 | set(ACCOUNT_PROVIDER_DIR ${CMAKE_INSTALL_DATADIR}/accounts/providers) | ||
10 | 27 | set(ACCOUNT_SERVICE_DIR ${CMAKE_INSTALL_DATADIR}/accounts/services) | ||
11 | 28 | set(ACCOUNT_QML_PLUGIN_DIR ${CMAKE_INSTALL_DATADIR}/accounts/qml-plugins) | ||
12 | 29 | |||
13 | 25 | if(CLICK_MODE) | 30 | if(CLICK_MODE) |
14 | 26 | if(NOT DEFINED BZR_SOURCE) | 31 | if(NOT DEFINED BZR_SOURCE) |
15 | 27 | set(BZR_SOURCE "lp:${APP_HARDCODE}") | 32 | set(BZR_SOURCE "lp:${APP_HARDCODE}") |
16 | @@ -38,6 +43,13 @@ | |||
17 | 38 | set(DATA_DIR /) | 43 | set(DATA_DIR /) |
18 | 39 | set(DESKTOP_DIR ${DATA_DIR}) | 44 | set(DESKTOP_DIR ${DATA_DIR}) |
19 | 40 | set(APPLICATION_DIR ${DATA_DIR}) | 45 | set(APPLICATION_DIR ${DATA_DIR}) |
20 | 46 | |||
21 | 47 | # Sets BZR_REVNO | ||
22 | 48 | execute_process( | ||
23 | 49 | COMMAND bzr revno ${CMAKE_SOURCE_DIR} | ||
24 | 50 | OUTPUT_VARIABLE BZR_REVNO | ||
25 | 51 | OUTPUT_STRIP_TRAILING_WHITESPACE | ||
26 | 52 | ) | ||
27 | 41 | if(NOT BZR_REVNO) | 53 | if(NOT BZR_REVNO) |
28 | 42 | set(BZR_REVNO "latest") | 54 | set(BZR_REVNO "latest") |
29 | 43 | endif(NOT BZR_REVNO) | 55 | endif(NOT BZR_REVNO) |
30 | 44 | 56 | ||
31 | === modified file 'com.ubuntu.reminders_reminders.application.in' | |||
32 | --- com.ubuntu.reminders_reminders.application.in 2014-06-27 14:32:32 +0000 | |||
33 | +++ com.ubuntu.reminders_reminders.application.in 2014-10-01 20:48:08 +0000 | |||
34 | @@ -4,10 +4,10 @@ | |||
35 | 4 | <description>Reminders</description> | 4 | <description>Reminders</description> |
36 | 5 | 5 | ||
37 | 6 | <services> | 6 | <services> |
39 | 7 | <service id="evernote"> | 7 | <service id="com.ubuntu.reminders_reminders"> |
40 | 8 | <description>Synchronize your notes with Evernote</description> | 8 | <description>Synchronize your notes with Evernote</description> |
41 | 9 | </service> | 9 | </service> |
43 | 10 | <service id="evernote-sandbox"> | 10 | <service id="com.ubuntu.reminders_reminders-sandbox"> |
44 | 11 | <description>Synchronize your notes with the Evernote Sandbox</description> | 11 | <description>Synchronize your notes with the Evernote Sandbox</description> |
45 | 12 | </service> | 12 | </service> |
46 | 13 | </services> | 13 | </services> |
47 | 14 | 14 | ||
48 | === modified file 'debian/account-plugin-evernote-sandbox.install' | |||
49 | --- debian/account-plugin-evernote-sandbox.install 2014-06-27 17:26:38 +0000 | |||
50 | +++ debian/account-plugin-evernote-sandbox.install 2014-10-01 20:48:08 +0000 | |||
51 | @@ -1,4 +1,4 @@ | |||
53 | 1 | usr/share/accounts/providers/evernote-sandbox.provider | 1 | usr/share/accounts/providers/com.ubuntu.reminders_evernote-account-plugin-sandbox.provider |
54 | 2 | usr/share/accounts/qml-plugins/evernote-sandbox/Main.qml | 2 | usr/share/accounts/qml-plugins/evernote-sandbox/Main.qml |
56 | 3 | usr/share/accounts/services/evernote-sandbox.service | 3 | usr/share/accounts/services/com.ubuntu.reminders_reminders-sandbox.service |
57 | 4 | usr/share/icons/hicolor/32x32/apps/evernote-sandbox.png | 4 | usr/share/icons/hicolor/32x32/apps/evernote-sandbox.png |
58 | 5 | 5 | ||
59 | === modified file 'debian/account-plugin-evernote.install' | |||
60 | --- debian/account-plugin-evernote.install 2014-06-27 15:57:59 +0000 | |||
61 | +++ debian/account-plugin-evernote.install 2014-10-01 20:48:08 +0000 | |||
62 | @@ -1,7 +1,7 @@ | |||
63 | 1 | #!/usr/bin/dh-exec | 1 | #!/usr/bin/dh-exec |
64 | 2 | 2 | ||
66 | 3 | usr/share/accounts/providers/evernote.provider | 3 | usr/share/accounts/providers/com.ubuntu.reminders_evernote-account-plugin.provider |
67 | 4 | usr/share/accounts/qml-plugins/evernote/Main.qml | 4 | usr/share/accounts/qml-plugins/evernote/Main.qml |
69 | 5 | usr/share/accounts/services/evernote.service | 5 | usr/share/accounts/services/com.ubuntu.reminders_reminders.service |
70 | 6 | usr/share/icons/hicolor/32x32/apps/evernote.png | 6 | usr/share/icons/hicolor/32x32/apps/evernote.png |
71 | 7 | usr/lib/*/qt5/qml/Evernote usr/lib/${DEB_HOST_MULTIARCH}/ubuntu-system-settings/private | 7 | usr/lib/*/qt5/qml/Evernote usr/lib/${DEB_HOST_MULTIARCH}/ubuntu-system-settings/private |
72 | 8 | 8 | ||
73 | === modified file 'debian/control' | |||
74 | --- debian/control 2014-09-28 08:31:38 +0000 | |||
75 | +++ debian/control 2014-10-01 20:48:08 +0000 | |||
76 | @@ -10,7 +10,7 @@ | |||
77 | 10 | libssl-dev, | 10 | libssl-dev, |
78 | 11 | python3-all, | 11 | python3-all, |
79 | 12 | qt5-default, | 12 | qt5-default, |
81 | 13 | qtdeclarative5-dev, | 13 | qtdeclarative5-dev |
82 | 14 | Standards-Version: 3.9.5 | 14 | Standards-Version: 3.9.5 |
83 | 15 | Section: misc | 15 | Section: misc |
84 | 16 | Homepage: https://launchpad.net/reminders-app | 16 | Homepage: https://launchpad.net/reminders-app |
85 | @@ -18,24 +18,24 @@ | |||
86 | 18 | 18 | ||
87 | 19 | Package: reminders-app | 19 | Package: reminders-app |
88 | 20 | Architecture: any | 20 | Architecture: any |
91 | 21 | Depends: ${misc:Depends}, ${shlibs:Depends}, | 21 | Depends: account-plugin-evernote, |
90 | 22 | account-plugin-evernote, | ||
92 | 23 | qtdeclarative5-accounts-plugin, | 22 | qtdeclarative5-accounts-plugin, |
93 | 24 | qtdeclarative5-evernote0.1, | 23 | qtdeclarative5-evernote0.1, |
94 | 25 | qtdeclarative5-ubuntu-ui-toolkit-plugin | qt-components-ubuntu, | ||
95 | 26 | qtdeclarative5-localstorage-plugin, | 24 | qtdeclarative5-localstorage-plugin, |
96 | 27 | qtdeclarative5-online-accounts-client0.1 (>= 0.3+14.10.20140506), | 25 | qtdeclarative5-online-accounts-client0.1 (>= 0.3+14.10.20140506), |
97 | 26 | qtdeclarative5-qtquick2-plugin, | ||
98 | 28 | qtdeclarative5-quicklayouts-plugin, | 27 | qtdeclarative5-quicklayouts-plugin, |
100 | 29 | qtdeclarative5-qtquick2-plugin, | 28 | qtdeclarative5-ubuntu-ui-toolkit-plugin | qt-components-ubuntu, |
101 | 30 | signon-plugin-oauth2 (>= 0.19-0~57~), | 29 | signon-plugin-oauth2 (>= 0.19-0~57~), |
102 | 31 | suru-icon-theme | ubuntu-mobile-icons, | 30 | suru-icon-theme | ubuntu-mobile-icons, |
103 | 31 | ${misc:Depends}, | ||
104 | 32 | ${shlibs:Depends} | ||
105 | 32 | Description: Reminders application | 33 | Description: Reminders application |
106 | 33 | Note taking application powered by Evernote | 34 | Note taking application powered by Evernote |
107 | 34 | 35 | ||
108 | 35 | Package: qtdeclarative5-evernote0.1 | 36 | Package: qtdeclarative5-evernote0.1 |
109 | 36 | Architecture: any | 37 | Architecture: any |
112 | 37 | Depends: ${misc:Depends}, | 38 | Depends: ${misc:Depends}, ${shlibs:Depends} |
111 | 38 | ${shlibs:Depends}, | ||
113 | 39 | Description: Expose the Evernote API to QML applications | 39 | Description: Expose the Evernote API to QML applications |
114 | 40 | This module provides access to the Evernote API from QML applications. | 40 | This module provides access to the Evernote API from QML applications. |
115 | 41 | 41 | ||
116 | @@ -44,7 +44,7 @@ | |||
117 | 44 | Depends: libaccount-plugin-generic-oauth, | 44 | Depends: libaccount-plugin-generic-oauth, |
118 | 45 | qtdeclarative5-online-accounts-client0.1, | 45 | qtdeclarative5-online-accounts-client0.1, |
119 | 46 | ${misc:Depends}, | 46 | ${misc:Depends}, |
121 | 47 | ${shlibs:Depends}, | 47 | ${shlibs:Depends} |
122 | 48 | Description: Allow Ubuntu applications to access Evernote accounts | 48 | Description: Allow Ubuntu applications to access Evernote accounts |
123 | 49 | This plugin enables users to authenticate to their Evernote accounts, | 49 | This plugin enables users to authenticate to their Evernote accounts, |
124 | 50 | providing syncing of Evernote notes across Ubuntu devices. | 50 | providing syncing of Evernote notes across Ubuntu devices. |
125 | @@ -55,16 +55,14 @@ | |||
126 | 55 | libaccount-plugin-generic-oauth, | 55 | libaccount-plugin-generic-oauth, |
127 | 56 | qtdeclarative5-online-accounts-client0.1, | 56 | qtdeclarative5-online-accounts-client0.1, |
128 | 57 | ${misc:Depends}, | 57 | ${misc:Depends}, |
130 | 58 | ${shlibs:Depends}, | 58 | ${shlibs:Depends} |
131 | 59 | Description: Allow Ubuntu applications to access Evernote sandbox accounts | 59 | Description: Allow Ubuntu applications to access Evernote sandbox accounts |
132 | 60 | This plugin enables developers to authenticate to their Evernote developer | 60 | This plugin enables developers to authenticate to their Evernote developer |
133 | 61 | sandbox account, which allows syncing of Evernote notes across Ubuntu devices. | 61 | sandbox account, which allows syncing of Evernote notes across Ubuntu devices. |
134 | 62 | 62 | ||
135 | 63 | Package: reminders-app-autopilot | 63 | Package: reminders-app-autopilot |
136 | 64 | Architecture: all | 64 | Architecture: all |
140 | 65 | Depends: ${misc:Depends}, | 65 | Depends: account-plugin-evernote-sandbox, |
138 | 66 | reminders-app (>= ${source:Version}), reminders-app (<< ${source:Version}.1~), | ||
139 | 67 | account-plugin-evernote-sandbox, | ||
141 | 68 | libautopilot-qt, | 66 | libautopilot-qt, |
142 | 69 | libclick-0.4-0, | 67 | libclick-0.4-0, |
143 | 70 | libqt5test5, | 68 | libqt5test5, |
144 | @@ -73,7 +71,9 @@ | |||
145 | 73 | python3-fixtures, | 71 | python3-fixtures, |
146 | 74 | python3-oauthlib, | 72 | python3-oauthlib, |
147 | 75 | python3-requests-oauthlib, | 73 | python3-requests-oauthlib, |
148 | 74 | reminders-app (<< ${source:Version}.1~), | ||
149 | 75 | reminders-app (>= ${source:Version}), | ||
150 | 76 | ubuntu-ui-toolkit-autopilot, | 76 | ubuntu-ui-toolkit-autopilot, |
152 | 77 | account-plugin-evernote-sandbox | 77 | ${misc:Depends} |
153 | 78 | Description: Test package for the Reminders app | 78 | Description: Test package for the Reminders app |
154 | 79 | Autopilot tests for the Reminders app package | 79 | Autopilot tests for the Reminders app package |
155 | 80 | 80 | ||
156 | === modified file 'debian/reminders-app-autopilot.install' | |||
157 | --- debian/reminders-app-autopilot.install 2014-06-26 15:43:02 +0000 | |||
158 | +++ debian/reminders-app-autopilot.install 2014-10-01 20:48:08 +0000 | |||
159 | @@ -1,3 +1,3 @@ | |||
160 | 1 | usr/lib/*/dist-packages/evernote/ | ||
161 | 1 | usr/lib/*/dist-packages/reminders/ | 2 | usr/lib/*/dist-packages/reminders/ |
162 | 2 | usr/lib/*/dist-packages/thrift/ | 3 | usr/lib/*/dist-packages/thrift/ |
163 | 3 | usr/lib/*/dist-packages/evernote/ | ||
164 | 4 | 4 | ||
165 | === modified file 'debian/rules' | |||
166 | --- debian/rules 2014-09-08 15:39:00 +0000 | |||
167 | +++ debian/rules 2014-10-01 20:48:08 +0000 | |||
168 | @@ -9,10 +9,6 @@ | |||
169 | 9 | 9 | ||
170 | 10 | override_dh_auto_configure: | 10 | override_dh_auto_configure: |
171 | 11 | dh_auto_configure -- \ | 11 | dh_auto_configure -- \ |
172 | 12 | -DEVERNOTE_SANDBOX_CONSUMER_KEY="ubuntu" \ | ||
173 | 13 | -DEVERNOTE_SANDBOX_CONSUMER_SECRET="44f8ee81a8359500" \ | ||
174 | 14 | -DEVERNOTE_CONSUMER_KEY="canonicalis" \ | ||
175 | 15 | -DEVERNOTE_CONSUMER_SECRET="174a72ce5bffbcad" \ | ||
176 | 16 | -DCLICK_MODE=OFF | 12 | -DCLICK_MODE=OFF |
177 | 17 | 13 | ||
178 | 18 | override_dh_install: | 14 | override_dh_install: |
179 | 19 | 15 | ||
180 | === modified file 'manifest.json.in' | |||
181 | --- manifest.json.in 2014-09-23 07:35:24 +0000 | |||
182 | +++ manifest.json.in 2014-10-01 20:48:08 +0000 | |||
183 | @@ -5,8 +5,13 @@ | |||
184 | 5 | "hooks": { | 5 | "hooks": { |
185 | 6 | "reminders": { | 6 | "reminders": { |
186 | 7 | "account-application": "com.ubuntu.reminders_reminders.application", | 7 | "account-application": "com.ubuntu.reminders_reminders.application", |
187 | 8 | "account-service": "@ACCOUNT_SERVICE_DIR@/com.ubuntu.reminders_reminders.service", | ||
188 | 8 | "apparmor": "reminders.apparmor", | 9 | "apparmor": "reminders.apparmor", |
189 | 9 | "desktop": "com.ubuntu.reminders.desktop" | 10 | "desktop": "com.ubuntu.reminders.desktop" |
190 | 11 | }, | ||
191 | 12 | "evernote-account-plugin": { | ||
192 | 13 | "account-qml-plugin": "@ACCOUNT_QML_PLUGIN_DIR@/evernote", | ||
193 | 14 | "account-provider": "@ACCOUNT_PROVIDER_DIR@/com.ubuntu.reminders_evernote-account-plugin.provider" | ||
194 | 10 | } | 15 | } |
195 | 11 | }, | 16 | }, |
196 | 12 | "maintainer": "Ubuntu App Cats <ubuntu-touch-coreapps@lists.launchpad.net>", | 17 | "maintainer": "Ubuntu App Cats <ubuntu-touch-coreapps@lists.launchpad.net>", |
197 | @@ -17,10 +22,18 @@ | |||
198 | 17 | "vcs-bzr": "lp:reminders-app", | 22 | "vcs-bzr": "lp:reminders-app", |
199 | 18 | "vcs-bzr-revno": "@BZR_REVNO@" | 23 | "vcs-bzr-revno": "@BZR_REVNO@" |
200 | 19 | }, | 24 | }, |
207 | 20 | "x-test": { | 25 | "x-test": { |
208 | 21 | "autopilot": { | 26 | "autopilot": { |
209 | 22 | "autopilot_module": "@AUTOPILOT_DIR@", | 27 | "autopilot_module": "@AUTOPILOT_DIR@", |
210 | 23 | "depends": ["account-plugin-evernote-sandbox", "libclick-0.4-0", "python3-dbus", "python3-dbusmock", "python3-fixtures", "python3-oauthlib", "python3-requests-oauthlib"] | 28 | "depends": [ |
211 | 24 | } | 29 | "account-plugin-evernote-sandbox", |
212 | 25 | } | 30 | "libclick-0.4-0", |
213 | 31 | "python3-dbus", | ||
214 | 32 | "python3-dbusmock", | ||
215 | 33 | "python3-fixtures", | ||
216 | 34 | "python3-oauthlib", | ||
217 | 35 | "python3-requests-oauthlib" | ||
218 | 36 | ] | ||
219 | 37 | } | ||
220 | 38 | } | ||
221 | 26 | } | 39 | } |
222 | 27 | 40 | ||
223 | === modified file 'src/CMakeLists.txt' | |||
224 | --- src/CMakeLists.txt 2014-01-30 13:53:15 +0000 | |||
225 | +++ src/CMakeLists.txt 2014-10-01 20:48:08 +0000 | |||
226 | @@ -1,5 +1,3 @@ | |||
227 | 1 | if(NOT CLICK_MODE) | ||
228 | 2 | add_subdirectory(account-plugin) | 1 | add_subdirectory(account-plugin) |
229 | 3 | endif(NOT CLICK_MODE) | ||
230 | 4 | add_subdirectory(plugin) | 2 | add_subdirectory(plugin) |
231 | 5 | add_subdirectory(app) | 3 | add_subdirectory(app) |
232 | 6 | 4 | ||
233 | === modified file 'src/account-plugin/CMakeLists.txt' | |||
234 | --- src/account-plugin/CMakeLists.txt 2014-07-01 13:27:32 +0000 | |||
235 | +++ src/account-plugin/CMakeLists.txt 2014-10-01 20:48:08 +0000 | |||
236 | @@ -1,70 +1,54 @@ | |||
237 | 1 | set(EVERNOTE_SANDBOX_CONSUMER_KEY "ubuntu") | ||
238 | 2 | set(EVERNOTE_SANDBOX_CONSUMER_SECRET "44f8ee81a8359500") | ||
239 | 3 | set(EVERNOTE_CONSUMER_KEY "canonicalis") | ||
240 | 4 | set(EVERNOTE_CONSUMER_SECRET "174a72ce5bffbcad") | ||
241 | 5 | |||
242 | 6 | function(EvernoteOnlineAccountSetup account_display_name account_name provider_id service_id hostname consumer_key consumer_secret) | ||
243 | 7 | |||
244 | 8 | set(EVERNOTE_DATA_FILENAME evernote) | ||
245 | 9 | set(EVERNOTE_CONSUMER_KEY ${consumer_key}) | ||
246 | 10 | set(EVERNOTE_CONSUMER_SECRET ${consumer_secret}) | ||
247 | 11 | |||
248 | 12 | set(EVERNOTE_ACCOUNT_DISPLAY_NAME ${account_display_name}) | ||
249 | 13 | set(EVERNOTE_ACCOUNT_NAME ${account_name}) | ||
250 | 14 | set(EVERNOTE_HOSTNAME ${hostname}) | ||
251 | 15 | |||
252 | 16 | set(EVERNOTE_PROVIDER_ID ${provider_id}) | ||
253 | 17 | set(EVERNOTE_SERVICE_ID ${service_id}) | ||
254 | 18 | set(EVERNOTE_ICON_NAME ${account_name}) | ||
255 | 19 | |||
256 | 20 | set(ICON_FILE data/icons/${EVERNOTE_ICON_NAME}.png) | ||
257 | 21 | set(PROVIDER_FILE_IN data/providers/${EVERNOTE_DATA_FILENAME}.provider.in) | ||
258 | 22 | set(SERVICE_FILE_IN data/services/${EVERNOTE_DATA_FILENAME}.service.in) | ||
259 | 23 | set(QML_PLUGIN_FILE_IN qml/${EVERNOTE_DATA_FILENAME}/Main.qml.in) | ||
260 | 24 | |||
261 | 25 | set(PROVIDER_FILE data/providers/${EVERNOTE_PROVIDER_ID}.provider) | ||
262 | 26 | set(SERVICE_FILE data/services/${EVERNOTE_SERVICE_ID}.service) | ||
263 | 27 | set(QML_PLUGIN_FILE qml/${account_name}/Main.qml) | ||
264 | 28 | |||
265 | 29 | install(FILES ${ICON_FILE} DESTINATION ${ACCOUNT_ICON_DIR}) | ||
266 | 30 | |||
267 | 31 | configure_file(${PROVIDER_FILE_IN} ${CMAKE_CURRENT_BINARY_DIR}/${PROVIDER_FILE}) | ||
268 | 32 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROVIDER_FILE} | ||
269 | 33 | DESTINATION ${ACCOUNT_PROVIDER_DIR}) | ||
270 | 34 | |||
271 | 35 | configure_file(${SERVICE_FILE_IN} ${CMAKE_CURRENT_BINARY_DIR}/${SERVICE_FILE}) | ||
272 | 36 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${SERVICE_FILE} | ||
273 | 37 | DESTINATION ${ACCOUNT_SERVICE_DIR}) | ||
274 | 38 | |||
275 | 39 | configure_file(${QML_PLUGIN_FILE_IN} ${CMAKE_CURRENT_BINARY_DIR}/${QML_PLUGIN_FILE}) | ||
276 | 40 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${QML_PLUGIN_FILE} | ||
277 | 41 | DESTINATION ${ACCOUNT_QML_PLUGIN_DIR}/${EVERNOTE_ACCOUNT_NAME}) | ||
278 | 42 | |||
279 | 43 | endfunction() | ||
280 | 44 | |||
281 | 1 | # Build and install the files for the production plugin | 45 | # Build and install the files for the production plugin |
351 | 2 | 46 | EvernoteOnlineAccountSetup(Evernote evernote com.ubuntu.reminders_evernote-account-plugin com.ubuntu.reminders_reminders www.evernote.com | |
352 | 3 | set(EVERNOTE_ACCOUNT_DISPLAY_NAME Evernote) | 47 | ${EVERNOTE_CONSUMER_KEY} ${EVERNOTE_CONSUMER_SECRET}) |
353 | 4 | set(EVERNOTE_ACCOUNT_NAME evernote) | 48 | |
354 | 5 | set(EVERNOTE_HOSTNAME www.evernote.com) | 49 | if(NOT CLICK_MODE) |
355 | 6 | 50 | # Build and install the files for the sandbox plugin | |
356 | 7 | set(EVERNOTE_PROVIDER_ID ${EVERNOTE_ACCOUNT_NAME}) | 51 | # We're only building it as a .deb package for Jenkins, we don't need it in the click package |
357 | 8 | set(EVERNOTE_SERVICE_ID ${EVERNOTE_ACCOUNT_NAME}) | 52 | EvernoteOnlineAccountSetup("Evernote Developer Sandbox" evernote-sandbox com.ubuntu.reminders_evernote-account-plugin-sandbox com.ubuntu.reminders_reminders-sandbox sandbox.evernote.com |
358 | 9 | set(EVERNOTE_ICON_NAME ${EVERNOTE_ACCOUNT_NAME}) | 53 | ${EVERNOTE_SANDBOX_CONSUMER_KEY} ${EVERNOTE_SANDBOX_CONSUMER_SECRET}) |
359 | 10 | 54 | endif(NOT CLICK_MODE) | |
291 | 11 | set(ICON data/icons/${EVERNOTE_ICON_NAME}.png) | ||
292 | 12 | set(PROVIDER_FILE data/providers/${EVERNOTE_ACCOUNT_NAME}.provider) | ||
293 | 13 | set(SERVICE_FILE data/services/${EVERNOTE_ACCOUNT_NAME}.service) | ||
294 | 14 | set(QML_PLUGIN_FILE qml/${EVERNOTE_ACCOUNT_NAME}/Main.qml) | ||
295 | 15 | set(QML_PLUGIN_DIR ${CMAKE_INSTALL_DATADIR}/accounts/qml-plugins) | ||
296 | 16 | |||
297 | 17 | set(ICON_DIR ${CMAKE_INSTALL_DATADIR}/icons/hicolor/32x32/apps) | ||
298 | 18 | set(PROVIDER_DIR ${CMAKE_INSTALL_DATADIR}/accounts/providers) | ||
299 | 19 | set(SERVICE_DIR ${CMAKE_INSTALL_DATADIR}/accounts/services) | ||
300 | 20 | |||
301 | 21 | install(FILES ${ICON} DESTINATION ${ICON_DIR}) | ||
302 | 22 | |||
303 | 23 | configure_file(${PROVIDER_FILE}.in ${CMAKE_CURRENT_BINARY_DIR}/${PROVIDER_FILE}) | ||
304 | 24 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROVIDER_FILE} | ||
305 | 25 | DESTINATION ${PROVIDER_DIR}) | ||
306 | 26 | |||
307 | 27 | configure_file(${SERVICE_FILE}.in ${CMAKE_CURRENT_BINARY_DIR}/${SERVICE_FILE}) | ||
308 | 28 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${SERVICE_FILE} | ||
309 | 29 | DESTINATION ${SERVICE_DIR}) | ||
310 | 30 | |||
311 | 31 | configure_file(${QML_PLUGIN_FILE}.in ${CMAKE_CURRENT_BINARY_DIR}/${QML_PLUGIN_FILE}) | ||
312 | 32 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${QML_PLUGIN_FILE} | ||
313 | 33 | DESTINATION ${QML_PLUGIN_DIR}/${EVERNOTE_ACCOUNT_NAME}) | ||
314 | 34 | |||
315 | 35 | # Build and install the files for the sandbox plugin | ||
316 | 36 | |||
317 | 37 | set(EVERNOTE_ACCOUNT_DISPLAY_NAME "Evernote Developer Sandbox") | ||
318 | 38 | set(EVERNOTE_ACCOUNT_NAME evernote-sandbox) | ||
319 | 39 | set(EVERNOTE_HOSTNAME sandbox.evernote.com) | ||
320 | 40 | set(EVERNOTE_CONSUMER_KEY ${EVERNOTE_SANDBOX_CONSUMER_KEY}) | ||
321 | 41 | set(EVERNOTE_CONSUMER_SECRET ${EVERNOTE_SANDBOX_CONSUMER_SECRET}) | ||
322 | 42 | |||
323 | 43 | set(EVERNOTE_PROVIDER_ID ${EVERNOTE_ACCOUNT_NAME}) | ||
324 | 44 | set(EVERNOTE_SERVICE_ID ${EVERNOTE_ACCOUNT_NAME}) | ||
325 | 45 | set(EVERNOTE_ICON_NAME ${EVERNOTE_ACCOUNT_NAME}) | ||
326 | 46 | |||
327 | 47 | set(PROVIDER_FILE_SANDBOX data/providers/${EVERNOTE_ACCOUNT_NAME}.provider) | ||
328 | 48 | set(SERVICE_FILE_SANDBOX data/services/${EVERNOTE_ACCOUNT_NAME}.service) | ||
329 | 49 | set(QML_PLUGIN_FILE_SANDBOX qml/${EVERNOTE_ACCOUNT_NAME}/Main.qml) | ||
330 | 50 | set(QML_PLUGIN_DIR ${CMAKE_INSTALL_DATADIR}/accounts/qml-plugins) | ||
331 | 51 | |||
332 | 52 | install(FILES ${ICON} | ||
333 | 53 | DESTINATION ${ICON_DIR} | ||
334 | 54 | RENAME ${EVERNOTE_ACCOUNT_NAME}.png) | ||
335 | 55 | |||
336 | 56 | configure_file(${PROVIDER_FILE}.in ${CMAKE_CURRENT_BINARY_DIR}/${PROVIDER_FILE_SANDBOX}) | ||
337 | 57 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROVIDER_FILE_SANDBOX} | ||
338 | 58 | DESTINATION ${PROVIDER_DIR}) | ||
339 | 59 | |||
340 | 60 | configure_file(${PROVIDER_FILE}.in ${CMAKE_CURRENT_BINARY_DIR}/${PROVIDER_FILE_SANDBOX}) | ||
341 | 61 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROVIDER_FILE_SANDBOX} | ||
342 | 62 | DESTINATION ${PROVIDER_DIR}) | ||
343 | 63 | |||
344 | 64 | configure_file(${SERVICE_FILE}.in ${CMAKE_CURRENT_BINARY_DIR}/${SERVICE_FILE_SANDBOX}) | ||
345 | 65 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${SERVICE_FILE_SANDBOX} | ||
346 | 66 | DESTINATION ${SERVICE_DIR}) | ||
347 | 67 | |||
348 | 68 | configure_file(${QML_PLUGIN_FILE}.in ${CMAKE_CURRENT_BINARY_DIR}/${QML_PLUGIN_FILE_SANDBOX}) | ||
349 | 69 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${QML_PLUGIN_FILE_SANDBOX} | ||
350 | 70 | DESTINATION ${QML_PLUGIN_DIR}/${EVERNOTE_ACCOUNT_NAME}) | ||
360 | 71 | 55 | ||
361 | === added file 'src/account-plugin/data/icons/evernote-sandbox.png' | |||
362 | 72 | Binary files src/account-plugin/data/icons/evernote-sandbox.png 1970-01-01 00:00:00 +0000 and src/account-plugin/data/icons/evernote-sandbox.png 2014-10-01 20:48:08 +0000 differ | 56 | Binary files src/account-plugin/data/icons/evernote-sandbox.png 1970-01-01 00:00:00 +0000 and src/account-plugin/data/icons/evernote-sandbox.png 2014-10-01 20:48:08 +0000 differ |
363 | === modified file 'src/app/qml/reminders.qml' | |||
364 | --- src/app/qml/reminders.qml 2014-09-23 12:39:27 +0000 | |||
365 | +++ src/app/qml/reminders.qml 2014-10-01 20:48:08 +0000 | |||
366 | @@ -130,7 +130,7 @@ | |||
367 | 130 | 130 | ||
368 | 131 | AccountServiceModel { | 131 | AccountServiceModel { |
369 | 132 | id: accounts | 132 | id: accounts |
371 | 133 | service: useSandbox ? "evernote-sandbox" : "evernote" | 133 | applicationId: "com.ubuntu.reminders_reminders" |
372 | 134 | } | 134 | } |
373 | 135 | 135 | ||
374 | 136 | AccountService { | 136 | AccountService { |
375 | @@ -336,7 +336,7 @@ | |||
376 | 336 | Setup { | 336 | Setup { |
377 | 337 | id: setup | 337 | id: setup |
378 | 338 | applicationId: "com.ubuntu.reminders_reminders" | 338 | applicationId: "com.ubuntu.reminders_reminders" |
380 | 339 | providerId: "evernote" | 339 | providerId: useSandbox ? "com.ubuntu.reminders_evernote-account-plugin-sandbox" : "com.ubuntu.reminders_evernote-account-plugin" |
381 | 340 | } | 340 | } |
382 | 341 | 341 | ||
383 | 342 | Button { | 342 | Button { |
384 | 343 | 343 | ||
385 | === modified file 'tests/autopilot/reminders/credentials.py' | |||
386 | --- tests/autopilot/reminders/credentials.py 2014-09-01 23:10:54 +0000 | |||
387 | +++ tests/autopilot/reminders/credentials.py 2014-10-01 20:48:08 +0000 | |||
388 | @@ -81,7 +81,8 @@ | |||
389 | 81 | 81 | ||
390 | 82 | def _create_account(self): | 82 | def _create_account(self): |
391 | 83 | logger.debug('Creating the Evernote account.') | 83 | logger.debug('Creating the Evernote account.') |
393 | 84 | account = self._manager.create_account('evernote-sandbox') | 84 | provider_id = 'com.ubuntu.reminders_evernote-account-plugin-sandbox' |
394 | 85 | account = self._manager.create_account(provider_id) | ||
395 | 85 | account.set_enabled(True) | 86 | account.set_enabled(True) |
396 | 86 | account.store(self._on_account_created, None) | 87 | account.store(self._on_account_created, None) |
397 | 87 | return account | 88 | return account |
398 | @@ -143,7 +144,8 @@ | |||
399 | 143 | 144 | ||
400 | 144 | def _enable_evernote_service(self, account): | 145 | def _enable_evernote_service(self, account): |
401 | 145 | logger.debug('Enabling evernote service.') | 146 | logger.debug('Enabling evernote service.') |
403 | 146 | service = self._manager.get_service('evernote-sandbox') | 147 | service_id = 'com.ubuntu.reminders_reminders-sandbox' |
404 | 148 | service = self._manager.get_service(service_id) | ||
405 | 147 | account.select_service(service) | 149 | account.select_service(service) |
406 | 148 | account.set_enabled(True) | 150 | account.set_enabled(True) |
407 | 149 | account.store(self._on_service_enabled, None) | 151 | account.store(self._on_service_enabled, None) |
408 | 150 | 152 | ||
409 | === modified file 'tests/autopilot/reminders/tests/test_credentials.py' | |||
410 | --- tests/autopilot/reminders/tests/test_credentials.py 2014-07-30 17:23:26 +0000 | |||
411 | +++ tests/autopilot/reminders/tests/test_credentials.py 2014-10-01 20:48:08 +0000 | |||
412 | @@ -51,14 +51,16 @@ | |||
413 | 51 | def test_add_evernote_account_must_set_provider(self): | 51 | def test_add_evernote_account_must_set_provider(self): |
414 | 52 | account = self.add_evernote_account() | 52 | account = self.add_evernote_account() |
415 | 53 | 53 | ||
417 | 54 | self.assertEqual(account.get_provider_name(), 'evernote-sandbox') | 54 | provider_id = 'com.ubuntu.reminders_evernote-account-plugin-sandbox' |
418 | 55 | self.assertEqual(account.get_provider_name(), provider_id) | ||
419 | 55 | 56 | ||
420 | 56 | def test_add_evernote_account_must_enable_evernote_service(self): | 57 | def test_add_evernote_account_must_enable_evernote_service(self): |
421 | 57 | account = self.add_evernote_account() | 58 | account = self.add_evernote_account() |
422 | 58 | services = account.list_services() | 59 | services = account.list_services() |
423 | 59 | 60 | ||
424 | 60 | self.assertThat(services, HasLength(1)) | 61 | self.assertThat(services, HasLength(1)) |
426 | 61 | self.assertEqual(services[0].get_name(), 'evernote-sandbox') | 62 | service_id = 'com.ubuntu.reminders_reminders-sandbox' |
427 | 63 | self.assertEqual(services[0].get_name(), service_id) | ||
428 | 62 | service = Accounts.AccountService.new(account, services[0]) | 64 | service = Accounts.AccountService.new(account, services[0]) |
429 | 63 | self.assertTrue(service.get_enabled()) | 65 | self.assertTrue(service.get_enabled()) |
430 | 64 | 66 |
PASSED: Continuous integration, rev:220 91.189. 93.70:8080/ job/reminders- app-ci/ 500/ 91.189. 93.70:8080/ job/generic- mediumtests- utopic/ 1941 91.189. 93.70:8080/ job/generic- mediumtests- utopic/ 1941/artifact/ work/output/ *zip*/output. zip 91.189. 93.70:8080/ job/reminders- app-utopic- amd64-ci/ 196
http://
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: 91.189. 93.70:8080/ job/reminders- app-ci/ 500/rebuild
http://