nodepool/nodepool
James E. Blair 348fd17e73 Add additional tests to the aws driver
This adds several new tests:

This exercises the new ipv6 functionality.  The boto3 mocks do not
support assigning an ipv6 address on creation, so we adopt a
unit-test style approach and verify the calling side and our
processing of the results separately.  This uses the patching
scheme that we just removed in the previous commit, but alters it
to simply record the call arguments so we can validate them outside
the patched method.

This adds a diskimage upload test to the AWS driver.  Because moto
doesn't support the create_image method, we need to add a fake for
that.  Boto's practice of creating proxy objects makes that hard to
do, so some helper methods are added on the adapter class to make
it easier for the tests to override.

The responses in the fake are based on a recorded session.

This adds a test of leaked resource cleanup, including the automatic
tagging of untagged resources from image import tasks.

Change-Id: I0626061b246e9c52b08c49394d4d22b46beeff7a
2022-03-16 16:12:42 -07:00
..
cmd Merge "Add commands to export/import image data from ZK" 2021-09-15 22:01:46 +00:00
driver Add additional tests to the aws driver 2022-03-16 16:12:42 -07:00
releasenotes/notes Filter active images for OpenStack provider 2020-03-17 16:26:50 +01:00
tests Add additional tests to the aws driver 2022-03-16 16:12:42 -07:00
__init__.py Initial commit 2013-08-15 09:47:23 -07:00
builder.py Add provider image config to statemachine image upload 2022-02-22 13:33:31 -08:00
config.py Add Tenant-Scoped Resource Quota 2021-09-01 09:07:43 +02:00
exceptions.py Remove uneeded shebang and exec bit on some files 2019-12-13 19:30:03 +01:00
launcher.py Fix tenant-quota for providers without label quota infos 2022-02-05 18:12:34 +00:00
logconfig.py Format multi-line log entries 2021-03-05 13:34:19 -08:00
nodeutils.py First ensure ssh connection is valid before scanning keys 2021-07-19 08:58:56 -04:00
provider_manager.py Improve handling of errors in provider manager startup 2022-01-14 19:07:32 -08:00
stats.py Export current tenant limit stats 2022-01-07 09:27:31 +01:00
status.py Ignore unparsable/empty image build ZNode data 2020-10-06 12:44:18 +02:00
version.py Switch docs theme to versioned RTD 2021-12-16 11:23:30 -08:00
webapp.py Add ready endpoint to webapp 2019-12-21 10:06:55 +00:00
zk.py Retain created_time in node requests 2022-02-28 10:03:03 -08:00