2022-07-14 13:47:32 +12:00
|
|
|
import http from 'k6/http';
|
|
|
|
export const options = {
|
|
|
|
vus: 20,
|
|
|
|
duration: '60s',
|
|
|
|
};
|
|
|
|
export default function () {
|
|
|
|
http.post('http://localhost/v1/graphql', JSON.stringify({
|
2022-07-20 01:30:01 +12:00
|
|
|
query: `query { accountGet { _id email } }`
|
2022-07-14 13:47:32 +12:00
|
|
|
}), {
|
|
|
|
headers: {
|
|
|
|
'Content-Type': 'application/json',
|
|
|
|
'X-Appwrite-Project': 'test',
|
2022-07-20 01:30:01 +12:00
|
|
|
'Cookie': ''
|
2022-07-14 13:47:32 +12:00
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|