Skip to content

Introduce Fake GitlabLoader class for test #53

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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