History log of /dokuwiki/_test/ (Results 51 – 75 of 950)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
5e47e6df07-Jan-2024 Andreas Gohr <andi@splitbrain.org>

API added simple JSONRPC tests

12b9975307-Jan-2024 Andreas Gohr <andi@splitbrain.org>

fix XMLRPC server tests

We test against the MockAPICore now since the tests are meant to ensure
the general functionality of accepting XML and correctly calling
APICalls works, not that the API retu

fix XMLRPC server tests

We test against the MockAPICore now since the tests are meant to ensure
the general functionality of accepting XML and correctly calling
APICalls works, not that the API returns the right things (this is
tested in the ApiCore tests).
Since we no longer use dates but always integers, we no longer need to
handle that.

show more ...

801ecc1407-Jan-2024 Andreas Gohr <andi@splitbrain.org>

Fix Api Tests

6e1ddc6406-Jan-2024 Andreas Gohr <andi@splitbrain.org>

fix ApiCoreAclCheckTest

This is mostly syntactic fix. I did not check how sensible these tests
are and did not switch from positional to named arguments

cad27e8006-Jan-2024 Andreas Gohr <andi@splitbrain.org>

API: move user related tests to usermanager plugin

d1f06eb406-Jan-2024 Andreas Gohr <andi@splitbrain.org>

API: ApiCore tests fixed and extended

7de5ac5506-Jan-2024 Andreas Gohr <andi@splitbrain.org>

Another argument parsing fix for ApiCall

When using named parameters, you can expect to be able to leave out any
optional parameter and have it take it's default, even when you specify
another "late

Another argument parsing fix for ApiCall

When using named parameters, you can expect to be able to leave out any
optional parameter and have it take it's default, even when you specify
another "later" parameter. Luckily we already know all the defaults from
reflection anyway.

show more ...

b209907b06-Jan-2024 Andreas Gohr <andi@splitbrain.org>

Clean up APICall tests

No need to retest all the docblock parsing when that is tested elsewhere
already.

04acbb6f06-Jan-2024 Andreas Gohr <andi@splitbrain.org>

API: fix named parameter handling in APICall

We cannot set missing paramerers to null. We need to make sure they are
not set at all.

8ddd9b6922-Dec-2023 Andreas Gohr <andi@splitbrain.org>

OpenAPI Generator. Better DocBlock parsing [WIP]

This introduces a new DocBlock parser to properly generate API
specifications. It also introduces the concept of Response classes to
better specify t

OpenAPI Generator. Better DocBlock parsing [WIP]

This introduces a new DocBlock parser to properly generate API
specifications. It also introduces the concept of Response classes to
better specify the response format.

This is still very much in progress.

show more ...

d074938701-Dec-2023 Andreas Gohr <andi@splitbrain.org>

fix ApiCall test

b05603ab01-Dec-2023 Andreas Gohr <andi@splitbrain.org>

fix type parsing for more complex types

5b379b5001-Dec-2023 Andreas Gohr <andi@splitbrain.org>

fix ApiCall test on PHP7.4

Since PHP7.4 has no primitive type hints and PHP native methods have no
accessible docblocks, we can not use a native function for testing
(types always come back as strin

fix ApiCall test on PHP7.4

Since PHP7.4 has no primitive type hints and PHP native methods have no
accessible docblocks, we can not use a native function for testing
(types always come back as string).

show more ...

d95846aa01-Dec-2023 Andreas Gohr <andi@splitbrain.org>

final set of API tests refactored

285c73a101-Dec-2023 Andreas Gohr <andi@splitbrain.org>

More adjusted API tests

5358518901-Dec-2023 Andreas Gohr <andi@splitbrain.org>

another set of api tests

1468a12801-Dec-2023 Andreas Gohr <andi@splitbrain.org>

Fix first set of API tests

42e66c7a30-Nov-2023 Andreas Gohr <andi@splitbrain.org>

First go at refactoring the API mechanisms

This introduces an ApiCall class that wraps around the actual method
that produces the result. This replaces various loose array structures
that provided t

First go at refactoring the API mechanisms

This introduces an ApiCall class that wraps around the actual method
that produces the result. This replaces various loose array structures
that provided the meta information before.

The ApiCall streamlines the aggregation of meta information between core
and plugin methods. Now all data is produced by Reflection based
introspection. Certain aspects can be overridden if needed. See
ApiCore::getRemoteInfo() for examples

This change removes the _getMethods() method from remote plugins and
introduces a getMethods() method. The two are NOT compatible as the
latter now returns a list of ApiCalls. However when looking at the
existing plugins, it seems that _getMethods() was nearly 100% obsolete
with the Reflection based default implementation. So most plugins will
not be affected at all. Some might now export one or two more methods
than before because of poor visibility settings (eg. not declaring
private/protected methods as such).

This change removes the RPC_CALL_ADD hook. Only a single plugin ever
implemented it. I'm not sure what this hook was supposed to do anyway.
Being able to declare arbitrarily named API endpoints seems wrong to me
anyway.

The new ApiCall now also supports passing named instead of positional
parameters. This will open up a new opportunity to get a proper openapi
spec running.

Next step is fixing the tests.

show more ...

cd89aff007-Jan-2024 Andreas Gohr <andi@splitbrain.org>

fix IP tests

to accommodate the change introduced in e6d2a179db8ba3d368f5d453201de9ce41502a4f

e6d2a17906-Jan-2024 Andreas Gohr <andi@splitbrain.org>

use private IP addresses in tests

9b94465007-Dec-2023 Anna Dabrowska <dabrowska@cosmocode.de>

Upgrade rector to 0.18.12

Two classes in DokuWiki's skip rules were removed from rector in 0.18.12

c46f56cc30-Nov-2023 m-martin-78 <138781920+m-martin-78@users.noreply.github.com>

Update init_checkssl.test.php

3e383dbb28-Nov-2023 m-martin-78 <138781920+m-martin-78@users.noreply.github.com>

update tests to match new is_ssl behaviour

108f17cf13-Nov-2023 Andreas Gohr <andi@splitbrain.org>

updated devel dependencies

1fc5061d02-Nov-2023 Andreas Gohr <andi@splitbrain.org>

skip CompleteMissingIfElseBracketRector

We like our one-line guardians.

See discussion in
https://github.com/dokuwiki/dokuwiki/pull/4097#issuecomment-1788608355
https://github.com/dokuwiki/dokuwiki

skip CompleteMissingIfElseBracketRector

We like our one-line guardians.

See discussion in
https://github.com/dokuwiki/dokuwiki/pull/4097#issuecomment-1788608355
https://github.com/dokuwiki/dokuwiki/pull/4097#issuecomment-1789826392

show more ...

12345678910>>...38