Skip to content

Commit

Permalink
TEST: send to /kill/test/
Browse files Browse the repository at this point in the history
Signed-off-by: Vallari Agrawal <[email protected]>
  • Loading branch information
VallariAg committed Sep 11, 2024
1 parent ebaaebe commit 1cbd77d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/lib/teuthologyAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,17 @@ function useUserData(): Map<string, string> {
}

function useRunKill(): UseMutationResult {
const url = getURL("/kill/?logs=true");
const data = {
"name": "Foo",
"description": "An optional description",
"price": 45.2,
"tax": 3.5
}
const url = getURL("/kill/test/");
const mutation: UseMutationResult = useMutation({
mutationKey: ['run-kill', { url }],
mutationFn: (payload) => (
axios.post(url, payload, {
axios.post(url, data, {
withCredentials: true
})
),
Expand Down

0 comments on commit 1cbd77d

Please sign in to comment.