Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/kiwitcms/tcms-api

Kiwi TCMS client library in Python
https://github.com/kiwitcms/tcms-api

[tcms-api] Make the package Python 3.6 only

this is because it fixes bugs related to Django's 2.0 disabling of
keep-alive connections. See:
...

80bd7eecc3d7b3a04e553832f534f90e97e2a6c2 authored over 6 years ago by Mr. Senko <[email protected]>
[bandit] Ignore warning about HTTPSConnection

Certificate hostname verifications has been fixed in Python 3.4.3:
https://docs.python.org/3/lib...

ddbd05071bd9f5e388c90c28ad9bbc689b38efd6 authored over 6 years ago by Mr. Senko <[email protected]>
[tcms-api] pylint fixes

ef6943c35c1ee4717a163799cc5c75cb627826db authored over 6 years ago by Mr. Senko <[email protected]>
[tcms-api] Remove logging class

5af44ba3b7477b8a56559b29b16d821fbcedb91f authored over 6 years ago by Mr. Senko <[email protected]>
[tcms-api] Remove tcms script and update client-side interface

- the rpc client is now accessed via TCMS().exec.<Server-Method>
- remove `tcms` script
- update...

989fa5b8338cedb0c3a86f67d4e8112546801f55 authored over 6 years ago by Mr. Senko <[email protected]>
[tcms-api] Remove tcms_api.config module

this is not useful to the client and is only used when
creating the connection to the server.

870f549705a2d340c7540dbd98a0cde96cf1f05e authored over 6 years ago by Mr. Senko <[email protected]>
Remove script_examples/

these were never tested and are not maintained

34038bb100ac6a80d990df1a58afb0fc70624e39 authored over 6 years ago by Mr. Senko <[email protected]>
[tcms-api] Leave only transport classes

this removes most of the top-level/oop interface behind the API
client. Because it is legacy cod...

8b26e0b8e387d866cf3f3b7589c960fbca5cd84a authored over 6 years ago by Mr. Senko <[email protected]>
[api] Extra if condition to avoid crashes

1c991d2f9cb178fc94744aa067262a44070d79b3 authored over 6 years ago by Mr. Senko <[email protected]>
Changelog for version 4.2

589a8e54dd3af6b45249ad4c41803da39e0937c5 authored over 6 years ago by Mr. Senko <[email protected]>
changed contructor in CookieTransport, which created problem when creating SafeCookieTransport

fixed too long line by flake8

feb99e2289eddb9498612d6d9e985789ad33c1f4 authored over 6 years ago by a.loszyn <[email protected]>
[bandit] Disable B311 for tests

Issue: Standard pseudo-random generators are not suitable for
security/cryptographic purp...

2cb8446bdbe4e0f7675ab0871ebabee69924c4b8 authored over 6 years ago by Mr. Senko <[email protected]>
[tcms-api] Remove coloring. Fixes #185

b6d8274df5feeca10103af707fc0b5001fedafbf authored almost 7 years ago by Mr. Senko <[email protected]>
Add test for tcms_api.TestRun. Closes #194

this problem in #194 was solved during the XML-RPC refactoring.
This commit adds the necessary t...

d0247ea8b208ce349b29bed4ac75d6289f15d6fb authored almost 7 years ago by Mr. Senko <[email protected]>
Changelog for version 4.0.0

bea6020b3759e02c76a65245f71c3d92267fd3f9 authored almost 7 years ago by Mr. Senko <[email protected]>
[RPC] Rename TestCaseBug to Bug and TestCaseBugSystem to BugSystem

57591a3aab84767b30d7abff6a5456bb0d563d74 authored almost 7 years ago by Mr. Senko <[email protected]>
[api] Remove PlanStatus and RunStatus intermediate classes

the TestPlan and TestRun models don't have a separate field
to describe statuses so these client...

a9b864c955cca2406432866804f529a292d490c1 authored almost 7 years ago by Mr. Senko <[email protected]>
[api] Rename Status to TestCaseRunStatus

e24e6859a259628e67edcf015c44d61a3f83a1b2 authored almost 7 years ago by Mr. Senko <[email protected]>
Rename model TestCaseCategory to Category

ca641e4e8dbb5fee14757efb496a156822fafb24 authored almost 7 years ago by Mr. Senko <[email protected]>
Rename TestTag to Tag

e7c6bf4c859d5b2fc58ed927c12c10cddd7550a6 authored almost 7 years ago by Mr. Senko <[email protected]>
[api] CaseRun renamed to TestCaseRun

7587f8d9d2a55d1e94450bb4f7da1c7ddbaffffb authored almost 7 years ago by Mr. Senko <[email protected]>
[rpc][api] Remove TestRun.get_test_case_runs

to get the list of TestCaseRun objects inside a TestRun use:

TestCaseRun.filter({'run': 123})

5e31b38301c87e41887cb92d544a98f0a5c33eef authored almost 7 years ago by Mr. Senko <[email protected]>
[rpc][api] Replace Build.get & Build.check_build with Build.filter

introduce a more generic RPC method called Build.filter() which
is a proxy for the underlying Qu...

b856c996b6f81b9ee993a41038deb437955e6809 authored almost 7 years ago by Mr. Senko <[email protected]>
[rpc] Remove TestCase.get_text and TestCase.get

replaced them with TestCase.filter which now augments the results
with the latest text for the s...

0aa1ac63ed06a1d26ea3a90bc3e259d4fb6ed5cf authored almost 7 years ago by Mr. Senko <[email protected]>
[rpc][api] TestCase.add_to_run -> TestRun.add_case

also rename TestRun.add_cases -> TestRun.add_case
to highlight the fact that it now accepts sing...

4f0d57d9bb42b25a9eeac9d8f1895f6573590a2e authored almost 7 years ago by Mr. Senko <[email protected]>
[rpc][api] TestPlan.{get,check}_plan_type -> PlanType.filter

714dc6627a9aef6f3033e212f41e45a3a96b9207 authored almost 7 years ago by Mr. Senko <[email protected]>
[rpc][api] Remove TestCaseRun.{get,get_case_run_status_by_name}

- remove TestCaseRun.get_case_run_status_by_name
- instead of TestCaseRun.get use TestCaseRun.fi...

89134003904ce54bd7a2b9c2ea3d6a973ddcb2a0 authored almost 7 years ago by Mr. Senko <[email protected]>
Remove TestPlan components functionality

this functionality was never used and never intended to be used in
such a way. Components are so...

836b879713ad0177026d291edf17ab7d991a45c6 authored almost 7 years ago by Mr. Senko <[email protected]>
[rpc][api] Remove TestRun.get, use TestRun.filter

69e0a42d79802f9ebfc2f7aefe17a0b280679782 authored almost 7 years ago by Mr. Senko <[email protected]>
[rpc][api] Rename TestCase.link/unlink plan methods

TestCase.link_plan -> TestPlan.add_case
TestCase.unlink_plan -> TestPlan.remove_case

b605ba766d8f9bc9359d2e011ef70415cbfcbd2e authored almost 7 years ago by Mr. Senko <[email protected]>
[rpc][api] Remove TestCase.get_plans

instead use TestPlan.filter({'case': 123}) to get a list of
TestPlans to which the specified Tes...

6e243ba227c04728740d1d07d7fa13736dddaa2f authored almost 7 years ago by Mr. Senko <[email protected]>
[rpc][api] TestRun.remove_cases -> TestRun.remove_case

and also start accepting single IDs as parameters

ff7716510fc62837818b0387f3f4f9288a89c4b8 authored almost 7 years ago by Mr. Senko <[email protected]>
[rpc][api] Remove TestPlan.get_all_cases_tags

this RPC method was used by the client API *only* to initialize
Tag objects without actually ass...

fb0d8f826406cbab44a0c19c10b6990f2c9507ce authored almost 7 years ago by Mr. Senko <[email protected]>
Fix a serialization problem with TestPlan.is_automated being string

c6ff59837fb23ac838d405b3c0f7a99788b50c50 authored almost 7 years ago by Mr. Senko <[email protected]>
[rpc] Remove TestPlan.get_text, use TestPlan.filter()

.filter() now returns an additional attribute named `text` which
holds the text for the TestPlan...

88b7ad684273c590ccee84217e7b6acf1b03895f authored almost 7 years ago by Mr. Senko <[email protected]>
[rpc][api] Replace Product category methods with Category.filter

refs #153.

Product.check_category -> Category.filter
Product.filter_categories -> Category.fi...

2c0fd549cafbfb78e8ce1f05c62729b6dc088959 authored almost 7 years ago by Mr. Senko <[email protected]>
[rpc][api] new TestCaseBug .create and .remove methods

TestCase.attach_bug/TestCaseRun.attach_bug -> TestCaseBug.create
TestCase.detach_bug/TestCaseRun...

9af74f8e52d060629ba1b5d48662506b6d5ccbe7 authored almost 7 years ago by Mr. Senko <[email protected]>
[rpc][api] Update RPC User methods

- replace: User.get -> User.filter()
- swap user_id and values parameters of User.update. New si...

3d75c80a489479fecc69d2d159c9c75897464662 authored almost 7 years ago by Mr. Senko <[email protected]>
[rpc] Remove TestCase.store_text

instead use TestCase.update with `setup`, `breakdown`, `action` and
`effect` attributes in the p...

64f3cb04bd338818c4c080351493add5ffc0c36f authored almost 7 years ago by Mr. Senko <[email protected]>
[rpc][api] Remove TestPlan.get_test_cases

instead use TestCase.filter({'plan': 123}) to get the list of
test cases for a particular TestPlan

6e808251c2a8599efe73ef5399b636d9da91be6b authored almost 7 years ago by Mr. Senko <[email protected]>
[rpc][api] Remove TestCase, TestCaseRun and TestRun .get_bugs()

instead use the new TestCaseBug.filter methods with `case` or
`case_run` query attributes.

To g...

c5ae869d12ea8af582f7605cd88ac88426cd1b4f authored almost 7 years ago by Mr. Senko <[email protected]>
[rpc][api] Update tag methods for TestPlan, TestRun and TestCase

.add_tag() and .remove_tag() now accept a single PK and single
tag name as their arguments

8490d62ca0fcdeb64f0be024c7af56728c370200 authored almost 7 years ago by Mr. Senko <[email protected]>
[rpc][api] Remove TestPlan.get, use TestPlan.filter

7ac6fb8883fdab5fb99354ce447cce001da071eb authored almost 7 years ago by Mr. Senko <[email protected]>
Fix a problem with estimated_time being 0, not 00:00:00

this started happening after the previous commit so we make sure
to validate the value of 0 more...

d77713e30881d8d24b8714515ca01bdca18a94a5 authored almost 7 years ago by Mr. Senko <[email protected]>
[rpc][api] TestRun.get_test_cases -> TestRun.get_cases

879853ae548678d834f3f72be885af16eb3effcd authored almost 7 years ago by Mr. Senko <[email protected]>
[rpc][api] Remove TestPlan.get_test_runs

instead use TestRun.filter({'plan': 123}) to get the test runs
belonging to a specific TestPlan.

4b130b3546b9c9a242cdc25fa90d16638750de8e authored almost 7 years ago by Mr. Senko <[email protected]>
[rpc][api] Remove {TestPlan,TestRun,TestCase}.get_tags methods

use Tag.filter() method with either 'plan', 'run' or 'case' field
lookups

54239f3235cae6b8f209e513f11cae1a0e4c2f67 authored almost 7 years ago by Mr. Senko <[email protected]>
[rpc][api] Replace Product.filter_versions -> Version.filter and

Product.add_version with Version.create

7c2a4425a217697e58451a314a861fa2303e10d0 authored almost 7 years ago by Mr. Senko <[email protected]>
[rpc][api] Separate component related methods

Product.check_component -> Component.filter
Product.filter_components -> Component.filter
Pro...

7ec4657b517b3c45bbfc2d6ad7904a0a9263b302 authored almost 7 years ago by Mr. Senko <[email protected]>
[rpc] TestRun.create no longer accepts `case` attribute

instead create the TestRun object and use TestRun.add_case() to
add test cases to it.

e49d8dbe3ed55e0fccb0a9aa132221a2a0006942 authored almost 7 years ago by Mr. Senko <[email protected]>
[rpc][api] Rename Tag.get_tags -> Tag.filter

4eb6cd646c4394eaed8077e30fce8a2f6e10243c authored almost 7 years ago by Mr. Senko <[email protected]>
[rpc][api] Update TestCase.*_component{s} methods

TestCase.add_component, TestCase.remove_component now accept
single case_id and component_id as ...

8ac81f6a2e19de33d8a23eab613700e2d90acd26 authored almost 7 years ago by Mr. Senko <[email protected]>
[rpc][api] Remove TestCasePlan namespace

removed TestCasePlan.get and TestCasePlan.update RPC methods.
Also remove unnecessary TestPlan.c...

5dc0c62009fd58cfef41f0afae8308e37af74f67 authored almost 7 years ago by Mr. Senko <[email protected]>
Changelog for version 3.50, tcms-api 1.5.1

64a9f07d430ae2a256fcc895322b9403c42ac09e authored almost 7 years ago by Mr. Senko <[email protected]>
Add missing test for 1800212

53a9b4f5a16b14840678da632979c30b0f5bbfbb authored almost 7 years ago by Mr. Senko <[email protected]>
[api] Fix order of TestCaseRun statuses. Fixes #184

588149768185279b85263c583da9d2e5059caf1e authored almost 7 years ago by Mr. Senko <[email protected]>
Changelog for version 3.49, tcms-api 1.5.0

a058704811d322d7999cf83497367d07d2e5ad23 authored about 7 years ago by Mr. Senko <[email protected]>
Workaround for Python xmlrpc.client & Django 2.0 bug for keep-alive

https://code.djangoproject.com/ticket/28968
http://bugs.python.org/issue26402

59f9dc759debdce7ae6f37ea69629d06c94f0871 authored about 7 years ago by Mr. Senko <[email protected]>
[tcms-api] Drop support for Python 2

32c128679c050e5ab85ec1079514218f4f5eb5d4 authored about 7 years ago by Mr. Senko <[email protected]>
[tcms-api] Update imports after dropping support for Python 2

5d236eae4ef2cdfa7001dc0916169f13a5648947 authored about 7 years ago by Mr. Senko <[email protected]>
Remove performance tests for API client

these measurements print 00:00:00 and we don't have a baseline to
compare them to so they are es...

23c8522434381dad1a6ab035fcc72d1f3b508318 authored about 7 years ago by Mr. Senko <[email protected]>
[tests] Properly clear object cache before testing

69b3b2b29590a41662f82133eab31b74eb07bf73 authored about 7 years ago by Mr. Senko <[email protected]>
[xml-rpc] Migrate to django-modern-rpc

- bonus JSON-RPC
- can drop home-grown XML-RPC server
- decorate exported methods with @rpc_meth...

e9a2820a55d772fcf7507c8da522ebeae6ff8907 authored about 7 years ago by Mr. Senko <[email protected]>
[xml-rpc], [api], [tests] Update User RPC

- update tests so that they work properly
- do not allow updates to password for other users via...

d7b1f8654755a31e56044736bca338d5aec1c704 authored about 7 years ago by Mr. Senko <[email protected]>
[xml-rpc], [api] Remove several TestCaseRun RPC methods

these are either duplicate or never used. The list is:

- renamed TestCaseRun.check_case_run_sta...

3380c0efaf8ffa5c9c33a576cc93c8c86941adcc authored about 7 years ago by Mr. Senko <[email protected]>
[api] make __all__ a list of strings, not objects

this makes the code follow the rest of the project and also
silences a warning from Sphinx

200acda7e85f45b223782d4f4f26610973b2ec3a authored about 7 years ago by Mr. Senko <[email protected]>
[api] Remove the internal do_command method

call the XML-RPC methods on the server directly which also
eliminates the use of eval()!

ff970262e5d2ed32d8a621fb69d98c85ad005fe3 authored about 7 years ago by Mr. Senko <[email protected]>
Add Makefile and setup.py for the api client

b47bf64961ccd17ab0c201c9c1241984f1c0c428 authored about 7 years ago by Mr. Senko <[email protected]>
[api] Update cache related tests

note: still skip some caching tests b/c they fail and I don't
understand the code well enough st...

48513bcf82c486349c2317b326b8f0762d99d83f authored about 7 years ago by Mr. Senko <[email protected]>
[api] Enable commented out test for TestPlan.components

142db7ba80c37a1b38570d269eb3abc4984d33fa authored about 7 years ago by Mr. Senko <[email protected]>
[api] Don't use deprecated SafeConfigParser on Python3

3fee64906e659d1cb2bd2866f7a83a141c793eab authored about 7 years ago by Mr. Senko <[email protected]>
[api] Clean-up tests related to persistent caching

ea36c6266298cabfdcf1fa821ec69ac8de8de3bb authored about 7 years ago by Mr. Senko <[email protected]>
[api] Drop persistent cache and multicall support

- in-memory caching is still available

9ffc15dffda026f681517aa8ffdfd0db9b336570 authored about 7 years ago by Mr. Senko <[email protected]>
[api] Use kerberos if specified otherwise fallback to username+password

a8366f02706c26b9c1d7cf32d1b7060dd2ee3cdf authored about 7 years ago by Mr. Senko <[email protected]>
[api] Remove CACHE_PERSISTENT constant which was left over

c0d47c74a0dbef41be4e8eefddbf666ec2b41365 authored about 7 years ago by Mr. Senko <[email protected]>
[api] Remove unused CACHE_CHANGES constant

503b52d23e93c6c2ba52c750c046976d0ece1ceb authored about 7 years ago by Mr. Senko <[email protected]>
API is licensed under LGPL, move the file inside the directory

691382607ba40deb53cc8113b450adffddb7af7b authored about 7 years ago by Mr. Senko <[email protected]>
Clean flake8 errors for script examples

7cd0e9a10cddcee9c42fc82a1f36c8b99be9e054 authored about 7 years ago by Mr. Senko <[email protected]>
Rename API classes to not use Nitrate in their name

d31d2e85dc7822aa758cc6f37e62ed40ff6ce18f authored about 7 years ago by Mr. Senko <[email protected]>
Update API README and examples

ab9a791f5cee7c2755d3e3d100cd3bf5a4832ac2 authored about 7 years ago by Mr. Senko <[email protected]>
Fix calculations inside _idify() and add tests

70244df68eaf6616622bcf2eb60894f753ee7c2f authored about 7 years ago by Mr. Senko <[email protected]>
flake8 fixes

9595b96c9cfabaffc1f81cf29429e4f26bab1482 authored about 7 years ago by Mr. Senko <[email protected]>
Revert "Temporary disable API client tests"

This reverts commit a24a04b5e88e64e825c3ecfae843c92d3c726908.

9233aad5a9898065cbab6c4a65e4313ae581da2f authored about 7 years ago by Mr. Senko <[email protected]>
Properly initialize objects which are read-only

686288fbe9b7884b446fd6780394b76e00c0a930 authored about 7 years ago by Mr. Senko <[email protected]>
Set default value for cache level

a30af0f4a7b76d3d4c912576ae1930a32228018f authored about 7 years ago by Mr. Senko <[email protected]>
Remove errata_id field, which is no longer implemented on the server

71f1d2051e5eefd7e5532016b9afe8822d0725e3 authored about 7 years ago by Mr. Senko <[email protected]>
Implement XMLRPC cookie handling for Python 3

3e8af040fab5af5c3d28f949f7fc426cdf9d24ea authored about 7 years ago by Mr. Senko <[email protected]>
Rename __unicode__ to __str__

307b22ba7c59747c19a1e3cacd563fa8d19097f5 authored about 7 years ago by Mr. Senko <[email protected]>
Drop experimental support for Teiid

we don't use this and it is yet another piece of infrastructure
that is not documented and that ...

97d44b08eda7d5c44f0b54bf61a95cfcd8b39cb8 authored about 7 years ago by Mr. Senko <[email protected]>
Improve tests by fixing asserts, typos and initial data

5c1bfddc4b9788b6114919e4df18a272cd20bd29 authored about 7 years ago by Mr. Senko <[email protected]>
Import kerberos only if needed

474d633cab99a7b06e47ebc652412ab6f7a2815c authored about 7 years ago by Mr. Senko <[email protected]>
Remove references to non-existing config.performance

a6eeca42ddd3b771f7ede1b60a8a913d411274c2 authored about 7 years ago by Mr. Senko <[email protected]>
Fix cache test by comparing if RPC requests were > existing

in case some of the object properties were not fetched the
underlying code will issue another XM...

04f6d44c9c348e5e40bb1864e27f316121875f49 authored about 7 years ago by Mr. Senko <[email protected]>
Skip API caching related tests for now

96cd00101683cf8fc29e3eee44ef5850b3901ee0 authored about 7 years ago by Mr. Senko <[email protected]>
Fix UserTests

ed890e935a441fc6b88f1958ac6d2e6d1e965426 authored about 7 years ago by Mr. Senko <[email protected]>
Finally figure out how to create API test data properly

- mark the test class for serialized rollback
- prepare data in the private *_fixture_setup* met...

bc8929c58239ba96ac9739f383942c02f7c7fd79 authored about 7 years ago by Mr. Senko <[email protected]>
Temporary disable API client tests

there's still lots to be done for them and I want to merge these
changes b/c we've started modif...

6410673dbabfd9bf0e76d455411f75807c8da7f4 authored about 7 years ago by Mr. Senko <[email protected]>
Overwrite ~/.tcms.conf during API testing for now

Django's live server URL changes between executions and this is
the easiest way to control where...

ef2336e16656d09ab4b6f6ec11e2d483e400d3d8 authored about 7 years ago by Mr. Senko <[email protected]>
Make BaseAPIClient_TestCase inherit StaticLiveServerTestCase

we actually need a Django server running before we can test
the API client

1d57d67b1ae24e9a42e12e8f6dcb7485c670ed76 authored about 7 years ago by Mr. Senko <[email protected]>
Disable API cookie transport on Python 3

In Python3 the single_request() method just calls other
methods to do the sending and acts more ...

8f686868d11847a7bb74fc721dc4170a6bc6ae03 authored about 7 years ago by Mr. Senko <[email protected]>