54 Commits

Author SHA1 Message Date
Andreas Linde
47a3be4a79 Fix some best app icon finding issues
In some cases the algorithm didn't find any icon, even if they are there
2014-07-21 13:54:44 +02:00
Andreas Linde
6fc0e154cf Improve fetching the optimal icon of an app for the update view 2014-07-21 13:54:29 +02:00
Andreas Linde
b5087a61c4 Improve fetching of current binaries UUID
- This now also works with unit tests
- Fixed BITStoreUpdateManager for now failed unit tests
- Fixed a typo

Thanks to @0xced !
2014-03-27 00:13:27 +01:00
Andreas Linde
6db478b452 Add some tests for BITFeedbackManager and user meta data properties 2014-03-24 15:47:22 +01:00
Andreas Linde
fc9fa2e61c Fix test code coverage not working any longer since Xcode 5.1 2014-03-20 15:56:26 +01:00
Andreas Linde
1068bb119c Add support for binary attachments to crash reports 2014-02-27 18:21:17 +01:00
Andreas Linde
a0bfdfbaec Issue #85: Replace kNilOptions with 0
Thanks to Jonathan!
2014-01-10 02:27:51 +01:00
Andreas Linde
252e7e9ded Fix unit tests not running any longer due to removed private header file 2013-12-29 02:01:27 +01:00
Andreas Linde
785f654060 Fixed static analyzer warnings for unit tests when running against 64 bit target 2013-12-04 02:19:37 +01:00
Philippe Casgrain
ed1b546384 Removed obsolete test
The user is now required to call `authenticateInstallation` manually, which obviates the need for this test.

Required call was implemented in 7052f0cd.
2013-12-03 16:25:43 +01:00
Philippe Casgrain
308ea14b6e Removed automaticMode from tests
automaticMode was removed in commit 498bd62cbb.
2013-11-29 15:46:31 +01:00
Cédric Luthi
41867dc57d Delete base64 tests 2013-11-02 00:31:38 +01:00
Stephan Diederich
28b08fa804 add "webAuth" identificationType 2013-10-11 17:18:04 +02:00
Stephan Diederich
00ad57b245 rename ivar
adjust name so that it's not that easy to confuse
it with the identificationType. This is only the type of
the identifier.
2013-10-11 17:18:01 +02:00
Stephan Diederich
79d6c41c5b remove isValid flag reset tests
it's currently not testable as the UIApplication
singleton is directly accessed
2013-09-26 16:01:09 +02:00
Andreas Linde
3e29c863f7 Only use UUID for appAnonID
There is no need to use other methods, if this fallback always works with the new system
2013-09-25 16:41:36 +02:00
Andreas Linde
7e9618f773 Add more tests for BITHockeyHelper 2013-09-25 16:40:52 +02:00
Andreas Linde
241b5f1a4b Add support for iOS 7 native Base64 encoding
Also add some tests for base 64 encoding
2013-09-25 16:14:06 +02:00
Andreas Linde
32318cac36 Move BITValidateEmail to BITHockeyHelper named bit_validateEmail and add some tests 2013-09-25 15:48:58 +02:00
Andreas Linde
56ca20098b Add additional tests for BITCrashManager 2013-09-25 14:36:53 +02:00
Andreas Linde
a23930a54e Add first set of basic unit tests for BITCrashManager
Also make minor changes to BITCrashManager to be able to test
2013-09-25 01:47:32 +02:00
Stephan Diederich
1616403e61 update needsValidation
return YES even if already validated but
there's a version mismatch.
2013-09-24 14:05:04 +02:00
Stephan Diederich
c2c6558687 redo BITAuthenticator interface
given the good feedback we got, this is take 2
of the BITAuthenticator interface.
It's simplified, cleaned up and now allows full
control over the authentication process.
Major changes:
* manual mode
  Authenticator provides the bits to show the
  viewController to identify the user as well as to
  trigger validation on behalf of the developer.
* process separation
  identification and app-usage-restriction are now
  2 completely separated things.
* public identifier
  Authenticator now allows the developer to query
  parts of the information, e.g. the UDID or the user's
  emailaddy once identified
2013-09-23 23:15:56 +02:00
ipaterson
df7010ed8a Fixed recurring typo in manager initializers. 2013-09-23 13:39:59 -04:00
Andreas Linde
22047b856c Fixes for getting test coverage working again
Xcode 5 does not create .gcda files due to a bug. The workaround used in here has been suggested in the devforums: https://devforums.apple.com/thread/199643?start=0&tstart=0
2013-09-23 17:17:41 +02:00
Andreas Linde
6b6fe5249d Fix failing test due to the test was expecting a different default setting, which was changed recently 2013-09-23 16:35:32 +02:00
Stephan Diederich
d7a3fcfe84 add initial tests for BITKeychainUtils 2013-09-23 16:18:18 +02:00
Andreas Linde
341f407eb0 Update OCMockito and OCHamrest frameworks to version 3.0 including 64bit slices 2013-09-23 15:16:56 +02:00
ipaterson
16cc6d0df5 Updated -testThatCleanupWorks to ensure that didSkipOptionalLogin is set to YES before cleanup, otherwise the assertion that the value is NO after cleanup is merely testing its initialization to NO. 2013-09-20 13:27:59 -04:00
Stephan Diederich
4a7b65b349 fix build of tests 2013-09-20 15:29:40 +02:00
Stephan Diederich
c534e5d566 also reset auth token if authType changed
saves us a round-trip when validating, as when
the authType changed, server would return nope.
2013-09-11 16:46:07 +02:00
Stephan Diederich
378c4e91f5 fix tests for validation / authviewcontroller
bringing up authViewController again is handled by the default
completion block. So we need to pass it along
2013-09-11 14:55:23 +02:00
Stephan Diederich
ea5452603b store the type of the token with the token itself
updater needs it as well and we actually don't want to send
the wrong type to the server
2013-09-11 14:52:33 +02:00
Stephan Diederich
30b93a0468 only reauthenticate if validation failed 2013-09-11 00:05:22 +02:00
Stephan Diederich
34bf1bf611 add flag to tell if app is currently validated 2013-09-10 23:41:48 +02:00
Stephan Diederich
3144247dc9 in "optional"-mode, show authentication exactly once 2013-09-10 23:41:48 +02:00
Stephan Diederich
2886ac4d77 rename skip to cancel 2013-09-10 23:41:48 +02:00
Stephan Diederich
ebbe6dc0af use helper method from BITHelpers instead of home-brewed solution 2013-09-10 23:41:48 +02:00
Stephan Diederich
7c2e2b88a0 bail if secret is missing and we're trying to authenticate 2013-09-09 02:16:58 +02:00
Stephan Diederich
2d97ac7cf7 reset auth-token if identifierForVendor changed 2013-09-07 19:01:17 +02:00
Stephan Diederich
567b0def60 refactoring: move auth-logic to the authenticator
via a delegation-completionBlock-combo
2013-09-06 19:23:58 +02:00
Stephan Diederich
6c29a72a98 fix authenticator tests - initialize _NOT_ being in the appstore 2013-09-06 19:23:15 +02:00
Stephan Diederich
e784213184 cleanup Authenticator interface
* remove additional delegate methods
* remove validation/authentication calls from public interface
2013-09-06 18:01:29 +02:00
Stephan Diederich
6f64b8e5d6 make installationIdentification KVO'able 2013-09-06 17:24:01 +02:00
Stephan Diederich
96304ac639 factor out BITHockeyAppClient to provide network services
* factor out HockeyAppClient
* configure Authenticator with HockeyAppClient
* move appendPostValue to HockeyAppClient (& add the missing boundary parameter)
* move tests over to new file
2013-09-06 17:11:55 +02:00
Stephan Diederich
ff555cb87d refine validation logic 2013-08-15 22:30:39 +02:00
Stephan Diederich
039902da02 add networking helpers to BITAuthenticator
* NSOperation-based networking
* helpers for URLRequest, operation, getPath:error:
2013-08-11 22:42:31 +02:00
Stephan Diederich
017b8495a8 add BITAuthenticator
class to control authentication and validation of an installation.

TODO:
* AuthenticatorViewController
* validation
* hooking into BITHockeyManager
2013-08-09 12:23:37 +02:00
Andreas Linde
505535da41 Update unit tests to not modify lastCheck property but instead use NSDefaults as it would happen in real 2013-07-26 14:46:17 +02:00
Andreas Linde
72d203d00f More unit tests
And minor refactoring of method name
2013-07-26 14:46:17 +02:00