• last updated 15 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Added automated testing for resource leaks

- new API function "aa_check_leftovers": This function is typically

called automatically at the end of every test case in

"aa_run_testcase" but it also makes sense to call it manually in

between of test cases.

- set aa_test_end to private (see no reason why this was public)

- bumped to 5.10.1b2

    • -1
    • +2
    ./test/acs-automated-testing-procs.tcl
  1. … 1 more file in changeset.
Always use "--" in "dom parse" when document is interpolated

This is a safety measure to make sure that the document parsed is

never confused with an option, when the document starts with a "-". In

the best case, the error message provided by "dom parse" might be

misleading. This might be a problem for user contributed documents

(passed as variables, or return values from functions).

The double dash is supported in tdom since version 0.9.0.

  1. … 18 more files in changeset.
improved test coverage

    • -2
    • +4
    ./test/acs-automated-testing-procs.tcl
  1. … 1 more file in changeset.
Fixed regression test and make more use of "aa_test_start" and "aa_test_end"

This change reduces the errors in the log file a lets run the

regression test (on my site) without reported errors as reported by

acs_kernel__server_startup_ok.

  1. … 3 more files in changeset.
mark the new aa_test* calls to be covered

    • -0
    • +3
    ./test/acs-automated-testing-procs.tcl
Provide an API to check/set/clear the state of the regression test

The new calls are:

- aa_test_running_p

- aa_test_start

- aa_test_end

  1. … 1 more file in changeset.
improved spelling

  1. … 14 more files in changeset.
Fix typo

After further consideration, ns_absoluteurl is actually sufficient to preform location header completion on its own and does not need a wrapper utility

  1. … 3 more files in changeset.
Introduce util::complete_location

This utility is meant to require the value of the Location header in an HTTP response to be completed vith the host coming from a reference complete URL, which is normally that of the redirected request.

It is intended for use in the context of HTTP client APIs, where we want to handle server responses affected by https://www.rfc-editor.org/rfc/rfc7231#section-7.1.2

  1. … 3 more files in changeset.
reduced number of external dependencies

fixed typo

Cleanup of external binaries: always use "util::which" to resolve binaries

Background: it is important to always use the same binaries of some

programs. This is important for security reasons, consistency, and

configurability (some operating systems have read-only file systems,

which might be on the path and should be avoided for some operations).

  1. … 3 more files in changeset.
Also exclude unchecked checkboxes, the same as radio buttons, from the dictb entries returned from reading the form

Fixes xowiki.create_form_with_form_instance automated test

improved spelling

  1. … 2 more files in changeset.
Removed untested and unmaintained code

    • -15
    • +0
    ./test/acs-automated-testing-procs.tcl
  1. … 4 more files in changeset.
Test optional external command dependencies

    • -0
    • +15
    ./test/acs-automated-testing-procs.tcl
improve spelling

  1. … 9 more files in changeset.
Document public api

Streamline idiom

acs::test::visualize_control_chars

    • -0
    • +16
    ./test/acs-automated-testing-procs.tcl
Deprecate twt::user::create and twt::user::delete, superseded by their acs::test::user:: counterparts

  1. … 11 more files in changeset.
Claim additional coverage

    • -0
    • +1
    ./test/acs-automated-testing-procs.tcl
Deprecate twt::server_url, superseded by acs::test::url

  1. … 3 more files in changeset.
Centralize retrieval of the test URL

  1. … 5 more files in changeset.
Deprecate old api

Increase proc coverage

    • -0
    • +84
    ./test/acs-automated-testing-procs.tcl
Improve acs::test::form_reply so that when the attributes of a file upload (*.tmpfile or *.content-type) are part of the update argument, it will switch automatically to a multipart request and implement a "real" file upload

This is important on newer NaviServer versions that will reject any *.tmpfile parameter in a request that was not produced internally after a file upload

  1. … 1 more file in changeset.
acs::test::user::delete: added flag -delete_created_acs_objects and fix regression test for file-storage

  1. … 4 more files in changeset.
For web interface testing, add authorization headers

The change eases testing of packages that are based on HTTP Basic

Authorization. When email and password are provided for the test user

if the HTTP request, an Authorization header is added now

automatically.

Bumped version number to 5.10.1d1

  1. … 1 more file in changeset.