Commit Graph

49 Commits

Author SHA1 Message Date
Fabio Erculiani
5a11057173 [tests] use assertTrue() instead of assert_(), fix Python3 warning 2011-09-06 23:47:28 +02:00
Fabio Erculiani
3ae8e6ae93 [entropy.server] make possible to split package file into multiple "extra" package files
This introduces a backward-compatible feature (server-side in this commit)
that makes possible to associate more than one package file to a single
package_id. This opens the door to a wide range of future opportunities
but also makes possible to decouple debuginfo files from the rest.
2011-08-08 18:16:54 +02:00
Fabio Erculiani
7fff2821c3 [tests] fix tests 2011-06-28 11:58:48 +02:00
Fabio Erculiani
10577e1e94 [tests] client: fix Trigger unit tests 2011-06-17 22:48:22 +02:00
Fabio Erculiani
ac95842bdb [entropy.spm/entropy.client] bring more metadata to SPM plugins handing triggers
This is required in order to support Portage EAPI4 feature called
"REPLACED_BY_VERSION".

See http://dev.gentoo.org/~ulm/pms/4/pms.html#x1-12100012.1.2
2011-06-17 22:29:13 +02:00
Fabio Erculiani
ab1e5b5644 [tests] add another python-based package trigger test 2011-03-23 07:08:26 +01:00
Fabio Erculiani
c62dd54531 [tests] add python-based package trigger test 2011-03-23 06:44:46 +01:00
Fabio Erculiani
e9e4161ae7 [tests] add shell trigger test to client 2011-03-23 06:38:25 +01:00
Fabio Erculiani
878c6c61fd [tests] fix tests, move constants test to server module 2011-03-06 18:26:01 +01:00
Fabio Erculiani
c08cb61645 [entropy.client.interfaces.methods] partially complete API documentation and cleanup 2011-03-05 19:08:23 +01:00
Fabio Erculiani
4f7e968e78 [entropy.client] Client: drop "noclientdb" argument (yay API break), replace with installed_repo, same (reversed) logic. 2011-03-05 16:39:03 +01:00
Fabio Erculiani
1c25615f24 [entropy.client.interfaces.cache] complete module cleanup and polishing 2011-03-05 16:07:34 +01:00
Fabio Erculiani
87fb1264ce [tests] add 3 EntropyCacher tests 2011-03-05 15:43:40 +01:00
Fabio Erculiani
53a871ef0d [entropy.db] EntropyRepository, EntropyRepositoryBase: only return package_id from addPackage() and handlePackage() 2011-03-04 21:14:12 +01:00
Fabio Erculiani
4f563dd9c3 [entropy.db] rename EntropyRepositoryBase "reponame" attribute to "name", keeping backward compat. 2011-01-17 00:55:24 +01:00
Fabio Erculiani
daf486d01d [tests] add test_entropy_delta, testing entropy.tools.generate_entropy_delta() and entropy.tools.apply_entropy_delta() 2010-12-16 16:21:18 +01:00
Fabio Erculiani
c66d610c7f [tests] add content_safety metadata test 2010-11-26 14:59:25 +01:00
Fabio Erculiani
a55ada4fca [tests] when calling Client.shutdown(), SystemSettings plugins are not removed now, so tests require to call destroy() first, then shutdown() 2010-09-25 12:05:57 +02:00
Fabio Erculiani
571beaaf12 [entropy.db] several EntropyRepository changes, listed below
- overridden handlePackage, addPackage, removePackage in respective
  entropy.client.interfaces.db classes in a proper, secure way.
- overridden maskFilter in entropy.client.interfaces.db, the final
  goal will be removing its logic from EntropyRepository and move
  it to AvailablePackagesRepository only.
- removed any evidence of "client_repo" EntropyRepositoryPlugin(s)
  metadatum.
2010-08-01 00:29:18 +02:00
Fabio Erculiani
e1e76d5b28 [entropy.db] first chunk of major entropy.db code updates, create abstract class, move logic there, update API 2010-06-07 17:56:05 +02:00
Fabio Erculiani
37fb97de01 [entropy*] kill SystemSettings attribute of Entropy Client and Entropy Server instances 2010-04-14 14:56:17 +02:00
Fabio Erculiani
c59edaffe0 [entropy.client.interfaces.methods] complete module refactoring 2010-03-23 20:46:38 +01:00
Fabio Erculiani
0fafa52dbc [entropy.client] more refactoring work in entropy.client.interfaces.methods 2010-03-14 15:54:41 +01:00
Fabio Erculiani
38c8f33f61 [entropy.client] more refactoring work in entropy.client.interfaces.methods 2010-03-13 22:19:44 +01:00
Fabio Erculiani
e6b841b02f [tests] update the way test scripts are executed when directly called 2010-03-07 22:15:50 +01:00
Fabio Erculiani
a75c1a19b6 [tests] improve client module tests speed 2010-02-13 19:23:37 +01:00
Fabio Erculiani
93b052d096 [tests] kill running threads before quitting 2010-02-04 17:45:23 +01:00
Fabio Erculiani
d7f9783ba6 [entropy.client/entropy.server] ditch any reference to sqlite ":memory:" connections, break API 2010-02-02 07:22:47 +01:00
Fabio Erculiani
06df34f41d [entropy.client] drop .clientDbconn in favour of installed_repository() 2010-01-30 18:37:39 +01:00
Fabio Erculiani
7999810be6 [unittest] fix client test using text_smart 2009-12-28 07:55:22 +01:00
Fabio Erculiani
ec2be8949d [unittest] add more verbosity to test modules 2009-11-09 18:27:09 +01:00
Fabio Erculiani
b455f4c7d3 [unittest] add --debug option handling 2009-11-09 14:03:22 +01:00
Fabio Erculiani
967b7b3468 [unittest] add more tests (thanks Python 3.x, huh) 2009-10-08 21:13:38 +02:00
Fabio Erculiani
9a00f5b208 [unittest] add singleton test 2009-10-05 19:42:31 +02:00
Fabio Erculiani
e452421c7f [entropy] fix whitespace after comma 2009-10-05 14:05:32 +02:00
Fabio Erculiani
f4a8901512 [unittest] import fixes 2009-10-05 14:02:45 +02:00
Fabio Erculiani
720c78d724 [unittest] add new UT, package installation and removal 2009-10-04 18:01:51 +02:00
Fabio Erculiani
71825e9c76 [entropy] migrate codebase to Python 2.6 only syntax 2009-09-30 19:53:47 +02:00
Fabio Erculiani
46c136370a [entropy.client] rename add_tbz2_to_repos to add_package_to_repos 2009-09-16 17:55:38 +02:00
Fabio Erculiani
c0d9b5e6f4 [entropy.core] Split entropy.core, introduce generic plugin loader
:: split entropy.core and move SystemSettings stuff to
   entropy.core.settings (and prepare external plugin support)
:: add EntropyPluginFactory generic class to entropy.core that
   will be used Entropy-wide to load external Entropy plugins
:: make entropy.spm Plugin Factory using entropy.core.EntropyPluginFactory
2009-08-30 18:59:35 +02:00
Fabio Erculiani
9359693cc5 [entropy.spm] make PortagePlugin to use SpmPlugin API, major API change 2009-08-29 21:31:43 +02:00
Fabio Erculiani
a77411a736 [entropy.db] reorganize Entropy database arch., add docstrings 2009-07-18 09:39:46 +02:00
Fabio Erculiani
0506ce20f9 [tests.client] remove bogus test 2009-06-18 17:01:26 +02:00
Fabio Erculiani
8e8cb0fb23 [entropy.libraries.tests] add package install metadata generation test 2009-06-17 07:50:16 +02:00
Fabio Erculiani
76998f6c30 move Spm metadata extractor to entropy.spm (was in entropy.client) 2009-05-24 17:50:06 +02:00
Fabio Erculiani
43c94a6507 unit testing: append correct sys.path to every test class 2009-05-15 13:43:31 +02:00
Fabio Erculiani
0a28af0ee6 unit testing, db, client: cleanly close Client instances 2009-04-20 20:01:26 +02:00
Fabio Erculiani
282924f76a unit testing, client: add 3 more tests 2009-04-20 18:23:14 +02:00
Fabio Erculiani
10f5b704ee unit testing, client: add empty client unit testing module 2009-04-19 10:35:18 +02:00