Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fixes authentication errors with amt devices #272

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ linters-settings:
- operation
- return
govet:
check-shadowing: true
shadow: true
misspell:
locale: US
nestif:
Expand Down Expand Up @@ -133,4 +133,4 @@ issues:
- docs

run:
timeout: 5m
timeout: 5m
4 changes: 2 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ linters-settings:
- operation
- return
govet:
check-shadowing: true
shadow: true
misspell:
locale: US
nestif:
Expand Down Expand Up @@ -133,4 +133,4 @@ issues:
- docs

run:
timeout: 5m
timeout: 5m
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ require (
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/ncruces/go-strftime v0.1.9 // indirect
github.com/open-amt-cloud-toolkit/go-wsman-messages/v2 v2.10.0
github.com/open-amt-cloud-toolkit/go-wsman-messages/v2 v2.11.1
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_model v0.5.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A=
github.com/ncruces/go-strftime v0.1.9 h1:bY0MQC28UADQmHmaF5dgpLmImcShSi2kHU9XLdhx/f4=
github.com/ncruces/go-strftime v0.1.9/go.mod h1:Fwc5htZGVVkseilnfgOVb9mKy6w1naJmn9CehxcKcls=
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
github.com/open-amt-cloud-toolkit/go-wsman-messages/v2 v2.10.0 h1:W+gGMkbbr6zzcvYkUIkkA6SBf2IpW2cDhukFX/DLh/Y=
github.com/open-amt-cloud-toolkit/go-wsman-messages/v2 v2.10.0/go.mod h1:LyY8fOvYBt5gawHYuivROR7EBySRuSR0u/k8QosnCeU=
github.com/open-amt-cloud-toolkit/go-wsman-messages/v2 v2.11.1 h1:Q+Yj4E1i+5rzN+9QqXRAP3zX2ggkqrO53IpvkG/DkhA=
github.com/open-amt-cloud-toolkit/go-wsman-messages/v2 v2.11.1/go.mod h1:LyY8fOvYBt5gawHYuivROR7EBySRuSR0u/k8QosnCeU=
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
github.com/opencontainers/image-spec v1.0.2 h1:9yCKha/T5XdGtO0q9Q9a6T5NUCsTn/DrBg0D7ufOcFM=
github.com/pelletier/go-toml/v2 v2.2.2 h1:aYUidT7k73Pcl9nb2gScu7NSrKCSHIDE89b3+6Wq+LM=
Expand Down
12 changes: 12 additions & 0 deletions internal/controller/http/v1/devicemanagement_mocks_test.go

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

2 changes: 2 additions & 0 deletions internal/usecase/devices/alarms_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ func initAlarmsTest(t *testing.T) (*devices.UseCase, *MockWSMAN, *MockManagement
repo := NewMockRepository(mockCtl)

wsmanMock := NewMockWSMAN(mockCtl)
wsmanMock.EXPECT().Worker().Return().AnyTimes()

management := NewMockManagement(mockCtl)

log := logger.New("error")
Expand Down
2 changes: 2 additions & 0 deletions internal/usecase/devices/certificates_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ func initCertificateTest(t *testing.T) (*devices.UseCase, *MockWSMAN, *MockManag

repo := NewMockRepository(mockCtl)
wsmanMock := NewMockWSMAN(mockCtl)
wsmanMock.EXPECT().Worker().Return().AnyTimes()

management := NewMockManagement(mockCtl)
log := logger.New("error")
u := devices.New(repo, wsmanMock, NewMockRedirection(mockCtl), log)
Expand Down
1 change: 1 addition & 0 deletions internal/usecase/devices/consent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ func initConsentTest(t *testing.T) (*devices.UseCase, *MockWSMAN, *MockManagemen
repo := NewMockRepository(mockCtl)

wsmanMock := NewMockWSMAN(mockCtl)
wsmanMock.EXPECT().Worker().Return().AnyTimes()

management := NewMockManagement(mockCtl)

Expand Down
Loading
Loading