Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[STANDALONE ]Add K8s ingress deletion job #161

Merged
merged 1 commit into from
Sep 1, 2021
Merged

Conversation

toban
Copy link
Contributor

@toban toban commented Aug 18, 2021

This turned out to be quite the blackbox, tried setting up minikube for
testing but wouldn't work without somekind of proxy thing to make them
talk between docker <-> minikube which feels to be a step too far. Do we
just trust this api to work?

This turned out to be quite the blackbox, tried setting up minikube for
testing but wouldn't work without somekind of proxy thing to make them
talk between docker <-> minikube which feels to be a step too far. Do we
just trust this api to work?
$wiki = Wiki::factory()->create( [ 'deleted_at' => null ] );
WikiManager::factory()->create(['wiki_id' => $wiki->id, 'user_id' => $user->id]);

$mockJob = $this->createMock(Job::class);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this how you are supposed to test these failure functions? It seems to work but this is the first time any of these failure things get tested afaik.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tried getting the FailedJobProviderInterfaceby using the app->make function which seemed to work, however in the tests nothing seems to get written to the database(also tried adding the Dispatchable interface to the job and use dispatchSync). Does that happen in production though?

@toban toban requested a review from addshore August 18, 2021 08:22
Copy link
Collaborator

@addshore addshore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@addshore addshore merged commit c6b4fa7 into main Sep 1, 2021
@addshore addshore deleted the ingress-deletion-job branch September 1, 2021 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants