Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
fix entitlement test to accept eula
Browse files Browse the repository at this point in the history
merge updated sdk with following fixes
ignore deprecated major versions
fix acount info to use correct slice struct
  • Loading branch information
laidbackware committed Oct 4, 2021
1 parent d371ff9 commit d6a7d18
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@
.envrc
tmp/*
settings.json
builds/*
builds/*
__debug_bin
2 changes: 1 addition & 1 deletion api/download_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func TestFetchDownloadLinkNeedEula(t *testing.T) {

func TestFetchDownloadLinkNotEntitled(t *testing.T) {
var downloadPayload []sdk.DownloadPayload
downloadPayload, err = FetchDownloadPayload("vmware_nsx_t_data_center", "nsx-t", "3.1.3", "nsx-unified-appliance-secondary-*.qcow2", testing_user, testing_pass, false)
downloadPayload, err = FetchDownloadPayload("vmware_nsx_t_data_center", "nsx-t", "3.1.3", "nsx-unified-appliance-secondary-*.qcow2", testing_user, testing_pass, true)
assert.ErrorIs(t, err, sdk.ErrorNotEntitled)
assert.Empty(t, downloadPayload, "Expected response to be empty")
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/dustin/go-humanize v1.0.0
github.com/google/go-cmp v0.5.6 // indirect
github.com/kr/pretty v0.2.0 // indirect
github.com/laidbackware/vmware-download-sdk v0.0.0-20211003124744-407b61b8f026
github.com/laidbackware/vmware-download-sdk v0.0.0-20211004152325-e1b7eb16c537
github.com/olekukonko/tablewriter v0.0.5
github.com/orirawlings/persistent-cookiejar v0.3.0
github.com/spf13/cobra v1.2.1
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ github.com/laidbackware/vmware-download-sdk v0.0.0-20210920163619-c95ec2fef315 h
github.com/laidbackware/vmware-download-sdk v0.0.0-20210920163619-c95ec2fef315/go.mod h1:oXUINbShbZy4/y7OMIjyhjMPYzvVFg5QvRq8Dck7s1U=
github.com/laidbackware/vmware-download-sdk v0.0.0-20211003124744-407b61b8f026 h1:JbKB/oQUaecbty5wV1z/OrugIZwr2qbDgdbY8xopwRg=
github.com/laidbackware/vmware-download-sdk v0.0.0-20211003124744-407b61b8f026/go.mod h1:oXUINbShbZy4/y7OMIjyhjMPYzvVFg5QvRq8Dck7s1U=
github.com/laidbackware/vmware-download-sdk v0.0.0-20211004152325-e1b7eb16c537 h1:KidmypR1GRG/G+Hl9pUUtO9jj/UrL5edt/n2dmbXvtQ=
github.com/laidbackware/vmware-download-sdk v0.0.0-20211004152325-e1b7eb16c537/go.mod h1:oXUINbShbZy4/y7OMIjyhjMPYzvVFg5QvRq8Dck7s1U=
github.com/magiconair/properties v1.8.5 h1:b6kJs+EmPFMYGkow9GiUyCyOvIwYetYJ3fSaWak/Gls=
github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60=
github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
Expand Down

0 comments on commit d6a7d18

Please sign in to comment.