canonical / cloud-init

Official upstream for the cloud-init: cloud instance initialization
https://cloud-init.io/
Other
3.01k stars 887 forks source link

fix(test): convert p.gce.instance.instance_id to str #5783

Closed aciba90 closed 1 month ago

aciba90 commented 1 month ago

Proposed Commit Message

fix(test): convert p.gce.instance.instance_id to str

Sdk changes surface instance_id as integer rather than as str.

Convert it appropiately and adopt pycloudlib's public API, rather than
directly accessing instance_id on the GCE SDK underliying instance
object.

Additional Context

Test Steps

export CLOUD_INIT_CLOUD_INIT_SOURCE=NONE
export CLOUD_INIT_PLATFORM=gce
export CLOUD_INIT_OS_IMAGE=jammy

tox -v -e integration-tests-jenkins -- -vvv --pdb \
        tests/integration_tests/modules/test_combined.py::TestCombined::test_instance_json_gce

Merge type