Skip to content

Commit

Permalink
Use a Github URL in test to test mock implementation condition
Browse files Browse the repository at this point in the history
Signed-off-by: Maysun J Faisal <[email protected]>
  • Loading branch information
maysunfaisal committed Nov 30, 2023
1 parent b1f8465 commit c1944d6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/devfile/parser/util/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ func TestDownloadInMemoryClient(t *testing.T) {
url: "https://github.com/devfile/library/blob/main/devfile.yaml",
wantErr: "failed to retrieve https://github.com/devfile/library/blob/main/devfile.yaml",
},
{
name: "Case 9: Input github url is valid with a mock client, dont use mock data during invocation",
client: MockDevfileUtilsClient{},
url: "https://raw.githubusercontent.com/maysunfaisal/OK/main/OK.txt",
want: []byte{79, 75},
},
}

for _, tt := range tests {
Expand Down

0 comments on commit c1944d6

Please sign in to comment.