Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package fortio for openSUSE:Factory checked 
in at 2022-03-18 16:42:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/fortio (Old)
 and      /work/SRC/openSUSE:Factory/.fortio.new.25692 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "fortio"

Fri Mar 18 16:42:30 2022 rev:2 rq:962662 version:1.21.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/fortio/fortio.changes    2022-03-16 
20:21:10.977001155 +0100
+++ /work/SRC/openSUSE:Factory/.fortio.new.25692/fortio.changes 2022-03-18 
16:42:47.701209621 +0100
@@ -1,0 +2,7 @@
+Fri Mar 18 10:22:11 UTC 2022 - ka...@b1-systems.de
+
+- Update to version 1.21.2:
+  * readying for v1.21.2 (#521)
+  * Fix the empty body content error (#519)
+
+-------------------------------------------------------------------

Old:
----
  fortio-1.21.1.tar.gz

New:
----
  fortio-1.21.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ fortio.spec ++++++
--- /var/tmp/diff_new_pack.EPLBG3/_old  2022-03-18 16:42:48.517210205 +0100
+++ /var/tmp/diff_new_pack.EPLBG3/_new  2022-03-18 16:42:48.521210208 +0100
@@ -19,7 +19,7 @@
 %define __arch_install_post export NO_BRP_STRIP_DEBUG=true
 
 Name:           fortio
-Version:        1.21.1
+Version:        1.21.2
 Release:        0
 Summary:        Load testing library, command line tool, advanced echo server 
and web UI
 License:        Apache-2.0

++++++ _service ++++++
--- /var/tmp/diff_new_pack.EPLBG3/_old  2022-03-18 16:42:48.565210239 +0100
+++ /var/tmp/diff_new_pack.EPLBG3/_new  2022-03-18 16:42:48.569210242 +0100
@@ -3,7 +3,7 @@
     <param name="url">https://github.com/fortio/fortio</param>
     <param name="scm">git</param>
     <param name="exclude">.git</param>
-    <param name="revision">v1.21.1</param>
+    <param name="revision">v1.21.2</param>
     <param name="versionformat">@PARENT_TAG@</param>
     <param name="changesgenerate">enable</param>
     <param name="versionrewrite-pattern">v(.*)</param>
@@ -16,7 +16,7 @@
     <param name="compression">gz</param>
   </service>
   <service name="go_modules" mode="disabled">
-    <param name="archive">fortio-1.21.1.tar.gz</param>
+    <param name="archive">fortio-1.21.2.tar.gz</param>
   </service>
 </services>
 

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.EPLBG3/_old  2022-03-18 16:42:48.593210259 +0100
+++ /var/tmp/diff_new_pack.EPLBG3/_new  2022-03-18 16:42:48.597210262 +0100
@@ -1,6 +1,6 @@
 <servicedata>
 <service name="tar_scm">
                 <param name="url">https://github.com/fortio/fortio</param>
-              <param 
name="changesrevision">7965771ec8feec9de2e1c6a3752c594aee7350b0</param></service></servicedata>
+              <param 
name="changesrevision">f82e822e2dec925e7a7c85368971560b80bfcdec</param></service></servicedata>
 (No newline at EOF)
 

++++++ fortio-1.21.1.tar.gz -> fortio-1.21.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/fortio-1.21.1/README.md new/fortio-1.21.2/README.md
--- old/fortio-1.21.1/README.md 2022-03-04 22:15:57.000000000 +0100
+++ new/fortio-1.21.2/README.md 2022-03-18 02:34:29.000000000 +0100
@@ -46,13 +46,13 @@
 Or download one of the binary distributions, from the 
[releases](https://github.com/fortio/fortio/releases) assets page or for 
instance:
 
 ```shell
-curl -L 
https://github.com/fortio/fortio/releases/download/v1.21.1/fortio-linux_x64-1.21.1.tgz
 \
+curl -L 
https://github.com/fortio/fortio/releases/download/v1.21.2/fortio-linux_x64-1.21.2.tgz
 \
  | sudo tar -C / -xvzpf -
 # or the debian package
-wget 
https://github.com/fortio/fortio/releases/download/v1.21.1/fortio_1.21.1_amd64.deb
-dpkg -i fortio_1.21.1_amd64.deb
+wget 
https://github.com/fortio/fortio/releases/download/v1.21.2/fortio_1.21.2_amd64.deb
+dpkg -i fortio_1.21.2_amd64.deb
 # or the rpm
-rpm -i 
https://github.com/fortio/fortio/releases/download/v1.21.1/fortio-1.21.1-1.x86_64.rpm
+rpm -i 
https://github.com/fortio/fortio/releases/download/v1.21.2/fortio-1.21.2-1.x86_64.rpm
 ```
 
 On a MacOS you can also install Fortio using [Homebrew](https://brew.sh/):
@@ -61,7 +61,7 @@
 brew install fortio
 ```
 
-On Windows, download 
https://github.com/fortio/fortio/releases/download/v1.21.1/fortio_win_1.21.1.zip
 and extract `fortio.exe` to any location, then using the Windows Command 
Prompt:
+On Windows, download 
https://github.com/fortio/fortio/releases/download/v1.21.2/fortio_win_1.21.2.zip
 and extract `fortio.exe` to any location, then using the Windows Command 
Prompt:
 ```
 fortio.exe server
 ```
@@ -104,7 +104,7 @@
 <details>
 <!-- use release/updateFlags.sh to update this section -->
 <pre>
-???????????? 1.21.1 usage:
+???????????? 1.21.2 usage:
 where command is one of: load (load testing), server (starts ui, http-echo,
  redirect, proxies, tcp-echo and grpc ping servers), tcp-echo (only the 
tcp-echo
  server), report (report only UI server), redirect (only the redirect server),
@@ -259,8 +259,8 @@
         Redirect all incoming traffic to https URL (need ingress to work
 properly). Can be in the form of host:port, ip:port, port or "disabled" to
 disable the feature. (default "8081")
-  -resolve string
-        Resolve CN of cert to this IP, so that we can call https://cn directly
+  -resolve IP
+        Resolve host name to this IP
   -runid int
         Optional RunID to add to json result and auto save filename, to match
 server mode
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/fortio-1.21.1/fhttp/http_client.go 
new/fortio-1.21.2/fhttp/http_client.go
--- old/fortio-1.21.1/fhttp/http_client.go      2022-03-04 22:15:57.000000000 
+0100
+++ new/fortio-1.21.2/fhttp/http_client.go      2022-03-18 02:34:29.000000000 
+0100
@@ -371,7 +371,10 @@
                bodyBytes := []byte(body)
                c.req.ContentLength = int64(len(bodyBytes))
                c.req.Body = ioutil.NopCloser(bytes.NewReader(bodyBytes))
+       } else if c.body != "" {
+               c.req.Body = ioutil.NopCloser(bytes.NewReader([]byte(c.body)))
        }
+
        resp, err := c.client.Do(c.req)
        if err != nil {
                log.Errf("[%d] Unable to send %s request for %s : %v", c.id, 
c.req.Method, c.url, err)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/fortio-1.21.1/fhttp/http_test.go 
new/fortio-1.21.2/fhttp/http_test.go
--- old/fortio-1.21.1/fhttp/http_test.go        2022-03-04 22:15:57.000000000 
+0100
+++ new/fortio-1.21.2/fhttp/http_test.go        2022-03-18 02:34:29.000000000 
+0100
@@ -528,6 +528,31 @@
        }
 }
 
+// Test Post request with std client and the socket close after answering.
+func TestPayloadWithStdClientAndClosedSocket(t *testing.T) {
+       m, a := DynamicHTTPServer(false)
+       m.HandleFunc("/", EchoHandler)
+
+       url := fmt.Sprintf("http://localhost:%d/?close=true";, a.Port)
+       payload := []byte("{\"test\" : \"test\"}")
+       opts := NewHTTPOptions(url)
+       opts.DisableFastClient = true
+       opts.Payload = payload
+       cli, _ := NewClient(opts)
+
+       for i := 0; i < 3; i++ {
+               code, body, header := cli.Fetch()
+
+               if code != 200 {
+                       t.Errorf("Unexpected http status code, expected 200, 
got %d", code)
+               }
+
+               if !bytes.Equal(body[header:], payload) {
+                       t.Errorf("Got %s, expected %q from echo", 
DebugSummary(body, 512), payload)
+               }
+       }
+}
+
 // Many of the earlier http tests are through httprunner but new tests should 
go here
 
 func TestUnixDomainHttp(t *testing.T) {

++++++ vendor.tar.gz ++++++

Reply via email to