-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds the protobuf definition of data sources. We'll re-use this protobuf around Minder to create the CRUD interface and reason about the rest of the implementation. Signed-off-by: Juan Antonio Osorio <[email protected]>
- Loading branch information
Showing
5 changed files
with
3,661 additions
and
2,909 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package v1 | ||
|
||
import ( | ||
"fmt" | ||
"github.com/stretchr/testify/assert" | ||
"io" | ||
"testing" | ||
) | ||
|
||
func TestParseResourceProto(t *testing.T) { | ||
type args struct { | ||
r io.Reader | ||
rm ResourceMeta | ||
} | ||
tests := []struct { | ||
name string | ||
args args | ||
wantErr assert.ErrorAssertionFunc | ||
}{ | ||
// TODO: Add test cases. | ||
} | ||
for _, tt := range tests { | ||
t.Run(tt.name, func(t *testing.T) { | ||
tt.wantErr(t, ParseResourceProto(tt.args.r, tt.args.rm), fmt.Sprintf("ParseResourceProto(%v, %v)", tt.args.r, tt.args.rm)) | ||
Check failure on line 24 in pkg/api/protobuf/go/minder/v1/api_test.go GitHub Actions / lint / Run golangci-lint
Check failure on line 24 in pkg/api/protobuf/go/minder/v1/api_test.go GitHub Actions / lint / Run golangci-lint
|
||
}) | ||
} | ||
} |
Oops, something went wrong.