tests.system.google.cloud.compute.example_compute_recreate_drift

System test for ComputeEngineInsertInstanceOperator verifying recreate_if_machine_type_different=True recreates the correct machine_type instance when machine_type drifts.

Attributes

ENV_ID

PROJECT_ID

DAG_ID

LOCATION

INSTANCE_NAME

MACHINE_TYPE_A

MACHINE_TYPE_B

BASE_BODY

create_instance

test_run

Functions

assert_machine_type()

Module Contents

tests.system.google.cloud.compute.example_compute_recreate_drift.ENV_ID[source]
tests.system.google.cloud.compute.example_compute_recreate_drift.PROJECT_ID[source]
tests.system.google.cloud.compute.example_compute_recreate_drift.DAG_ID = 'cloud_compute_insert_recreate_if_different'[source]
tests.system.google.cloud.compute.example_compute_recreate_drift.LOCATION = 'us-central1-a'[source]
tests.system.google.cloud.compute.example_compute_recreate_drift.INSTANCE_NAME[source]
tests.system.google.cloud.compute.example_compute_recreate_drift.MACHINE_TYPE_A = 'n1-standard-1'[source]
tests.system.google.cloud.compute.example_compute_recreate_drift.MACHINE_TYPE_B = 'n1-standard-2'[source]
tests.system.google.cloud.compute.example_compute_recreate_drift.BASE_BODY[source]
tests.system.google.cloud.compute.example_compute_recreate_drift.assert_machine_type()[source]
tests.system.google.cloud.compute.example_compute_recreate_drift.create_instance[source]
tests.system.google.cloud.compute.example_compute_recreate_drift.test_run[source]

Was this entry helpful?