Skip to content

Use Python generated client in the testing framework  #2304

Open
@gbionescu

Description

@gbionescu

We need to generate the Python API client to use inside the testing framework instead of writing our own API request classes.

This effort would help in making sure that any YAML change is reflected in the way that API requests are done and reducing framework code.

Things to keep in mind:

  • The python client would have to be generated each time the YAML file is changed. This would add a few problems since the codegen step could take a while to finish, so some investigation would initially have to be done to make sure that we don't spend a lot of time here. Some ideas to speed up things would be to check the YAML version or store a hash of the last checked YAML file.
  • The resources.py file would be replaced.
  • API requests should be timed - see decorators here.
  • The MicroVM class will suffer a lot of changes, so it would be a good opportunity to clean up some of the things there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Roadmap: New RequestStatus: ParkedIndicates that an issues or pull request will be revisited laterType: EnhancementIndicates new feature requestspythonPull requests that update Python code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions