Skip to content

Instantly share code, notes, and snippets.

@hytdsh
Created September 6, 2024 05:32
Show Gist options
  • Save hytdsh/5147f9ed1d81b2a6aa9036119743d154 to your computer and use it in GitHub Desktop.
Save hytdsh/5147f9ed1d81b2a6aa9036119743d154 to your computer and use it in GitHub Desktop.
check-k6-cognito-not-done
$ docker run --rm -it ubuntu:latest bash
root@78320631a485:/# cd ~

root@05e07354a801:~# apt-get update && apt-get install golang ca-certificates
root@05e07354a801:~# go install go.k6.io/xk6/cmd/xk6@latest
root@05e07354a801:~# /root/go/bin/xk6 build latest --with github.com/tmieulet/xk6-cognito
root@05e07354a801:~# ls -la
total 48744
drwx------ 1 root root     4096 Sep  6 05:28 .
drwxr-xr-x 1 root root     4096 Sep  6 05:25 ..
-rw-r--r-- 1 root root     3106 Apr 22 13:04 .bashrc
drwxr-xr-x 3 root root     4096 Sep  6 05:27 .cache
-rw-r--r-- 1 root root      161 Apr 22 13:04 .profile
drwxr-xr-x 4 root root     4096 Sep  6 05:27 go
-rwxr-xr-x 1 root root 49885336 Sep  6 05:28 k6

root@05e07354a801:~# cat >test.js <<[EOF]
import cognito from 'k6/x/cognito';
 
export default function () {
}

[EOF]

root@05e07354a801:~# ./k6 run test.js
(なにも実行なし, エラーなし)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment