Skip to content

Commit

Permalink
Merge pull request #96 from NETWAYS/dependabot/go_modules/github.com/…
Browse files Browse the repository at this point in the history
…golang-jwt/jwt/v4-4.5.1

Bump github.com/golang-jwt/jwt/v4 from 4.5.0 to 4.5.1
  • Loading branch information
RincewindsHat authored Nov 18, 2024
2 parents fd46b8d + 089b563 commit d2efb43
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.54
version: v1.61
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ require (
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dimchansky/utfbom v1.1.1 // indirect
github.com/golang-jwt/jwt/v4 v4.5.0 // indirect
github.com/golang-jwt/jwt/v4 v4.5.1 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/kr/pretty v0.2.0 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
Expand Down
3 changes: 2 additions & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ github.com/dimchansky/utfbom v1.1.1 h1:vV6w1AhK4VMnhBno/TPVCoK9U/LP0PkLCS9tbxHdi
github.com/dimchansky/utfbom v1.1.1/go.mod h1:SxdoEBH5qIqFocHMyGOXVAybYJdr71b1Q/j0mACtrfE=
github.com/golang-jwt/jwt/v4 v4.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg=
github.com/golang-jwt/jwt/v4 v4.2.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg=
github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg=
github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0=
github.com/golang-jwt/jwt/v4 v4.5.1 h1:JdqV9zKUdtaa9gdPlywC3aeoEsR681PlKC+4F5gQgeo=
github.com/golang-jwt/jwt/v4 v4.5.1/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0=
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
github.com/jarcoal/httpmock v1.3.1 h1:iUx3whfZWVf3jT01hQTO/Eo5sAYtB2/rqaUuOtpInww=
Expand Down
11 changes: 6 additions & 5 deletions internal/compute/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/NETWAYS/check_cloud_azure/internal/compute"
"github.com/jarcoal/httpmock"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

var (
Expand Down Expand Up @@ -86,7 +87,7 @@ func TestClient_LoadVmByName(t *testing.T) {
newJsonFileResponder("./testdata/vmByName.json"))

vm, err := c.LoadVmByName("test-group", "test-vm")
assert.NoError(t, err)
require.NoError(t, err)
assert.Equal(t, "test-vm", *vm.VirtualMachine.Name)
}

Expand All @@ -99,7 +100,7 @@ func TestClient_LoadResourceGroup(t *testing.T) {
newJsonFileResponder("./testdata/resourceGroup.json"))

r, err := c.LoadResourceGroup("test-group")
assert.NoError(t, err)
require.NoError(t, err)
assert.Equal(t, "test-group", *r.Name)
}

Expand All @@ -112,7 +113,7 @@ func TestClient_LoadResourceGroupsByFilter(t *testing.T) {
newJsonFileResponder("./testdata/resourceGroups.json"))

groups, err := c.LoadResourceGroupsByFilter("Abteilung", "Development")
assert.NoError(t, err)
require.NoError(t, err)
assert.Len(t, groups, 1)
assert.Equal(t, "test-group", *groups[0].Name)

Expand All @@ -121,7 +122,7 @@ func TestClient_LoadResourceGroupsByFilter(t *testing.T) {
newJsonFileResponder("./testdata/resourceGroups.json"))

groups, err = c.LoadResourceGroupsByFilter("", "")
assert.NoError(t, err)
require.NoError(t, err)
assert.Len(t, groups, 1)
assert.Equal(t, "test-group", *groups[0].Name)
}
Expand All @@ -143,7 +144,7 @@ func TestClient_LoadVmsByResourceGroup(t *testing.T) {
newJsonFileResponder("./testdata/vmByName2.json"))

vms, err := c.LoadVmsByResourceGroup("test-group")
assert.NoError(t, err)
require.NoError(t, err)
assert.Len(t, vms.VirtualMachines, 2)
assert.Equal(t, "test-vm", *vms.VirtualMachines[0].VirtualMachine.Name)
assert.Equal(t, "test-vm2", *vms.VirtualMachines[1].VirtualMachine.Name)
Expand Down
5 changes: 3 additions & 2 deletions internal/compute/virtual_machine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package compute_test
import (
"github.com/jarcoal/httpmock"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
)

Expand All @@ -16,7 +17,7 @@ func TestVirtualMachine(t *testing.T) {
newJsonFileResponder("./testdata/vmByName.json"))

vm, err := c.LoadVmByName("test-group", "test-vm")
assert.NoError(t, err)
require.NoError(t, err)

assert.Equal(t, 0, vm.GetStatus())

Expand All @@ -40,7 +41,7 @@ func TestVirtualMachine_deallocated(t *testing.T) {
newJsonFileResponder("./testdata/vmByName-deallocated.json"))

vm, err := c.LoadVmByName("test-group", "test-vm2")
assert.NoError(t, err)
require.NoError(t, err)

assert.Equal(t, 2, vm.GetStatus())

Expand Down
5 changes: 3 additions & 2 deletions internal/compute/virtual_machines_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"github.com/NETWAYS/check_cloud_azure/internal/compute"
"github.com/jarcoal/httpmock"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
)

Expand All @@ -21,10 +22,10 @@ func TestVirtualMachines(t *testing.T) {
newJsonFileResponder("./testdata/vmByName-deallocated.json"))

running, err := c.LoadVmByName("test-group", "test-vm")
assert.NoError(t, err)
require.NoError(t, err)

deallocated, err := c.LoadVmByName("test-group", "test-vm2")
assert.NoError(t, err)
require.NoError(t, err)

vms := compute.VirtualMachines{}

Expand Down

0 comments on commit d2efb43

Please sign in to comment.