<feed xmlns='http://www.w3.org/2005/Atom'>
<title>unit.git/test, branch 1.35.0</title>
<subtitle>Universal Web Application Server</subtitle>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/'/>
<entry>
<title>java: update third-party components to their recent versions</title>
<updated>2025-08-19T00:06:38+00:00</updated>
<author>
<name>Sergey A. Osokin</name>
<email>osa@FreeBSD.org.ru</email>
</author>
<published>2025-02-10T16:15:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=9f29628f01636abf5a0eaf2a97898267f6b39fa7'/>
<id>9f29628f01636abf5a0eaf2a97898267f6b39fa7</id>
<content type='text'>
Co-authored-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: nodejs: Added test for responses with duplicate headers</title>
<updated>2025-05-28T16:27:04+00:00</updated>
<author>
<name>skokalin</name>
<email>sergey.kokalin@gmail.com</email>
</author>
<published>2025-05-28T13:50:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=a9071e11602ec73b96302c852709c16c9d55996d'/>
<id>a9071e11602ec73b96302c852709c16c9d55996d</id>
<content type='text'>
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Fixed alt_names in test_tls_sni_same_alt</title>
<updated>2025-04-22T16:16:12+00:00</updated>
<author>
<name>Kirill A. Korinsky</name>
<email>kirill@korins.ky</email>
</author>
<published>2025-04-21T22:36:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=e182d24589b30935e796521ea0c2c69f0ee7233c'/>
<id>e182d24589b30935e796521ea0c2c69f0ee7233c</id>
<content type='text'>
alt_names should be an array of strings, When it is just a string we end
up with an alt_names entry in openssl.cnf which contains:

  [ alt_names ]
  DNS.1 = s
  DNS.2 = a
  DNS.3 = m
  DNS.4 = e
  DNS.5 = .
  DNS.6 = a
  DNS.7 = l
  DNS.8 = t
  DNS.9 = n
  DNS.10 = a
  DNS.11 = m
  DNS.12 = e
  DNS.13 = .
  DNS.14 = c
  DNS.15 = o
  DNS.16 = m

This may or may not work depending on TLS library due to the '.''s.
I.e. OpenSSL accepts them LibreSSL doesn't and errors with

  62345808257024:error:22FFF077:X509 V3 routines:CRYPTO_internal:bad object:x509/x509_alt.c:707:name=DNS value='.'

What was much more likely intended was to end up with

  [ alt_names ]
  DNS.1 = same.altname.com

[ Tweaked commit message - Andrew ]
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
alt_names should be an array of strings, When it is just a string we end
up with an alt_names entry in openssl.cnf which contains:

  [ alt_names ]
  DNS.1 = s
  DNS.2 = a
  DNS.3 = m
  DNS.4 = e
  DNS.5 = .
  DNS.6 = a
  DNS.7 = l
  DNS.8 = t
  DNS.9 = n
  DNS.10 = a
  DNS.11 = m
  DNS.12 = e
  DNS.13 = .
  DNS.14 = c
  DNS.15 = o
  DNS.16 = m

This may or may not work depending on TLS library due to the '.''s.
I.e. OpenSSL accepts them LibreSSL doesn't and errors with

  62345808257024:error:22FFF077:X509 V3 routines:CRYPTO_internal:bad object:x509/x509_alt.c:707:name=DNS value='.'

What was much more likely intended was to end up with

  [ alt_names ]
  DNS.1 = same.altname.com

[ Tweaked commit message - Andrew ]
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Fix TLS tests with Python 3.13</title>
<updated>2025-03-27T23:39:32+00:00</updated>
<author>
<name>Andrew Clayton</name>
<email>a.clayton@nginx.com</email>
</author>
<published>2025-03-05T18:13:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=3b18ffe09370573f81220fda5e924124fcf8f0df'/>
<id>3b18ffe09370573f81220fda5e924124fcf8f0df</id>
<content type='text'>
Python 3.13 sets the VERIFY_X509_STRICT flag by default in
create_default_context().

This breaks our TLS tests with dummy certificates. Remove this flag.

Thanks to @zfouts for the hint about the flag.

As an aside there is another Python 3.13 change which breaks the tests,
in that the cgi module has been removed. However there is a legacy-cgi
module you can install to get things going again (note this module is
unmaintained). E.g. In Fedora 'dnf install python3-legacy-cgi'.

Reported-by: Konstantin Pavlov &lt;thresh@nginx.com&gt;
Closes: https://github.com/nginx/unit/issues/1545
Link: &lt;https://docs.python.org/3/whatsnew/3.13.html#ssl&gt;
Link: &lt;https://docs.python.org/3.13/library/cgi.html&gt;
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Python 3.13 sets the VERIFY_X509_STRICT flag by default in
create_default_context().

This breaks our TLS tests with dummy certificates. Remove this flag.

Thanks to @zfouts for the hint about the flag.

As an aside there is another Python 3.13 change which breaks the tests,
in that the cgi module has been removed. However there is a legacy-cgi
module you can install to get things going again (note this module is
unmaintained). E.g. In Fedora 'dnf install python3-legacy-cgi'.

Reported-by: Konstantin Pavlov &lt;thresh@nginx.com&gt;
Closes: https://github.com/nginx/unit/issues/1545
Link: &lt;https://docs.python.org/3/whatsnew/3.13.html#ssl&gt;
Link: &lt;https://docs.python.org/3.13/library/cgi.html&gt;
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>java: update third-party components to their recent versions</title>
<updated>2024-12-09T15:12:47+00:00</updated>
<author>
<name>Sergey A. Osokin</name>
<email>osa@FreeBSD.org.ru</email>
</author>
<published>2024-12-09T15:12:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=d71ea64cecbaa4dc937fa716a7ebed2ec01447d7'/>
<id>d71ea64cecbaa4dc937fa716a7ebed2ec01447d7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Add tests for JSON format access log</title>
<updated>2024-11-14T01:43:49+00:00</updated>
<author>
<name>Zhidao HONG</name>
<email>z.hong@f5.com</email>
</author>
<published>2024-11-07T05:08:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=a35517901fb3c7d524739fc4fcf9e531d6404487'/>
<id>a35517901fb3c7d524739fc4fcf9e531d6404487</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>java: Update third-party components to their recent versions</title>
<updated>2024-11-12T01:05:37+00:00</updated>
<author>
<name>Sergey A. Osokin</name>
<email>osa@FreeBSD.org.ru</email>
</author>
<published>2024-11-09T17:34:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=0391a3ca68017fbc0d862b2d6000e3fd8980e71e'/>
<id>0391a3ca68017fbc0d862b2d6000e3fd8980e71e</id>
<content type='text'>
[ Tweaked subject - Andrew ]
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[ Tweaked subject - Andrew ]
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Suppress cargo-component output</title>
<updated>2024-09-10T00:12:29+00:00</updated>
<author>
<name>Andrew Clayton</name>
<email>a.clayton@nginx.com</email>
</author>
<published>2024-09-06T15:28:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=cff5e092afec17c73a0f94d75276500fd9da8403'/>
<id>cff5e092afec17c73a0f94d75276500fd9da8403</id>
<content type='text'>
Suppress the output from cargo-component when we first run it to check
if it's available, otherwise you may see the following

  $ pytest test/test_wasm-wasi-component.py
  which: no go in (/home/andrew/.local/bin:/home/andrew/bin:/usr/share/Modules/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin)
  error: no such command: `component`

  	View all installed commands with `cargo --list`
  	Find a package to install `component` with `cargo search cargo-component

Note: This didn't stop the tests from working, just an aesthetic issue.

Closes: https://github.com/nginx/unit/issues/1410
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Suppress the output from cargo-component when we first run it to check
if it's available, otherwise you may see the following

  $ pytest test/test_wasm-wasi-component.py
  which: no go in (/home/andrew/.local/bin:/home/andrew/bin:/usr/share/Modules/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin)
  error: no such command: `component`

  	View all installed commands with `cargo --list`
  	Find a package to install `component` with `cargo search cargo-component

Note: This didn't stop the tests from working, just an aesthetic issue.

Closes: https://github.com/nginx/unit/issues/1410
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Fix routing tests in the no njs case</title>
<updated>2024-09-10T00:12:29+00:00</updated>
<author>
<name>Andrew Clayton</name>
<email>a.clayton@nginx.com</email>
</author>
<published>2024-09-06T15:24:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=6976a614d782d13e14c6c8e446ce521c47f02b58'/>
<id>6976a614d782d13e14c6c8e446ce521c47f02b58</id>
<content type='text'>
Don't try and run the tests that require njs if it isn't enabled.

Closes: https://github.com/nginx/unit/issues/1411
Fixes: 43c4bfdcd ("tests: "if" option in http route match")
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Don't try and run the tests that require njs if it isn't enabled.

Closes: https://github.com/nginx/unit/issues/1411
Fixes: 43c4bfdcd ("tests: "if" option in http route match")
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>java: Update third-party components</title>
<updated>2024-09-07T17:21:35+00:00</updated>
<author>
<name>Sergey A. Osokin</name>
<email>osa@FreeBSD.org.ru</email>
</author>
<published>2024-09-07T15:43:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=27d3a5c7c0d9b9fc03b69871aea6b3c9ab16aaa0'/>
<id>27d3a5c7c0d9b9fc03b69871aea6b3c9ab16aaa0</id>
<content type='text'>
[ Tweaked subject - Andrew ]
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[ Tweaked subject - Andrew ]
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
