makerole.shのテスト
makerole.sh
前提パッケージ
molecule
あり
なし
ansible
あり
なし
引数
サイズ
1
2
3
オプション
正常
-h
--help
-v
--verbose
異常
-x
namespace.collection
あり
正常
pogin503.dev
異常
dame
xxx.dev
pogin503.x
pogin503-dev
なし
role
あり
正常
ロールディレクトリなし
perf
異常
ロールディレクトリあり
fish
なし
usage
コレクションパスの取得
正常
異常
namespace
NG
collection
NG
role
NG
ロガー
disable
NOTSET
CRITICAL
テストケース
$ bin/makerole.sh -v help
$ bin/makerole.sh -v -h help
$ bin/makerole.sh -v -x
$ bin/makerole.sh test1
$ bin/makerole.sh test1 test2 test3
$ bin/makerole.sh test1 fish
$ bin/makerole.sh xxx.dev fish
$ bin/makerole.sh pogin503.x perf
$ bin/makerole.sh pogin503.dev fish
$ bin/makerole.sh pogin503.dev role
$ bin/makerole.sh pogin503.dev perf