Skip to content

Commit

Permalink
fix(test): fix tests channels path (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
lerenn authored Jun 6, 2024
1 parent 664392f commit 6c7352a
Show file tree
Hide file tree
Showing 21 changed files with 282 additions and 282 deletions.
120 changes: 60 additions & 60 deletions test/v2/issues/135/asyncapi.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions test/v2/issues/135/asyncapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,27 @@ info:
title: Sample App
version: 1.2.3
channels:
resource:
v2.issue135.resource:
publish:
message:
payload:
type: string
info:
v2.issue135.info:
publish:
message:
payload:
type: string
status:
v2.issue135.status:
subscribe:
message:
payload:
type: string
project:
v2.issue135.project:
publish:
message:
payload:
type: string
group:
v2.issue135.group:
publish:
message:
payload:
Expand Down
20 changes: 10 additions & 10 deletions test/v2/issues/135/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@ type Suite struct {

func (suite *Suite) TestCheckPaths() {
// Check path contents
suite.Require().Equal("group", GroupPath)
suite.Require().Equal("info", InfoPath)
suite.Require().Equal("project", ProjectPath)
suite.Require().Equal("resource", ResourcePath)
suite.Require().Equal("status", StatusPath)
suite.Require().Equal("v2.issue135.group", V2Issue135GroupPath)
suite.Require().Equal("v2.issue135.info", V2Issue135InfoPath)
suite.Require().Equal("v2.issue135.project", V2Issue135ProjectPath)
suite.Require().Equal("v2.issue135.resource", V2Issue135ResourcePath)
suite.Require().Equal("v2.issue135.status", V2Issue135StatusPath)

// Check path list
for _, p := range ChannelsPaths {
switch p {
case GroupPath:
case InfoPath:
case ProjectPath:
case ResourcePath:
case StatusPath:
case V2Issue135GroupPath:
case V2Issue135InfoPath:
case V2Issue135ProjectPath:
case V2Issue135ResourcePath:
case V2Issue135StatusPath:
default:
suite.Require().Fail("unknown channel path", p)
}
Expand Down
Loading

0 comments on commit 6c7352a

Please sign in to comment.