Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dehort committed Dec 10, 2024
1 parent 344f5b3 commit 646e097
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/api/connectors/cloudConnector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"io"
"playbook-dispatcher/internal/common/config"
"playbook-dispatcher/internal/common/constants"
"playbook-dispatcher/internal/common/utils"
Expand Down Expand Up @@ -91,7 +91,7 @@ var _ = Describe("Cloud Connector", func() {
Expect(err).ToNot(HaveOccurred())
Expect(*result).To(Equal("871e31aa-7d41-43e3-8ef7-05706a0ee34a"))

bytes, err := ioutil.ReadAll(doer.Request.Body)
bytes, err := io.ReadAll(doer.Request.Body)
Expect(err).ToNot(HaveOccurred())
parsedRequest := make(map[string]interface{})
err = json.Unmarshal(bytes, &parsedRequest)
Expand Down Expand Up @@ -137,7 +137,7 @@ var _ = Describe("Cloud Connector", func() {
Expect(err).ToNot(HaveOccurred())
Expect(*result).To(Equal("871e31aa-7d41-43e3-8ef7-05706a0ee34a"))

bytes, err := ioutil.ReadAll(doer.Request.Body)
bytes, err := io.ReadAll(doer.Request.Body)
Expect(err).ToNot(HaveOccurred())
parsedRequest := make(map[string]interface{})
err = json.Unmarshal(bytes, &parsedRequest)
Expand Down Expand Up @@ -183,7 +183,7 @@ var _ = Describe("Cloud Connector", func() {
Expect(err).ToNot(HaveOccurred())
Expect(*result).To(Equal("871e31aa-7d41-43e3-8ef7-05706a0ee34a"))

bytes, err := ioutil.ReadAll(doer.Request.Body)
bytes, err := io.ReadAll(doer.Request.Body)
Expect(err).ToNot(HaveOccurred())
parsedRequest := make(map[string]interface{})
err = json.Unmarshal(bytes, &parsedRequest)
Expand Down Expand Up @@ -235,7 +235,7 @@ var _ = Describe("Cloud Connector", func() {
Expect(err).ToNot(HaveOccurred())
Expect(*result).To(Equal("871e31aa-7d41-43e3-8ef7-05706a0ee34a"))

bytes, err := ioutil.ReadAll(doer.Request.Body)
bytes, err := io.ReadAll(doer.Request.Body)
Expect(err).ToNot(HaveOccurred())
parsedRequest := &CustomUrlType{}
err = json.Unmarshal(bytes, parsedRequest)
Expand Down

0 comments on commit 646e097

Please sign in to comment.