Diff of the two buildlogs: -- --- b1/build.log 2024-07-28 19:21:14.649566299 +0000 +++ b2/build.log 2024-07-28 19:29:15.241165991 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sun Jul 28 07:17:07 -12 2024 -I: pbuilder-time-stamp: 1722194227 +I: Current time: Mon Jul 29 09:21:32 +14 2024 +I: pbuilder-time-stamp: 1722194492 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -28,52 +28,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/8135/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/18909/tmp/hooks/D01_modify_environment starting +debug: Running on virt32b. +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 Jul 28 19:21 /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/18909/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/18909/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='unstable' - 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]="21" [3]="1" [4]="release" [5]="arm-unknown-linux-gnueabihf") + BASH_VERSION='5.2.21(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=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=arm + HOST_ARCH=armhf IFS=' ' - INVOCATION_ID='cd96b276ae0e46a39af3fc2b5eadc384' - 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='8135' - PS1='# ' - PS2='> ' + INVOCATION_ID=3580e9e3078742a2b93108c565f6ef51 + 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=18909 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.3GCKYafZ/pbuilderrc_eDJ4 --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.3GCKYafZ/b1 --logfile b1/build.log golang-github-grpc-ecosystem-grpc-gateway_2.20.0-2.dsc' - SUDO_GID='114' - SUDO_UID='108' - 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.3GCKYafZ/pbuilderrc_dZ8v --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.3GCKYafZ/b2 --logfile b2/build.log golang-github-grpc-ecosystem-grpc-gateway_2.20.0-2.dsc' + SUDO_GID=112 + SUDO_UID=106 + 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 virt64a 6.1.0-23-arm64 #1 SMP Debian 6.1.99-1 (2024-07-15) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-23-armmp-lpae #1 SMP Debian 6.1.99-1 (2024-07-15) armv7l GNU/Linux I: ls -l /bin lrwxrwxrwx 1 root root 7 Jun 5 22:35 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/8135/tmp/hooks/D02_print_environment finished +I: user script /srv/workspace/pbuilder/18909/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -204,7 +236,7 @@ Get: 73 http://deb.debian.org/debian unstable/main armhf golang-google-genproto-dev all 0.0~git20210726.e7812ac-4 [5301 kB] Get: 74 http://deb.debian.org/debian unstable/main armhf golang-github-google-cel-go-dev all 0.18.2+ds-4 [400 kB] Get: 75 http://deb.debian.org/debian unstable/main armhf golang-github-rogpeppe-fastuuid-dev all 0.0~git20150106.0.6724a57-2.1 [4292 B] -Fetched 82.8 MB in 2s (50.0 MB/s) +Fetched 82.8 MB in 5s (17.9 MB/s) debconf: delaying package configuration, since apt-utils is not installed 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 ... 19508 files and directories currently installed.) @@ -519,7 +551,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/18909/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/18909/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 @@ -537,17 +573,17 @@ 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/goarch + 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/unsafeheader +internal/goarch internal/cpu internal/coverage/rtcov +internal/godebugs internal/abi internal/chacha8rand -internal/bytealg -internal/godebugs internal/goexperiment internal/goos +internal/bytealg runtime/internal/atomic runtime/internal/math runtime/internal/sys @@ -558,9 +594,9 @@ math/bits cmp internal/itoa -slices -unicode runtime +unicode +slices math internal/gover internal/goversion @@ -576,58 +612,64 @@ crypto/internal/boring/sig vendor/golang.org/x/crypto/cryptobyte/asn1 vendor/golang.org/x/crypto/internal/alias -crypto/subtle internal/reflectlite sync +crypto/subtle internal/testlog -internal/bisect google.golang.org/protobuf/internal/pragma +internal/bisect internal/singleflight runtime/cgo -internal/godebug errors +sort +internal/godebug internal/oserror io path -sort -syscall internal/safefilepath +syscall strings strconv +bytes time internal/syscall/unix internal/syscall/execenv reflect -bytes -io/fs -internal/poll bufio go/build/constraint -os text/tabwriter container/heap math/rand go/version internal/types/errors -internal/fmtsort -encoding/binary +io/fs +internal/poll hash hash/fnv -path/filepath -fmt -google.golang.org/protobuf/internal/detrand -github.com/grpc-ecosystem/grpc-gateway/internal/casing embed -hash/crc32 -encoding/base64 +os google.golang.org/protobuf/internal/editiondefaults -io/ioutil +hash/crc32 regexp/syntax golang.org/x/text/internal/tag golang.org/x/text/transform +regexp +path/filepath +internal/fmtsort +encoding/binary +fmt +github.com/grpc-ecosystem/grpc-gateway/internal/casing +io/ioutil +context +google.golang.org/protobuf/internal/detrand +encoding/base64 +vendor/golang.org/x/net/dns/dnsmessage +internal/intern +golang.org/x/sys/unix +net/netip go/token -go/doc/comment go/scanner +go/doc/comment go/ast math/big internal/buildcfg @@ -639,189 +681,183 @@ go/printer go/constant google.golang.org/protobuf/internal/encoding/messageset +go/types google.golang.org/protobuf/internal/strs google.golang.org/protobuf/internal/encoding/text -go/types google.golang.org/protobuf/internal/genid google.golang.org/protobuf/internal/order google.golang.org/protobuf/reflect/protoregistry google.golang.org/protobuf/runtime/protoiface -google.golang.org/protobuf/internal/encoding/defval google.golang.org/protobuf/internal/descfmt +google.golang.org/protobuf/internal/encoding/defval google.golang.org/protobuf/proto google.golang.org/protobuf/internal/descopts compress/flate +encoding/json google.golang.org/protobuf/encoding/prototext google.golang.org/protobuf/internal/filedesc compress/gzip -encoding/json -google.golang.org/protobuf/internal/encoding/tag google.golang.org/protobuf/internal/version -regexp -google.golang.org/protobuf/internal/impl google.golang.org/protobuf/internal/encoding/json -google.golang.org/protobuf/encoding/protojson 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 +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 -golang.org/x/text/language -golang.org/x/text/internal google.golang.org/grpc/internal/grpclog -golang.org/x/text/cases log +golang.org/x/text/language google.golang.org/grpc/grpclog gopkg.in/yaml.v3 +golang.org/x/text/internal +golang.org/x/text/cases go/format -google.golang.org/protobuf/internal/filetype net/url -google.golang.org/protobuf/runtime/protoimpl text/template/parse -google.golang.org/protobuf/types/descriptorpb -google.golang.org/protobuf/types/dynamicpb -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 -google.golang.org/protobuf/types/known/structpb -github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2/options -github.com/grpc-ecosystem/grpc-gateway/internal/descriptor/apiconfig -text/template -google.golang.org/protobuf/compiler/protogen -github.com/grpc-ecosystem/grpc-gateway/internal/descriptor/openapiconfig -github.com/grpc-ecosystem/grpc-gateway/internal/codegenerator -google.golang.org/genproto/googleapis/api/visibility -github.com/grpc-ecosystem/grpc-gateway/internal/descriptor -google.golang.org/protobuf/types/known/anypb -context -google.golang.org/genproto/googleapis/rpc/status -vendor/golang.org/x/net/dns/dnsmessage -internal/intern -net/netip -github.com/grpc-ecosystem/grpc-gateway/internal/generator -github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/internal/gengateway -google.golang.org/genproto/googleapis/api/httpbody net -golang.org/x/sys/unix -github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway google.golang.org/grpc/connectivity golang.org/x/net/internal/timeseries +text/template html -html/template crypto crypto/cipher crypto/internal/boring crypto/internal/randutil crypto/rand +google.golang.org/protobuf/internal/filetype crypto/aes crypto/des +google.golang.org/protobuf/runtime/protoimpl crypto/internal/edwards25519/field +html/template +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 crypto/internal/nistec/fiat +google.golang.org/genproto/googleapis/rpc/status +google.golang.org/genproto/googleapis/api/httpbody crypto/internal/bigmod +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 +google.golang.org/protobuf/compiler/protogen +github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2/options +github.com/grpc-ecosystem/grpc-gateway/internal/codegenerator +google.golang.org/genproto/googleapis/api/visibility +crypto/internal/nistec crypto/internal/boring/bbig crypto/sha512 +github.com/grpc-ecosystem/grpc-gateway/internal/descriptor/openapiconfig encoding/asn1 +github.com/grpc-ecosystem/grpc-gateway/internal/descriptor +crypto/ecdh +crypto/elliptic vendor/golang.org/x/crypto/cryptobyte crypto/internal/edwards25519 +github.com/grpc-ecosystem/grpc-gateway/internal/generator +crypto/ecdsa +github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/internal/gengateway crypto/ed25519 crypto/hmac crypto/md5 crypto/rc4 +github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway crypto/rsa -crypto/internal/nistec crypto/sha1 crypto/sha256 crypto/dsa encoding/hex -crypto/x509/pkix encoding/pem -crypto/ecdh -crypto/elliptic +crypto/x509/pkix +net/textproto +google.golang.org/grpc/internal +crypto/x509 +google.golang.org/grpc/codes vendor/golang.org/x/crypto/chacha20 +github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2/internal/genopenapi vendor/golang.org/x/crypto/internal/poly1305 -crypto/ecdsa vendor/golang.org/x/crypto/chacha20poly1305 vendor/golang.org/x/crypto/hkdf vendor/golang.org/x/text/transform vendor/golang.org/x/text/unicode/bidi -net/textproto -google.golang.org/grpc/internal -google.golang.org/grpc/codes -github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2/internal/genopenapi -crypto/x509 -vendor/golang.org/x/text/secure/bidirule vendor/golang.org/x/text/unicode/norm -crypto/tls -github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2 -vendor/golang.org/x/net/idna -vendor/golang.org/x/net/http/httpguts -vendor/golang.org/x/net/http/httpproxy +vendor/golang.org/x/text/secure/bidirule vendor/golang.org/x/net/http2/hpack +crypto/tls mime +github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2 mime/quotedprintable mime/multipart +vendor/golang.org/x/net/idna net/http/internal net/http/internal/ascii google.golang.org/grpc/backoff google.golang.org/grpc/attributes google.golang.org/grpc/metadata google.golang.org/grpc/internal/grpcrand -google.golang.org/protobuf/protoadapt google.golang.org/grpc/internal/grpcutil -google.golang.org/grpc/internal/backoff google.golang.org/grpc/encoding +google.golang.org/protobuf/protoadapt +vendor/golang.org/x/net/http/httpguts +vendor/golang.org/x/net/http/httpproxy +google.golang.org/grpc/encoding/proto +google.golang.org/grpc/internal/backoff google.golang.org/grpc/internal/balancerload 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 -google.golang.org/grpc/internal/status github.com/golang/protobuf/ptypes/timestamp -google.golang.org/grpc/status +google.golang.org/grpc/internal/status google.golang.org/grpc/binarylog/grpc_binarylog_v1 -net/http/httptrace -google.golang.org/grpc/internal/credentials -net/http -google.golang.org/grpc/credentials -google.golang.org/grpc/internal/binarylog -google.golang.org/grpc/internal/channelz -google.golang.org/grpc/resolver -google.golang.org/grpc/credentials/insecure +google.golang.org/grpc/status google.golang.org/grpc/internal/buffer -google.golang.org/grpc/channelz -google.golang.org/grpc/internal/grpcsync -google.golang.org/grpc/balancer google.golang.org/grpc/internal/idle -google.golang.org/grpc/balancer/base -google.golang.org/grpc/internal/metadata -google.golang.org/grpc/balancer/roundrobin -google.golang.org/grpc/internal/balancer/gracefulswitch +google.golang.org/grpc/internal/grpcsync google.golang.org/grpc/internal/pretty -google.golang.org/grpc/internal/serviceconfig -google.golang.org/grpc/internal/resolver/passthrough -google.golang.org/grpc/internal/transport/networktype -google.golang.org/grpc/internal/resolver -google.golang.org/grpc/internal/resolver/unix +google.golang.org/grpc/internal/binarylog golang.org/x/text/unicode/bidi golang.org/x/net/http2/hpack -google.golang.org/grpc/internal/syscall google.golang.org/grpc/keepalive -golang.org/x/text/secure/bidirule -google.golang.org/grpc/peer +google.golang.org/grpc/internal/syscall google.golang.org/grpc/stats -golang.org/x/net/idna google.golang.org/grpc/tap -google.golang.org/grpc/balancer/grpclb/state google.golang.org/grpc/internal/envconfig google.golang.org/grpc/internal/resolver/dns/internal -google.golang.org/grpc/internal/resolver/dns -google.golang.org/grpc/resolver/dns google.golang.org/protobuf/types/known/fieldmaskpb google.golang.org/protobuf/types/known/wrapperspb -golang.org/x/net/http/httpguts +golang.org/x/text/secure/bidirule +golang.org/x/net/idna 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 +google.golang.org/grpc/internal/channelz +google.golang.org/grpc/credentials/insecure +google.golang.org/grpc/internal/metadata +google.golang.org/grpc/internal/resolver/passthrough +google.golang.org/grpc/internal/transport/networktype +golang.org/x/net/http/httpguts +google.golang.org/grpc/internal/resolver/unix +google.golang.org/grpc/peer +google.golang.org/grpc/balancer/grpclb/state +google.golang.org/grpc/internal/resolver/dns +google.golang.org/grpc/channelz +google.golang.org/grpc/balancer +google.golang.org/grpc/resolver/dns +google.golang.org/grpc/balancer/base +google.golang.org/grpc/internal/serviceconfig +google.golang.org/grpc/internal/resolver +google.golang.org/grpc/balancer/roundrobin +google.golang.org/grpc/internal/balancer/gracefulswitch golang.org/x/net/trace net/http/httputil golang.org/x/net/http2 @@ -831,7 +867,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 @@ -845,17 +881,17 @@ --- 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.030s +ok github.com/grpc-ecosystem/grpc-gateway/internal/casing 0.048s === RUN TestParseRequest === RUN TestParseRequest/Empty_input_should_produce_empty_output === RUN TestParseRequest/Invalid_reader_should_produce_error === RUN TestParseRequest/Invalid_proto_message_should_produce_error ---- PASS: TestParseRequest (0.00s) +--- PASS: TestParseRequest (0.01s) --- PASS: TestParseRequest/Empty_input_should_produce_empty_output (0.00s) --- 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.054s ? 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 @@ -871,11 +907,11 @@ === RUN TestLoadOpenAPIConfigFromYAMLRejectInvalidYAML --- PASS: TestLoadOpenAPIConfigFromYAMLRejectInvalidYAML (0.00s) === RUN TestLoadOpenAPIConfigFromYAML ---- PASS: TestLoadOpenAPIConfigFromYAML (0.00s) +--- PASS: TestLoadOpenAPIConfigFromYAML (0.01s) === RUN TestLoadOpenAPIConfigFromYAMLUnknownKeys --- PASS: TestLoadOpenAPIConfigFromYAMLUnknownKeys (0.00s) === RUN TestLoadFile ---- PASS: TestLoadFile (0.00s) +--- PASS: TestLoadFile (0.01s) === RUN TestLoadFileNestedPackage --- PASS: TestLoadFileNestedPackage (0.00s) === RUN TestLoadFileWithDir @@ -909,7 +945,7 @@ === RUN TestRegisterOpenAPIOptions/error_if_message_does_not_exist === RUN TestRegisterOpenAPIOptions/error_if_service_does_not_exist === RUN TestRegisterOpenAPIOptions/error_if_field_does_not_exist ---- PASS: TestRegisterOpenAPIOptions (0.00s) +--- PASS: TestRegisterOpenAPIOptions (0.01s) --- PASS: TestRegisterOpenAPIOptions/handle_nil_options (0.00s) --- PASS: TestRegisterOpenAPIOptions/successfully_add_options_if_referenced_entity_exists (0.00s) --- PASS: TestRegisterOpenAPIOptions/reject_fully_qualified_names_with_leading_"." (0.00s) @@ -929,7 +965,7 @@ === RUN TestExtractServicesWithBodyPath --- PASS: TestExtractServicesWithBodyPath (0.00s) === RUN TestExtractServicesWithPathParam ---- PASS: TestExtractServicesWithPathParam (0.00s) +--- PASS: TestExtractServicesWithPathParam (0.01s) === RUN TestExtractServicesWithAdditionalBinding --- PASS: TestExtractServicesWithAdditionalBinding (0.00s) === RUN TestExtractServicesWithError @@ -942,7 +978,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 @@ -962,7 +998,7 @@ === RUN TestGoType --- PASS: TestGoType (0.00s) PASS -ok github.com/grpc-ecosystem/grpc-gateway/internal/descriptor 0.031s +ok github.com/grpc-ecosystem/grpc-gateway/internal/descriptor 0.104s ? github.com/grpc-ecosystem/grpc-gateway/internal/generator [no test files] === RUN TestCompile --- PASS: TestCompile (0.00s) @@ -979,10 +1015,10 @@ === RUN TestTemplateStringer --- PASS: TestTemplateStringer (0.00s) PASS -ok github.com/grpc-ecosystem/grpc-gateway/internal/httprule 0.007s +ok github.com/grpc-ecosystem/grpc-gateway/internal/httprule 0.028s ? 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.01s) === RUN TestApplyTemplateHeader --- PASS: TestApplyTemplateHeader (0.00s) === RUN TestApplyTemplateRequestWithoutClientStreaming @@ -1000,7 +1036,7 @@ === RUN TestDuplicatePathsInDifferentService --- PASS: TestDuplicatePathsInDifferentService (0.00s) PASS -ok github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/internal/gengateway 0.047s +ok github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/internal/gengateway 0.080s === RUN TestParseReqParam === RUN TestParseReqParam/Test_0 === RUN TestParseReqParam/Test_1 @@ -1030,8 +1066,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.021s +ok github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2 0.063s ? 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 @@ -1069,7 +1106,7 @@ === RUN TestMessageToQueryParametersNoRecursive --- PASS: TestMessageToQueryParametersNoRecursive (0.00s) === RUN TestMessageToQueryParametersRecursive ---- PASS: TestMessageToQueryParametersRecursive (0.11s) +--- PASS: TestMessageToQueryParametersRecursive (0.15s) === RUN TestMessageToQueryParametersWithJsonName --- PASS: TestMessageToQueryParametersWithJsonName (0.00s) === RUN TestMessageToQueryParametersWellKnownTypes @@ -1103,13 +1140,13 @@ === RUN TestValidateHeaderType --- PASS: TestValidateHeaderType (0.00s) === RUN TestValidateDefaultValueType ---- PASS: TestValidateDefaultValueType (0.00s) +--- PASS: TestValidateDefaultValueType (1.21s) === 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 [.google.protobuf.Any .google.rpc.Status .example.ExampleMessage .example.NestedMessage] +AllFQMNs [.google.rpc.Status .example.ExampleMessage .example.NestedMessage .google.protobuf.Any] --- PASS: TestApplyTemplateRequestWithoutClientStreaming (0.00s) === RUN TestApplyTemplateRequestWithClientStreaming ---- PASS: TestApplyTemplateRequestWithClientStreaming (0.00s) +--- PASS: TestApplyTemplateRequestWithClientStreaming (0.01s) === RUN TestApplyTemplateRequestWithServerStreamingAndNoStandardErrors --- PASS: TestApplyTemplateRequestWithServerStreamingAndNoStandardErrors (0.00s) === RUN TestApplyTemplateRequestWithUnusedReferences @@ -1117,8 +1154,8 @@ === RUN TestApplyTemplateRequestWithBodyQueryParameters === RUN TestApplyTemplateRequestWithBodyQueryParameters/book_in_body === RUN TestApplyTemplateRequestWithBodyQueryParameters/book_in_query ---- PASS: TestApplyTemplateRequestWithBodyQueryParameters (0.00s) - --- PASS: TestApplyTemplateRequestWithBodyQueryParameters/book_in_body (0.00s) +--- PASS: TestApplyTemplateRequestWithBodyQueryParameters (0.01s) + --- PASS: TestApplyTemplateRequestWithBodyQueryParameters/book_in_body (0.01s) --- PASS: TestApplyTemplateRequestWithBodyQueryParameters/book_in_query (0.00s) === RUN TestApplyTemplateWithRequestAndBodyParameters --- PASS: TestApplyTemplateWithRequestAndBodyParameters (0.00s) @@ -1127,17 +1164,17 @@ === 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/default_protobufAny_from_rpcStatus (0.00s) +--- PASS: TestApplyTemplateProtobufAny (0.01s) + --- PASS: TestApplyTemplateProtobufAny/default_protobufAny_from_rpcStatus (0.01s) --- PASS: TestApplyTemplateProtobufAny/protobufAny_referenced_in_message (0.00s) - --- PASS: TestApplyTemplateProtobufAny/protobufAny_referenced_in_message_with_default_errors_disabled (0.00s) + --- PASS: TestApplyTemplateProtobufAny/protobufAny_referenced_in_message_with_default_errors_disabled (0.01s) --- PASS: TestApplyTemplateProtobufAny/protobufAny_referenced_in_message_with_default_responses_disabled (0.00s) === RUN TestTemplateWithJsonCamelCase --- PASS: TestTemplateWithJsonCamelCase (0.00s) === RUN TestTemplateWithoutJsonCamelCase --- PASS: TestTemplateWithoutJsonCamelCase (0.00s) === RUN TestTemplateToOpenAPIPath ---- PASS: TestTemplateToOpenAPIPath (0.00s) +--- PASS: TestTemplateToOpenAPIPath (0.01s) === RUN TestResolveFullyQualifiedNameToOpenAPIName --- PASS: TestResolveFullyQualifiedNameToOpenAPIName (0.00s) === RUN TestFQMNToRegexpMap @@ -1145,7 +1182,7 @@ === RUN TestFQMNtoOpenAPIName --- PASS: TestFQMNtoOpenAPIName (0.00s) === RUN TestSchemaOfField ---- PASS: TestSchemaOfField (0.04s) +--- PASS: TestSchemaOfField (0.08s) === RUN TestRenderMessagesAsDefinition === RUN TestRenderMessagesAsDefinition/no_OpenAPI_options === RUN TestRenderMessagesAsDefinition/example_option @@ -1161,7 +1198,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) @@ -1221,28 +1258,28 @@ --- PASS: TestMessageOptionsWithGoTemplate/registered_OpenAPIOption (0.00s) --- PASS: TestMessageOptionsWithGoTemplate/registered_OpenAPIOption_with_go_template_args (0.00s) === RUN TestTagsWithGoTemplate -2024/07/28 19:20:22 ERROR: no message found: Status +2024/07/28 19:27:59 ERROR: no message found: Status --- PASS: TestTagsWithGoTemplate (0.00s) === RUN TestTemplateWithoutErrorDefinition -2024/07/28 19:20:22 ERROR: no message found: Status +2024/07/28 19:27:59 ERROR: no message found: Status --- PASS: TestTemplateWithoutErrorDefinition (0.00s) === RUN TestSingleServiceTemplateWithDuplicateHttp1Operations -2024/07/28 19:20:22 ERROR: no message found: Status +2024/07/28 19:27:59 ERROR: no message found: Status --- PASS: TestSingleServiceTemplateWithDuplicateHttp1Operations (0.00s) === RUN TestSingleServiceTemplateWithDuplicateInAllSupportedHttp1Operations -2024/07/28 19:20:22 ERROR: no message found: Status -2024/07/28 19:20:22 ERROR: no message found: Status -2024/07/28 19:20:22 ERROR: no message found: Status -2024/07/28 19:20:22 ERROR: no message found: Status -2024/07/28 19:20:22 ERROR: no message found: Status -2024/07/28 19:20:22 ERROR: no message found: Status -2024/07/28 19:20:22 ERROR: no message found: Status +2024/07/28 19:27:59 ERROR: no message found: Status +2024/07/28 19:27:59 ERROR: no message found: Status +2024/07/28 19:27:59 ERROR: no message found: Status +2024/07/28 19:27:59 ERROR: no message found: Status +2024/07/28 19:27:59 ERROR: no message found: Status +2024/07/28 19:27:59 ERROR: no message found: Status +2024/07/28 19:27:59 ERROR: no message found: Status --- PASS: TestSingleServiceTemplateWithDuplicateInAllSupportedHttp1Operations (0.00s) === RUN TestSingleServiceTemplateWithDuplicateHttp1UnsupportedOperations -2024/07/28 19:20:22 ERROR: no message found: Status +2024/07/28 19:27:59 ERROR: no message found: Status --- PASS: TestSingleServiceTemplateWithDuplicateHttp1UnsupportedOperations (0.00s) === RUN TestTemplateWithDuplicateHttp1Operations -2024/07/28 19:20:22 ERROR: no message found: Status +2024/07/28 19:27:59 ERROR: no message found: Status --- PASS: TestTemplateWithDuplicateHttp1Operations (0.00s) === RUN Test_getReservedJsonName === RUN Test_getReservedJsonName/test_case_1:_single_dot_use_case @@ -1255,59 +1292,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 -2024/07/28 19:20:22 ERROR: no message found: Status +2024/07/28 19:27:59 ERROR: no message found: Status --- PASS: TestParseIncompleteSecurityRequirement (0.00s) === RUN TestSubPathParams --- PASS: TestSubPathParams (0.00s) === RUN TestRenderServicesParameterDescriptionNoFieldBody -2024/07/28 19:20:22 ERROR: no message found: Status +2024/07/28 19:27:59 ERROR: no message found: Status --- PASS: TestRenderServicesParameterDescriptionNoFieldBody (0.00s) === RUN TestRenderServicesWithBodyFieldNameInCamelCase -2024/07/28 19:20:22 ERROR: no message found: Status +2024/07/28 19:27:59 ERROR: no message found: Status --- PASS: TestRenderServicesWithBodyFieldNameInCamelCase (0.00s) === RUN TestRenderServicesWithBodyFieldHasFieldMask -2024/07/28 19:20:22 ERROR: no message found: Status +2024/07/28 19:27:59 ERROR: no message found: Status --- PASS: TestRenderServicesWithBodyFieldHasFieldMask (0.00s) === RUN TestRenderServicesWithColonInPath -2024/07/28 19:20:22 ERROR: no message found: Status +2024/07/28 19:27:59 ERROR: no message found: Status --- PASS: TestRenderServicesWithColonInPath (0.00s) === RUN TestRenderServicesWithDoubleColonInPath -2024/07/28 19:20:22 ERROR: no message found: Status +2024/07/28 19:27:59 ERROR: no message found: Status --- PASS: TestRenderServicesWithDoubleColonInPath (0.00s) === RUN TestRenderServicesWithColonLastInPath -2024/07/28 19:20:22 ERROR: no message found: Status +2024/07/28 19:27:59 ERROR: no message found: Status --- PASS: TestRenderServicesWithColonLastInPath (0.00s) === RUN TestRenderServicesWithColonInSegment -2024/07/28 19:20:22 ERROR: no message found: Status +2024/07/28 19:27:59 ERROR: no message found: Status --- PASS: TestRenderServicesWithColonInSegment (0.00s) === RUN TestRenderServiceWithHeaderParameters +=== RUN TestRenderServiceWithHeaderParameters/type_boolean +2024/07/28 19:27:59 ERROR: no message found: Status +=== RUN TestRenderServiceWithHeaderParameters/header_required +2024/07/28 19:27:59 ERROR: no message found: Status === RUN TestRenderServiceWithHeaderParameters/type_string -2024/07/28 19:20:22 ERROR: no message found: Status +2024/07/28 19:27:59 ERROR: no message found: Status === RUN TestRenderServiceWithHeaderParameters/type_string_with_format -2024/07/28 19:20:22 ERROR: no message found: Status +2024/07/28 19:27:59 ERROR: no message found: Status === RUN TestRenderServiceWithHeaderParameters/type_integer -2024/07/28 19:20:22 ERROR: no message found: Status +2024/07/28 19:27:59 ERROR: no message found: Status === RUN TestRenderServiceWithHeaderParameters/type_number -2024/07/28 19:20:22 ERROR: no message found: Status -=== RUN TestRenderServiceWithHeaderParameters/type_boolean -2024/07/28 19:20:22 ERROR: no message found: Status -=== RUN TestRenderServiceWithHeaderParameters/header_required -2024/07/28 19:20:22 ERROR: no message found: Status +2024/07/28 19:27:59 ERROR: no message found: Status --- PASS: TestRenderServiceWithHeaderParameters (0.00s) + --- PASS: TestRenderServiceWithHeaderParameters/type_boolean (0.00s) + --- PASS: TestRenderServiceWithHeaderParameters/header_required (0.00s) --- PASS: TestRenderServiceWithHeaderParameters/type_string (0.00s) --- 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) === RUN TestRenderServicesOpenapiPathsOrderPreserved -2024/07/28 19:20:22 ERROR: no message found: Status +2024/07/28 19:27:59 ERROR: no message found: Status --- PASS: TestRenderServicesOpenapiPathsOrderPreserved (0.00s) === RUN TestRenderServicesOpenapiPathsOrderPreservedMultipleServices -2024/07/28 19:20:22 ERROR: no message found: Status +2024/07/28 19:27:59 ERROR: no message found: Status --- PASS: TestRenderServicesOpenapiPathsOrderPreservedMultipleServices (0.00s) === RUN TestRenderServicesOpenapiPathsOrderPreservedAdditionalBindings -2024/07/28 19:20:22 ERROR: no message found: Status +2024/07/28 19:27:59 ERROR: no message found: Status --- PASS: TestRenderServicesOpenapiPathsOrderPreservedAdditionalBindings (0.00s) === RUN TestArrayMessageItemsType --- PASS: TestArrayMessageItemsType (0.00s) @@ -1360,7 +1397,7 @@ --- PASS: TestMergeTags/Merge_external_docs (0.00s) --- PASS: TestMergeTags/Merge_extensions (0.00s) === RUN TestApiVisibilityOption -2024/07/28 19:20:22 ERROR: no message found: Status +2024/07/28 19:27:59 ERROR: no message found: Status --- PASS: TestApiVisibilityOption (0.00s) === RUN TestRawExample === PAUSE TestRawExample @@ -1377,8 +1414,8 @@ === RUN TestGenerateYAML === PAUSE TestGenerateYAML === RUN TestGeneratedYAMLIndent -2024/07/28 19:20:22 ERROR: no message found: Status ---- PASS: TestGeneratedYAMLIndent (0.00s) +2024/07/28 19:27:59 ERROR: no message found: Status +--- PASS: TestGeneratedYAMLIndent (0.02s) === RUN TestGenerateRPCOrderPreserved === PAUSE TestGenerateRPCOrderPreserved === RUN TestGenerateRPCOrderNotPreserved @@ -1405,13 +1442,12 @@ === PAUSE TestFindExpectedPaths === CONT TestRawExample === RUN TestRawExample/1 -=== CONT TestGenerateRPCOrderNotPreservedMultipleServices -=== CONT TestGenerateRPCOrderNotPreservedAdditionalBindings === PAUSE TestRawExample/1 === RUN TestRawExample/"1" === PAUSE TestRawExample/"1" === RUN TestRawExample/{"hello":"worldr"} === PAUSE TestRawExample/{"hello":"worldr"} +=== CONT TestRawExample/1 === CONT TestFindExpectedPaths === RUN TestFindExpectedPaths/One_potential_path_present === PAUSE TestFindExpectedPaths/One_potential_path_present @@ -1419,65 +1455,58 @@ === PAUSE TestFindExpectedPaths/No_potential_Paths_present === RUN TestFindExpectedPaths/Multiple_potential_paths_present === PAUSE TestFindExpectedPaths/Multiple_potential_paths_present -=== CONT TestGenerateRPCOrderPreservedMultipleServices -=== RUN TestGenerateRPCOrderNotPreservedMultipleServices/json -=== CONT TestGenerateRPCOrderNotPreserved -=== PAUSE TestGenerateRPCOrderNotPreservedMultipleServices/json -=== RUN TestGenerateRPCOrderNotPreservedMultipleServices/yaml -=== PAUSE TestGenerateRPCOrderNotPreservedMultipleServices/yaml -=== RUN TestGenerateRPCOrderNotPreservedAdditionalBindings/json -=== PAUSE TestGenerateRPCOrderNotPreservedAdditionalBindings/json -=== RUN TestGenerateRPCOrderNotPreservedAdditionalBindings/yaml -=== PAUSE TestGenerateRPCOrderNotPreservedAdditionalBindings/yaml +=== CONT TestFindExpectedPaths/One_potential_path_present === CONT TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices -=== RUN TestGenerateRPCOrderNotPreserved/json -=== PAUSE TestGenerateRPCOrderNotPreserved/json -=== RUN TestGenerateRPCOrderNotPreserved/yaml -=== PAUSE TestGenerateRPCOrderNotPreserved/yaml -=== CONT TestGenerateYAML -=== CONT TestGenerateRPCOrderPreserved -=== RUN TestGenerateYAML/path_item_object -=== RUN TestGenerateRPCOrderPreserved/json -=== PAUSE TestGenerateRPCOrderPreserved/json -=== RUN TestGenerateRPCOrderPreserved/yaml -=== PAUSE TestGenerateRPCOrderPreserved/yaml -=== CONT TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices -=== PAUSE TestGenerateYAML/path_item_object -=== RUN TestGenerateRPCOrderPreservedMultipleServices/json -=== PAUSE TestGenerateRPCOrderPreservedMultipleServices/json -=== CONT TestGenerateExtension === RUN TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/json === PAUSE TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/json === RUN TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/yaml === PAUSE TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/yaml -=== RUN TestGenerateRPCOrderPreservedMultipleServices/yaml -=== PAUSE TestGenerateRPCOrderPreservedMultipleServices/yaml +=== CONT TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/json +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +=== CONT TestGenerateYAML +=== RUN TestGenerateYAML/path_item_object +=== PAUSE TestGenerateYAML/path_item_object +=== CONT TestGenerateExtension +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 +2024/07/28 19:27:59 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 TestRawExample/{"hello":"worldr"} === CONT TestGenerate_YAML -2024/07/28 19:20:22 ERROR: no message found: Status +2024/07/28 19:27:59 ERROR: no message found: Status file.proto descriptor.File should not contain nil SourceCodeInfo -=== RUN TestGenerateExtension/json -=== PAUSE TestGenerateExtension/json -=== RUN TestGenerateExtension/yaml -=== PAUSE TestGenerateExtension/yaml -=== CONT TestOpenapiSchemaObjectProperties -=== RUN TestOpenapiSchemaObjectProperties/yaml -=== PAUSE TestOpenapiSchemaObjectProperties/yaml -=== RUN TestOpenapiSchemaObjectProperties/json -=== PAUSE TestOpenapiSchemaObjectProperties/json +--- PASS: TestGenerate_YAML (0.00s) === CONT TestFormatEncode === RUN TestFormatEncode/json === PAUSE TestFormatEncode/json -=== RUN TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/json -=== PAUSE TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/json === RUN TestFormatEncode/yaml -=== RUN TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/yaml === PAUSE TestFormatEncode/yaml -=== PAUSE TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/yaml -=== CONT TestGenerateRPCOrderPreservedAdditionalBindings ---- PASS: TestGenerate_YAML (0.00s) -=== CONT TestGenerateRPCOrderNotPreservedMergeFiles === CONT TestFormatValidate -=== CONT TestGenerateRPCOneOfFieldBodyAdditionalBindings === RUN TestFormatValidate/json === PAUSE TestFormatValidate/json === RUN TestFormatValidate/yaml @@ -1486,95 +1515,31 @@ === PAUSE TestFormatValidate/unknown === RUN TestFormatValidate/#00 === PAUSE TestFormatValidate/#00 -=== RUN TestGenerateRPCOrderPreservedAdditionalBindings/json -=== PAUSE TestGenerateRPCOrderPreservedAdditionalBindings/json -=== RUN TestGenerateRPCOrderPreservedAdditionalBindings/yaml -=== PAUSE TestGenerateRPCOrderPreservedAdditionalBindings/yaml -=== RUN TestGenerateRPCOrderNotPreservedMergeFiles/json -=== PAUSE TestGenerateRPCOrderNotPreservedMergeFiles/json -=== RUN TestGenerateRPCOrderNotPreservedMergeFiles/yaml -=== PAUSE TestGenerateRPCOrderNotPreservedMergeFiles/yaml -=== CONT TestGenerateRPCOrderPreservedMergeFiles -=== CONT TestFindExpectedPaths/One_potential_path_present -=== RUN TestGenerateRPCOneOfFieldBodyAdditionalBindings/json -=== PAUSE TestGenerateRPCOneOfFieldBodyAdditionalBindings/json -=== RUN TestGenerateRPCOneOfFieldBodyAdditionalBindings/yaml -=== PAUSE TestGenerateRPCOneOfFieldBodyAdditionalBindings/yaml -=== CONT TestGenerateRPCOrderNotPreservedMultipleServices/json -=== CONT TestGenerateRPCOrderNotPreservedAdditionalBindings/json -=== RUN TestGenerateRPCOrderPreservedMergeFiles/json -=== PAUSE TestGenerateRPCOrderPreservedMergeFiles/json -=== RUN TestGenerateRPCOrderPreservedMergeFiles/yaml -=== PAUSE TestGenerateRPCOrderPreservedMergeFiles/yaml -=== CONT TestRawExample/1 -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -=== CONT TestGenerateRPCOrderNotPreserved/json -=== 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 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 -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 TestFindExpectedPaths/Multiple_potential_paths_present -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 TestFindExpectedPaths/No_potential_Paths_present -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -2024/07/28 19:20:22 ERROR: no message found: Status -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo ---- 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 TestGenerateRPCOrderNotPreserved/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 -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 -2024/07/28 19:20:22 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 -2024/07/28 19:20:22 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 -2024/07/28 19:20:22 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 TestGenerateRPCOrderNotPreservedAdditionalBindings/json - generator_test.go:1375: { +=== CONT TestOpenapiSchemaObjectProperties +=== RUN TestOpenapiSchemaObjectProperties/yaml +=== PAUSE TestOpenapiSchemaObjectProperties/yaml +=== RUN TestOpenapiSchemaObjectProperties/json +=== PAUSE TestOpenapiSchemaObjectProperties/json +=== RUN TestGenerateExtension/json +=== PAUSE TestGenerateExtension/json +=== RUN TestGenerateExtension/yaml +=== PAUSE TestGenerateExtension/yaml +=== CONT TestFormatEncode/yaml +=== CONT TestFormatEncode/json +=== CONT TestFormatValidate/json +=== CONT TestFormatValidate/#00 +=== CONT TestFormatValidate/unknown +=== CONT TestFormatValidate/yaml +--- PASS: TestFormatValidate (0.00s) + --- PASS: TestFormatValidate/json (0.00s) + --- PASS: TestFormatValidate/#00 (0.00s) + --- PASS: TestFormatValidate/unknown (0.00s) + --- PASS: TestFormatValidate/yaml (0.00s) +--- PASS: TestFormatEncode (0.00s) + --- PASS: TestFormatEncode/json (0.00s) + --- PASS: TestFormatEncode/yaml (0.00s) +=== NAME TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/json + generator_test.go:1774: { "swagger": "2.0", "info": { "title": "exampleproto/v1/example.proto", @@ -1582,6 +1547,12 @@ }, "tags": [ { + "name": "TestServiceOne" + }, + { + "name": "TestServiceTwo" + }, + { "name": "TestService" } ], @@ -1599,7 +1570,7 @@ "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev2Foo" } } }, @@ -1616,14 +1587,14 @@ ] } }, - "/a/second": { + "/a/apath": { "get": { "operationId": "TestService_Test2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev2Foo" } } }, @@ -1640,14 +1611,14 @@ ] } }, - "/b/bAdditional": { + "/a/second": { "get": { - "operationId": "TestService_Test32", + "operationId": "TestServiceTwo_Test2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev1Foo" } } }, @@ -1660,18 +1631,18 @@ } ], "tags": [ - "TestService" + "TestServiceTwo" ] } }, - "/b/first": { + "/b/bAdditional": { "get": { - "operationId": "TestService_Test1", + "operationId": "TestService_Test32", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev2Foo" } } }, @@ -1688,14 +1659,14 @@ ] } }, - "/c/third": { + "/b/bpath": { "get": { - "operationId": "TestService_Test3", + "operationId": "TestService_Test1", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev2Foo" } } }, @@ -1712,14 +1683,14 @@ ] } }, - "/z/zAdditional": { + "/b/first": { "get": { - "operationId": "TestService_Test22", + "operationId": "TestServiceTwo_Test1", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev1Foo" } } }, @@ -1732,53 +1703,18 @@ } ], "tags": [ - "TestService" + "TestServiceTwo" ] } - } - }, - "definitions": { - "v1Foo": { - "type": "object", - "properties": { - "bar": { - "type": "string" - } - } - } - } - } - -=== 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": { + "/c/cpath": { "get": { - "operationId": "TestServiceTwo_Test2", + "operationId": "TestService_Test3", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev2Foo" } } }, @@ -1791,18 +1727,18 @@ } ], "tags": [ - "TestServiceTwo" + "TestService" ] } }, - "/b/first": { + "/c/third": { "get": { - "operationId": "TestServiceTwo_Test1", + "operationId": "TestServiceOne_Test3", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev1Foo" } } }, @@ -1815,18 +1751,18 @@ } ], "tags": [ - "TestServiceTwo" + "TestServiceOne" ] } }, - "/c/third": { + "/d/first": { "get": { - "operationId": "TestServiceOne_Test3", + "operationId": "TestServiceOne_Test1", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev1Foo" } } }, @@ -1843,14 +1779,14 @@ ] } }, - "/d/first": { + "/e/second": { "get": { - "operationId": "TestServiceOne_Test1", + "operationId": "TestServiceOne_Test2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev1Foo" } } }, @@ -1867,14 +1803,14 @@ ] } }, - "/e/second": { + "/g/third": { "get": { - "operationId": "TestServiceOne_Test2", + "operationId": "TestServiceTwo_Test3", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev1Foo" } } }, @@ -1887,18 +1823,18 @@ } ], "tags": [ - "TestServiceOne" + "TestServiceTwo" ] } }, - "/g/third": { + "/z/zAdditional": { "get": { - "operationId": "TestServiceTwo_Test3", + "operationId": "TestService_Test22", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev2Foo" } } }, @@ -1911,13 +1847,21 @@ } ], "tags": [ - "TestServiceTwo" + "TestService" ] } } }, "definitions": { - "v1Foo": { + "examplev1Foo": { + "type": "object", + "properties": { + "bar": { + "type": "string" + } + } + }, + "examplev2Foo": { "type": "object", "properties": { "bar": { @@ -1928,9 +1872,437 @@ } } -=== CONT TestGenerateRPCOrderNotPreservedMultipleServices/yaml -=== NAME TestGenerateRPCOrderNotPreserved/json - generator_test.go:491: { +=== CONT TestGenerateRPCOrderNotPreservedAdditionalBindings +=== RUN TestGenerateRPCOrderNotPreservedAdditionalBindings/json +=== PAUSE TestGenerateRPCOrderNotPreservedAdditionalBindings/json +=== RUN TestGenerateRPCOrderNotPreservedAdditionalBindings/yaml +=== PAUSE TestGenerateRPCOrderNotPreservedAdditionalBindings/yaml +=== CONT TestGenerateRPCOrderPreservedMergeFiles +=== CONT TestGenerateRPCOrderPreservedAdditionalBindings +=== CONT TestGenerateRPCOneOfFieldBodyAdditionalBindings +=== RUN TestGenerateRPCOrderPreservedAdditionalBindings/json +=== PAUSE TestGenerateRPCOrderPreservedAdditionalBindings/json +=== RUN TestGenerateRPCOrderPreservedAdditionalBindings/yaml +=== PAUSE TestGenerateRPCOrderPreservedAdditionalBindings/yaml +=== CONT TestGenerateRPCOrderNotPreservedMergeFiles +=== RUN TestGenerateRPCOneOfFieldBodyAdditionalBindings/json +=== PAUSE TestGenerateRPCOneOfFieldBodyAdditionalBindings/json +=== RUN TestGenerateRPCOneOfFieldBodyAdditionalBindings/yaml +=== PAUSE TestGenerateRPCOneOfFieldBodyAdditionalBindings/yaml +=== CONT TestFindExpectedPaths/Multiple_potential_paths_present +=== CONT TestRawExample/"1" +=== RUN TestGenerateRPCOrderNotPreservedMergeFiles/json +--- PASS: TestRawExample (0.00s) + --- PASS: TestRawExample/1 (0.00s) + --- PASS: TestRawExample/{"hello":"worldr"} (0.00s) + --- PASS: TestRawExample/"1" (0.00s) +=== PAUSE TestGenerateRPCOrderNotPreservedMergeFiles/json +=== CONT TestGenerateRPCOrderNotPreserved +=== RUN TestGenerateRPCOrderNotPreservedMergeFiles/yaml +=== PAUSE TestGenerateRPCOrderNotPreservedMergeFiles/yaml +=== CONT TestGenerateRPCOrderNotPreservedMultipleServices +=== RUN TestGenerateRPCOrderNotPreserved/json +=== PAUSE TestGenerateRPCOrderNotPreserved/json +=== RUN TestGenerateRPCOrderNotPreserved/yaml +=== PAUSE TestGenerateRPCOrderNotPreserved/yaml +=== CONT TestGenerateRPCOrderPreservedMultipleServices +=== RUN TestGenerateRPCOrderNotPreservedMultipleServices/json +=== PAUSE TestGenerateRPCOrderNotPreservedMultipleServices/json +=== RUN TestGenerateRPCOrderNotPreservedMultipleServices/yaml +=== PAUSE TestGenerateRPCOrderNotPreservedMultipleServices/yaml +=== 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 TestGenerateRPCOrderPreserved +=== RUN TestGenerateRPCOrderPreservedMultipleServices/json +=== PAUSE TestGenerateRPCOrderPreservedMultipleServices/json +=== RUN TestGenerateRPCOrderPreservedMultipleServices/yaml +=== PAUSE TestGenerateRPCOrderPreservedMultipleServices/yaml +=== CONT TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/yaml +=== RUN TestGenerateRPCOrderPreserved/json +=== PAUSE TestGenerateRPCOrderPreserved/json +=== RUN TestGenerateRPCOrderPreserved/yaml +=== PAUSE TestGenerateRPCOrderPreserved/yaml +=== CONT TestGenerateYAML/path_item_object +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +=== CONT TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices +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 +2024/07/28 19:27:59 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 +=== RUN TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/json +=== PAUSE TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/json +=== RUN TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/yaml +=== PAUSE TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/yaml +=== CONT TestOpenapiSchemaObjectProperties/yaml +=== CONT TestGenerateExtension/json +2024/07/28 19:27:59 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 TestGenerateExtension/yaml +2024/07/28 19:27:59 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 +=== RUN TestGenerateRPCOrderPreservedMergeFiles/json +=== PAUSE TestGenerateRPCOrderPreservedMergeFiles/json +=== RUN TestGenerateRPCOrderPreservedMergeFiles/yaml +=== PAUSE TestGenerateRPCOrderPreservedMergeFiles/yaml +=== CONT TestOpenapiSchemaObjectProperties/json +--- 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 +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 +2024/07/28 19:27:59 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 +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 +2024/07/28 19:27:59 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 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.01s) + --- PASS: TestGenerateExtension/json (0.00s) + --- PASS: TestGenerateExtension/yaml (0.02s) +=== 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 +2024/07/28 19:27:59 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.02s) + --- PASS: TestGenerateYAML/path_item_object (0.03s) +=== 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 +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 +2024/07/28 19:27:59 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 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/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: + 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' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestServiceTwo + /c/cpath: + 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 + /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 + 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. + 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 + +=== NAME TestGenerateRPCOrderPreservedAdditionalBindings/json + generator_test.go:1168: { "swagger": "2.0", "info": { "title": "exampleproto/v1/example.proto", @@ -1948,6 +2320,54 @@ "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", @@ -1972,9 +2392,9 @@ ] } }, - "/b/first": { + "/z/zAdditional": { "get": { - "operationId": "TestService_Test1", + "operationId": "TestService_Test22", "responses": { "200": { "description": "A successful response.", @@ -2019,6 +2439,30 @@ "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": { @@ -2033,101 +2477,20 @@ } } -=== 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 - -=== CONT TestGenerateRPCOrderNotPreservedAdditionalBindings/yaml ---- PASS: TestGenerateRPCOrderNotPreserved (0.00s) - --- PASS: TestGenerateRPCOrderNotPreserved/json (0.00s) - --- PASS: TestGenerateRPCOrderNotPreserved/yaml (0.00s) -=== CONT TestGenerateYAML/path_item_object -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 TestGenerateRPCOrderPreserved/json -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 +--- PASS: TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices (0.00s) + --- PASS: TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/json (0.03s) + --- PASS: TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/yaml (0.04s) +=== CONT TestGenerateRPCOneOfFieldBodyAdditionalBindings/json +=== 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 -your/service/v1/your_service.proto descriptor.File should not contain nil SourceCodeInfo exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -2024/07/28 19:20:22 ERROR: no message found: Status 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 -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 -2024/07/28 19:20:22 ERROR: no message found: Status exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +2024/07/28 19:27:59 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 @@ -2136,19 +2499,17 @@ 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 -2024/07/28 19:20:22 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) exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +2024/07/28 19:27:59 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/json - generator_test.go:394: { +=== NAME TestGenerateRPCOneOfFieldBodyAdditionalBindings/json + generator_test.go:1265: { "swagger": "2.0", "info": { "title": "exampleproto/v1/example.proto", @@ -2166,8 +2527,8 @@ "application/json" ], "paths": { - "/b/first": { - "get": { + "/b/foo": { + "post": { "operationId": "TestService_Test1", "responses": { "200": { @@ -2179,6 +2540,119 @@ }, "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" + } + } + } + } + } + +=== 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": { + "get": { + "operationId": "TestService_Test12", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1Foo" + } + } + }, + "parameters": [ + { "name": "bar", "in": "query", "required": false, @@ -2214,6 +2688,54 @@ ] } }, + "/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", @@ -2237,6 +2759,30 @@ "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": { @@ -2251,32 +2797,26 @@ } } -=== CONT TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/json -=== 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 -2024/07/28 19:20:22 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 +=== CONT TestGenerateRPCOrderNotPreservedMergeFiles/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 -2024/07/28 19:20:22 ERROR: no message found: Status +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 +2024/07/28 19:27:59 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 - generator_test.go:620: { + generator_test.go:1062: { "swagger": "2.0", "info": { "title": "exampleproto/v1/example.proto", @@ -2284,10 +2824,7 @@ }, "tags": [ { - "name": "TestServiceOne" - }, - { - "name": "TestServiceTwo" + "name": "TestService" } ], "consumes": [ @@ -2297,14 +2834,14 @@ "application/json" ], "paths": { - "/d/first": { + "/a/apath": { "get": { - "operationId": "TestServiceOne_Test1", + "operationId": "TestService_Test3", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev1Foo" } } }, @@ -2317,18 +2854,18 @@ } ], "tags": [ - "TestServiceOne" + "TestService" ] } }, - "/e/second": { + "/b/bpath": { "get": { - "operationId": "TestServiceOne_Test2", + "operationId": "TestService_Test2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev1Foo" } } }, @@ -2341,18 +2878,18 @@ } ], "tags": [ - "TestServiceOne" + "TestService" ] } }, - "/c/third": { + "/c/cpath": { "get": { - "operationId": "TestServiceOne_Test3", + "operationId": "TestService_Test1", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev1Foo" } } }, @@ -2365,18 +2902,18 @@ } ], "tags": [ - "TestServiceOne" + "TestService" ] } }, - "/b/first": { + "/d/dpath": { "get": { - "operationId": "TestServiceTwo_Test1", + "operationId": "TestService_Test3", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev2Foo" } } }, @@ -2389,18 +2926,18 @@ } ], "tags": [ - "TestServiceTwo" + "TestService" ] } }, - "/a/second": { + "/e/epath": { "get": { - "operationId": "TestServiceTwo_Test2", + "operationId": "TestService_Test2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev2Foo" } } }, @@ -2413,18 +2950,18 @@ } ], "tags": [ - "TestServiceTwo" + "TestService" ] } }, - "/g/third": { + "/f/fpath": { "get": { - "operationId": "TestServiceTwo_Test3", + "operationId": "TestService_Test1", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev2Foo" } } }, @@ -2437,13 +2974,21 @@ } ], "tags": [ - "TestServiceTwo" + "TestService" ] } } }, "definitions": { - "v1Foo": { + "examplev1Foo": { + "type": "object", + "properties": { + "bar": { + "type": "string" + } + } + }, + "examplev2Foo": { "type": "object", "properties": { "bar": { @@ -2454,22 +2999,21 @@ } } -=== NAME TestGenerateRPCOrderNotPreservedMultipleServices/yaml - generator_test.go:749: swagger: "2.0" +=== NAME TestGenerateRPCOrderNotPreservedAdditionalBindings/yaml + generator_test.go:1375: 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/second: + /a/additional: get: - operationId: TestServiceTwo_Test2 + operationId: TestService_Test12 responses: "200": description: A successful response. @@ -2481,10 +3025,10 @@ required: false type: string tags: - - TestServiceTwo - /b/first: + - TestService + /a/second: get: - operationId: TestServiceTwo_Test1 + operationId: TestService_Test2 responses: "200": description: A successful response. @@ -2496,10 +3040,10 @@ required: false type: string tags: - - TestServiceTwo - /c/third: + - TestService + /b/bAdditional: get: - operationId: TestServiceOne_Test3 + operationId: TestService_Test32 responses: "200": description: A successful response. @@ -2511,10 +3055,10 @@ required: false type: string tags: - - TestServiceOne - /d/first: + - TestService + /b/first: get: - operationId: TestServiceOne_Test1 + operationId: TestService_Test1 responses: "200": description: A successful response. @@ -2526,10 +3070,10 @@ required: false type: string tags: - - TestServiceOne - /e/second: + - TestService + /c/third: get: - operationId: TestServiceOne_Test2 + operationId: TestService_Test3 responses: "200": description: A successful response. @@ -2541,10 +3085,10 @@ required: false type: string tags: - - TestServiceOne - /g/third: + - TestService + /z/zAdditional: get: - operationId: TestServiceTwo_Test3 + operationId: TestService_Test22 responses: "200": description: A successful response. @@ -2556,7 +3100,7 @@ required: false type: string tags: - - TestServiceTwo + - TestService definitions: v1Foo: type: object @@ -2564,8 +3108,13 @@ bar: type: string -=== NAME TestGenerateRPCOrderNotPreservedAdditionalBindings/yaml - generator_test.go:1375: swagger: "2.0" +--- PASS: TestGenerateRPCOrderNotPreservedAdditionalBindings (0.00s) + --- PASS: TestGenerateRPCOrderNotPreservedAdditionalBindings/json (0.05s) + --- PASS: TestGenerateRPCOrderNotPreservedAdditionalBindings/yaml (0.03s) +=== CONT TestGenerateRPCOrderNotPreservedMultipleServices/json +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +=== NAME TestGenerateRPCOneOfFieldBodyAdditionalBindings/yaml + generator_test.go:1265: swagger: "2.0" info: title: exampleproto/v1/example.proto version: version not set @@ -2576,39 +3125,25 @@ produces: - application/json paths: - /a/additional: - get: - operationId: TestService_Test12 + /b/foo: + post: + 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. + - name: body + in: body + required: true schema: $ref: '#/definitions/v1Foo' - parameters: - - name: bar - in: query - required: false - type: string tags: - TestService - /b/bAdditional: - get: - operationId: TestService_Test32 + /b/foo/bar: + post: + operationId: TestService_Test12 responses: "200": description: A successful response. @@ -2616,54 +3151,26 @@ $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. + in: body + required: true schema: - $ref: '#/definitions/v1Foo' - parameters: - - name: bar - in: query - required: false - type: string + type: string tags: - TestService - /c/third: - get: - operationId: TestService_Test3 + /b/foo/baz: + post: + operationId: TestService_Test13 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. + - name: baz + in: body + required: true schema: - $ref: '#/definitions/v1Foo' - parameters: - - name: bar - in: query - required: false - type: string + type: string tags: - TestService definitions: @@ -2672,58 +3179,32 @@ properties: bar: type: string + baz: + type: string ---- PASS: TestGenerateRPCOrderNotPreservedMultipleServices (0.00s) - --- PASS: TestGenerateRPCOrderNotPreservedMultipleServices/json (0.00s) - --- PASS: TestGenerateRPCOrderNotPreservedMultipleServices/yaml (0.01s) -=== CONT TestOpenapiSchemaObjectProperties/yaml ---- PASS: TestGenerateRPCOrderNotPreservedAdditionalBindings (0.00s) - --- PASS: TestGenerateRPCOrderNotPreservedAdditionalBindings/json (0.00s) - --- PASS: TestGenerateRPCOrderNotPreservedAdditionalBindings/yaml (0.01s) -=== CONT TestGenerateExtension/yaml -=== CONT TestOpenapiSchemaObjectProperties/json 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 TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/yaml exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +--- PASS: TestGenerateRPCOneOfFieldBodyAdditionalBindings (0.00s) + --- PASS: TestGenerateRPCOneOfFieldBodyAdditionalBindings/json (0.02s) + --- PASS: TestGenerateRPCOneOfFieldBodyAdditionalBindings/yaml (0.02s) exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -2024/07/28 19:20:22 ERROR: no message found: Status +=== CONT TestGenerateRPCOrderPreservedAdditionalBindings/yaml exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -=== CONT TestGenerateExtension/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 -2024/07/28 19:20:22 ERROR: no message found: Status +=== 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 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 - -=== CONT TestGenerateRPCOrderPreservedMultipleServices/yaml -=== NAME TestGenerateExtension/json - generator_test.go:116: { +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +2024/07/28 19:27:59 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:491: { "swagger": "2.0", "info": { "title": "exampleproto/v1/example.proto", @@ -2740,113 +3221,126 @@ "produces": [ "application/json" ], - "paths": {}, + "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", - "description": "This is bar", - "x-go-default": "0.5s" + "type": "string" } } } } } ---- PASS: TestGenerateExtension (0.00s) - --- PASS: TestGenerateExtension/yaml (0.00s) - --- PASS: TestGenerateExtension/json (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 -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/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/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/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 +=== CONT TestGenerateRPCOrderNotPreservedMultipleServices/yaml 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/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -2024/07/28 19:20:22 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 -2024/07/28 19:20:22 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 -2024/07/28 19:20:22 ERROR: no message found: Status +2024/07/28 19:27:59 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 - generator_test.go:394: swagger: "2.0" +=== CONT TestGenerateRPCOrderNotPreservedMergeFiles/yaml +=== NAME TestGenerateRPCOrderNotPreservedMultipleServices/yaml + generator_test.go:749: swagger: "2.0" info: title: exampleproto/v1/example.proto version: version not set tags: - - name: TestService + - name: TestServiceOne + - name: TestServiceTwo consumes: - application/json produces: - application/json paths: - /b/first: + /a/second: get: - operationId: TestService_Test1 + operationId: TestServiceTwo_Test2 responses: "200": description: A successful response. @@ -2858,10 +3352,10 @@ required: false type: string tags: - - TestService - /a/second: + - TestServiceTwo + /b/first: get: - operationId: TestService_Test2 + operationId: TestServiceTwo_Test1 responses: "200": description: A successful response. @@ -2873,10 +3367,10 @@ required: false type: string tags: - - TestService + - TestServiceTwo /c/third: get: - operationId: TestService_Test3 + operationId: TestServiceOne_Test3 responses: "200": description: A successful response. @@ -2888,32 +3382,7 @@ 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 TestFormatEncode/json -=== CONT TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/json -=== 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: + - TestServiceOne /d/first: get: operationId: TestServiceOne_Test1 @@ -2944,51 +3413,6 @@ 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 @@ -3011,20 +3435,8 @@ bar: type: string ---- PASS: TestGenerateRPCOrderPreservedMultipleServices (0.00s) - --- PASS: TestGenerateRPCOrderPreservedMultipleServices/json (0.00s) - --- PASS: TestGenerateRPCOrderPreservedMultipleServices/yaml (0.01s) -=== CONT TestFormatValidate/json -=== CONT TestFormatEncode/yaml ---- PASS: TestFormatEncode (0.00s) - --- PASS: TestFormatEncode/json (0.00s) - --- PASS: TestFormatEncode/yaml (0.00s) -=== CONT TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/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 -2024/07/28 19:20:22 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 @@ -3035,35 +3447,20 @@ 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 +2024/07/28 19:27:59 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 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 -2024/07/28 19:20:22 ERROR: no message found: Status +2024/07/28 19:27:59 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: { +=== NAME TestGenerateRPCOrderNotPreservedMultipleServices/json + generator_test.go:749: { "swagger": "2.0", "info": { "title": "exampleproto/v1/example.proto", @@ -3075,9 +3472,6 @@ }, { "name": "TestServiceTwo" - }, - { - "name": "TestService" } ], "consumes": [ @@ -3087,54 +3481,6 @@ "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", @@ -3142,7 +3488,7 @@ "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/examplev1Foo" + "$ref": "#/definitions/v1Foo" } } }, @@ -3159,54 +3505,6 @@ ] } }, - "/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": { - "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", @@ -3214,7 +3512,7 @@ "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/examplev1Foo" + "$ref": "#/definitions/v1Foo" } } }, @@ -3231,30 +3529,6 @@ ] } }, - "/c/cpath": { - "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" - ] - } - }, "/c/third": { "get": { "operationId": "TestServiceOne_Test3", @@ -3262,7 +3536,7 @@ "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/examplev1Foo" + "$ref": "#/definitions/v1Foo" } } }, @@ -3286,7 +3560,7 @@ "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/examplev1Foo" + "$ref": "#/definitions/v1Foo" } } }, @@ -3310,7 +3584,7 @@ "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/examplev1Foo" + "$ref": "#/definitions/v1Foo" } } }, @@ -3334,7 +3608,7 @@ "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/examplev1Foo" + "$ref": "#/definitions/v1Foo" } } }, @@ -3350,42 +3624,10 @@ "TestServiceTwo" ] } - }, - "/z/zAdditional": { - "get": { - "operationId": "TestService_Test22", - "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": { + "v1Foo": { "type": "object", "properties": { "bar": { @@ -3396,88 +3638,69 @@ } } -=== NAME TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/yaml - generator_test.go:1774: swagger: "2.0" +=== CONT TestGenerateRPCOrderPreservedMultipleServices/json +--- PASS: TestGenerateRPCOrderNotPreservedMultipleServices (0.00s) + --- PASS: TestGenerateRPCOrderNotPreservedMultipleServices/yaml (0.02s) + --- PASS: TestGenerateRPCOrderNotPreservedMultipleServices/json (0.03s) +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 +2024/07/28 19:27:59 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 TestGenerateRPCOrderNotPreserved/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 +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 +2024/07/28 19:27:59 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: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: - 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: - operationId: TestService_Test1 + operationId: TestService_Test2 responses: "200": description: A successful response. schema: - $ref: '#/definitions/examplev2Foo' + $ref: '#/definitions/v1Foo' parameters: - name: bar in: query @@ -3487,27 +3710,12 @@ - TestService /b/first: get: - 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 + operationId: TestService_Test1 responses: "200": description: A successful response. schema: - $ref: '#/definitions/examplev2Foo' + $ref: '#/definitions/v1Foo' parameters: - name: bar in: query @@ -3517,72 +3725,12 @@ - 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 - 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 + operationId: TestService_Test3 responses: "200": description: A successful response. schema: - $ref: '#/definitions/examplev2Foo' + $ref: '#/definitions/v1Foo' parameters: - name: bar in: query @@ -3591,19 +3739,27 @@ tags: - TestService definitions: - examplev1Foo: - type: object - properties: - bar: - type: string - examplev2Foo: + v1Foo: type: object properties: bar: type: string -=== NAME TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/json - generator_test.go:1574: { +--- PASS: TestGenerateRPCOrderNotPreserved (0.00s) + --- PASS: TestGenerateRPCOrderNotPreserved/json (0.00s) + --- PASS: TestGenerateRPCOrderNotPreserved/yaml (0.01s) +=== CONT TestGenerateRPCOrderPreserved/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 +2024/07/28 19:27:59 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:394: { "swagger": "2.0", "info": { "title": "exampleproto/v1/example.proto", @@ -3611,12 +3767,6 @@ }, "tags": [ { - "name": "TestServiceOne" - }, - { - "name": "TestServiceTwo" - }, - { "name": "TestService" } ], @@ -3627,182 +3777,14 @@ "application/json" ], "paths": { - "/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" - ] - } - }, - "/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" - ] - } - }, "/b/first": { "get": { - "operationId": "TestServiceTwo_Test1", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/examplev1Foo" - } - } - }, - "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/examplev1Foo" - } - } - }, - "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/examplev1Foo" - } - } - }, - "parameters": [ - { - "name": "bar", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "TestServiceTwo" - ] - } - }, - "/b/bpath": { - "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" - ] - } - }, - "/a/additional": { - "get": { - "operationId": "TestService_Test12", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/examplev2Foo" + "$ref": "#/definitions/v1Foo" } } }, @@ -3819,38 +3801,14 @@ ] } }, - "/a/apath": { + "/a/second": { "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" - ] - } - }, - "/z/zAdditional": { - "get": { - "operationId": "TestService_Test22", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/examplev2Foo" + "$ref": "#/definitions/v1Foo" } } }, @@ -3867,38 +3825,14 @@ ] } }, - "/c/cpath": { + "/c/third": { "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" - ] - } - }, - "/b/bAdditional": { - "get": { - "operationId": "TestService_Test32", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/examplev2Foo" + "$ref": "#/definitions/v1Foo" } } }, @@ -3917,15 +3851,7 @@ } }, "definitions": { - "examplev1Foo": { - "type": "object", - "properties": { - "bar": { - "type": "string" - } - } - }, - "examplev2Foo": { + "v1Foo": { "type": "object", "properties": { "bar": { @@ -3936,80 +3862,14 @@ } } -=== CONT TestFormatValidate/#00 -=== CONT TestFormatValidate/unknown -=== CONT TestFormatValidate/yaml ---- PASS: TestFormatValidate (0.00s) - --- PASS: TestFormatValidate/json (0.00s) - --- PASS: TestFormatValidate/#00 (0.00s) - --- PASS: TestFormatValidate/unknown (0.00s) - --- PASS: TestFormatValidate/yaml (0.00s) -=== CONT TestGenerateRPCOrderPreservedAdditionalBindings/json ---- PASS: TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices (0.00s) - --- PASS: TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/yaml (0.01s) - --- PASS: TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleServices/json (0.01s) -=== 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 -=== CONT TestGenerateRPCOrderNotPreservedMergeFiles/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/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 -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 -2024/07/28 19:20:22 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/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 -2024/07/28 19:20:22 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/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 +=== CONT TestGenerateRPCOrderPreserved/yaml 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 -2024/07/28 19:20:22 ERROR: no message found: Status +2024/07/28 19:27:59 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 - generator_test.go:1062: { +=== NAME TestGenerateRPCOrderPreservedMultipleServices/json + generator_test.go:620: { "swagger": "2.0", "info": { "title": "exampleproto/v1/example.proto", @@ -4017,7 +3877,10 @@ }, "tags": [ { - "name": "TestService" + "name": "TestServiceOne" + }, + { + "name": "TestServiceTwo" } ], "consumes": [ @@ -4027,14 +3890,14 @@ "application/json" ], "paths": { - "/a/apath": { + "/d/first": { "get": { - "operationId": "TestService_Test3", + "operationId": "TestServiceOne_Test1", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/examplev1Foo" + "$ref": "#/definitions/v1Foo" } } }, @@ -4047,18 +3910,18 @@ } ], "tags": [ - "TestService" + "TestServiceOne" ] } }, - "/b/bpath": { + "/e/second": { "get": { - "operationId": "TestService_Test2", + "operationId": "TestServiceOne_Test2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/examplev1Foo" + "$ref": "#/definitions/v1Foo" } } }, @@ -4071,18 +3934,18 @@ } ], "tags": [ - "TestService" + "TestServiceOne" ] } }, - "/c/cpath": { + "/c/third": { "get": { - "operationId": "TestService_Test1", + "operationId": "TestServiceOne_Test3", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/examplev1Foo" + "$ref": "#/definitions/v1Foo" } } }, @@ -4095,18 +3958,18 @@ } ], "tags": [ - "TestService" + "TestServiceOne" ] } }, - "/d/dpath": { + "/b/first": { "get": { - "operationId": "TestService_Test3", + "operationId": "TestServiceTwo_Test1", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/examplev2Foo" + "$ref": "#/definitions/v1Foo" } } }, @@ -4119,18 +3982,18 @@ } ], "tags": [ - "TestService" + "TestServiceTwo" ] } }, - "/e/epath": { + "/a/second": { "get": { - "operationId": "TestService_Test2", + "operationId": "TestServiceTwo_Test2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/examplev2Foo" + "$ref": "#/definitions/v1Foo" } } }, @@ -4143,18 +4006,18 @@ } ], "tags": [ - "TestService" + "TestServiceTwo" ] } }, - "/f/fpath": { + "/g/third": { "get": { - "operationId": "TestService_Test1", + "operationId": "TestServiceTwo_Test3", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/examplev2Foo" + "$ref": "#/definitions/v1Foo" } } }, @@ -4167,21 +4030,13 @@ } ], "tags": [ - "TestService" + "TestServiceTwo" ] } } }, "definitions": { - "examplev1Foo": { - "type": "object", - "properties": { - "bar": { - "type": "string" - } - } - }, - "examplev2Foo": { + "v1Foo": { "type": "object", "properties": { "bar": { @@ -4192,37 +4047,11 @@ } } +=== CONT TestGenerateRPCOrderPreservedMultipleServices/yaml exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +=== NAME TestGenerateRPCOrderNotPreservedMergeFiles/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 -2024/07/28 19:20:22 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 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 -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -2024/07/28 19:20:22 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 TestGenerateRPCOrderPreservedAdditionalBindings/yaml - generator_test.go:1168: swagger: "2.0" + generator_test.go:1062: swagger: "2.0" info: title: exampleproto/v1/example.proto version: version not set @@ -4233,14 +4062,44 @@ produces: - application/json paths: - /b/first: + /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/v1Foo' + $ref: '#/definitions/examplev1Foo' parameters: - name: bar in: query @@ -4248,14 +4107,14 @@ type: string tags: - TestService - /a/additional: + /d/dpath: get: - operationId: TestService_Test12 + operationId: TestService_Test3 responses: "200": description: A successful response. schema: - $ref: '#/definitions/v1Foo' + $ref: '#/definitions/examplev2Foo' parameters: - name: bar in: query @@ -4263,14 +4122,14 @@ type: string tags: - TestService - /a/second: + /e/epath: get: operationId: TestService_Test2 responses: "200": description: A successful response. schema: - $ref: '#/definitions/v1Foo' + $ref: '#/definitions/examplev2Foo' parameters: - name: bar in: query @@ -4278,9 +4137,77 @@ type: string tags: - TestService - /z/zAdditional: + /f/fpath: get: - operationId: TestService_Test22 + 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 + +--- PASS: TestGenerateRPCOrderNotPreservedMergeFiles (0.00s) + --- PASS: TestGenerateRPCOrderNotPreservedMergeFiles/json (0.00s) + --- PASS: TestGenerateRPCOrderNotPreservedMergeFiles/yaml (0.04s) +=== 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 +2024/07/28 19:27:59 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 +2024/07/28 19:27:59 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 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. @@ -4293,9 +4220,9 @@ type: string tags: - TestService - /c/third: + /a/second: get: - operationId: TestService_Test3 + operationId: TestService_Test2 responses: "200": description: A successful response. @@ -4308,9 +4235,9 @@ type: string tags: - TestService - /b/bAdditional: + /c/third: get: - operationId: TestService_Test32 + operationId: TestService_Test3 responses: "200": description: A successful response. @@ -4330,192 +4257,25 @@ bar: type: string -=== 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_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" - } - } - } - } - } - -=== CONT TestGenerateRPCOrderPreservedMergeFiles/json -=== NAME TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/yaml - generator_test.go:1574: swagger: "2.0" +--- PASS: TestGenerateRPCOrderPreserved (0.00s) + --- PASS: TestGenerateRPCOrderPreserved/json (0.00s) + --- PASS: TestGenerateRPCOrderPreserved/yaml (0.03s) +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 TestGenerateRPCOrderPreservedMultipleServices/yaml + generator_test.go:620: swagger: "2.0" info: title: exampleproto/v1/example.proto version: version not set tags: - name: TestServiceOne - name: TestServiceTwo - - name: TestService consumes: - application/json produces: @@ -4528,7 +4288,7 @@ "200": description: A successful response. schema: - $ref: '#/definitions/examplev1Foo' + $ref: '#/definitions/v1Foo' parameters: - name: bar in: query @@ -4543,7 +4303,7 @@ "200": description: A successful response. schema: - $ref: '#/definitions/examplev1Foo' + $ref: '#/definitions/v1Foo' parameters: - name: bar in: query @@ -4558,7 +4318,7 @@ "200": description: A successful response. schema: - $ref: '#/definitions/examplev1Foo' + $ref: '#/definitions/v1Foo' parameters: - name: bar in: query @@ -4573,7 +4333,7 @@ "200": description: A successful response. schema: - $ref: '#/definitions/examplev1Foo' + $ref: '#/definitions/v1Foo' parameters: - name: bar in: query @@ -4588,7 +4348,7 @@ "200": description: A successful response. schema: - $ref: '#/definitions/examplev1Foo' + $ref: '#/definitions/v1Foo' parameters: - name: bar in: query @@ -4603,7 +4363,7 @@ "200": description: A successful response. schema: - $ref: '#/definitions/examplev1Foo' + $ref: '#/definitions/v1Foo' parameters: - name: bar in: query @@ -4611,14 +4371,55 @@ type: string tags: - TestServiceTwo - /b/bpath: + definitions: + v1Foo: + type: object + properties: + bar: + type: string + +--- PASS: TestGenerateRPCOrderPreservedMultipleServices (0.00s) + --- PASS: TestGenerateRPCOrderPreservedMultipleServices/json (0.02s) + --- PASS: TestGenerateRPCOrderPreservedMultipleServices/yaml (0.03s) +=== 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/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 +2024/07/28 19:27:59 ERROR: no message found: Status +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 +=== 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/examplev2Foo' + $ref: '#/definitions/v1Foo' parameters: - name: bar in: query @@ -4633,7 +4434,7 @@ "200": description: A successful response. schema: - $ref: '#/definitions/examplev2Foo' + $ref: '#/definitions/v1Foo' parameters: - name: bar in: query @@ -4641,14 +4442,14 @@ type: string tags: - TestService - /a/apath: + /a/second: get: operationId: TestService_Test2 responses: "200": description: A successful response. schema: - $ref: '#/definitions/examplev2Foo' + $ref: '#/definitions/v1Foo' parameters: - name: bar in: query @@ -4663,7 +4464,7 @@ "200": description: A successful response. schema: - $ref: '#/definitions/examplev2Foo' + $ref: '#/definitions/v1Foo' parameters: - name: bar in: query @@ -4671,14 +4472,14 @@ type: string tags: - TestService - /c/cpath: + /c/third: get: operationId: TestService_Test3 responses: "200": description: A successful response. schema: - $ref: '#/definitions/examplev2Foo' + $ref: '#/definitions/v1Foo' parameters: - name: bar in: query @@ -4693,7 +4494,7 @@ "200": description: A successful response. schema: - $ref: '#/definitions/examplev2Foo' + $ref: '#/definitions/v1Foo' parameters: - name: bar in: query @@ -4702,23 +4503,18 @@ tags: - TestService definitions: - examplev1Foo: - type: object - properties: - bar: - type: string - examplev2Foo: + v1Foo: type: object properties: bar: type: string --- PASS: TestGenerateRPCOrderPreservedAdditionalBindings (0.00s) - --- PASS: TestGenerateRPCOrderPreservedAdditionalBindings/yaml (0.01s) - --- PASS: TestGenerateRPCOrderPreservedAdditionalBindings/json (0.01s) -=== CONT TestGenerateRPCOrderNotPreservedMergeFiles/yaml -=== NAME TestGenerateRPCOneOfFieldBodyAdditionalBindings/json - generator_test.go:1265: { + --- PASS: TestGenerateRPCOrderPreservedAdditionalBindings/json (0.00s) + --- PASS: TestGenerateRPCOrderPreservedAdditionalBindings/yaml (0.08s) +=== CONT TestGenerateRPCOrderPreservedMergeFiles/yaml +=== NAME TestGenerateRPCOrderPreservedMergeFiles/json + generator_test.go:906: { "swagger": "2.0", "info": { "title": "exampleproto/v1/example.proto", @@ -4736,78 +4532,144 @@ "application/json" ], "paths": { - "/b/foo": { - "post": { + "/c/cpath": { + "get": { "operationId": "TestService_Test1", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev1Foo" } } }, "parameters": [ { - "name": "body", - "in": "body", - "required": true, + "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/v1Foo" + "$ref": "#/definitions/examplev1Foo" } } + }, + "parameters": [ + { + "name": "bar", + "in": "query", + "required": false, + "type": "string" + } ], "tags": [ "TestService" ] } }, - "/b/foo/bar": { - "post": { - "operationId": "TestService_Test12", + "/a/apath": { + "get": { + "operationId": "TestService_Test3", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev1Foo" } } }, "parameters": [ { "name": "bar", - "in": "body", - "required": true, + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "TestService" + ] + } + }, + "/f/fpath": { + "get": { + "operationId": "TestService_Test1", + "responses": { + "200": { + "description": "A successful response.", "schema": { - "type": "string" + "$ref": "#/definitions/examplev2Foo" } } + }, + "parameters": [ + { + "name": "bar", + "in": "query", + "required": false, + "type": "string" + } ], "tags": [ "TestService" ] } }, - "/b/foo/baz": { - "post": { - "operationId": "TestService_Test13", + "/e/epath": { + "get": { + "operationId": "TestService_Test2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Foo" + "$ref": "#/definitions/examplev2Foo" } } }, "parameters": [ { - "name": "baz", - "in": "body", - "required": true, + "name": "bar", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "TestService" + ] + } + }, + "/d/dpath": { + "get": { + "operationId": "TestService_Test3", + "responses": { + "200": { + "description": "A successful response.", "schema": { - "type": "string" + "$ref": "#/definitions/examplev2Foo" } } + }, + "parameters": [ + { + "name": "bar", + "in": "query", + "required": false, + "type": "string" + } ], "tags": [ "TestService" @@ -4816,13 +4678,18 @@ } }, "definitions": { - "v1Foo": { + "examplev1Foo": { "type": "object", "properties": { "bar": { "type": "string" - }, - "baz": { + } + } + }, + "examplev2Foo": { + "type": "object", + "properties": { + "bar": { "type": "string" } } @@ -4830,17 +4697,7 @@ } } -=== 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 ---- PASS: TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices (0.00s) - --- PASS: TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/json (0.01s) - --- PASS: TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/yaml (0.01s) -=== CONT TestGenerateRPCOrderPreservedMergeFiles/yaml -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v1/example.proto descriptor.File should not contain nil SourceCodeInfo +=== CONT TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/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 @@ -4851,18 +4708,35 @@ 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 +2024/07/28 19:27:59 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/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/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 +2024/07/28 19:27:59 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 @@ -4871,31 +4745,25 @@ 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 -2024/07/28 19:20:22 ERROR: no message found: Status 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/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 -2024/07/28 19:20:22 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/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 -2024/07/28 19:20:22 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 +2024/07/28 19:27:59 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 TestGenerateRPCOrderPreservedMergeFiles/json - generator_test.go:906: { +=== NAME TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/json + generator_test.go:1574: { "swagger": "2.0", "info": { "title": "exampleproto/v1/example.proto", @@ -4903,6 +4771,12 @@ }, "tags": [ { + "name": "TestServiceOne" + }, + { + "name": "TestServiceTwo" + }, + { "name": "TestService" } ], @@ -4913,9 +4787,9 @@ "application/json" ], "paths": { - "/c/cpath": { + "/d/first": { "get": { - "operationId": "TestService_Test1", + "operationId": "TestServiceOne_Test1", "responses": { "200": { "description": "A successful response.", @@ -4933,13 +4807,13 @@ } ], "tags": [ - "TestService" + "TestServiceOne" ] } }, - "/b/bpath": { + "/e/second": { "get": { - "operationId": "TestService_Test2", + "operationId": "TestServiceOne_Test2", "responses": { "200": { "description": "A successful response.", @@ -4957,13 +4831,13 @@ } ], "tags": [ - "TestService" + "TestServiceOne" ] } }, - "/a/apath": { + "/c/third": { "get": { - "operationId": "TestService_Test3", + "operationId": "TestServiceOne_Test3", "responses": { "200": { "description": "A successful response.", @@ -4981,11 +4855,83 @@ } ], "tags": [ - "TestService" + "TestServiceOne" ] } }, - "/f/fpath": { + "/b/first": { + "get": { + "operationId": "TestServiceTwo_Test1", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/examplev1Foo" + } + } + }, + "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/examplev1Foo" + } + } + }, + "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/examplev1Foo" + } + } + }, + "parameters": [ + { + "name": "bar", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "TestServiceTwo" + ] + } + }, + "/b/bpath": { "get": { "operationId": "TestService_Test1", "responses": { @@ -5009,7 +4955,31 @@ ] } }, - "/e/epath": { + "/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": { @@ -5033,7 +5003,31 @@ ] } }, - "/d/dpath": { + "/z/zAdditional": { + "get": { + "operationId": "TestService_Test22", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/examplev2Foo" + } + } + }, + "parameters": [ + { + "name": "bar", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "TestService" + ] + } + }, + "/c/cpath": { "get": { "operationId": "TestService_Test3", "responses": { @@ -5056,6 +5050,30 @@ "TestService" ] } + }, + "/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" + ] + } } }, "definitions": { @@ -5078,101 +5096,88 @@ } } -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -exampleproto/v2/example.proto descriptor.File should not contain nil SourceCodeInfo -2024/07/28 19:20:22 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 TestGenerateRPCOneOfFieldBodyAdditionalBindings/yaml - generator_test.go:1265: swagger: "2.0" +=== NAME TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/yaml + generator_test.go:1574: 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: - /b/foo: - post: - operationId: TestService_Test1 + /d/first: + get: + operationId: TestServiceOne_Test1 responses: "200": description: A successful response. schema: - $ref: '#/definitions/v1Foo' + $ref: '#/definitions/examplev1Foo' parameters: - - name: body - in: body - required: true - schema: - $ref: '#/definitions/v1Foo' + - name: bar + in: query + required: false + type: string tags: - - TestService - /b/foo/bar: - post: - operationId: TestService_Test12 + - TestServiceOne + /e/second: + get: + operationId: TestServiceOne_Test2 responses: "200": description: A successful response. schema: - $ref: '#/definitions/v1Foo' + $ref: '#/definitions/examplev1Foo' parameters: - name: bar - in: body - required: true - schema: - type: string + in: query + required: false + type: string tags: - - TestService - /b/foo/baz: - post: - operationId: TestService_Test13 + - TestServiceOne + /c/third: + get: + operationId: TestServiceOne_Test3 responses: "200": description: A successful response. schema: - $ref: '#/definitions/v1Foo' + $ref: '#/definitions/examplev1Foo' parameters: - - name: baz - in: body - required: true + - name: bar + in: query + required: false + type: string + tags: + - TestServiceOne + /b/first: + get: + operationId: TestServiceTwo_Test1 + responses: + "200": + description: A successful response. schema: - type: string + $ref: '#/definitions/examplev1Foo' + parameters: + - name: bar + in: query + required: false + type: string tags: - - TestService - definitions: - v1Foo: - type: object - properties: - bar: - type: string - baz: - type: string - ---- PASS: TestGenerateRPCOneOfFieldBodyAdditionalBindings (0.00s) - --- PASS: TestGenerateRPCOneOfFieldBodyAdditionalBindings/json (0.00s) - --- PASS: TestGenerateRPCOneOfFieldBodyAdditionalBindings/yaml (0.00s) -=== 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: + - TestServiceTwo + /a/second: get: - operationId: TestService_Test3 + operationId: TestServiceTwo_Test2 responses: "200": description: A successful response. @@ -5184,10 +5189,10 @@ required: false type: string tags: - - TestService - /b/bpath: + - TestServiceTwo + /g/third: get: - operationId: TestService_Test2 + operationId: TestServiceTwo_Test3 responses: "200": description: A successful response. @@ -5199,15 +5204,15 @@ required: false type: string tags: - - TestService - /c/cpath: + - TestServiceTwo + /b/bpath: get: operationId: TestService_Test1 responses: "200": description: A successful response. schema: - $ref: '#/definitions/examplev1Foo' + $ref: '#/definitions/examplev2Foo' parameters: - name: bar in: query @@ -5215,9 +5220,9 @@ type: string tags: - TestService - /d/dpath: + /a/additional: get: - operationId: TestService_Test3 + operationId: TestService_Test12 responses: "200": description: A successful response. @@ -5230,7 +5235,7 @@ type: string tags: - TestService - /e/epath: + /a/apath: get: operationId: TestService_Test2 responses: @@ -5245,9 +5250,39 @@ type: string tags: - TestService - /f/fpath: + /z/zAdditional: get: - operationId: TestService_Test1 + operationId: TestService_Test22 + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/examplev2Foo' + parameters: + - name: bar + in: query + required: false + type: string + tags: + - TestService + /c/cpath: + 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 + /b/bAdditional: + get: + operationId: TestService_Test32 responses: "200": description: A successful response. @@ -5272,9 +5307,6 @@ bar: type: string ---- PASS: TestGenerateRPCOrderNotPreservedMergeFiles (0.00s) - --- PASS: TestGenerateRPCOrderNotPreservedMergeFiles/json (0.00s) - --- PASS: TestGenerateRPCOrderNotPreservedMergeFiles/yaml (0.01s) === NAME TestGenerateRPCOrderPreservedMergeFiles/yaml generator_test.go:906: swagger: "2.0" info: @@ -5389,9 +5421,12 @@ bar: type: string ---- PASS: TestGenerateRPCOrderPreservedMergeFiles (0.00s) +--- PASS: TestGenerateRPCOrderPreservedMergeFiles (0.01s) --- PASS: TestGenerateRPCOrderPreservedMergeFiles/json (0.00s) - --- PASS: TestGenerateRPCOrderPreservedMergeFiles/yaml (0.01s) + --- PASS: TestGenerateRPCOrderPreservedMergeFiles/yaml (0.05s) +--- PASS: TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices (0.00s) + --- PASS: TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/json (0.07s) + --- PASS: TestGenerateRPCOrderPreservedMergeFilesAdditionalBindingsMultipleServices/yaml (0.05s) === RUN FuzzRemoveInternalComments === RUN FuzzRemoveInternalComments/seed#0 === RUN FuzzRemoveInternalComments/seed#1 @@ -5405,8 +5440,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.289s -? github.com/grpc-ecosystem/grpc-gateway/runtime/internal/examplepb [no test files] +ok github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2/internal/genopenapi 1.844s === RUN TestFieldMaskFromRequestBody === RUN TestFieldMaskFromRequestBody/empty === RUN TestFieldMaskFromRequestBody/EmptyMessage @@ -5452,19 +5486,19 @@ === RUN TestNewPattern --- PASS: TestNewPattern (0.00s) === RUN TestNewPatternWithWrongOp -2024/07/28 19:20:27 ERROR: invalid opcode: -1 -2024/07/28 19:20:27 ERROR: invalid opcode: 6 -2024/07/28 19:20:27 ERROR: odd number of ops codes: 1 -2024/07/28 19:20:27 ERROR: negative literal index: -1 -2024/07/28 19:20:27 ERROR: negative literal index: 1 -2024/07/28 19:20:27 ERROR: negative concat size: -1 -2024/07/28 19:20:27 ERROR: variable name index out of bound: -1 -2024/07/28 19:20:27 ERROR: variable name index out of bound: 1 -2024/07/28 19:20:27 ERROR: pushM appears twice ---- PASS: TestNewPatternWithWrongOp (0.00s) +2024/07/28 19:27:58 ERROR: invalid opcode: -1 +2024/07/28 19:27:59 ERROR: invalid opcode: 6 +2024/07/28 19:27:59 ERROR: odd number of ops codes: 1 +2024/07/28 19:27:59 ERROR: negative literal index: -1 +2024/07/28 19:27:59 ERROR: negative literal index: 1 +2024/07/28 19:27:59 ERROR: negative concat size: -1 +2024/07/28 19:27:59 ERROR: variable name index out of bound: -1 +2024/07/28 19:27:59 ERROR: variable name index out of bound: 1 +2024/07/28 19:27:59 ERROR: pushM appears twice +--- PASS: TestNewPatternWithWrongOp (1.34s) === RUN TestNewPatternWithStackUnderflow -2024/07/28 19:20:27 ERROR: stack underflow -2024/07/28 19:20:27 ERROR: stack underflow +2024/07/28 19:27:59 ERROR: stack underflow +2024/07/28 19:27:59 ERROR: stack underflow --- PASS: TestNewPatternWithStackUnderflow (0.00s) === RUN TestMatch --- PASS: TestMatch (0.00s) @@ -5526,16 +5560,16 @@ --- PASS: TestConvertDuration/JSON_bool (0.00s) === RUN TestDefaultHTTPError === RUN TestDefaultHTTPError/0 -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context === RUN TestDefaultHTTPError/1 -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context === RUN TestDefaultHTTPError/2 -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context === RUN TestDefaultHTTPError/3 -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context === RUN TestDefaultHTTPError/4 -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context ---- PASS: TestDefaultHTTPError (0.00s) +2024/07/28 19:27:59 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) @@ -5572,7 +5606,7 @@ === RUN TestForwardResponseMessage/standard_marshaler === RUN TestForwardResponseMessage/httpbody_marshaler === RUN TestForwardResponseMessage/custom_marshaler ---- PASS: TestForwardResponseMessage (0.00s) +--- PASS: TestForwardResponseMessage (0.01s) --- PASS: TestForwardResponseMessage/standard_marshaler (0.00s) --- PASS: TestForwardResponseMessage/httpbody_marshaler (0.00s) --- PASS: TestForwardResponseMessage/custom_marshaler (0.00s) @@ -5593,7 +5627,7 @@ === RUN TestJSONBuiltinsnmarshal --- PASS: TestJSONBuiltinsnmarshal (0.00s) === RUN TestJSONBuiltinUnmarshalField ---- PASS: TestJSONBuiltinUnmarshalField (0.00s) +--- PASS: TestJSONBuiltinUnmarshalField (0.01s) === RUN TestJSONBuiltinUnmarshalFieldKnownErrors --- PASS: TestJSONBuiltinUnmarshalFieldKnownErrors (0.00s) === RUN TestJSONBuiltinEncoder @@ -5603,17 +5637,17 @@ === RUN TestJSONBuiltinDecoder --- PASS: TestJSONBuiltinDecoder (0.00s) === RUN TestJSONBuiltinDecoderFields ---- PASS: TestJSONBuiltinDecoderFields (0.00s) +--- PASS: TestJSONBuiltinDecoderFields (0.01s) === RUN TestJSONPbMarshal === RUN TestJSONPbMarshal/0 === RUN TestJSONPbMarshal/1 === RUN TestJSONPbMarshal/2 === RUN TestJSONPbMarshal/3 === RUN TestJSONPbMarshal/4 ---- PASS: TestJSONPbMarshal (0.01s) - --- PASS: TestJSONPbMarshal/0 (0.00s) +--- PASS: TestJSONPbMarshal (0.02s) + --- PASS: TestJSONPbMarshal/0 (0.01s) --- PASS: TestJSONPbMarshal/1 (0.00s) - --- PASS: TestJSONPbMarshal/2 (0.00s) + --- PASS: TestJSONPbMarshal/2 (0.01s) --- PASS: TestJSONPbMarshal/3 (0.00s) --- PASS: TestJSONPbMarshal/4 (0.00s) === RUN TestJSONPbMarshalFields @@ -5621,13 +5655,13 @@ === RUN TestJSONPbUnmarshal --- PASS: TestJSONPbUnmarshal (0.00s) === 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.02s) === RUN TestJSONPbDecoderFields --- PASS: TestJSONPbDecoderFields (0.00s) === RUN TestJSONPbDecoderUnknownField @@ -5670,41 +5704,41 @@ --- PASS: TestMarshalerForRequest (0.00s) === RUN TestMuxServeHTTP === RUN TestMuxServeHTTP/0 -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context === RUN TestMuxServeHTTP/1 === RUN TestMuxServeHTTP/2 -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context === RUN TestMuxServeHTTP/3 === RUN TestMuxServeHTTP/4 === RUN TestMuxServeHTTP/5 -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context === RUN TestMuxServeHTTP/6 -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context === RUN TestMuxServeHTTP/7 === RUN TestMuxServeHTTP/8 -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context === RUN TestMuxServeHTTP/9 === RUN TestMuxServeHTTP/10 === RUN TestMuxServeHTTP/11 === RUN TestMuxServeHTTP/12 -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context === RUN TestMuxServeHTTP/13 -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 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 -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context === RUN TestMuxServeHTTP/20 === RUN TestMuxServeHTTP/21 -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context === RUN TestMuxServeHTTP/22 === RUN TestMuxServeHTTP/23 -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context === RUN TestMuxServeHTTP/24 -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context === RUN TestMuxServeHTTP/25 === RUN TestMuxServeHTTP/26 === RUN TestMuxServeHTTP/27 @@ -5738,8 +5772,8 @@ --- PASS: TestMuxServeHTTP/26 (0.00s) --- PASS: TestMuxServeHTTP/27 (0.00s) === RUN TestServeHTTP_WithMethodOverrideAndFormParsing -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context ---- PASS: TestServeHTTP_WithMethodOverrideAndFormParsing (0.00s) +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context +--- PASS: TestServeHTTP_WithMethodOverrideAndFormParsing (0.01s) === RUN TestDefaultHeaderMatcher === RUN TestDefaultHeaderMatcher/permanent_HTTP_header_should_return_prefixed === RUN TestDefaultHeaderMatcher/key_prefixed_with_MetadataHeaderPrefix_should_return_without_the_prefix @@ -5762,14 +5796,14 @@ --- PASS: TestServeMux_HandlePath/Invalid_Endpoint (0.00s) === RUN TestWithHealthzEndpoint_codes === RUN TestWithHealthzEndpoint_codes/Test_grpc_error_code -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context === RUN TestWithHealthzEndpoint_codes/Test_HealthCheckResponse_SERVING === RUN TestWithHealthzEndpoint_codes/Test_HealthCheckResponse_NOT_SERVING -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context === RUN TestWithHealthzEndpoint_codes/Test_HealthCheckResponse_UNKNOWN -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context === RUN TestWithHealthzEndpoint_codes/Test_HealthCheckResponse_SERVICE_UNKNOWN -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 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) @@ -5778,18 +5812,18 @@ --- PASS: TestWithHealthzEndpoint_codes/Test_HealthCheckResponse_SERVICE_UNKNOWN (0.00s) === RUN TestWithHealthEndpointAt_consistentWithHealthz === RUN TestWithHealthEndpointAt_consistentWithHealthz/Test_grpc_error_code -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context === RUN TestWithHealthEndpointAt_consistentWithHealthz/Test_HealthCheckResponse_SERVING === RUN TestWithHealthEndpointAt_consistentWithHealthz/Test_HealthCheckResponse_NOT_SERVING -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context === RUN TestWithHealthEndpointAt_consistentWithHealthz/Test_HealthCheckResponse_UNKNOWN -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context === RUN TestWithHealthEndpointAt_consistentWithHealthz/Test_HealthCheckResponse_SERVICE_UNKNOWN -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context --- PASS: TestWithHealthEndpointAt_consistentWithHealthz (0.00s) --- PASS: TestWithHealthEndpointAt_consistentWithHealthz/Test_grpc_error_code (0.00s) --- PASS: TestWithHealthEndpointAt_consistentWithHealthz/Test_HealthCheckResponse_SERVING (0.00s) @@ -5797,18 +5831,18 @@ --- PASS: TestWithHealthEndpointAt_consistentWithHealthz/Test_HealthCheckResponse_UNKNOWN (0.00s) --- PASS: TestWithHealthEndpointAt_consistentWithHealthz/Test_HealthCheckResponse_SERVICE_UNKNOWN (0.00s) === RUN TestWithHealthzEndpoint_serviceParam -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context --- PASS: TestWithHealthzEndpoint_serviceParam (0.00s) === RUN TestWithHealthzEndpoint_header === RUN TestWithHealthzEndpoint_header/Test_grpc_error_code -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context === RUN TestWithHealthzEndpoint_header/Test_HealthCheckResponse_SERVING === RUN TestWithHealthzEndpoint_header/Test_HealthCheckResponse_NOT_SERVING -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context === RUN TestWithHealthzEndpoint_header/Test_HealthCheckResponse_UNKNOWN -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context === RUN TestWithHealthzEndpoint_header/Test_HealthCheckResponse_SERVICE_UNKNOWN -2024/07/28 19:20:27 ERROR: Failed to extract ServerMetadata from context +2024/07/28 19:27:59 ERROR: Failed to extract ServerMetadata from context --- PASS: TestWithHealthzEndpoint_header (0.00s) --- PASS: TestWithHealthzEndpoint_header/Test_grpc_error_code (0.00s) --- PASS: TestWithHealthzEndpoint_header/Test_HealthCheckResponse_SERVING (0.00s) @@ -5834,7 +5868,7 @@ === RUN TestPopulateParameters/15 === RUN TestPopulateParameters/16 === RUN TestPopulateParameters/17 ---- PASS: TestPopulateParameters (0.02s) +--- PASS: TestPopulateParameters (0.04s) --- PASS: TestPopulateParameters/0 (0.01s) --- PASS: TestPopulateParameters/1 (0.00s) --- PASS: TestPopulateParameters/2 (0.00s) @@ -5842,7 +5876,7 @@ --- PASS: TestPopulateParameters/4 (0.00s) --- PASS: TestPopulateParameters/5 (0.00s) --- PASS: TestPopulateParameters/6 (0.00s) - --- PASS: TestPopulateParameters/7 (0.00s) + --- PASS: TestPopulateParameters/7 (0.01s) --- PASS: TestPopulateParameters/8 (0.00s) --- PASS: TestPopulateParameters/9 (0.00s) --- PASS: TestPopulateParameters/10 (0.00s) @@ -5858,29 +5892,29 @@ === RUN TestPopulateQueryParametersWithInvalidNestedParameters --- PASS: TestPopulateQueryParametersWithInvalidNestedParameters (0.00s) === CONT TestOutgoingHeaderMatcher -=== CONT TestOutgoingTrailerMatcher === RUN TestOutgoingHeaderMatcher/default_matcher === PAUSE TestOutgoingHeaderMatcher/default_matcher -=== RUN TestOutgoingTrailerMatcher/default_matcher,_caller_accepts === RUN TestOutgoingHeaderMatcher/custom_matcher === PAUSE TestOutgoingHeaderMatcher/custom_matcher -=== PAUSE TestOutgoingTrailerMatcher/default_matcher,_caller_accepts === CONT TestOutgoingHeaderMatcher/default_matcher +=== CONT TestOutgoingTrailerMatcher +=== RUN TestOutgoingTrailerMatcher/default_matcher,_caller_accepts +=== PAUSE TestOutgoingTrailerMatcher/default_matcher,_caller_accepts === RUN TestOutgoingTrailerMatcher/default_matcher,_caller_rejects === PAUSE TestOutgoingTrailerMatcher/default_matcher,_caller_rejects === RUN TestOutgoingTrailerMatcher/custom_matcher === PAUSE TestOutgoingTrailerMatcher/custom_matcher === CONT TestOutgoingTrailerMatcher/default_matcher,_caller_accepts +=== CONT TestOutgoingHeaderMatcher/custom_matcher +--- PASS: TestOutgoingHeaderMatcher (0.00s) + --- PASS: TestOutgoingHeaderMatcher/default_matcher (0.00s) + --- PASS: TestOutgoingHeaderMatcher/custom_matcher (0.00s) === CONT TestOutgoingTrailerMatcher/custom_matcher === CONT TestOutgoingTrailerMatcher/default_matcher,_caller_rejects -=== CONT TestOutgoingHeaderMatcher/custom_matcher --- PASS: TestOutgoingTrailerMatcher (0.00s) --- PASS: TestOutgoingTrailerMatcher/default_matcher,_caller_accepts (0.00s) --- PASS: TestOutgoingTrailerMatcher/custom_matcher (0.00s) --- PASS: TestOutgoingTrailerMatcher/default_matcher,_caller_rejects (0.00s) ---- PASS: TestOutgoingHeaderMatcher (0.00s) - --- PASS: TestOutgoingHeaderMatcher/default_matcher (0.00s) - --- PASS: TestOutgoingHeaderMatcher/custom_matcher (0.00s) === RUN FuzzPopulateQueryParameters === RUN FuzzPopulateQueryParameters/seed#0 === RUN FuzzPopulateQueryParameters/seed#1 @@ -5902,7 +5936,7 @@ --- PASS: FuzzPopulateQueryParameters/seed#7 (0.00s) --- PASS: FuzzPopulateQueryParameters/seed#8 (0.00s) PASS -ok github.com/grpc-ecosystem/grpc-gateway/runtime 0.129s +ok github.com/grpc-ecosystem/grpc-gateway/runtime 1.604s === RUN TestStringArrayFlag === RUN TestStringArrayFlag/No_Value === RUN TestStringArrayFlag/Single_Value @@ -5918,7 +5952,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.024s create-stamp debian/debhelper-build-stamp dh_testroot -O--buildsystem=golang dh_prep -O--buildsystem=golang @@ -5940,8 +5974,8 @@ dh_fixperms -O--buildsystem=golang dh_missing -O--buildsystem=golang dh_strip -a -O--buildsystem=golang -dh_strip: warning: Could not find the BuildID in debian/golang-grpc-gateway/usr/bin/protoc-gen-grpc-gateway dh_strip: warning: Could not find the BuildID in debian/golang-grpc-gateway/usr/bin/protoc-gen-openapiv2 +dh_strip: warning: Could not find the BuildID in debian/golang-grpc-gateway/usr/bin/protoc-gen-grpc-gateway dh_makeshlibs -a -O--buildsystem=golang dh_shlibdeps -a -O--buildsystem=golang dh_installdeb -O--buildsystem=golang @@ -5960,12 +5994,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/18909/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/18909/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/8135 and its subdirectories -I: Current time: Sun Jul 28 07:21:09 -12 2024 -I: pbuilder-time-stamp: 1722194469 +I: removing directory /srv/workspace/pbuilder/18909 and its subdirectories +I: Current time: Mon Jul 29 09:29:10 +14 2024 +I: pbuilder-time-stamp: 1722194950