Skip to content

Ability to Delete MocksΒ #303

@joshua-temple

Description

@joshua-temple

Howdy!

TLDR; Smocker appears to be increasing in CPU utilization as my integration suite grows. Having the ability to remove orphaned mocks may alleviate this.

First off, I saw this other issue that brought up edit/deletion of mocks, and the response therein.

However, my use case is different and wanted to at least plant the seed of hope.

I'm leveraging your wonderful service as a go-between for my integration suite.

The suite spins up all the necessary infra, including smocker, and then runs tests against those services.

Smocker acts as the dependency gap coverage, so each service in the infra points to smocker in place of an actual API dependency.

So when a single test initiates, the mocks it requires are posted to smocker and then the test runs.

As the suite grows (~150 tests), so does the amount of mocks smocker ingests and thus increases CPU utilization.

This is where my need to remove mocks comes into play, but I may be making an erroneous assumption that more mocks == more CPU util.

When a test completes, I'd like to dump those mocks to reduce overhead.

If this were a synchronous test suite, it'd be a non-issue, simply reset between tests. However, that would make test execution likely run for hours so that is not an option.

Worst comes to worse, I can roll my own delete endpoint into it, but obviously not an encouraged practice for several reasons.

Thoughts?

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