You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cd8b55b
Browse filesBrowse the repository at this point in the historyBrowse files
CyberARk(dataupload): replace PostDataReadingsWithOptions with PutSnapshot
- Introduced a new `Snapshot` struct to represent the payload for the CyberArk
Discovery and Context API.
- Renamed `PostDataReadingsWithOptions` to `PutSnapshot` to better reflect its
purpose.
- Updated `retrievePresignedUploadURL` to accept `clusterID` directly instead
of using `Options`.
- Refactored tests to use `PutSnapshot` and removed references to the old
`PostDataReadingsWithOptions` method.
Signed-off-by: Richard Wall <richard.wall@cyberark.com>
require.ErrorContains(t, err, "programmer mistake: the cluster name")
53
+
name: "error when bearer token is incorrect",
54
+
snapshot: dataupload.Snapshot{
55
+
ClusterID: "test",
56
+
AgentVersion: "test-version",
78
57
},
79
-
},
80
-
{
81
-
name: "error when bearer token is incorrect",
82
-
payload: defaultPayload,
83
-
opts: defaultOpts,
84
58
authenticate: setToken("fail-token"),
85
59
requireFn: func(t*testing.T, errerror) {
86
60
require.ErrorContains(t, err, "while retrieving snapshot upload URL: received response with status code 500: should authenticate using the correct bearer token")
87
61
},
88
62
},
89
63
{
90
-
name: "invalid JSON from server (RetrievePresignedUploadURL step)",
0 commit comments