Diff of the two buildlogs: -- --- b1/build.log 2025-02-18 22:41:10.755957948 +0000 +++ b2/build.log 2025-02-18 22:48:49.651247070 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue Feb 18 10:37:45 -12 2025 -I: pbuilder-time-stamp: 1739918265 +I: Current time: Wed Feb 19 12:41:25 +14 2025 +I: pbuilder-time-stamp: 1739918485 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -24,52 +24,84 @@ dpkg-source: info: applying 000-fix-32bit-ftbfs.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/31751/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/31113/tmp/hooks/D01_modify_environment starting +debug: Running on ff4a. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Feb 18 22:41 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/31113/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/31113/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='armhf' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=3 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='armhf' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="37" [3]="1" [4]="release" [5]="arm-unknown-linux-gnueabihf") + BASH_VERSION='5.2.37(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=armhf + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=4 ' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=arm + HOST_ARCH=armhf IFS=' ' - INVOCATION_ID='7b1feb21ce1749b09139b9befe754c75' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='31751' - PS1='# ' - PS2='> ' + INVOCATION_ID=2add532e73d64f639a4e2676ff8c7c64 + LANG=C + LANGUAGE=it_CH:it + LC_ALL=C + MACHTYPE=arm-unknown-linux-gnueabihf + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnueabihf + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=31113 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.tGFVgr9G/pbuilderrc_WGbk --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.tGFVgr9G/b1 --logfile b1/build.log golang-github-grpc-ecosystem-grpc-gateway_2.20.0-2.dsc' - SUDO_GID='110' - SUDO_UID='103' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://10.0.0.15:3142/' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.tGFVgr9G/pbuilderrc_kbEo --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.tGFVgr9G/b2 --logfile b2/build.log golang-github-grpc-ecosystem-grpc-gateway_2.20.0-2.dsc' + SUDO_GID=113 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://10.0.0.15:3142/ I: uname -a - Linux virt64z 6.1.0-31-arm64 #1 SMP Debian 6.1.128-1 (2025-02-07) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-31-armmp-lpae #1 SMP Debian 6.1.128-1 (2025-02-07) armv7l GNU/Linux I: ls -l /bin lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/31751/tmp/hooks/D02_print_environment finished +I: user script /srv/workspace/pbuilder/31113/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -201,7 +233,7 @@ Get: 74 http://deb.debian.org/debian trixie/main armhf golang-google-genproto-dev all 0.0~git20210726.e7812ac-4 [5301 kB] Get: 75 http://deb.debian.org/debian trixie/main armhf golang-github-google-cel-go-dev all 0.18.2+ds-5 [400 kB] Get: 76 http://deb.debian.org/debian trixie/main armhf golang-github-rogpeppe-fastuuid-dev all 0.0~git20150106.0.6724a57-2.1 [4292 B] -Fetched 86.1 MB in 8s (10.9 MB/s) +Fetched 86.1 MB in 5s (17.5 MB/s) Preconfiguring packages ... Selecting previously unselected package sensible-utils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19534 files and directories currently installed.) @@ -520,7 +552,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/golang-github-grpc-ecosystem-grpc-gateway-2.20.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../golang-github-grpc-ecosystem-grpc-gateway_2.20.0-2_source.changes +I: user script /srv/workspace/pbuilder/31113/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/31113/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/golang-github-grpc-ecosystem-grpc-gateway-2.20.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../golang-github-grpc-ecosystem-grpc-gateway_2.20.0-2_source.changes dpkg-buildpackage: info: source package golang-github-grpc-ecosystem-grpc-gateway dpkg-buildpackage: info: source version 2.20.0-2 dpkg-buildpackage: info: source distribution unstable @@ -538,41 +574,41 @@ dh_autoreconf -O--buildsystem=golang dh_auto_configure -O--buildsystem=golang dh_auto_build -O--buildsystem=golang - cd obj-arm-linux-gnueabihf && go install -trimpath -v -p 3 github.com/grpc-ecosystem/grpc-gateway/internal/casing github.com/grpc-ecosystem/grpc-gateway/internal/codegenerator github.com/grpc-ecosystem/grpc-gateway/internal/descriptor github.com/grpc-ecosystem/grpc-gateway/internal/descriptor/apiconfig github.com/grpc-ecosystem/grpc-gateway/internal/descriptor/openapiconfig github.com/grpc-ecosystem/grpc-gateway/internal/generator github.com/grpc-ecosystem/grpc-gateway/internal/httprule github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/internal/gengateway github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2 github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2/internal/genopenapi github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2/options github.com/grpc-ecosystem/grpc-gateway/runtime github.com/grpc-ecosystem/grpc-gateway/runtime/internal/examplepb github.com/grpc-ecosystem/grpc-gateway/utilities -internal/unsafeheader + cd obj-arm-linux-gnueabihf && go install -trimpath -v -p 4 github.com/grpc-ecosystem/grpc-gateway/internal/casing github.com/grpc-ecosystem/grpc-gateway/internal/codegenerator github.com/grpc-ecosystem/grpc-gateway/internal/descriptor github.com/grpc-ecosystem/grpc-gateway/internal/descriptor/apiconfig github.com/grpc-ecosystem/grpc-gateway/internal/descriptor/openapiconfig github.com/grpc-ecosystem/grpc-gateway/internal/generator github.com/grpc-ecosystem/grpc-gateway/internal/httprule github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/internal/gengateway github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2 github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2/internal/genopenapi github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2/options github.com/grpc-ecosystem/grpc-gateway/runtime github.com/grpc-ecosystem/grpc-gateway/runtime/internal/examplepb github.com/grpc-ecosystem/grpc-gateway/utilities internal/goarch -internal/cpu +internal/unsafeheader internal/byteorder -internal/abi -internal/chacha8rand -internal/bytealg internal/coverage/rtcov +internal/cpu +internal/abi internal/godebugs +internal/chacha8rand internal/goexperiment internal/goos internal/profilerecord +internal/bytealg internal/runtime/atomic internal/runtime/syscall -internal/stringslite runtime/internal/math -internal/runtime/exithook +internal/stringslite runtime/internal/sys internal/race sync/atomic +internal/runtime/exithook unicode/utf8 cmp math/bits internal/asan internal/itoa internal/msan -runtime unicode -math internal/gover +math internal/goversion google.golang.org/protobuf/internal/flags unicode/utf16 google.golang.org/protobuf/internal/set +runtime encoding log/internal internal/nettrace @@ -582,17 +618,18 @@ crypto/internal/boring/sig vendor/golang.org/x/crypto/cryptobyte/asn1 vendor/golang.org/x/crypto/internal/alias -internal/reflectlite iter -sync -slices +internal/reflectlite internal/weak +sync crypto/subtle +slices maps internal/bisect internal/testlog google.golang.org/protobuf/internal/pragma internal/singleflight +runtime/cgo errors sort internal/godebug @@ -600,65 +637,72 @@ io path strings -syscall strconv +syscall bytes reflect bufio go/build/constraint +container/heap +math/rand time internal/syscall/unix internal/syscall/execenv -container/heap -math/rand go/version internal/types/errors hash hash/fnv hash/crc32 regexp/syntax +golang.org/x/text/internal/tag +golang.org/x/text/transform io/fs -internal/filepathlite internal/poll +internal/filepathlite embed -google.golang.org/protobuf/internal/editiondefaults internal/fmtsort encoding/binary +google.golang.org/protobuf/internal/editiondefaults regexp -os -encoding/base64 -golang.org/x/text/internal/tag -golang.org/x/text/transform context +os vendor/golang.org/x/net/dns/dnsmessage +encoding/base64 math/rand/v2 +golang.org/x/sys/unix +internal/concurrent +unique +html +net/netip +crypto path/filepath fmt github.com/grpc-ecosystem/grpc-gateway/internal/casing google.golang.org/protobuf/internal/detrand io/ioutil -internal/concurrent -unique -runtime/cgo -net/netip +crypto/cipher +crypto/internal/boring +net +crypto/internal/randutil +crypto/aes go/token +go/doc/comment go/scanner go/ast -go/doc/comment text/tabwriter math/big -go/internal/typeparams -go/parser -go/printer internal/buildcfg google.golang.org/protobuf/internal/errors -compress/flate google.golang.org/protobuf/encoding/protowire -google.golang.org/protobuf/reflect/protoreflect +go/internal/typeparams +go/printer +go/parser go/constant +google.golang.org/protobuf/reflect/protoreflect +compress/flate +go/types compress/gzip encoding/json -go/types google.golang.org/protobuf/internal/encoding/messageset google.golang.org/protobuf/internal/strs google.golang.org/protobuf/internal/encoding/text @@ -675,112 +719,104 @@ google.golang.org/protobuf/encoding/prototext google.golang.org/protobuf/internal/filedesc flag +golang.org/x/text/internal/language github.com/grpc-ecosystem/grpc-gateway/utilities github.com/grpc-ecosystem/grpc-gateway/internal/httprule -golang.org/x/text/internal/language +golang.org/x/text/unicode/norm +golang.org/x/text/internal/language/compact google.golang.org/protobuf/internal/encoding/tag -google.golang.org/protobuf/internal/impl google.golang.org/protobuf/encoding/protojson -golang.org/x/text/internal/language/compact +google.golang.org/protobuf/internal/impl golang.org/x/text/language -golang.org/x/text/unicode/norm -golang.org/x/text/internal google.golang.org/grpc/internal/grpclog log -google.golang.org/grpc/grpclog gopkg.in/yaml.v3 +golang.org/x/text/internal golang.org/x/text/cases +google.golang.org/grpc/grpclog go/format net/url text/template/parse -google.golang.org/protobuf/internal/filetype -net -google.golang.org/protobuf/runtime/protoimpl -google.golang.org/protobuf/types/descriptorpb -google.golang.org/protobuf/types/dynamicpb -google.golang.org/protobuf/types/known/structpb -google.golang.org/protobuf/types/gofeaturespb -google.golang.org/protobuf/types/pluginpb -google.golang.org/protobuf/reflect/protodesc -google.golang.org/genproto/googleapis/api/annotations -github.com/grpc-ecosystem/grpc-gateway/internal/descriptor/apiconfig -github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2/options -google.golang.org/protobuf/compiler/protogen -github.com/grpc-ecosystem/grpc-gateway/internal/codegenerator -github.com/grpc-ecosystem/grpc-gateway/internal/descriptor/openapiconfig -text/template -github.com/grpc-ecosystem/grpc-gateway/internal/descriptor -google.golang.org/genproto/googleapis/api/visibility -github.com/grpc-ecosystem/grpc-gateway/internal/generator -github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/internal/gengateway -google.golang.org/protobuf/types/known/anypb -google.golang.org/genproto/googleapis/rpc/status -google.golang.org/genproto/googleapis/api/httpbody -github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway -golang.org/x/sys/unix net/textproto google.golang.org/grpc/connectivity -golang.org/x/net/internal/timeseries -github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2/internal/genopenapi -html -html/template google.golang.org/grpc/internal google.golang.org/grpc/codes -crypto -crypto/cipher -crypto/internal/randutil -crypto/internal/edwards25519/field -crypto/internal/boring -github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2 +golang.org/x/net/internal/timeseries +text/template crypto/rand -crypto/aes crypto/des +crypto/internal/edwards25519/field crypto/internal/nistec/fiat crypto/internal/bigmod crypto/internal/boring/bbig crypto/sha512 +html/template encoding/asn1 +google.golang.org/protobuf/internal/filetype +google.golang.org/protobuf/runtime/protoimpl +google.golang.org/protobuf/types/descriptorpb +google.golang.org/protobuf/types/dynamicpb +google.golang.org/protobuf/types/known/structpb +google.golang.org/protobuf/types/known/anypb vendor/golang.org/x/crypto/cryptobyte +google.golang.org/genproto/googleapis/rpc/status +google.golang.org/genproto/googleapis/api/httpbody +crypto/internal/nistec crypto/internal/edwards25519 -crypto/ed25519 crypto/hmac vendor/golang.org/x/crypto/chacha20 vendor/golang.org/x/crypto/internal/poly1305 +google.golang.org/protobuf/types/gofeaturespb +google.golang.org/protobuf/types/pluginpb +google.golang.org/genproto/googleapis/api/annotations +google.golang.org/protobuf/reflect/protodesc +google.golang.org/genproto/googleapis/api/visibility +github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2/options +crypto/ecdh +github.com/grpc-ecosystem/grpc-gateway/internal/descriptor/apiconfig +crypto/elliptic +crypto/ed25519 +vendor/golang.org/x/crypto/chacha20poly1305 vendor/golang.org/x/crypto/hkdf -crypto/internal/nistec +crypto/ecdsa +crypto/internal/hpke +github.com/grpc-ecosystem/grpc-gateway/internal/descriptor/openapiconfig vendor/golang.org/x/sys/cpu -vendor/golang.org/x/crypto/chacha20poly1305 -crypto/md5 +google.golang.org/protobuf/compiler/protogen vendor/golang.org/x/crypto/sha3 +crypto/md5 crypto/rc4 crypto/rsa crypto/internal/mlkem768 crypto/sha1 -crypto/ecdh -crypto/elliptic +github.com/grpc-ecosystem/grpc-gateway/internal/codegenerator crypto/sha256 -crypto/internal/hpke crypto/dsa encoding/hex encoding/pem -crypto/ecdsa +github.com/grpc-ecosystem/grpc-gateway/internal/descriptor crypto/x509/pkix vendor/golang.org/x/text/transform vendor/golang.org/x/text/unicode/bidi -vendor/golang.org/x/text/unicode/norm crypto/x509 +vendor/golang.org/x/text/unicode/norm vendor/golang.org/x/text/secure/bidirule vendor/golang.org/x/net/http2/hpack -mime +github.com/grpc-ecosystem/grpc-gateway/internal/generator +github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/internal/gengateway +github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2/internal/genopenapi vendor/golang.org/x/net/idna +github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway +crypto/tls +vendor/golang.org/x/net/http/httpguts +vendor/golang.org/x/net/http/httpproxy +mime +github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2 mime/quotedprintable mime/multipart -crypto/tls net/http/internal net/http/internal/ascii google.golang.org/grpc/backoff -vendor/golang.org/x/net/http/httpguts -vendor/golang.org/x/net/http/httpproxy google.golang.org/grpc/attributes google.golang.org/grpc/metadata google.golang.org/grpc/internal/grpcrand @@ -789,14 +825,14 @@ google.golang.org/grpc/internal/backoff google.golang.org/grpc/encoding google.golang.org/grpc/internal/balancerload -google.golang.org/grpc/encoding/proto google.golang.org/protobuf/types/known/durationpb +google.golang.org/grpc/encoding/proto google.golang.org/protobuf/types/known/timestamppb github.com/golang/protobuf/ptypes/duration github.com/golang/protobuf/ptypes/timestamp google.golang.org/grpc/internal/status -google.golang.org/grpc/binarylog/grpc_binarylog_v1 google.golang.org/grpc/status +google.golang.org/grpc/binarylog/grpc_binarylog_v1 google.golang.org/grpc/internal/buffer google.golang.org/grpc/internal/grpcsync google.golang.org/grpc/internal/idle @@ -804,42 +840,42 @@ google.golang.org/grpc/internal/pretty golang.org/x/text/unicode/bidi golang.org/x/net/http2/hpack -golang.org/x/text/secure/bidirule -golang.org/x/net/idna google.golang.org/grpc/internal/syscall google.golang.org/grpc/keepalive google.golang.org/grpc/stats +net/http/httptrace +google.golang.org/grpc/internal/credentials google.golang.org/grpc/tap google.golang.org/grpc/internal/envconfig google.golang.org/grpc/internal/resolver/dns/internal +net/http google.golang.org/protobuf/types/known/fieldmaskpb -google.golang.org/protobuf/types/known/wrapperspb -golang.org/x/net/http/httpguts -google.golang.org/protobuf/types/known/emptypb -net/http/httptrace -google.golang.org/grpc/internal/credentials google.golang.org/grpc/credentials -net/http -google.golang.org/grpc/resolver +golang.org/x/text/secure/bidirule +golang.org/x/net/idna +google.golang.org/protobuf/types/known/wrapperspb google.golang.org/grpc/internal/channelz +google.golang.org/grpc/resolver google.golang.org/grpc/credentials/insecure google.golang.org/grpc/internal/metadata +google.golang.org/grpc/channelz google.golang.org/grpc/internal/resolver/passthrough google.golang.org/grpc/internal/transport/networktype +google.golang.org/grpc/balancer google.golang.org/grpc/internal/resolver/unix -google.golang.org/grpc/channelz +golang.org/x/net/http/httpguts google.golang.org/grpc/peer -google.golang.org/grpc/balancer +google.golang.org/grpc/balancer/base +google.golang.org/grpc/internal/serviceconfig google.golang.org/grpc/balancer/grpclb/state google.golang.org/grpc/internal/resolver/dns -google.golang.org/grpc/balancer/base +google.golang.org/grpc/internal/resolver google.golang.org/grpc/balancer/roundrobin google.golang.org/grpc/internal/balancer/gracefulswitch -google.golang.org/grpc/internal/serviceconfig -google.golang.org/grpc/internal/resolver +google.golang.org/protobuf/types/known/emptypb google.golang.org/grpc/resolver/dns -golang.org/x/net/trace net/http/httputil +golang.org/x/net/trace golang.org/x/net/http2 google.golang.org/grpc/internal/transport google.golang.org/grpc @@ -847,7 +883,7 @@ github.com/grpc-ecosystem/grpc-gateway/runtime/internal/examplepb github.com/grpc-ecosystem/grpc-gateway/runtime dh_auto_test -O--buildsystem=golang - cd obj-arm-linux-gnueabihf && go test -vet=off -v -p 3 github.com/grpc-ecosystem/grpc-gateway/internal/casing github.com/grpc-ecosystem/grpc-gateway/internal/codegenerator github.com/grpc-ecosystem/grpc-gateway/internal/descriptor github.com/grpc-ecosystem/grpc-gateway/internal/descriptor/apiconfig github.com/grpc-ecosystem/grpc-gateway/internal/descriptor/openapiconfig github.com/grpc-ecosystem/grpc-gateway/internal/generator github.com/grpc-ecosystem/grpc-gateway/internal/httprule github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/internal/gengateway github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2 github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2/internal/genopenapi github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2/options github.com/grpc-ecosystem/grpc-gateway/runtime github.com/grpc-ecosystem/grpc-gateway/runtime/internal/examplepb github.com/grpc-ecosystem/grpc-gateway/utilities + cd obj-arm-linux-gnueabihf && go test -vet=off -v -p 4 github.com/grpc-ecosystem/grpc-gateway/internal/casing github.com/grpc-ecosystem/grpc-gateway/internal/codegenerator github.com/grpc-ecosystem/grpc-gateway/internal/descriptor github.com/grpc-ecosystem/grpc-gateway/internal/descriptor/apiconfig github.com/grpc-ecosystem/grpc-gateway/internal/descriptor/openapiconfig github.com/grpc-ecosystem/grpc-gateway/internal/generator github.com/grpc-ecosystem/grpc-gateway/internal/httprule github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/internal/gengateway github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2 github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2/internal/genopenapi github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2/options github.com/grpc-ecosystem/grpc-gateway/runtime github.com/grpc-ecosystem/grpc-gateway/runtime/internal/examplepb github.com/grpc-ecosystem/grpc-gateway/utilities === RUN TestCamelIdentifier === RUN TestCamelIdentifier/regular_snake_case_identifier === RUN TestCamelIdentifier/snake_case_identifier_with_digit @@ -861,7 +897,7 @@ --- PASS: TestCamelIdentifier/snake_case_identifier_with_digit_and_package (0.00s) --- PASS: TestCamelIdentifier/snake_case_identifier_with_digit_and_multiple_dots (0.00s) PASS -ok github.com/grpc-ecosystem/grpc-gateway/internal/casing 0.005s +ok github.com/grpc-ecosystem/grpc-gateway/internal/casing 0.021s === RUN TestParseRequest === RUN TestParseRequest/Empty_input_should_produce_empty_output === RUN TestParseRequest/Invalid_reader_should_produce_error @@ -871,7 +907,7 @@ --- PASS: TestParseRequest/Invalid_reader_should_produce_error (0.00s) --- PASS: TestParseRequest/Invalid_proto_message_should_produce_error (0.00s) PASS -ok github.com/grpc-ecosystem/grpc-gateway/internal/codegenerator 0.011s +ok github.com/grpc-ecosystem/grpc-gateway/internal/codegenerator 0.041s ? github.com/grpc-ecosystem/grpc-gateway/internal/descriptor/apiconfig [no test files] ? github.com/grpc-ecosystem/grpc-gateway/internal/descriptor/openapiconfig [no test files] === RUN TestLoadGrpcAPIServiceFromYAMLInvalidType @@ -958,7 +994,7 @@ services_test.go:1059: must not set request body when http method is DELETE except allow_delete_body option is true: RemoveResource services_test.go:1059: no message found: StringMessage services_test.go:1059: ExampleService.Echo: string is a protobuf message type. Protobuf message types cannot be used as path parameters, use a scalar value type (such as string) instead ---- PASS: TestExtractServicesWithError (0.00s) +--- PASS: TestExtractServicesWithError (0.01s) === RUN TestResolveFieldPath --- PASS: TestResolveFieldPath (0.00s) === RUN TestExtractServicesWithDeleteBody @@ -978,7 +1014,7 @@ === RUN TestGoType --- PASS: TestGoType (0.00s) PASS -ok github.com/grpc-ecosystem/grpc-gateway/internal/descriptor 0.026s +ok github.com/grpc-ecosystem/grpc-gateway/internal/descriptor 0.054s ? github.com/grpc-ecosystem/grpc-gateway/internal/generator [no test files] === RUN TestCompile --- PASS: TestCompile (0.00s) @@ -998,25 +1034,25 @@ ok github.com/grpc-ecosystem/grpc-gateway/internal/httprule 0.012s ? github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway [no test files] === RUN TestGenerator_Generate ---- PASS: TestGenerator_Generate (0.00s) +--- PASS: TestGenerator_Generate (0.02s) === RUN TestApplyTemplateHeader ---- PASS: TestApplyTemplateHeader (0.00s) +--- PASS: TestApplyTemplateHeader (0.01s) === RUN TestApplyTemplateRequestWithoutClientStreaming ---- PASS: TestApplyTemplateRequestWithoutClientStreaming (0.00s) +--- PASS: TestApplyTemplateRequestWithoutClientStreaming (0.01s) === RUN TestApplyTemplateRequestWithClientStreaming ---- PASS: TestApplyTemplateRequestWithClientStreaming (0.00s) +--- PASS: TestApplyTemplateRequestWithClientStreaming (0.01s) === RUN TestApplyTemplateInProcess ---- PASS: TestApplyTemplateInProcess (0.00s) +--- PASS: TestApplyTemplateInProcess (0.02s) === RUN TestAllowPatchFeature ---- PASS: TestAllowPatchFeature (0.00s) +--- PASS: TestAllowPatchFeature (0.01s) === RUN TestIdentifierCapitalization ---- PASS: TestIdentifierCapitalization (0.00s) +--- PASS: TestIdentifierCapitalization (0.01s) === RUN TestDuplicatePathsInSameService --- PASS: TestDuplicatePathsInSameService (0.00s) === RUN TestDuplicatePathsInDifferentService ---- PASS: TestDuplicatePathsInDifferentService (0.00s) +--- PASS: TestDuplicatePathsInDifferentService (0.01s) PASS -ok github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/internal/gengateway 0.035s +ok github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/internal/gengateway 0.170s === RUN TestParseReqParam === RUN TestParseReqParam/Test_0 === RUN TestParseReqParam/Test_1 @@ -1046,8 +1082,9 @@ --- PASS: TestParseReqParam/Test_11 (0.00s) --- PASS: TestParseReqParam/Test_12 (0.00s) PASS -ok github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2 0.013s +ok github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2 0.023s ? github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2/options [no test files] +? github.com/grpc-ecosystem/grpc-gateway/runtime/internal/examplepb [no test files] === RUN TestCycle --- PASS: TestCycle (0.00s) === RUN Test_getUniqueFields @@ -1073,8 +1110,8 @@ === RUN TestOpenapiExamplesFromProtoExamples === RUN TestOpenapiExamplesFromProtoExamples/yaml === RUN TestOpenapiExamplesFromProtoExamples/json ---- PASS: TestOpenapiExamplesFromProtoExamples (0.00s) - --- PASS: TestOpenapiExamplesFromProtoExamples/yaml (0.00s) +--- PASS: TestOpenapiExamplesFromProtoExamples (0.01s) + --- PASS: TestOpenapiExamplesFromProtoExamples/yaml (0.01s) --- PASS: TestOpenapiExamplesFromProtoExamples/json (0.00s) === RUN TestMessageToQueryParametersWithEnumAsInt --- PASS: TestMessageToQueryParametersWithEnumAsInt (0.00s) @@ -1085,7 +1122,7 @@ === RUN TestMessageToQueryParametersNoRecursive --- PASS: TestMessageToQueryParametersNoRecursive (0.00s) === RUN TestMessageToQueryParametersRecursive ---- PASS: TestMessageToQueryParametersRecursive (0.10s) +--- PASS: TestMessageToQueryParametersRecursive (0.38s) === RUN TestMessageToQueryParametersWithJsonName --- PASS: TestMessageToQueryParametersWithJsonName (0.00s) === RUN TestMessageToQueryParametersWellKnownTypes @@ -1122,8 +1159,8 @@ --- PASS: TestValidateDefaultValueType (0.00s) === RUN TestApplyTemplateRequestWithoutClientStreaming fd name:"example.proto" package:"example" message_type:{name:"ExampleMessage" field:{name:"nested" number:1 label:LABEL_OPTIONAL type:TYPE_MESSAGE type_name:"NestedMessage"}} message_type:{name:"NestedMessage" field:{name:"int32" number:1 label:LABEL_OPTIONAL type:TYPE_INT32} field:{name:"bool" number:2 label:LABEL_OPTIONAL type:TYPE_BOOL}} service:{name:"ExampleService" method:{name:"Echo" input_type:"ExampleMessage" output_type:"ExampleMessage" client_streaming:false server_streaming:false}} options:{go_package:"github.com/grpc-ecosystem/grpc-gateway/runtime/internal/examplepb;example"} source_code_info:{} -AllFQMNs [.example.NestedMessage .google.protobuf.Any .google.rpc.Status .example.ExampleMessage] ---- PASS: TestApplyTemplateRequestWithoutClientStreaming (0.00s) +AllFQMNs [.google.rpc.Status .example.ExampleMessage .example.NestedMessage .google.protobuf.Any] +--- PASS: TestApplyTemplateRequestWithoutClientStreaming (0.01s) === RUN TestApplyTemplateRequestWithClientStreaming --- PASS: TestApplyTemplateRequestWithClientStreaming (0.00s) === RUN TestApplyTemplateRequestWithServerStreamingAndNoStandardErrors @@ -1133,9 +1170,9 @@ === RUN TestApplyTemplateRequestWithBodyQueryParameters === RUN TestApplyTemplateRequestWithBodyQueryParameters/book_in_body === RUN TestApplyTemplateRequestWithBodyQueryParameters/book_in_query ---- PASS: TestApplyTemplateRequestWithBodyQueryParameters (0.00s) +--- PASS: TestApplyTemplateRequestWithBodyQueryParameters (0.01s) --- PASS: TestApplyTemplateRequestWithBodyQueryParameters/book_in_body (0.00s) - --- PASS: TestApplyTemplateRequestWithBodyQueryParameters/book_in_query (0.00s) + --- PASS: TestApplyTemplateRequestWithBodyQueryParameters/book_in_query (0.01s) === RUN TestApplyTemplateWithRequestAndBodyParameters --- PASS: TestApplyTemplateWithRequestAndBodyParameters (0.00s) === RUN TestApplyTemplateProtobufAny @@ -1143,7 +1180,7 @@ === RUN TestApplyTemplateProtobufAny/protobufAny_referenced_in_message === RUN TestApplyTemplateProtobufAny/protobufAny_referenced_in_message_with_default_errors_disabled === RUN TestApplyTemplateProtobufAny/protobufAny_referenced_in_message_with_default_responses_disabled ---- PASS: TestApplyTemplateProtobufAny (0.00s) +--- PASS: TestApplyTemplateProtobufAny (0.01s) --- PASS: TestApplyTemplateProtobufAny/default_protobufAny_from_rpcStatus (0.00s) --- PASS: TestApplyTemplateProtobufAny/protobufAny_referenced_in_message (0.00s) --- PASS: TestApplyTemplateProtobufAny/protobufAny_referenced_in_message_with_default_errors_disabled (0.00s) @@ -1161,7 +1198,7 @@ === RUN TestFQMNtoOpenAPIName --- PASS: TestFQMNtoOpenAPIName (0.00s) === RUN TestSchemaOfField ---- PASS: TestSchemaOfField (0.03s) +--- PASS: TestSchemaOfField (0.08s) === RUN TestRenderMessagesAsDefinition === RUN TestRenderMessagesAsDefinition/no_OpenAPI_options === RUN TestRenderMessagesAsDefinition/example_option @@ -1177,7 +1214,7 @@ === RUN TestRenderMessagesAsDefinition/JSONSchema_with_required_properties_via_field_behavior === RUN TestRenderMessagesAsDefinition/JSONSchema_with_required_properties_and_fields_with_json_name === RUN TestRenderMessagesAsDefinition/JSONSchema_with_a_read_only_nested_field ---- PASS: TestRenderMessagesAsDefinition (0.00s) +--- PASS: TestRenderMessagesAsDefinition (0.01s) --- PASS: TestRenderMessagesAsDefinition/no_OpenAPI_options (0.00s) --- PASS: TestRenderMessagesAsDefinition/example_option (0.00s) --- PASS: TestRenderMessagesAsDefinition/example_option_with_something_non-json (0.00s) @@ -1237,28 +1274,28 @@ --- PASS: TestMessageOptionsWithGoTemplate/registered_OpenAPIOption (0.00s) --- PASS: TestMessageOptionsWithGoTemplate/registered_OpenAPIOption_with_go_template_args (0.00s) === RUN TestTagsWithGoTemplate -2025/02/18 22:40:30 ERROR: no message found: Status +2025/02/18 22:47:31 ERROR: no message found: Status --- PASS: TestTagsWithGoTemplate (0.00s) === RUN TestTemplateWithoutErrorDefinition -2025/02/18 22:40:30 ERROR: no message found: Status +2025/02/18 22:47:31 ERROR: no message found: Status --- PASS: TestTemplateWithoutErrorDefinition (0.00s) === RUN TestSingleServiceTemplateWithDuplicateHttp1Operations -2025/02/18 22:40:30 ERROR: no message found: Status +2025/02/18 22:47:31 ERROR: no message found: Status --- PASS: TestSingleServiceTemplateWithDuplicateHttp1Operations (0.00s) === RUN TestSingleServiceTemplateWithDuplicateInAllSupportedHttp1Operations -2025/02/18 22:40:30 ERROR: no message found: Status -2025/02/18 22:40:30 ERROR: no message found: Status -2025/02/18 22:40:30 ERROR: no message found: Status -2025/02/18 22:40:30 ERROR: no message found: Status -2025/02/18 22:40:30 ERROR: no message found: Status -2025/02/18 22:40:30 ERROR: no message found: Status -2025/02/18 22:40:30 ERROR: no message found: Status ---- PASS: TestSingleServiceTemplateWithDuplicateInAllSupportedHttp1Operations (0.00s) +2025/02/18 22:47:31 ERROR: no message found: Status +2025/02/18 22:47:31 ERROR: no message found: Status +2025/02/18 22:47:31 ERROR: no message found: Status +2025/02/18 22:47:31 ERROR: no message found: Status +2025/02/18 22:47:31 ERROR: no message found: Status +2025/02/18 22:47:31 ERROR: no message found: Status +2025/02/18 22:47:31 ERROR: no message found: Status +--- PASS: TestSingleServiceTemplateWithDuplicateInAllSupportedHttp1Operations (0.01s) === RUN TestSingleServiceTemplateWithDuplicateHttp1UnsupportedOperations -2025/02/18 22:40:30 ERROR: no message found: Status +2025/02/18 22:47:31 ERROR: no message found: Status --- PASS: TestSingleServiceTemplateWithDuplicateHttp1UnsupportedOperations (0.00s) === RUN TestTemplateWithDuplicateHttp1Operations -2025/02/18 22:40:30 ERROR: no message found: Status +2025/02/18 22:47:31 ERROR: no message found: Status --- PASS: TestTemplateWithDuplicateHttp1Operations (0.00s) === RUN Test_getReservedJsonName === RUN Test_getReservedJsonName/test_case_1:_single_dot_use_case @@ -1271,59 +1308,59 @@ --- PASS: Test_getReservedJsonName/test_case_3:_double_dot_use_case (0.00s) --- PASS: Test_getReservedJsonName/test_case_4:_double_dot_use_case_with_a_not_existed_field (0.00s) === RUN TestParseIncompleteSecurityRequirement -2025/02/18 22:40:30 ERROR: no message found: Status +2025/02/18 22:47:31 ERROR: no message found: Status --- PASS: TestParseIncompleteSecurityRequirement (0.00s) === RUN TestSubPathParams --- PASS: TestSubPathParams (0.00s) === RUN TestRenderServicesParameterDescriptionNoFieldBody -2025/02/18 22:40:30 ERROR: no message found: Status +2025/02/18 22:47:31 ERROR: no message found: Status --- PASS: TestRenderServicesParameterDescriptionNoFieldBody (0.00s) === RUN TestRenderServicesWithBodyFieldNameInCamelCase -2025/02/18 22:40:30 ERROR: no message found: Status +2025/02/18 22:47:31 ERROR: no message found: Status --- PASS: TestRenderServicesWithBodyFieldNameInCamelCase (0.00s) === RUN TestRenderServicesWithBodyFieldHasFieldMask -2025/02/18 22:40:30 ERROR: no message found: Status +2025/02/18 22:47:31 ERROR: no message found: Status --- PASS: TestRenderServicesWithBodyFieldHasFieldMask (0.00s) === RUN TestRenderServicesWithColonInPath -2025/02/18 22:40:30 ERROR: no message found: Status +2025/02/18 22:47:31 ERROR: no message found: Status --- PASS: TestRenderServicesWithColonInPath (0.00s) === RUN TestRenderServicesWithDoubleColonInPath -2025/02/18 22:40:30 ERROR: no message found: Status +2025/02/18 22:47:31 ERROR: no message found: Status --- PASS: TestRenderServicesWithDoubleColonInPath (0.00s) === RUN TestRenderServicesWithColonLastInPath -2025/02/18 22:40:30 ERROR: no message found: Status +2025/02/18 22:47:31 ERROR: no message found: Status --- PASS: TestRenderServicesWithColonLastInPath (0.00s) === RUN TestRenderServicesWithColonInSegment -2025/02/18 22:40:30 ERROR: no message found: Status +2025/02/18 22:47:31 ERROR: no message found: Status --- PASS: TestRenderServicesWithColonInSegment (0.00s) === RUN TestRenderServiceWithHeaderParameters -=== RUN TestRenderServiceWithHeaderParameters/type_string -2025/02/18 22:40:30 ERROR: no message found: Status === RUN TestRenderServiceWithHeaderParameters/type_string_with_format -2025/02/18 22:40:30 ERROR: no message found: Status +2025/02/18 22:47:31 ERROR: no message found: Status === RUN TestRenderServiceWithHeaderParameters/type_integer -2025/02/18 22:40:30 ERROR: no message found: Status +2025/02/18 22:47:31 ERROR: no message found: Status === RUN TestRenderServiceWithHeaderParameters/type_number -2025/02/18 22:40:30 ERROR: no message found: Status +2025/02/18 22:47:31 ERROR: no message found: Status === RUN TestRenderServiceWithHeaderParameters/type_boolean -2025/02/18 22:40:30 ERROR: no message found: Status +2025/02/18 22:47:31 ERROR: no message found: Status === RUN TestRenderServiceWithHeaderParameters/header_required -2025/02/18 22:40:30 ERROR: no message found: Status ---- PASS: TestRenderServiceWithHeaderParameters (0.00s) - --- PASS: TestRenderServiceWithHeaderParameters/type_string (0.00s) +2025/02/18 22:47:31 ERROR: no message found: Status +=== RUN TestRenderServiceWithHeaderParameters/type_string +2025/02/18 22:47:31 ERROR: no message found: Status +--- PASS: TestRenderServiceWithHeaderParameters (0.01s) --- PASS: TestRenderServiceWithHeaderParameters/type_string_with_format (0.00s) --- PASS: TestRenderServiceWithHeaderParameters/type_integer (0.00s) --- PASS: TestRenderServiceWithHeaderParameters/type_number (0.00s) --- PASS: TestRenderServiceWithHeaderParameters/type_boolean (0.00s) --- PASS: TestRenderServiceWithHeaderParameters/header_required (0.00s) + --- PASS: TestRenderServiceWithHeaderParameters/type_string (0.00s) === RUN TestRenderServicesOpenapiPathsOrderPreserved -2025/02/18 22:40:30 ERROR: no message found: Status +2025/02/18 22:47:31 ERROR: no message found: Status --- PASS: TestRenderServicesOpenapiPathsOrderPreserved (0.00s) === RUN TestRenderServicesOpenapiPathsOrderPreservedMultipleServices -2025/02/18 22:40:30 ERROR: no message found: Status +2025/02/18 22:47:31 ERROR: no message found: Status --- PASS: TestRenderServicesOpenapiPathsOrderPreservedMultipleServices (0.00s) === RUN TestRenderServicesOpenapiPathsOrderPreservedAdditionalBindings -2025/02/18 22:40:30 ERROR: no message found: Status +2025/02/18 22:47:31 ERROR: no message found: Status --- PASS: TestRenderServicesOpenapiPathsOrderPreservedAdditionalBindings (0.00s) === RUN TestArrayMessageItemsType --- PASS: TestArrayMessageItemsType (0.00s) @@ -1376,7 +1413,7 @@ --- PASS: TestMergeTags/Merge_external_docs (0.00s) --- PASS: TestMergeTags/Merge_extensions (0.00s) === RUN TestApiVisibilityOption -2025/02/18 22:40:30 ERROR: no message found: Status +2025/02/18 22:47:31 ERROR: no message found: Status --- PASS: TestApiVisibilityOption (0.00s) === RUN TestRawExample === PAUSE TestRawExample @@ -1393,8 +1430,8 @@ === RUN TestGenerateYAML === PAUSE TestGenerateYAML === RUN TestGeneratedYAMLIndent -2025/02/18 22:40:30 ERROR: no message found: Status ---- PASS: TestGeneratedYAMLIndent (0.00s) +2025/02/18 22:47:31 ERROR: no message found: Status +--- PASS: TestGeneratedYAMLIndent (0.02s) === RUN TestGenerateRPCOrderPreserved === PAUSE TestGenerateRPCOrderPreserved === RUN TestGenerateRPCOrderNotPreserved @@ -1421,129 +1458,68 @@ === PAUSE TestFindExpectedPaths === CONT TestRawExample === RUN TestRawExample/1 -=== CONT TestGenerateRPCOrderNotPreservedMultipleServices === PAUSE TestRawExample/1 === RUN TestRawExample/"1" === PAUSE TestRawExample/"1" === RUN TestRawExample/{"hello":"worldr"} === PAUSE TestRawExample/{"hello":"worldr"} -=== CONT TestGenerateRPCOrderPreservedMultipleServices +=== CONT TestRawExample/1 +=== CONT TestFindExpectedPaths +=== RUN TestFindExpectedPaths/One_potential_path_present +=== PAUSE TestFindExpectedPaths/One_potential_path_present +=== RUN TestFindExpectedPaths/No_potential_Paths_present +=== PAUSE TestFindExpectedPaths/No_potential_Paths_present +=== CONT TestGenerateRPCOrderNotPreserved === CONT TestGenerateRPCOrderPreserved -=== RUN TestGenerateRPCOrderNotPreservedMultipleServices/json -=== PAUSE TestGenerateRPCOrderNotPreservedMultipleServices/json -=== RUN TestGenerateRPCOrderNotPreservedMultipleServices/yaml -=== PAUSE TestGenerateRPCOrderNotPreservedMultipleServices/yaml === CONT TestGenerateYAML === RUN TestGenerateYAML/path_item_object === PAUSE TestGenerateYAML/path_item_object -=== CONT TestGenerateExtension -=== RUN TestGenerateRPCOrderPreservedMultipleServices/json -=== CONT TestGenerateRPCOrderNotPreserved -=== PAUSE TestGenerateRPCOrderPreservedMultipleServices/json -=== RUN TestGenerateRPCOrderPreservedMultipleServices/yaml -=== PAUSE TestGenerateRPCOrderPreservedMultipleServices/yaml -=== RUN TestGenerateRPCOrderPreserved/json -=== PAUSE TestGenerateRPCOrderPreserved/json -=== RUN TestGenerateRPCOrderPreserved/yaml -=== RUN TestGenerateExtension/json -=== PAUSE TestGenerateExtension/json -=== RUN TestGenerateExtension/yaml -=== PAUSE TestGenerateExtension/yaml -=== PAUSE TestGenerateRPCOrderPreserved/yaml +=== CONT TestGenerateYAML/path_item_object === RUN TestGenerateRPCOrderNotPreserved/json -=== CONT TestFormatEncode -=== CONT TestGenerate_YAML === PAUSE TestGenerateRPCOrderNotPreserved/json === RUN TestGenerateRPCOrderNotPreserved/yaml === PAUSE TestGenerateRPCOrderNotPreserved/yaml -=== RUN TestFormatEncode/json -=== PAUSE TestFormatEncode/json -2025/02/18 22:40:30 ERROR: no message found: Status -=== RUN TestFormatEncode/yaml -file.proto descriptor.File should not contain nil SourceCodeInfo -=== PAUSE TestFormatEncode/yaml -=== CONT TestOpenapiSchemaObjectProperties -=== RUN TestOpenapiSchemaObjectProperties/yaml -=== PAUSE TestOpenapiSchemaObjectProperties/yaml -=== RUN TestOpenapiSchemaObjectProperties/json -=== PAUSE TestOpenapiSchemaObjectProperties/json -=== CONT TestGenerateRPCOrderNotPreservedAdditionalBindings ---- PASS: TestGenerate_YAML (0.00s) -=== CONT TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices +=== CONT TestGenerateRPCOrderNotPreserved/json +=== RUN TestGenerateRPCOrderPreserved/json +=== PAUSE TestGenerateRPCOrderPreserved/json +=== RUN TestGenerateRPCOrderPreserved/yaml +=== PAUSE TestGenerateRPCOrderPreserved/yaml +=== RUN TestFindExpectedPaths/Multiple_potential_paths_present +=== PAUSE TestFindExpectedPaths/Multiple_potential_paths_present === CONT TestFormatValidate === RUN TestFormatValidate/json === PAUSE TestFormatValidate/json -=== RUN TestGenerateRPCOrderNotPreservedAdditionalBindings/json -=== PAUSE TestGenerateRPCOrderNotPreservedAdditionalBindings/json -=== RUN TestGenerateRPCOrderNotPreservedAdditionalBindings/yaml -=== PAUSE TestGenerateRPCOrderNotPreservedAdditionalBindings/yaml -=== CONT TestFindExpectedPaths -=== RUN TestFindExpectedPaths/One_potential_path_present -=== PAUSE TestFindExpectedPaths/One_potential_path_present -=== RUN TestFindExpectedPaths/No_potential_Paths_present -=== PAUSE TestFindExpectedPaths/No_potential_Paths_present -=== RUN TestFindExpectedPaths/Multiple_potential_paths_present -=== PAUSE TestFindExpectedPaths/Multiple_potential_paths_present -=== CONT TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices -=== RUN TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/json -=== PAUSE TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/json -=== RUN TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/yaml -=== PAUSE TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/yaml -=== CONT TestGenerateRPCOneOfFieldBodyAdditionalBindings -=== CONT TestGenerateRPCOrderPreservedAdditionalBindings -=== RUN TestGenerateRPCOneOfFieldBodyAdditionalBindings/json -=== RUN TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/json === RUN TestFormatValidate/yaml -=== PAUSE TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/json === PAUSE TestFormatValidate/yaml -=== RUN TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/yaml -=== RUN TestGenerateRPCOrderPreservedAdditionalBindings/json -=== PAUSE TestGenerateRPCOrderPreservedAdditionalBindings/json -=== PAUSE TestGenerateRPCOneOfFieldBodyAdditionalBindings/json -=== RUN TestGenerateRPCOneOfFieldBodyAdditionalBindings/yaml -=== PAUSE TestGenerateRPCOneOfFieldBodyAdditionalBindings/yaml -=== PAUSE TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/yaml -=== CONT TestGenerateRPCOrderNotPreservedMergeFiles -=== RUN TestGenerateRPCOrderNotPreservedMergeFiles/json -=== PAUSE TestGenerateRPCOrderNotPreservedMergeFiles/json -=== RUN TestGenerateRPCOrderNotPreservedMergeFiles/yaml -=== PAUSE TestGenerateRPCOrderNotPreservedMergeFiles/yaml -=== RUN TestGenerateRPCOrderPreservedAdditionalBindings/yaml -=== PAUSE TestGenerateRPCOrderPreservedAdditionalBindings/yaml -=== CONT TestGenerateRPCOrderPreservedMergeFiles -=== RUN TestGenerateRPCOrderPreservedMergeFiles/json -=== PAUSE TestGenerateRPCOrderPreservedMergeFiles/json -=== RUN TestGenerateRPCOrderPreservedMergeFiles/yaml -=== PAUSE TestGenerateRPCOrderPreservedMergeFiles/yaml -=== CONT TestRawExample/1 === RUN TestFormatValidate/unknown === PAUSE TestFormatValidate/unknown === RUN TestFormatValidate/#00 === PAUSE TestFormatValidate/#00 -=== CONT TestRawExample/{"hello":"worldr"} -=== CONT TestRawExample/"1" ---- PASS: TestRawExample (0.00s) - --- PASS: TestRawExample/1 (0.00s) - --- PASS: TestRawExample/{"hello":"worldr"} (0.00s) - --- PASS: TestRawExample/"1" (0.00s) -=== CONT TestGenerateRPCOrderNotPreservedMultipleServices/json -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +=== CONT TestGenerateExtension +=== RUN TestGenerateExtension/json +=== PAUSE TestGenerateExtension/json +=== RUN TestGenerateExtension/yaml +=== PAUSE TestGenerateExtension/yaml +=== CONT TestGenerate_YAML +=== CONT TestFormatEncode exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -2025/02/18 22:40:30 ERROR: no message found: Status +2025/02/18 22:47:31 ERROR: no message found: Status exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo - generator_test.go:749: { +your/service/v1/your_service.proto descriptor.File should not contain nil SourceCodeInfo +your/service/v1/your_service.proto descriptor.File should not contain nil SourceCodeInfo +2025/02/18 22:47:31 ERROR: no message found: Status +your/service/v1/your_service.proto descriptor.File should not contain nil SourceCodeInfo +your/service/v1/your_service.proto descriptor.File should not contain nil SourceCodeInfo +your/service/v1/your_service.proto descriptor.File should not contain nil SourceCodeInfo +=== NAME TestGenerateRPCOrderNotPreserved/json + generator_test.go:491: { "swagger": "2.0", "info": { "title": "exampleproto/v1/example.proto", @@ -1551,10 +1527,7 @@ }, "tags": [ { - "name": "TestServiceOne" - }, - { - "name": "TestServiceTwo" + "name": "TestService" } ], "consumes": [ @@ -1566,7 +1539,7 @@ "paths": { "/a/second": { "get": { - "operationId": "TestServiceTwo_Test2", + "operationId": "TestService_Test2", "responses": { "200": { "description": "A successful response.", @@ -1584,13 +1557,13 @@ } ], "tags": [ - "TestServiceTwo" + "TestService" ] } }, "/b/first": { "get": { - "operationId": "TestServiceTwo_Test1", + "operationId": "TestService_Test1", "responses": { "200": { "description": "A successful response.", @@ -1608,85 +1581,13 @@ } ], "tags": [ - "TestServiceTwo" + "TestService" ] } }, "/c/third": { "get": { - "operationId": "TestServiceOne_Test3", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Foo" - } - } - }, - "parameters": [ - { - "name": "bar", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "TestServiceOne" - ] - } - }, - "/d/first": { - "get": { - "operationId": "TestServiceOne_Test1", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Foo" - } - } - }, - "parameters": [ - { - "name": "bar", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "TestServiceOne" - ] - } - }, - "/e/second": { - "get": { - "operationId": "TestServiceOne_Test2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Foo" - } - } - }, - "parameters": [ - { - "name": "bar", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "TestServiceOne" - ] - } - }, - "/g/third": { - "get": { - "operationId": "TestServiceTwo_Test3", + "operationId": "TestService_Test3", "responses": { "200": { "description": "A successful response.", @@ -1704,7 +1605,7 @@ } ], "tags": [ - "TestServiceTwo" + "TestService" ] } } @@ -1721,43 +1622,87 @@ } } -=== CONT TestGenerateYAML/path_item_object -=== CONT TestGenerateRPCOrderNotPreservedMultipleServices/yaml -=== CONT TestGenerateRPCOrderPreservedMultipleServices/json -=== CONT TestGenerateRPCOrderPreservedMultipleServices/yaml -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +=== CONT TestGenerateRPCOrderNotPreservedMergeFiles +2025/02/18 22:47:31 ERROR: no message found: Status +file.proto descriptor.File should not contain nil SourceCodeInfo +--- PASS: TestGenerate_YAML (0.00s) +=== CONT TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices +=== RUN TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/json +=== PAUSE TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/json +=== RUN TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/yaml +=== PAUSE TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/yaml +=== RUN TestFormatEncode/json +=== PAUSE TestFormatEncode/json +=== RUN TestFormatEncode/yaml +=== PAUSE TestFormatEncode/yaml +=== CONT TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices +--- PASS: TestGenerateYAML (0.00s) + --- PASS: TestGenerateYAML/path_item_object (0.01s) +=== CONT TestGenerateRPCOneOfFieldBodyAdditionalBindings +=== RUN TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/json +=== RUN TestGenerateRPCOneOfFieldBodyAdditionalBindings/json +=== PAUSE TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/json +=== PAUSE TestGenerateRPCOneOfFieldBodyAdditionalBindings/json +=== RUN TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/yaml +=== RUN TestGenerateRPCOneOfFieldBodyAdditionalBindings/yaml +=== PAUSE TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/yaml +=== PAUSE TestGenerateRPCOneOfFieldBodyAdditionalBindings/yaml +=== CONT TestGenerateRPCOrderNotPreservedAdditionalBindings +=== CONT TestGenerateRPCOrderPreservedAdditionalBindings +=== CONT TestGenerateRPCOrderPreservedMultipleServices +=== RUN TestGenerateRPCOrderNotPreservedMergeFiles/json +=== PAUSE TestGenerateRPCOrderNotPreservedMergeFiles/json +=== RUN TestGenerateRPCOrderNotPreservedMergeFiles/yaml +=== PAUSE TestGenerateRPCOrderNotPreservedMergeFiles/yaml +=== CONT TestGenerateRPCOrderPreservedMergeFiles +=== RUN TestGenerateRPCOrderNotPreservedAdditionalBindings/json +=== PAUSE TestGenerateRPCOrderNotPreservedAdditionalBindings/json +=== RUN TestGenerateRPCOrderNotPreservedAdditionalBindings/yaml +=== PAUSE TestGenerateRPCOrderNotPreservedAdditionalBindings/yaml +=== CONT TestGenerateRPCOrderNotPreservedMultipleServices +=== RUN TestGenerateRPCOrderPreservedMultipleServices/json +=== PAUSE TestGenerateRPCOrderPreservedMultipleServices/json +=== RUN TestGenerateRPCOrderPreservedMultipleServices/yaml +=== PAUSE TestGenerateRPCOrderPreservedMultipleServices/yaml +=== CONT TestGenerateRPCOrderPreserved/json +=== RUN TestGenerateRPCOrderNotPreservedMultipleServices/json +=== PAUSE TestGenerateRPCOrderNotPreservedMultipleServices/json +=== RUN TestGenerateRPCOrderNotPreservedMultipleServices/yaml +=== RUN TestGenerateRPCOrderPreservedMergeFiles/json +=== PAUSE TestGenerateRPCOrderNotPreservedMultipleServices/yaml +=== PAUSE TestGenerateRPCOrderPreservedMergeFiles/json +=== RUN TestGenerateRPCOrderPreservedMergeFiles/yaml +=== PAUSE TestGenerateRPCOrderPreservedMergeFiles/yaml +=== CONT TestFormatValidate/json +=== CONT TestGenerateRPCOrderPreserved/yaml exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -your/service/v1/your_service.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -2025/02/18 22:40:30 ERROR: no message found: Status +=== CONT TestFindExpectedPaths/One_potential_path_present exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +=== CONT TestRawExample/{"hello":"worldr"} exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +=== CONT TestOpenapiSchemaObjectProperties +=== RUN TestOpenapiSchemaObjectProperties/yaml exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +=== PAUSE TestOpenapiSchemaObjectProperties/yaml +=== RUN TestOpenapiSchemaObjectProperties/json +=== PAUSE TestOpenapiSchemaObjectProperties/json +=== CONT TestRawExample/"1" exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +--- PASS: TestRawExample (0.00s) + --- PASS: TestRawExample/1 (0.00s) + --- PASS: TestRawExample/{"hello":"worldr"} (0.00s) + --- PASS: TestRawExample/"1" (0.00s) exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +=== CONT TestGenerateRPCOrderNotPreserved/yaml exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +2025/02/18 22:47:31 ERROR: no message found: Status exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -your/service/v1/your_service.proto descriptor.File should not contain nil SourceCodeInfo -2025/02/18 22:40:30 ERROR: no message found: Status -your/service/v1/your_service.proto descriptor.File should not contain nil SourceCodeInfo -your/service/v1/your_service.proto descriptor.File should not contain nil SourceCodeInfo -your/service/v1/your_service.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo @@ -1765,19 +1710,16 @@ exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +2025/02/18 22:47:31 ERROR: no message found: Status exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -2025/02/18 22:40:30 ERROR: no message found: Status +2025/02/18 22:47:31 ERROR: no message found: Status exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo ---- PASS: TestGenerateYAML (0.00s) - --- PASS: TestGenerateYAML/path_item_object (0.00s) -=== CONT TestGenerateExtension/json -2025/02/18 22:40:30 ERROR: no message found: Status -=== NAME TestGenerateRPCOrderPreservedMultipleServices/json - generator_test.go:620: { +=== NAME TestGenerateRPCOrderPreserved/json + generator_test.go:394: { "swagger": "2.0", "info": { "title": "exampleproto/v1/example.proto", @@ -1785,10 +1727,7 @@ }, "tags": [ { - "name": "TestServiceOne" - }, - { - "name": "TestServiceTwo" + "name": "TestService" } ], "consumes": [ @@ -1798,81 +1737,9 @@ "application/json" ], "paths": { - "/d/first": { - "get": { - "operationId": "TestServiceOne_Test1", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Foo" - } - } - }, - "parameters": [ - { - "name": "bar", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "TestServiceOne" - ] - } - }, - "/e/second": { - "get": { - "operationId": "TestServiceOne_Test2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Foo" - } - } - }, - "parameters": [ - { - "name": "bar", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "TestServiceOne" - ] - } - }, - "/c/third": { - "get": { - "operationId": "TestServiceOne_Test3", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Foo" - } - } - }, - "parameters": [ - { - "name": "bar", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "TestServiceOne" - ] - } - }, "/b/first": { "get": { - "operationId": "TestServiceTwo_Test1", + "operationId": "TestService_Test1", "responses": { "200": { "description": "A successful response.", @@ -1890,13 +1757,13 @@ } ], "tags": [ - "TestServiceTwo" + "TestService" ] } }, "/a/second": { "get": { - "operationId": "TestServiceTwo_Test2", + "operationId": "TestService_Test2", "responses": { "200": { "description": "A successful response.", @@ -1914,13 +1781,13 @@ } ], "tags": [ - "TestServiceTwo" + "TestService" ] } }, - "/g/third": { + "/c/third": { "get": { - "operationId": "TestServiceTwo_Test3", + "operationId": "TestService_Test3", "responses": { "200": { "description": "A successful response.", @@ -1938,7 +1805,7 @@ } ], "tags": [ - "TestServiceTwo" + "TestService" ] } } @@ -1955,60 +1822,13 @@ } } -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -2025/02/18 22:40:30 ERROR: no message found: Status -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -=== NAME TestGenerateExtension/json - generator_test.go:116: { - "swagger": "2.0", - "info": { - "title": "exampleproto/v1/example.proto", - "version": "version not set" - }, - "tags": [ - { - "name": "TestService" - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "v1Foo": { - "type": "object", - "properties": { - "bar": { - "type": "string", - "description": "This is bar", - "x-go-default": "0.5s" - } - } - } - } - } - -=== CONT TestGenerateExtension/yaml -=== CONT TestGenerateRPCOrderPreserved/json -=== NAME TestGenerateRPCOrderNotPreservedMultipleServices/yaml -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo - generator_test.go:749: swagger: "2.0" +=== NAME TestGenerateRPCOrderNotPreserved/yaml + generator_test.go:491: swagger: "2.0" info: title: exampleproto/v1/example.proto version: version not set tags: - - name: TestServiceOne - - name: TestServiceTwo + - name: TestService consumes: - application/json produces: @@ -2016,7 +1836,7 @@ paths: /a/second: get: - operationId: TestServiceTwo_Test2 + operationId: TestService_Test2 responses: "200": description: A successful response. @@ -2028,10 +1848,10 @@ required: false type: string tags: - - TestServiceTwo + - TestService /b/first: get: - operationId: TestServiceTwo_Test1 + operationId: TestService_Test1 responses: "200": description: A successful response. @@ -2043,10 +1863,10 @@ required: false type: string tags: - - TestServiceTwo + - TestService /c/third: get: - operationId: TestServiceOne_Test3 + operationId: TestService_Test3 responses: "200": description: A successful response. @@ -2058,10 +1878,29 @@ required: false type: string tags: - - TestServiceOne - /d/first: + - TestService + definitions: + v1Foo: + type: object + properties: + bar: + type: string + +=== NAME TestGenerateRPCOrderPreserved/yaml + generator_test.go:394: swagger: "2.0" + info: + title: exampleproto/v1/example.proto + version: version not set + tags: + - name: TestService + consumes: + - application/json + produces: + - application/json + paths: + /b/first: get: - operationId: TestServiceOne_Test1 + operationId: TestService_Test1 responses: "200": description: A successful response. @@ -2073,10 +1912,10 @@ required: false type: string tags: - - TestServiceOne - /e/second: + - TestService + /a/second: get: - operationId: TestServiceOne_Test2 + operationId: TestService_Test2 responses: "200": description: A successful response. @@ -2088,10 +1927,10 @@ required: false type: string tags: - - TestServiceOne - /g/third: + - TestService + /c/third: get: - operationId: TestServiceTwo_Test3 + operationId: TestService_Test3 responses: "200": description: A successful response. @@ -2103,7 +1942,7 @@ required: false type: string tags: - - TestServiceTwo + - TestService definitions: v1Foo: type: object @@ -2111,17 +1950,80 @@ bar: type: string +--- PASS: TestGenerateRPCOrderPreserved (0.00s) + --- PASS: TestGenerateRPCOrderPreserved/json (0.01s) + --- PASS: TestGenerateRPCOrderPreserved/yaml (0.01s) +=== CONT TestFormatValidate/unknown +=== CONT TestFormatValidate/#00 +=== CONT TestFormatValidate/yaml +--- PASS: TestFormatValidate (0.00s) + --- PASS: TestFormatValidate/json (0.00s) + --- PASS: TestFormatValidate/unknown (0.00s) + --- PASS: TestFormatValidate/#00 (0.00s) + --- PASS: TestFormatValidate/yaml (0.00s) +=== CONT TestGenerateExtension/json +2025/02/18 22:47:31 ERROR: no message found: Status +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo + generator_test.go:116: { + "swagger": "2.0", + "info": { + "title": "exampleproto/v1/example.proto", + "version": "version not set" + }, + "tags": [ + { + "name": "TestService" + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "v1Foo": { + "type": "object", + "properties": { + "bar": { + "type": "string", + "description": "This is bar", + "x-go-default": "0.5s" + } + } + } + } + } + +=== CONT TestFindExpectedPaths/Multiple_potential_paths_present +=== CONT TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/json +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +--- PASS: TestGenerateRPCOrderNotPreserved (0.00s) + --- PASS: TestGenerateRPCOrderNotPreserved/json (0.01s) + --- PASS: TestGenerateRPCOrderNotPreserved/yaml (0.01s) +=== CONT TestFindExpectedPaths/No_potential_Paths_present +--- PASS: TestFindExpectedPaths (0.00s) + --- PASS: TestFindExpectedPaths/One_potential_path_present (0.00s) + --- PASS: TestFindExpectedPaths/Multiple_potential_paths_present (0.00s) + --- PASS: TestFindExpectedPaths/No_potential_Paths_present (0.00s) +=== CONT TestFormatEncode/json +=== CONT TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/json exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +=== CONT TestGenerateExtension/yaml +2025/02/18 22:47:31 ERROR: no message found: Status +=== RUN TestGenerateRPCOrderPreservedAdditionalBindings/json +=== PAUSE TestGenerateRPCOrderPreservedAdditionalBindings/json +=== RUN TestGenerateRPCOrderPreservedAdditionalBindings/yaml +=== PAUSE TestGenerateRPCOrderPreservedAdditionalBindings/yaml +=== CONT TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/yaml exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -2025/02/18 22:40:30 ERROR: no message found: Status exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo ---- PASS: TestGenerateRPCOrderNotPreservedMultipleServices (0.00s) - --- PASS: TestGenerateRPCOrderNotPreservedMultipleServices/json (0.00s) - --- PASS: TestGenerateRPCOrderNotPreservedMultipleServices/yaml (0.00s) -=== CONT TestGenerateRPCOrderNotPreserved/json exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo @@ -2129,8 +2031,55 @@ exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -=== NAME TestGenerateRPCOrderPreserved/json - generator_test.go:394: { +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +2025/02/18 22:47:31 ERROR: no message found: Status +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +2025/02/18 22:47:31 ERROR: no message found: Status +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +=== NAME TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/json + generator_test.go:1774: { "swagger": "2.0", "info": { "title": "exampleproto/v1/example.proto", @@ -2138,6 +2087,12 @@ }, "tags": [ { + "name": "TestServiceOne" + }, + { + "name": "TestServiceTwo" + }, + { "name": "TestService" } ], @@ -2148,14 +2103,14 @@ "application/json" ], "paths": { - "/b/first": { + "/a/additional": { "get": { - "operationId": "TestService_Test1", + "operationId": "TestService_Test12", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev2Foo" } } }, @@ -2172,14 +2127,14 @@ ] } }, - "/a/second": { + "/a/apath": { "get": { "operationId": "TestService_Test2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev2Foo" } } }, @@ -2196,14 +2151,14 @@ ] } }, - "/c/third": { + "/a/second": { "get": { - "operationId": "TestService_Test3", + "operationId": "TestServiceTwo_Test2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev1Foo" } } }, @@ -2216,58 +2171,18 @@ } ], "tags": [ - "TestService" + "TestServiceTwo" ] } - } - }, - "definitions": { - "v1Foo": { - "type": "object", - "properties": { - "bar": { - "type": "string" - } - } - } - } - } - -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -2025/02/18 22:40:30 ERROR: no message found: Status -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -=== CONT TestFormatEncode/json -=== CONT TestOpenapiSchemaObjectProperties/yaml -=== CONT TestGenerateRPCOrderNotPreserved/yaml -=== NAME TestGenerateRPCOrderNotPreserved/json - generator_test.go:491: { - "swagger": "2.0", - "info": { - "title": "exampleproto/v1/example.proto", - "version": "version not set" - }, - "tags": [ - { - "name": "TestService" - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/a/second": { + }, + "/b/bAdditional": { "get": { - "operationId": "TestService_Test2", + "operationId": "TestService_Test32", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev2Foo" } } }, @@ -2284,14 +2199,14 @@ ] } }, - "/b/first": { + "/b/bpath": { "get": { "operationId": "TestService_Test1", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev2Foo" } } }, @@ -2308,14 +2223,14 @@ ] } }, - "/c/third": { + "/b/first": { "get": { - "operationId": "TestService_Test3", + "operationId": "TestServiceTwo_Test1", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev1Foo" } } }, @@ -2328,278 +2243,18 @@ } ], "tags": [ - "TestService" + "TestServiceTwo" ] } - } - }, - "definitions": { - "v1Foo": { - "type": "object", - "properties": { - "bar": { - "type": "string" - } - } - } - } - } - -=== NAME TestGenerateRPCOrderPreservedMultipleServices/yaml - generator_test.go:620: swagger: "2.0" - info: - title: exampleproto/v1/example.proto - version: version not set - tags: - - name: TestServiceOne - - name: TestServiceTwo - consumes: - - application/json - produces: - - application/json - paths: - /d/first: - get: - operationId: TestServiceOne_Test1 - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/v1Foo' - parameters: - - name: bar - in: query - required: false - type: string - tags: - - TestServiceOne - /e/second: - get: - operationId: TestServiceOne_Test2 - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/v1Foo' - parameters: - - name: bar - in: query - required: false - type: string - tags: - - TestServiceOne - /c/third: - get: - operationId: TestServiceOne_Test3 - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/v1Foo' - parameters: - - name: bar - in: query - required: false - type: string - tags: - - TestServiceOne - /b/first: - get: - operationId: TestServiceTwo_Test1 - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/v1Foo' - parameters: - - name: bar - in: query - required: false - type: string - tags: - - TestServiceTwo - /a/second: - get: - operationId: TestServiceTwo_Test2 - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/v1Foo' - parameters: - - name: bar - in: query - required: false - type: string - tags: - - TestServiceTwo - /g/third: - get: - operationId: TestServiceTwo_Test3 - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/v1Foo' - parameters: - - name: bar - in: query - required: false - type: string - tags: - - TestServiceTwo - definitions: - v1Foo: - type: object - properties: - bar: - type: string - -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -=== CONT TestFormatEncode/yaml -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo ---- PASS: TestGenerateRPCOrderPreservedMultipleServices (0.00s) - --- PASS: TestGenerateRPCOrderPreservedMultipleServices/json (0.00s) - --- PASS: TestGenerateRPCOrderPreservedMultipleServices/yaml (0.01s) -=== CONT TestOpenapiSchemaObjectProperties/json -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -2025/02/18 22:40:30 ERROR: no message found: Status ---- PASS: TestFormatEncode (0.00s) - --- PASS: TestFormatEncode/json (0.00s) - --- PASS: TestFormatEncode/yaml (0.00s) -=== CONT TestGenerateRPCOrderPreserved/yaml -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo ---- PASS: TestOpenapiSchemaObjectProperties (0.00s) - --- PASS: TestOpenapiSchemaObjectProperties/yaml (0.00s) - --- PASS: TestOpenapiSchemaObjectProperties/json (0.00s) -=== CONT TestGenerateRPCOrderNotPreservedAdditionalBindings/json -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -2025/02/18 22:40:30 ERROR: no message found: Status -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -2025/02/18 22:40:30 ERROR: no message found: Status -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -=== NAME TestGenerateRPCOrderNotPreserved/yaml - generator_test.go:491: swagger: "2.0" - info: - title: exampleproto/v1/example.proto - version: version not set - tags: - - name: TestService - consumes: - - application/json - produces: - - application/json - paths: - /a/second: - get: - operationId: TestService_Test2 - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/v1Foo' - parameters: - - name: bar - in: query - required: false - type: string - tags: - - TestService - /b/first: - get: - operationId: TestService_Test1 - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/v1Foo' - parameters: - - name: bar - in: query - required: false - type: string - tags: - - TestService - /c/third: - get: - operationId: TestService_Test3 - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/v1Foo' - parameters: - - name: bar - in: query - required: false - type: string - tags: - - TestService - definitions: - v1Foo: - type: object - properties: - bar: - type: string - ---- PASS: TestGenerateRPCOrderNotPreserved (0.00s) - --- PASS: TestGenerateRPCOrderNotPreserved/json (0.00s) - --- PASS: TestGenerateRPCOrderNotPreserved/yaml (0.00s) -=== CONT TestFindExpectedPaths/One_potential_path_present -=== CONT TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/json -=== NAME TestGenerateRPCOrderNotPreservedAdditionalBindings/json - generator_test.go:1375: { - "swagger": "2.0", - "info": { - "title": "exampleproto/v1/example.proto", - "version": "version not set" - }, - "tags": [ - { - "name": "TestService" - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/a/additional": { + }, + "/c/cpath": { "get": { - "operationId": "TestService_Test12", + "operationId": "TestService_Test3", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev2Foo" } } }, @@ -2616,14 +2271,14 @@ ] } }, - "/a/second": { + "/c/third": { "get": { - "operationId": "TestService_Test2", + "operationId": "TestServiceOne_Test3", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev1Foo" } } }, @@ -2636,18 +2291,18 @@ } ], "tags": [ - "TestService" + "TestServiceOne" ] } }, - "/b/bAdditional": { + "/d/first": { "get": { - "operationId": "TestService_Test32", + "operationId": "TestServiceOne_Test1", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev1Foo" } } }, @@ -2660,18 +2315,18 @@ } ], "tags": [ - "TestService" + "TestServiceOne" ] } }, - "/b/first": { + "/e/second": { "get": { - "operationId": "TestService_Test1", + "operationId": "TestServiceOne_Test2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev1Foo" } } }, @@ -2684,18 +2339,18 @@ } ], "tags": [ - "TestService" + "TestServiceOne" ] } }, - "/c/third": { + "/g/third": { "get": { - "operationId": "TestService_Test3", + "operationId": "TestServiceTwo_Test3", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev1Foo" } } }, @@ -2708,7 +2363,7 @@ } ], "tags": [ - "TestService" + "TestServiceTwo" ] } }, @@ -2719,7 +2374,7 @@ "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev2Foo" } } }, @@ -2738,449 +2393,25 @@ } }, "definitions": { - "v1Foo": { + "examplev1Foo": { "type": "object", "properties": { "bar": { "type": "string" } } - } - } - } - -2025/02/18 22:40:30 ERROR: no message found: Status -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -=== NAME TestGenerateRPCOrderPreserved/yaml - generator_test.go:394: swagger: "2.0" - info: - title: exampleproto/v1/example.proto - version: version not set - tags: - - name: TestService - consumes: - - application/json - produces: - - application/json - paths: - /b/first: - get: - operationId: TestService_Test1 - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/v1Foo' - parameters: - - name: bar - in: query - required: false - type: string - tags: - - TestService - /a/second: - get: - operationId: TestService_Test2 - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/v1Foo' - parameters: - - name: bar - in: query - required: false - type: string - tags: - - TestService - /c/third: - get: - operationId: TestService_Test3 - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/v1Foo' - parameters: - - name: bar - in: query - required: false - type: string - tags: - - TestService - definitions: - v1Foo: - type: object - properties: - bar: - type: string - ---- PASS: TestGenerateRPCOrderPreserved (0.00s) - --- PASS: TestGenerateRPCOrderPreserved/json (0.00s) - --- PASS: TestGenerateRPCOrderPreserved/yaml (0.00s) -=== CONT TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/yaml -=== NAME TestGenerateExtension/yaml - generator_test.go:116: swagger: "2.0" - info: - title: exampleproto/v1/example.proto - version: version not set - tags: - - name: TestService - consumes: - - application/json - produces: - - application/json - paths: {} - definitions: - v1Foo: - type: object - properties: - bar: - type: string - description: This is bar - x-go-default: 0.5s - ---- PASS: TestGenerateExtension (0.00s) - --- PASS: TestGenerateExtension/json (0.00s) - --- PASS: TestGenerateExtension/yaml (0.01s) -=== CONT TestFindExpectedPaths/Multiple_potential_paths_present -=== CONT TestFindExpectedPaths/No_potential_Paths_present ---- PASS: TestFindExpectedPaths (0.00s) - --- PASS: TestFindExpectedPaths/One_potential_path_present (0.00s) - --- PASS: TestFindExpectedPaths/Multiple_potential_paths_present (0.00s) - --- PASS: TestFindExpectedPaths/No_potential_Paths_present (0.00s) -=== CONT TestGenerateRPCOneOfFieldBodyAdditionalBindings/json -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -=== CONT TestGenerateRPCOrderNotPreservedAdditionalBindings/yaml -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -2025/02/18 22:40:30 ERROR: no message found: Status -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -2025/02/18 22:40:30 ERROR: no message found: Status -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -2025/02/18 22:40:30 ERROR: no message found: Status -=== NAME TestGenerateRPCOneOfFieldBodyAdditionalBindings/json - generator_test.go:1265: { - "swagger": "2.0", - "info": { - "title": "exampleproto/v1/example.proto", - "version": "version not set" - }, - "tags": [ - { - "name": "TestService" - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/b/foo": { - "post": { - "operationId": "TestService_Test1", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Foo" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1Foo" - } - } - ], - "tags": [ - "TestService" - ] - } - }, - "/b/foo/bar": { - "post": { - "operationId": "TestService_Test12", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Foo" - } - } - }, - "parameters": [ - { - "name": "bar", - "in": "body", - "required": true, - "schema": { - "type": "string" - } - } - ], - "tags": [ - "TestService" - ] - } }, - "/b/foo/baz": { - "post": { - "operationId": "TestService_Test13", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Foo" - } - } - }, - "parameters": [ - { - "name": "baz", - "in": "body", - "required": true, - "schema": { - "type": "string" - } - } - ], - "tags": [ - "TestService" - ] - } - } - }, - "definitions": { - "v1Foo": { + "examplev2Foo": { "type": "object", "properties": { "bar": { "type": "string" - }, - "baz": { - "type": "string" } } } } } -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -=== CONT TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/json -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -2025/02/18 22:40:30 ERROR: no message found: Status -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -=== NAME TestGenerateRPCOrderNotPreservedAdditionalBindings/yaml - generator_test.go:1375: swagger: "2.0" - info: - title: exampleproto/v1/example.proto - version: version not set - tags: - - name: TestService - consumes: - - application/json - produces: - - application/json - paths: - /a/additional: - get: - operationId: TestService_Test12 - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/v1Foo' - parameters: - - name: bar - in: query - required: false - type: string - tags: - - TestService - /a/second: - get: - operationId: TestService_Test2 - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/v1Foo' - parameters: - - name: bar - in: query - required: false - type: string - tags: - - TestService - /b/bAdditional: - get: - operationId: TestService_Test32 - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/v1Foo' - parameters: - - name: bar - in: query - required: false - type: string - tags: - - TestService - /b/first: - get: - operationId: TestService_Test1 - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/v1Foo' - parameters: - - name: bar - in: query - required: false - type: string - tags: - - TestService - /c/third: - get: - operationId: TestService_Test3 - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/v1Foo' - parameters: - - name: bar - in: query - required: false - type: string - tags: - - TestService - /z/zAdditional: - get: - operationId: TestService_Test22 - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/v1Foo' - parameters: - - name: bar - in: query - required: false - type: string - tags: - - TestService - definitions: - v1Foo: - type: object - properties: - bar: - type: string - ---- PASS: TestGenerateRPCOrderNotPreservedAdditionalBindings (0.00s) - --- PASS: TestGenerateRPCOrderNotPreservedAdditionalBindings/json (0.00s) - --- PASS: TestGenerateRPCOrderNotPreservedAdditionalBindings/yaml (0.00s) -=== CONT TestGenerateRPCOrderNotPreservedMergeFiles/json -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo === NAME TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/json generator_test.go:1574: { "swagger": "2.0", @@ -3515,6 +2746,41 @@ } } +=== CONT TestGenerateRPCOneOfFieldBodyAdditionalBindings/json +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +=== NAME TestGenerateExtension/yaml + generator_test.go:116: swagger: "2.0" + info: + title: exampleproto/v1/example.proto + version: version not set + tags: + - name: TestService + consumes: + - application/json + produces: + - application/json + paths: {} + definitions: + v1Foo: + type: object + properties: + bar: + type: string + description: This is bar + x-go-default: 0.5s + +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +--- PASS: TestGenerateExtension (0.00s) + --- PASS: TestGenerateExtension/json (0.00s) + --- PASS: TestGenerateExtension/yaml (0.02s) +=== CONT TestGenerateRPCOneOfFieldBodyAdditionalBindings/yaml +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo @@ -3524,222 +2790,260 @@ exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -2025/02/18 22:40:30 ERROR: no message found: Status exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -=== NAME TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/yaml - generator_test.go:1774: swagger: "2.0" +2025/02/18 22:47:31 ERROR: no message found: Status +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +2025/02/18 22:47:31 ERROR: no message found: Status +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +=== NAME TestGenerateRPCOneOfFieldBodyAdditionalBindings/json + generator_test.go:1265: { + "swagger": "2.0", + "info": { + "title": "exampleproto/v1/example.proto", + "version": "version not set" + }, + "tags": [ + { + "name": "TestService" + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/b/foo": { + "post": { + "operationId": "TestService_Test1", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1Foo" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1Foo" + } + } + ], + "tags": [ + "TestService" + ] + } + }, + "/b/foo/bar": { + "post": { + "operationId": "TestService_Test12", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1Foo" + } + } + }, + "parameters": [ + { + "name": "bar", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "tags": [ + "TestService" + ] + } + }, + "/b/foo/baz": { + "post": { + "operationId": "TestService_Test13", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1Foo" + } + } + }, + "parameters": [ + { + "name": "baz", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "tags": [ + "TestService" + ] + } + } + }, + "definitions": { + "v1Foo": { + "type": "object", + "properties": { + "bar": { + "type": "string" + }, + "baz": { + "type": "string" + } + } + } + } + } + +=== CONT TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/yaml +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +2025/02/18 22:47:31 ERROR: no message found: Status +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +=== CONT TestFormatEncode/yaml +--- PASS: TestFormatEncode (0.00s) + --- PASS: TestFormatEncode/json (0.00s) + --- PASS: TestFormatEncode/yaml (0.00s) +=== CONT TestGenerateRPCOrderNotPreservedMergeFiles/json +=== NAME TestGenerateRPCOneOfFieldBodyAdditionalBindings/yaml + generator_test.go:1265: swagger: "2.0" info: title: exampleproto/v1/example.proto version: version not set tags: - - name: TestServiceOne - - name: TestServiceTwo - name: TestService consumes: - application/json produces: - application/json paths: - /a/additional: - get: - operationId: TestService_Test12 - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/examplev2Foo' - parameters: - - name: bar - in: query - required: false - type: string - tags: - - TestService - /a/apath: - get: - operationId: TestService_Test2 - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/examplev2Foo' - parameters: - - name: bar - in: query - required: false - type: string - tags: - - TestService - /a/second: - get: - operationId: TestServiceTwo_Test2 - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/examplev1Foo' - parameters: - - name: bar - in: query - required: false - type: string - tags: - - TestServiceTwo - /b/bAdditional: - get: - operationId: TestService_Test32 - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/examplev2Foo' - parameters: - - name: bar - in: query - required: false - type: string - tags: - - TestService - /b/bpath: - get: + /b/foo: + post: operationId: TestService_Test1 responses: "200": description: A successful response. schema: - $ref: '#/definitions/examplev2Foo' - parameters: - - name: bar - in: query - required: false - type: string - tags: - - TestService - /b/first: - get: - operationId: TestServiceTwo_Test1 - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/examplev1Foo' + $ref: '#/definitions/v1Foo' parameters: - - name: bar - in: query - required: false - type: string - tags: - - TestServiceTwo - /c/cpath: - get: - operationId: TestService_Test3 - responses: - "200": - description: A successful response. + - name: body + in: body + required: true schema: - $ref: '#/definitions/examplev2Foo' - parameters: - - name: bar - in: query - required: false - type: string + $ref: '#/definitions/v1Foo' tags: - TestService - /c/third: - get: - operationId: TestServiceOne_Test3 - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/examplev1Foo' - parameters: - - name: bar - in: query - required: false - type: string - tags: - - TestServiceOne - /d/first: - get: - operationId: TestServiceOne_Test1 + /b/foo/bar: + post: + operationId: TestService_Test12 responses: "200": description: A successful response. schema: - $ref: '#/definitions/examplev1Foo' + $ref: '#/definitions/v1Foo' parameters: - name: bar - in: query - required: false - type: string - tags: - - TestServiceOne - /e/second: - get: - operationId: TestServiceOne_Test2 - responses: - "200": - description: A successful response. + in: body + required: true schema: - $ref: '#/definitions/examplev1Foo' - parameters: - - name: bar - in: query - required: false - type: string + type: string tags: - - TestServiceOne - /g/third: - get: - operationId: TestServiceTwo_Test3 + - TestService + /b/foo/baz: + post: + operationId: TestService_Test13 responses: "200": description: A successful response. schema: - $ref: '#/definitions/examplev1Foo' + $ref: '#/definitions/v1Foo' parameters: - - name: bar - in: query - required: false - type: string - tags: - - TestServiceTwo - /z/zAdditional: - get: - operationId: TestService_Test22 - responses: - "200": - description: A successful response. + - name: baz + in: body + required: true schema: - $ref: '#/definitions/examplev2Foo' - parameters: - - name: bar - in: query - required: false - type: string + type: string tags: - TestService definitions: - examplev1Foo: + v1Foo: type: object properties: bar: type: string - examplev2Foo: - type: object - properties: - bar: + baz: type: string -=== NAME TestGenerateRPCOrderNotPreservedMergeFiles/json - generator_test.go:1062: { +--- PASS: TestGenerateRPCOneOfFieldBodyAdditionalBindings (0.00s) + --- PASS: TestGenerateRPCOneOfFieldBodyAdditionalBindings/json (0.01s) + --- PASS: TestGenerateRPCOneOfFieldBodyAdditionalBindings/yaml (0.01s) +=== CONT TestGenerateRPCOrderNotPreservedAdditionalBindings/json +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +2025/02/18 22:47:31 ERROR: no message found: Status +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo + generator_test.go:1375: { "swagger": "2.0", "info": { "title": "exampleproto/v1/example.proto", @@ -3757,14 +3061,14 @@ "application/json" ], "paths": { - "/a/apath": { + "/a/additional": { "get": { - "operationId": "TestService_Test3", + "operationId": "TestService_Test12", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/examplev1Foo" + "$ref": "#/definitions/v1Foo" } } }, @@ -3781,14 +3085,14 @@ ] } }, - "/b/bpath": { + "/a/second": { "get": { "operationId": "TestService_Test2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/examplev1Foo" + "$ref": "#/definitions/v1Foo" } } }, @@ -3805,14 +3109,14 @@ ] } }, - "/c/cpath": { + "/b/bAdditional": { "get": { - "operationId": "TestService_Test1", + "operationId": "TestService_Test32", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/examplev1Foo" + "$ref": "#/definitions/v1Foo" } } }, @@ -3829,14 +3133,14 @@ ] } }, - "/d/dpath": { + "/b/first": { "get": { - "operationId": "TestService_Test3", + "operationId": "TestService_Test1", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/examplev2Foo" + "$ref": "#/definitions/v1Foo" } } }, @@ -3853,14 +3157,14 @@ ] } }, - "/e/epath": { + "/c/third": { "get": { - "operationId": "TestService_Test2", + "operationId": "TestService_Test3", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/examplev2Foo" + "$ref": "#/definitions/v1Foo" } } }, @@ -3877,14 +3181,14 @@ ] } }, - "/f/fpath": { + "/z/zAdditional": { "get": { - "operationId": "TestService_Test1", + "operationId": "TestService_Test22", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/examplev2Foo" + "$ref": "#/definitions/v1Foo" } } }, @@ -3903,15 +3207,7 @@ } }, "definitions": { - "examplev1Foo": { - "type": "object", - "properties": { - "bar": { - "type": "string" - } - } - }, - "examplev2Foo": { + "v1Foo": { "type": "object", "properties": { "bar": { @@ -3922,34 +3218,50 @@ } } -=== CONT TestGenerateRPCOneOfFieldBodyAdditionalBindings/yaml -=== CONT TestGenerateRPCOrderPreservedAdditionalBindings/json -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -=== CONT TestGenerateRPCOrderPreservedMergeFiles/json -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +2025/02/18 22:47:31 ERROR: no message found: Status exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +=== CONT TestGenerateRPCOrderPreservedMultipleServices/json exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -2025/02/18 22:40:30 ERROR: no message found: Status exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +2025/02/18 22:47:31 ERROR: no message found: Status exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo @@ -3958,25 +3270,15 @@ exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -2025/02/18 22:40:30 ERROR: no message found: Status -2025/02/18 22:40:30 ERROR: no message found: Status exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +2025/02/18 22:47:31 ERROR: no message found: Status exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -=== NAME TestGenerateRPCOrderPreservedAdditionalBindings/json exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo - generator_test.go:1168: { + generator_test.go:620: { "swagger": "2.0", "info": { "title": "exampleproto/v1/example.proto", @@ -3984,7 +3286,10 @@ }, "tags": [ { - "name": "TestService" + "name": "TestServiceOne" + }, + { + "name": "TestServiceTwo" } ], "consumes": [ @@ -3994,9 +3299,9 @@ "application/json" ], "paths": { - "/b/first": { + "/d/first": { "get": { - "operationId": "TestService_Test1", + "operationId": "TestServiceOne_Test1", "responses": { "200": { "description": "A successful response.", @@ -4014,13 +3319,13 @@ } ], "tags": [ - "TestService" + "TestServiceOne" ] } }, - "/a/additional": { + "/e/second": { "get": { - "operationId": "TestService_Test12", + "operationId": "TestServiceOne_Test2", "responses": { "200": { "description": "A successful response.", @@ -4038,13 +3343,13 @@ } ], "tags": [ - "TestService" + "TestServiceOne" ] } }, - "/a/second": { + "/c/third": { "get": { - "operationId": "TestService_Test2", + "operationId": "TestServiceOne_Test3", "responses": { "200": { "description": "A successful response.", @@ -4062,13 +3367,13 @@ } ], "tags": [ - "TestService" + "TestServiceOne" ] } }, - "/z/zAdditional": { + "/b/first": { "get": { - "operationId": "TestService_Test22", + "operationId": "TestServiceTwo_Test1", "responses": { "200": { "description": "A successful response.", @@ -4086,13 +3391,13 @@ } ], "tags": [ - "TestService" + "TestServiceTwo" ] } }, - "/c/third": { + "/a/second": { "get": { - "operationId": "TestService_Test3", + "operationId": "TestServiceTwo_Test2", "responses": { "200": { "description": "A successful response.", @@ -4110,13 +3415,13 @@ } ], "tags": [ - "TestService" + "TestServiceTwo" ] } }, - "/b/bAdditional": { + "/g/third": { "get": { - "operationId": "TestService_Test32", + "operationId": "TestServiceTwo_Test3", "responses": { "200": { "description": "A successful response.", @@ -4134,7 +3439,7 @@ } ], "tags": [ - "TestService" + "TestServiceTwo" ] } } @@ -4151,10 +3456,9 @@ } } -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -=== CONT TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/yaml -=== NAME TestGenerateRPCOrderPreservedMergeFiles/json - generator_test.go:906: { +=== CONT TestGenerateRPCOrderNotPreservedMultipleServices/json +=== NAME TestGenerateRPCOrderNotPreservedMergeFiles/json + generator_test.go:1062: { "swagger": "2.0", "info": { "title": "exampleproto/v1/example.proto", @@ -4172,9 +3476,9 @@ "application/json" ], "paths": { - "/c/cpath": { + "/a/apath": { "get": { - "operationId": "TestService_Test1", + "operationId": "TestService_Test3", "responses": { "200": { "description": "A successful response.", @@ -4220,9 +3524,9 @@ ] } }, - "/a/apath": { + "/c/cpath": { "get": { - "operationId": "TestService_Test3", + "operationId": "TestService_Test1", "responses": { "200": { "description": "A successful response.", @@ -4244,9 +3548,9 @@ ] } }, - "/f/fpath": { + "/d/dpath": { "get": { - "operationId": "TestService_Test1", + "operationId": "TestService_Test3", "responses": { "200": { "description": "A successful response.", @@ -4292,9 +3596,9 @@ ] } }, - "/d/dpath": { + "/f/fpath": { "get": { - "operationId": "TestService_Test3", + "operationId": "TestService_Test1", "responses": { "200": { "description": "A successful response.", @@ -4337,175 +3641,56 @@ } } -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -=== CONT TestGenerateRPCOrderNotPreservedMergeFiles/yaml -=== NAME TestGenerateRPCOneOfFieldBodyAdditionalBindings/yaml - generator_test.go:1265: swagger: "2.0" - info: - title: exampleproto/v1/example.proto - version: version not set - tags: - - name: TestService - consumes: - - application/json - produces: - - application/json - paths: - /b/foo: - post: - operationId: TestService_Test1 - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/v1Foo' - parameters: - - name: body - in: body - required: true - schema: - $ref: '#/definitions/v1Foo' - tags: - - TestService - /b/foo/bar: - post: - operationId: TestService_Test12 - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/v1Foo' - parameters: - - name: bar - in: body - required: true - schema: - type: string - tags: - - TestService - /b/foo/baz: - post: - operationId: TestService_Test13 - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/v1Foo' - parameters: - - name: baz - in: body - required: true - schema: - type: string - tags: - - TestService - definitions: - v1Foo: - type: object - properties: - bar: - type: string - baz: - type: string - -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo ---- PASS: TestGenerateRPCOneOfFieldBodyAdditionalBindings (0.00s) - --- PASS: TestGenerateRPCOneOfFieldBodyAdditionalBindings/json (0.00s) - --- PASS: TestGenerateRPCOneOfFieldBodyAdditionalBindings/yaml (0.00s) -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -=== CONT TestFormatValidate/json -=== CONT TestGenerateRPCOrderPreservedAdditionalBindings/yaml +=== CONT TestGenerateRPCOrderNotPreservedAdditionalBindings/yaml exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +2025/02/18 22:47:31 ERROR: no message found: Status exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -2025/02/18 22:40:30 ERROR: no message found: Status exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -2025/02/18 22:40:30 ERROR: no message found: Status -2025/02/18 22:40:30 ERROR: no message found: Status exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -2025/02/18 22:40:30 ERROR: no message found: Status exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -=== NAME TestGenerateRPCOrderNotPreservedMergeFiles/yaml - generator_test.go:1062: swagger: "2.0" +=== NAME TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/yaml + generator_test.go:1774: swagger: "2.0" info: title: exampleproto/v1/example.proto version: version not set tags: + - name: TestServiceOne + - name: TestServiceTwo - name: TestService consumes: - application/json produces: - application/json paths: - /a/apath: + /a/additional: get: - operationId: TestService_Test3 + operationId: TestService_Test12 responses: "200": description: A successful response. schema: - $ref: '#/definitions/examplev1Foo' + $ref: '#/definitions/examplev2Foo' parameters: - name: bar in: query @@ -4513,14 +3698,14 @@ type: string tags: - TestService - /b/bpath: + /a/apath: get: operationId: TestService_Test2 responses: "200": description: A successful response. schema: - $ref: '#/definitions/examplev1Foo' + $ref: '#/definitions/examplev2Foo' parameters: - name: bar in: query @@ -4528,9 +3713,9 @@ type: string tags: - TestService - /c/cpath: + /a/second: get: - operationId: TestService_Test1 + operationId: TestServiceTwo_Test2 responses: "200": description: A successful response. @@ -4542,10 +3727,25 @@ required: false type: string tags: + - TestServiceTwo + /b/bAdditional: + get: + operationId: TestService_Test32 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/examplev2Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: - TestService - /d/dpath: + /b/bpath: get: - operationId: TestService_Test3 + operationId: TestService_Test1 responses: "200": description: A successful response. @@ -4558,9 +3758,24 @@ type: string tags: - TestService - /e/epath: + /b/first: get: - operationId: TestService_Test2 + operationId: TestServiceTwo_Test1 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/examplev1Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestServiceTwo + /c/cpath: + get: + operationId: TestService_Test3 responses: "200": description: A successful response. @@ -4573,9 +3788,69 @@ type: string tags: - TestService - /f/fpath: + /c/third: get: - operationId: TestService_Test1 + operationId: TestServiceOne_Test3 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/examplev1Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestServiceOne + /d/first: + get: + operationId: TestServiceOne_Test1 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/examplev1Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestServiceOne + /e/second: + get: + operationId: TestServiceOne_Test2 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/examplev1Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestServiceOne + /g/third: + get: + operationId: TestServiceTwo_Test3 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/examplev1Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestServiceTwo + /z/zAdditional: + get: + operationId: TestService_Test22 responses: "200": description: A successful response. @@ -4600,15 +3875,229 @@ bar: type: string ---- PASS: TestGenerateRPCOrderNotPreservedMergeFiles (0.00s) - --- PASS: TestGenerateRPCOrderNotPreservedMergeFiles/json (0.00s) - --- PASS: TestGenerateRPCOrderNotPreservedMergeFiles/yaml (0.00s) exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +2025/02/18 22:47:31 ERROR: no message found: Status +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +=== NAME TestGenerateRPCOrderNotPreservedMultipleServices/json + generator_test.go:749: { + "swagger": "2.0", + "info": { + "title": "exampleproto/v1/example.proto", + "version": "version not set" + }, + "tags": [ + { + "name": "TestServiceOne" + }, + { + "name": "TestServiceTwo" + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/a/second": { + "get": { + "operationId": "TestServiceTwo_Test2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1Foo" + } + } + }, + "parameters": [ + { + "name": "bar", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "TestServiceTwo" + ] + } + }, + "/b/first": { + "get": { + "operationId": "TestServiceTwo_Test1", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1Foo" + } + } + }, + "parameters": [ + { + "name": "bar", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "TestServiceTwo" + ] + } + }, + "/c/third": { + "get": { + "operationId": "TestServiceOne_Test3", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1Foo" + } + } + }, + "parameters": [ + { + "name": "bar", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "TestServiceOne" + ] + } + }, + "/d/first": { + "get": { + "operationId": "TestServiceOne_Test1", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1Foo" + } + } + }, + "parameters": [ + { + "name": "bar", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "TestServiceOne" + ] + } + }, + "/e/second": { + "get": { + "operationId": "TestServiceOne_Test2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1Foo" + } + } + }, + "parameters": [ + { + "name": "bar", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "TestServiceOne" + ] + } + }, + "/g/third": { + "get": { + "operationId": "TestServiceTwo_Test3", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1Foo" + } + } + }, + "parameters": [ + { + "name": "bar", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "TestServiceTwo" + ] + } + } + }, + "definitions": { + "v1Foo": { + "type": "object", + "properties": { + "bar": { + "type": "string" + } + } + } + } + } + +=== CONT TestGenerateRPCOrderNotPreservedMergeFiles/yaml +=== CONT TestGenerateRPCOrderPreservedMergeFiles/json +--- PASS: TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices (0.01s) + --- PASS: TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/json (0.04s) + --- PASS: TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/yaml (0.07s) +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +2025/02/18 22:47:31 ERROR: no message found: Status exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -=== CONT TestGenerateRPCOrderPreservedMergeFiles/yaml +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +2025/02/18 22:47:31 ERROR: no message found: Status +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo === NAME TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/yaml generator_test.go:1574: swagger: "2.0" info: @@ -4815,37 +4304,14 @@ bar: type: string -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -2025/02/18 22:40:30 ERROR: no message found: Status --- PASS: TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices (0.00s) - --- PASS: TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/json (0.00s) - --- PASS: TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/yaml (0.01s) -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -=== CONT TestFormatValidate/unknown -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo + --- PASS: TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/json (0.02s) + --- PASS: TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/yaml (0.08s) +=== CONT TestGenerateRPCOrderPreservedMergeFiles/yaml exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -=== CONT TestFormatValidate/yaml exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -=== CONT TestFormatValidate/#00 ---- PASS: TestFormatValidate (0.00s) - --- PASS: TestFormatValidate/json (0.00s) - --- PASS: TestFormatValidate/unknown (0.00s) - --- PASS: TestFormatValidate/yaml (0.00s) - --- PASS: TestFormatValidate/#00 (0.00s) -=== NAME TestGenerateRPCOrderPreservedAdditionalBindings/yaml - generator_test.go:1168: swagger: "2.0" +=== NAME TestGenerateRPCOrderNotPreservedAdditionalBindings/yaml + generator_test.go:1375: swagger: "2.0" info: title: exampleproto/v1/example.proto version: version not set @@ -4856,9 +4322,9 @@ produces: - application/json paths: - /b/first: + /a/additional: get: - operationId: TestService_Test1 + operationId: TestService_Test12 responses: "200": description: A successful response. @@ -4871,9 +4337,9 @@ type: string tags: - TestService - /a/additional: + /a/second: get: - operationId: TestService_Test12 + operationId: TestService_Test2 responses: "200": description: A successful response. @@ -4886,9 +4352,9 @@ type: string tags: - TestService - /a/second: + /b/bAdditional: get: - operationId: TestService_Test2 + operationId: TestService_Test32 responses: "200": description: A successful response. @@ -4901,9 +4367,9 @@ type: string tags: - TestService - /z/zAdditional: + /b/first: get: - operationId: TestService_Test22 + operationId: TestService_Test1 responses: "200": description: A successful response. @@ -4931,9 +4397,9 @@ type: string tags: - TestService - /b/bAdditional: + /z/zAdditional: get: - operationId: TestService_Test32 + operationId: TestService_Test22 responses: "200": description: A successful response. @@ -4953,11 +4419,13 @@ bar: type: string ---- PASS: TestGenerateRPCOrderPreservedAdditionalBindings (0.00s) - --- PASS: TestGenerateRPCOrderPreservedAdditionalBindings/json (0.00s) - --- PASS: TestGenerateRPCOrderPreservedAdditionalBindings/yaml (0.01s) -=== NAME TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/json - generator_test.go:1774: { +--- PASS: TestGenerateRPCOrderNotPreservedAdditionalBindings (0.00s) + --- PASS: TestGenerateRPCOrderNotPreservedAdditionalBindings/json (0.01s) + --- PASS: TestGenerateRPCOrderNotPreservedAdditionalBindings/yaml (0.05s) +=== CONT TestGenerateRPCOrderNotPreservedMultipleServices/yaml +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +=== NAME TestGenerateRPCOrderPreservedMergeFiles/json + generator_test.go:906: { "swagger": "2.0", "info": { "title": "exampleproto/v1/example.proto", @@ -4965,12 +4433,6 @@ }, "tags": [ { - "name": "TestServiceOne" - }, - { - "name": "TestServiceTwo" - }, - { "name": "TestService" } ], @@ -4981,14 +4443,14 @@ "application/json" ], "paths": { - "/a/additional": { + "/c/cpath": { "get": { - "operationId": "TestService_Test12", + "operationId": "TestService_Test1", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/examplev2Foo" + "$ref": "#/definitions/examplev1Foo" } } }, @@ -5005,14 +4467,14 @@ ] } }, - "/a/apath": { + "/b/bpath": { "get": { "operationId": "TestService_Test2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/examplev2Foo" + "$ref": "#/definitions/examplev1Foo" } } }, @@ -5029,9 +4491,9 @@ ] } }, - "/a/second": { + "/a/apath": { "get": { - "operationId": "TestServiceTwo_Test2", + "operationId": "TestService_Test3", "responses": { "200": { "description": "A successful response.", @@ -5049,13 +4511,13 @@ } ], "tags": [ - "TestServiceTwo" + "TestService" ] } }, - "/b/bAdditional": { + "/f/fpath": { "get": { - "operationId": "TestService_Test32", + "operationId": "TestService_Test1", "responses": { "200": { "description": "A successful response.", @@ -5077,9 +4539,9 @@ ] } }, - "/b/bpath": { + "/e/epath": { "get": { - "operationId": "TestService_Test1", + "operationId": "TestService_Test2", "responses": { "200": { "description": "A successful response.", @@ -5101,14 +4563,14 @@ ] } }, - "/b/first": { + "/d/dpath": { "get": { - "operationId": "TestServiceTwo_Test1", + "operationId": "TestService_Test3", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/examplev1Foo" + "$ref": "#/definitions/examplev2Foo" } } }, @@ -5121,18 +4583,220 @@ } ], "tags": [ - "TestServiceTwo" + "TestService" ] } + } + }, + "definitions": { + "examplev1Foo": { + "type": "object", + "properties": { + "bar": { + "type": "string" + } + } }, - "/c/cpath": { + "examplev2Foo": { + "type": "object", + "properties": { + "bar": { + "type": "string" + } + } + } + } + } + +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +=== CONT TestOpenapiSchemaObjectProperties/yaml +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +2025/02/18 22:47:31 ERROR: no message found: Status +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +=== NAME TestGenerateRPCOrderNotPreservedMergeFiles/yaml + generator_test.go:1062: swagger: "2.0" + info: + title: exampleproto/v1/example.proto + version: version not set + tags: + - name: TestService + consumes: + - application/json + produces: + - application/json + paths: + /a/apath: + get: + operationId: TestService_Test3 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/examplev1Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestService + /b/bpath: + get: + operationId: TestService_Test2 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/examplev1Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestService + /c/cpath: + get: + operationId: TestService_Test1 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/examplev1Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestService + /d/dpath: + get: + operationId: TestService_Test3 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/examplev2Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestService + /e/epath: + get: + operationId: TestService_Test2 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/examplev2Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestService + /f/fpath: + get: + operationId: TestService_Test1 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/examplev2Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestService + definitions: + examplev1Foo: + type: object + properties: + bar: + type: string + examplev2Foo: + type: object + properties: + bar: + type: string + +=== CONT TestOpenapiSchemaObjectProperties/json +=== CONT TestGenerateRPCOrderPreservedMultipleServices/yaml +--- PASS: TestOpenapiSchemaObjectProperties (0.00s) + --- PASS: TestOpenapiSchemaObjectProperties/yaml (0.01s) + --- PASS: TestOpenapiSchemaObjectProperties/json (0.00s) +=== CONT TestGenerateRPCOrderPreservedAdditionalBindings/json +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +--- PASS: TestGenerateRPCOrderNotPreservedMergeFiles (0.00s) + --- PASS: TestGenerateRPCOrderNotPreservedMergeFiles/json (0.03s) + --- PASS: TestGenerateRPCOrderNotPreservedMergeFiles/yaml (0.04s) +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +2025/02/18 22:47:31 ERROR: no message found: Status +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +=== NAME TestGenerateRPCOrderPreservedAdditionalBindings/json + generator_test.go:1168: { + "swagger": "2.0", + "info": { + "title": "exampleproto/v1/example.proto", + "version": "version not set" + }, + "tags": [ + { + "name": "TestService" + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/b/first": { "get": { - "operationId": "TestService_Test3", + "operationId": "TestService_Test1", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/examplev2Foo" + "$ref": "#/definitions/v1Foo" } } }, @@ -5149,14 +4813,14 @@ ] } }, - "/c/third": { + "/a/additional": { "get": { - "operationId": "TestServiceOne_Test3", + "operationId": "TestService_Test12", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/examplev1Foo" + "$ref": "#/definitions/v1Foo" } } }, @@ -5169,18 +4833,18 @@ } ], "tags": [ - "TestServiceOne" + "TestService" ] } }, - "/d/first": { + "/a/second": { "get": { - "operationId": "TestServiceOne_Test1", + "operationId": "TestService_Test2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/examplev1Foo" + "$ref": "#/definitions/v1Foo" } } }, @@ -5193,18 +4857,18 @@ } ], "tags": [ - "TestServiceOne" + "TestService" ] } }, - "/e/second": { + "/z/zAdditional": { "get": { - "operationId": "TestServiceOne_Test2", + "operationId": "TestService_Test22", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/examplev1Foo" + "$ref": "#/definitions/v1Foo" } } }, @@ -5217,18 +4881,18 @@ } ], "tags": [ - "TestServiceOne" + "TestService" ] } }, - "/g/third": { + "/c/third": { "get": { - "operationId": "TestServiceTwo_Test3", + "operationId": "TestService_Test3", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/examplev1Foo" + "$ref": "#/definitions/v1Foo" } } }, @@ -5241,18 +4905,18 @@ } ], "tags": [ - "TestServiceTwo" + "TestService" ] } }, - "/z/zAdditional": { + "/b/bAdditional": { "get": { - "operationId": "TestService_Test22", + "operationId": "TestService_Test32", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/examplev2Foo" + "$ref": "#/definitions/v1Foo" } } }, @@ -5271,15 +4935,7 @@ } }, "definitions": { - "examplev1Foo": { - "type": "object", - "properties": { - "bar": { - "type": "string" - } - } - }, - "examplev2Foo": { + "v1Foo": { "type": "object", "properties": { "bar": { @@ -5290,6 +4946,388 @@ } } +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +2025/02/18 22:47:31 ERROR: no message found: Status +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +=== CONT TestGenerateRPCOrderPreservedAdditionalBindings/yaml +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +2025/02/18 22:47:31 ERROR: no message found: Status +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +=== NAME TestGenerateRPCOrderPreservedMultipleServices/yaml + generator_test.go:620: swagger: "2.0" + info: + title: exampleproto/v1/example.proto + version: version not set + tags: + - name: TestServiceOne + - name: TestServiceTwo + consumes: + - application/json + produces: + - application/json + paths: + /d/first: + get: + operationId: TestServiceOne_Test1 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/v1Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestServiceOne + /e/second: + get: + operationId: TestServiceOne_Test2 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/v1Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestServiceOne + /c/third: + get: + operationId: TestServiceOne_Test3 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/v1Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestServiceOne + /b/first: + get: + operationId: TestServiceTwo_Test1 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/v1Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestServiceTwo + /a/second: + get: + operationId: TestServiceTwo_Test2 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/v1Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestServiceTwo + /g/third: + get: + operationId: TestServiceTwo_Test3 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/v1Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestServiceTwo + definitions: + v1Foo: + type: object + properties: + bar: + type: string + +--- PASS: TestGenerateRPCOrderPreservedMultipleServices (0.00s) + --- PASS: TestGenerateRPCOrderPreservedMultipleServices/json (0.01s) + --- PASS: TestGenerateRPCOrderPreservedMultipleServices/yaml (0.01s) +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +=== NAME TestGenerateRPCOrderNotPreservedMultipleServices/yaml + generator_test.go:749: swagger: "2.0" + info: + title: exampleproto/v1/example.proto + version: version not set + tags: + - name: TestServiceOne + - name: TestServiceTwo + consumes: + - application/json + produces: + - application/json + paths: + /a/second: + get: + operationId: TestServiceTwo_Test2 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/v1Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestServiceTwo + /b/first: + get: + operationId: TestServiceTwo_Test1 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/v1Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestServiceTwo + /c/third: + get: + operationId: TestServiceOne_Test3 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/v1Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestServiceOne + /d/first: + get: + operationId: TestServiceOne_Test1 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/v1Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestServiceOne + /e/second: + get: + operationId: TestServiceOne_Test2 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/v1Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestServiceOne + /g/third: + get: + operationId: TestServiceTwo_Test3 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/v1Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestServiceTwo + definitions: + v1Foo: + type: object + properties: + bar: + type: string + +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +2025/02/18 22:47:31 ERROR: no message found: Status +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +=== NAME TestGenerateRPCOrderPreservedAdditionalBindings/yaml + generator_test.go:1168: swagger: "2.0" + info: + title: exampleproto/v1/example.proto + version: version not set + tags: + - name: TestService + consumes: + - application/json + produces: + - application/json + paths: + /b/first: + get: + operationId: TestService_Test1 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/v1Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestService + /a/additional: + get: + operationId: TestService_Test12 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/v1Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestService + /a/second: + get: + operationId: TestService_Test2 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/v1Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestService + /z/zAdditional: + get: + operationId: TestService_Test22 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/v1Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestService + /c/third: + get: + operationId: TestService_Test3 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/v1Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestService + /b/bAdditional: + get: + operationId: TestService_Test32 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/v1Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestService + definitions: + v1Foo: + type: object + properties: + bar: + type: string + +--- PASS: TestGenerateRPCOrderPreservedAdditionalBindings (0.02s) + --- PASS: TestGenerateRPCOrderPreservedAdditionalBindings/json (0.00s) + --- PASS: TestGenerateRPCOrderPreservedAdditionalBindings/yaml (0.02s) +--- PASS: TestGenerateRPCOrderNotPreservedMultipleServices (0.01s) + --- PASS: TestGenerateRPCOrderNotPreservedMultipleServices/json (0.03s) + --- PASS: TestGenerateRPCOrderNotPreservedMultipleServices/yaml (0.03s) === NAME TestGenerateRPCOrderPreservedMergeFiles/yaml generator_test.go:906: swagger: "2.0" info: @@ -5405,11 +5443,8 @@ type: string --- PASS: TestGenerateRPCOrderPreservedMergeFiles (0.00s) - --- PASS: TestGenerateRPCOrderPreservedMergeFiles/json (0.00s) - --- PASS: TestGenerateRPCOrderPreservedMergeFiles/yaml (0.00s) ---- PASS: TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices (0.00s) - --- PASS: TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/yaml (0.01s) - --- PASS: TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/json (0.02s) + --- PASS: TestGenerateRPCOrderPreservedMergeFiles/json (0.02s) + --- PASS: TestGenerateRPCOrderPreservedMergeFiles/yaml (0.06s) === RUN FuzzRemoveInternalComments === RUN FuzzRemoveInternalComments/seed#0 === RUN FuzzRemoveInternalComments/seed#1 @@ -5423,8 +5458,7 @@ --- PASS: FuzzRemoveInternalComments/seed#3 (0.00s) --- PASS: FuzzRemoveInternalComments/seed#4 (0.00s) PASS -ok github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2/internal/genopenapi 0.245s -? github.com/grpc-ecosystem/grpc-gateway/runtime/internal/examplepb [no test files] +ok github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2/internal/genopenapi 0.894s === RUN TestFieldMaskFromRequestBody === RUN TestFieldMaskFromRequestBody/empty === RUN TestFieldMaskFromRequestBody/EmptyMessage @@ -5440,21 +5474,21 @@ === RUN TestFieldMaskFromRequestBody/complex === RUN TestFieldMaskFromRequestBody/protobuf-any === RUN TestFieldMaskFromRequestBody/repeated-protobuf-any ---- PASS: TestFieldMaskFromRequestBody (0.01s) - --- PASS: TestFieldMaskFromRequestBody/empty (0.00s) +--- PASS: TestFieldMaskFromRequestBody (0.06s) + --- PASS: TestFieldMaskFromRequestBody/empty (0.01s) --- PASS: TestFieldMaskFromRequestBody/EmptyMessage (0.00s) --- PASS: TestFieldMaskFromRequestBody/simple (0.00s) --- PASS: TestFieldMaskFromRequestBody/NonStandardMessage (0.00s) --- PASS: TestFieldMaskFromRequestBody/NonStandardMessageWithJSONNames (0.00s) - --- PASS: TestFieldMaskFromRequestBody/nested (0.00s) + --- PASS: TestFieldMaskFromRequestBody/nested (0.01s) --- PASS: TestFieldMaskFromRequestBody/struct (0.00s) --- PASS: TestFieldMaskFromRequestBody/NonStandardMessageWithJSONNamesForStruct (0.00s) - --- PASS: TestFieldMaskFromRequestBody/value (0.00s) + --- PASS: TestFieldMaskFromRequestBody/value (0.01s) --- PASS: TestFieldMaskFromRequestBody/map (0.00s) --- PASS: TestFieldMaskFromRequestBody/deeply-nested (0.00s) - --- PASS: TestFieldMaskFromRequestBody/complex (0.00s) + --- PASS: TestFieldMaskFromRequestBody/complex (0.01s) --- PASS: TestFieldMaskFromRequestBody/protobuf-any (0.00s) - --- PASS: TestFieldMaskFromRequestBody/repeated-protobuf-any (0.00s) + --- PASS: TestFieldMaskFromRequestBody/repeated-protobuf-any (0.01s) === RUN TestFieldMaskRepeatedFieldsLast === RUN TestFieldMaskRepeatedFieldsLast/map === RUN TestFieldMaskRepeatedFieldsLast/slice @@ -5470,19 +5504,19 @@ === RUN TestNewPattern --- PASS: TestNewPattern (0.00s) === RUN TestNewPatternWithWrongOp -2025/02/18 22:40:34 ERROR: invalid opcode: -1 -2025/02/18 22:40:34 ERROR: invalid opcode: 6 -2025/02/18 22:40:34 ERROR: odd number of ops codes: 1 -2025/02/18 22:40:34 ERROR: negative literal index: -1 -2025/02/18 22:40:34 ERROR: negative literal index: 1 -2025/02/18 22:40:34 ERROR: negative concat size: -1 -2025/02/18 22:40:34 ERROR: variable name index out of bound: -1 -2025/02/18 22:40:34 ERROR: variable name index out of bound: 1 -2025/02/18 22:40:34 ERROR: pushM appears twice +2025/02/18 22:47:30 ERROR: invalid opcode: -1 +2025/02/18 22:47:30 ERROR: invalid opcode: 6 +2025/02/18 22:47:30 ERROR: odd number of ops codes: 1 +2025/02/18 22:47:30 ERROR: negative literal index: -1 +2025/02/18 22:47:30 ERROR: negative literal index: 1 +2025/02/18 22:47:30 ERROR: negative concat size: -1 +2025/02/18 22:47:30 ERROR: variable name index out of bound: -1 +2025/02/18 22:47:30 ERROR: variable name index out of bound: 1 +2025/02/18 22:47:30 ERROR: pushM appears twice --- PASS: TestNewPatternWithWrongOp (0.00s) === RUN TestNewPatternWithStackUnderflow -2025/02/18 22:40:34 ERROR: stack underflow -2025/02/18 22:40:34 ERROR: stack underflow +2025/02/18 22:47:30 ERROR: stack underflow +2025/02/18 22:47:30 ERROR: stack underflow --- PASS: TestNewPatternWithStackUnderflow (0.00s) === RUN TestMatch --- PASS: TestMatch (0.00s) @@ -5544,16 +5578,16 @@ --- PASS: TestConvertDuration/JSON_bool (0.00s) === RUN TestDefaultHTTPError === RUN TestDefaultHTTPError/0 -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context === RUN TestDefaultHTTPError/1 -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context === RUN TestDefaultHTTPError/2 -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context === RUN TestDefaultHTTPError/3 -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context === RUN TestDefaultHTTPError/4 -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context ---- PASS: TestDefaultHTTPError (0.00s) +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context +--- PASS: TestDefaultHTTPError (0.01s) --- PASS: TestDefaultHTTPError/0 (0.00s) --- PASS: TestDefaultHTTPError/1 (0.00s) --- PASS: TestDefaultHTTPError/2 (0.00s) @@ -5611,7 +5645,7 @@ === RUN TestJSONBuiltinsnmarshal --- PASS: TestJSONBuiltinsnmarshal (0.00s) === RUN TestJSONBuiltinUnmarshalField ---- PASS: TestJSONBuiltinUnmarshalField (0.00s) +--- PASS: TestJSONBuiltinUnmarshalField (0.02s) === RUN TestJSONBuiltinUnmarshalFieldKnownErrors --- PASS: TestJSONBuiltinUnmarshalFieldKnownErrors (0.00s) === RUN TestJSONBuiltinEncoder @@ -5628,24 +5662,24 @@ === RUN TestJSONPbMarshal/2 === RUN TestJSONPbMarshal/3 === RUN TestJSONPbMarshal/4 ---- PASS: TestJSONPbMarshal (0.01s) +--- PASS: TestJSONPbMarshal (0.03s) --- PASS: TestJSONPbMarshal/0 (0.00s) - --- PASS: TestJSONPbMarshal/1 (0.00s) - --- PASS: TestJSONPbMarshal/2 (0.00s) + --- PASS: TestJSONPbMarshal/1 (0.01s) + --- PASS: TestJSONPbMarshal/2 (0.01s) --- PASS: TestJSONPbMarshal/3 (0.00s) - --- PASS: TestJSONPbMarshal/4 (0.00s) + --- PASS: TestJSONPbMarshal/4 (0.01s) === RUN TestJSONPbMarshalFields --- PASS: TestJSONPbMarshalFields (0.00s) === RUN TestJSONPbUnmarshal ---- PASS: TestJSONPbUnmarshal (0.00s) +--- PASS: TestJSONPbUnmarshal (0.01s) === RUN TestJSONPbUnmarshalFields ---- PASS: TestJSONPbUnmarshalFields (0.00s) +--- PASS: TestJSONPbUnmarshalFields (0.01s) === RUN TestJSONPbEncoder ---- PASS: TestJSONPbEncoder (0.01s) +--- PASS: TestJSONPbEncoder (0.02s) === RUN TestJSONPbEncoderFields --- PASS: TestJSONPbEncoderFields (0.00s) === RUN TestJSONPbDecoder ---- PASS: TestJSONPbDecoder (0.00s) +--- PASS: TestJSONPbDecoder (0.01s) === RUN TestJSONPbDecoderFields --- PASS: TestJSONPbDecoderFields (0.00s) === RUN TestJSONPbDecoderUnknownField @@ -5666,7 +5700,7 @@ === RUN TestJSONPbMarshalResponseBodies/10 === RUN TestJSONPbMarshalResponseBodies/11 === RUN TestJSONPbMarshalResponseBodies/12 ---- PASS: TestJSONPbMarshalResponseBodies (0.00s) +--- PASS: TestJSONPbMarshalResponseBodies (0.02s) --- PASS: TestJSONPbMarshalResponseBodies/0 (0.00s) --- PASS: TestJSONPbMarshalResponseBodies/1 (0.00s) --- PASS: TestJSONPbMarshalResponseBodies/2 (0.00s) @@ -5688,45 +5722,45 @@ --- PASS: TestMarshalerForRequest (0.00s) === RUN TestMuxServeHTTP === RUN TestMuxServeHTTP/0 -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context === RUN TestMuxServeHTTP/1 === RUN TestMuxServeHTTP/2 -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context === RUN TestMuxServeHTTP/3 === RUN TestMuxServeHTTP/4 === RUN TestMuxServeHTTP/5 -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context === RUN TestMuxServeHTTP/6 -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context === RUN TestMuxServeHTTP/7 === RUN TestMuxServeHTTP/8 -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context === RUN TestMuxServeHTTP/9 === RUN TestMuxServeHTTP/10 === RUN TestMuxServeHTTP/11 === RUN TestMuxServeHTTP/12 -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context === RUN TestMuxServeHTTP/13 -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context === RUN TestMuxServeHTTP/14 === RUN TestMuxServeHTTP/15 === RUN TestMuxServeHTTP/16 === RUN TestMuxServeHTTP/17 === RUN TestMuxServeHTTP/18 === RUN TestMuxServeHTTP/19 -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context === RUN TestMuxServeHTTP/20 === RUN TestMuxServeHTTP/21 -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context === RUN TestMuxServeHTTP/22 === RUN TestMuxServeHTTP/23 -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context === RUN TestMuxServeHTTP/24 -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context === RUN TestMuxServeHTTP/25 === RUN TestMuxServeHTTP/26 === RUN TestMuxServeHTTP/27 ---- PASS: TestMuxServeHTTP (0.00s) +--- PASS: TestMuxServeHTTP (0.02s) --- PASS: TestMuxServeHTTP/0 (0.00s) --- PASS: TestMuxServeHTTP/1 (0.00s) --- PASS: TestMuxServeHTTP/2 (0.00s) @@ -5756,7 +5790,7 @@ --- PASS: TestMuxServeHTTP/26 (0.00s) --- PASS: TestMuxServeHTTP/27 (0.00s) === RUN TestServeHTTP_WithMethodOverrideAndFormParsing -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context --- PASS: TestServeHTTP_WithMethodOverrideAndFormParsing (0.00s) === RUN TestDefaultHeaderMatcher === RUN TestDefaultHeaderMatcher/permanent_HTTP_header_should_return_prefixed @@ -5780,14 +5814,14 @@ --- PASS: TestServeMux_HandlePath/Invalid_Endpoint (0.00s) === RUN TestWithHealthzEndpoint_codes === RUN TestWithHealthzEndpoint_codes/Test_grpc_error_code -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context === RUN TestWithHealthzEndpoint_codes/Test_HealthCheckResponse_SERVING === RUN TestWithHealthzEndpoint_codes/Test_HealthCheckResponse_NOT_SERVING -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context === RUN TestWithHealthzEndpoint_codes/Test_HealthCheckResponse_UNKNOWN -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context === RUN TestWithHealthzEndpoint_codes/Test_HealthCheckResponse_SERVICE_UNKNOWN -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context --- PASS: TestWithHealthzEndpoint_codes (0.00s) --- PASS: TestWithHealthzEndpoint_codes/Test_grpc_error_code (0.00s) --- PASS: TestWithHealthzEndpoint_codes/Test_HealthCheckResponse_SERVING (0.00s) @@ -5796,43 +5830,43 @@ --- PASS: TestWithHealthzEndpoint_codes/Test_HealthCheckResponse_SERVICE_UNKNOWN (0.00s) === RUN TestWithHealthEndpointAt_consistentWithHealthz === RUN TestWithHealthEndpointAt_consistentWithHealthz/Test_grpc_error_code -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context === RUN TestWithHealthEndpointAt_consistentWithHealthz/Test_HealthCheckResponse_SERVING === RUN TestWithHealthEndpointAt_consistentWithHealthz/Test_HealthCheckResponse_NOT_SERVING -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context === RUN TestWithHealthEndpointAt_consistentWithHealthz/Test_HealthCheckResponse_UNKNOWN -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context === RUN TestWithHealthEndpointAt_consistentWithHealthz/Test_HealthCheckResponse_SERVICE_UNKNOWN -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context ---- PASS: TestWithHealthEndpointAt_consistentWithHealthz (0.00s) +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context +--- PASS: TestWithHealthEndpointAt_consistentWithHealthz (0.02s) --- PASS: TestWithHealthEndpointAt_consistentWithHealthz/Test_grpc_error_code (0.00s) --- PASS: TestWithHealthEndpointAt_consistentWithHealthz/Test_HealthCheckResponse_SERVING (0.00s) --- PASS: TestWithHealthEndpointAt_consistentWithHealthz/Test_HealthCheckResponse_NOT_SERVING (0.00s) --- PASS: TestWithHealthEndpointAt_consistentWithHealthz/Test_HealthCheckResponse_UNKNOWN (0.00s) - --- PASS: TestWithHealthEndpointAt_consistentWithHealthz/Test_HealthCheckResponse_SERVICE_UNKNOWN (0.00s) + --- PASS: TestWithHealthEndpointAt_consistentWithHealthz/Test_HealthCheckResponse_SERVICE_UNKNOWN (0.01s) === RUN TestWithHealthzEndpoint_serviceParam -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context --- PASS: TestWithHealthzEndpoint_serviceParam (0.00s) === RUN TestWithHealthzEndpoint_header === RUN TestWithHealthzEndpoint_header/Test_grpc_error_code -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context === RUN TestWithHealthzEndpoint_header/Test_HealthCheckResponse_SERVING === RUN TestWithHealthzEndpoint_header/Test_HealthCheckResponse_NOT_SERVING -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context === RUN TestWithHealthzEndpoint_header/Test_HealthCheckResponse_UNKNOWN -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context === RUN TestWithHealthzEndpoint_header/Test_HealthCheckResponse_SERVICE_UNKNOWN -2025/02/18 22:40:34 ERROR: Failed to extract ServerMetadata from context ---- PASS: TestWithHealthzEndpoint_header (0.00s) +2025/02/18 22:47:30 ERROR: Failed to extract ServerMetadata from context +--- PASS: TestWithHealthzEndpoint_header (0.01s) --- PASS: TestWithHealthzEndpoint_header/Test_grpc_error_code (0.00s) --- PASS: TestWithHealthzEndpoint_header/Test_HealthCheckResponse_SERVING (0.00s) --- PASS: TestWithHealthzEndpoint_header/Test_HealthCheckResponse_NOT_SERVING (0.00s) --- PASS: TestWithHealthzEndpoint_header/Test_HealthCheckResponse_UNKNOWN (0.00s) - --- PASS: TestWithHealthzEndpoint_header/Test_HealthCheckResponse_SERVICE_UNKNOWN (0.00s) + --- PASS: TestWithHealthzEndpoint_header/Test_HealthCheckResponse_SERVICE_UNKNOWN (0.01s) === RUN TestPopulateParameters === RUN TestPopulateParameters/0 === RUN TestPopulateParameters/1 @@ -5852,10 +5886,10 @@ === RUN TestPopulateParameters/15 === RUN TestPopulateParameters/16 === RUN TestPopulateParameters/17 ---- PASS: TestPopulateParameters (0.02s) - --- PASS: TestPopulateParameters/0 (0.01s) - --- PASS: TestPopulateParameters/1 (0.00s) - --- PASS: TestPopulateParameters/2 (0.00s) +--- PASS: TestPopulateParameters (0.06s) + --- PASS: TestPopulateParameters/0 (0.02s) + --- PASS: TestPopulateParameters/1 (0.01s) + --- PASS: TestPopulateParameters/2 (0.01s) --- PASS: TestPopulateParameters/3 (0.00s) --- PASS: TestPopulateParameters/4 (0.00s) --- PASS: TestPopulateParameters/5 (0.00s) @@ -5877,11 +5911,11 @@ --- PASS: TestPopulateQueryParametersWithInvalidNestedParameters (0.00s) === CONT TestOutgoingHeaderMatcher === RUN TestOutgoingHeaderMatcher/default_matcher -=== CONT TestOutgoingTrailerMatcher === PAUSE TestOutgoingHeaderMatcher/default_matcher === RUN TestOutgoingHeaderMatcher/custom_matcher === PAUSE TestOutgoingHeaderMatcher/custom_matcher === CONT TestOutgoingHeaderMatcher/default_matcher +=== CONT TestOutgoingTrailerMatcher === RUN TestOutgoingTrailerMatcher/default_matcher,_caller_accepts === PAUSE TestOutgoingTrailerMatcher/default_matcher,_caller_accepts === RUN TestOutgoingTrailerMatcher/default_matcher,_caller_rejects @@ -5920,7 +5954,7 @@ --- PASS: FuzzPopulateQueryParameters/seed#7 (0.00s) --- PASS: FuzzPopulateQueryParameters/seed#8 (0.00s) PASS -ok github.com/grpc-ecosystem/grpc-gateway/runtime 0.097s +ok github.com/grpc-ecosystem/grpc-gateway/runtime 0.396s === RUN TestStringArrayFlag === RUN TestStringArrayFlag/No_Value === RUN TestStringArrayFlag/Single_Value @@ -5936,7 +5970,7 @@ === RUN TestAdd --- PASS: TestAdd (0.00s) PASS -ok github.com/grpc-ecosystem/grpc-gateway/utilities 0.006s +ok github.com/grpc-ecosystem/grpc-gateway/utilities 0.028s create-stamp debian/debhelper-build-stamp dh_testroot -O--buildsystem=golang dh_prep -O--buildsystem=golang @@ -5969,8 +6003,8 @@ dpkg-gencontrol: warning: package golang-grpc-gateway: substitution variable ${misc:Static-Built-Using} unused, but is defined dh_md5sums -O--buildsystem=golang dh_builddeb -O--buildsystem=golang -dpkg-deb: building package 'golang-grpc-gateway' in '../golang-grpc-gateway_2.20.0-2_armhf.deb'. dpkg-deb: building package 'golang-github-grpc-ecosystem-grpc-gateway-dev' in '../golang-github-grpc-ecosystem-grpc-gateway-dev_2.20.0-2_all.deb'. +dpkg-deb: building package 'golang-grpc-gateway' in '../golang-grpc-gateway_2.20.0-2_armhf.deb'. dpkg-genbuildinfo --build=binary -O../golang-github-grpc-ecosystem-grpc-gateway_2.20.0-2_armhf.buildinfo dpkg-genchanges --build=binary -O../golang-github-grpc-ecosystem-grpc-gateway_2.20.0-2_armhf.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -5978,12 +6012,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/31113/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/31113/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/31751 and its subdirectories -I: Current time: Tue Feb 18 10:41:06 -12 2025 -I: pbuilder-time-stamp: 1739918466 +I: removing directory /srv/workspace/pbuilder/31113 and its subdirectories +I: Current time: Wed Feb 19 12:48:45 +14 2025 +I: pbuilder-time-stamp: 1739918925