Skip to content

jonjitsu/bash-vcr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Consists of utilities that can be used for mocking or automocking commands/programs/functions/aliases.

Examples

source mock.sh
cd $(mktemp -d)
mkdir -p tests/mocks
cat <<EOF >mock.output
2017-01-18 09:29:01 elasticbeanstalk-us-west-2-185317077653
2017-03-16 23:46:29 jaw-cf-pipeline2
2017-08-03 10:41:56 jaw-home
2017-08-14 16:50:03 jaw-test-bucket
2017-10-23 00:38:45 jawjaw
EOF
mock -o mock.output aws s3 ls
aws s3 ls

2017-01-18 09:29:01 elasticbeanstalk-us-west-2-185317077653 2017-03-16 23:46:29 jaw-cf-pipeline2 2017-08-03 10:41:56 jaw-home 2017-08-14 16:50:03 jaw-test-bucket 2017-10-23 00:38:45 jawjaw

mock.unmock aws
aws s3 ls 

2017-01-18 09:29:01 elasticbeanstalk-us-west-2-185317077653 2017-03-16 23:46:29 jaw-cf-pipeline2 2017-08-03 10:41:56 jaw-home 2017-08-14 16:50:03 jaw-test-bucket 2017-10-23 00:38:45 jawjaw

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published