Not fail immediately if ran directly (without the makefile) and the LINODE_API_TOKEN was not set as an environment variable.
Use time.Sleep() to "wait" for BS Volumes to be detached/deleted
Use hardcoded values for timeouts and retry intervals.
Pass the StorageClass name as a input to the framework, instead of being a per-test parameter
The changes in here address those issues:
The tests themselves now fail quickly if the API token is not provided, or if the Kubernetes version is not provided and a cluster needs to be created.
The tests now "poll" to check if the volumes have detached and deleted.
The timeouts and retry intervals can be modified using the --timeout flag and the --retry-interval flag, respectively.
Has the linode-block-storage StorageClass name not be a framework parameter.
Additionally, I also took the opportunity to update linodego and added extra flags to configure its runtime behavior as well.
General:
Pull Request Guidelines:
Previously, the e2e tests would:
LINODE_API_TOKEN
was not set as an environment variable.time.Sleep()
to "wait" for BS Volumes to be detached/deletedThe changes in here address those issues:
--timeout
flag and the--retry-interval
flag, respectively.linode-block-storage
StorageClass name not be a framework parameter.Additionally, I also took the opportunity to update linodego and added extra flags to configure its runtime behavior as well.