Skip to content

Introduce Fake GitlabLoader class for test #53

@JayZ12138

Description

@JayZ12138

Summary

Now, it's extremely painful to write test cases for ubi-population-tool, which heavily used ubi-config. One reason is, it needs to mock everything provided by ubiconfig loader.
Now, since there's a major change in config files layout from remote and new attribute 'version' is introduced(made LocalLoader not usable anymore), maintainer of that repo might need to rewrite all the mock stuffs.
So, if a fake remote loader could be used, things will be much easier.

Issue Type

  • Feature Request

Current behavior

There is no fake loader.

Desired behavior

A fake remote loader provides all features a real loader provides, but it's doesn't rely on real repos and config files.

Use case

Easier for users of this repo to write test cases.

Additional Information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions