Module tests.AwsResourceOperatorFactoryTest

AwsResourceOperatorFactoryTest module.

Copyright: ycookjp

Classes

class AwsResourceOperatorFactoryTest (methodName='runTest')

AwsResourceOperatorFactory クラス用のテストクラス

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

Ancestors

  • unittest.case.TestCase

Static methods

def setUpClass()

テストクラスの set up を実行します。

Args

cls
テストクラス
def tearDownClass()

テストクラスの tear down を実行します。

Args

cls
テストクラス

Methods

def test_create(self)

createメソッドのテストを実行します。

  • 引数に「ec2.instance」を指定してcreateメソッドを実行する。
    • => AwsEc2InstanceOperatorクラスのインスタンスが作成されること。
  • 引数に「rds.db_cluster」を指定してcreateメソッドを実行する。
    • => AwsRdsDbClusterOperatorクラスのインスタンスが作成されること。
  • 引数に「rds.db_instance」を指定してcreateメソッドを実行する。
    • => AwsRdsDbInstanceOperatorクラスのインスタンスが作成されること。
def test_error_create(self)

不正なパラメータを指定して、createメソッドのテストを実行します。

  • 引数に「ec2.error」を指定してcreateメソッドを実行する。
    • => RuntimeError 例外が発生すること。