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

Remove Deployment.Client and change Deploy #676

Merged
merged 7 commits into from
Oct 17, 2023
Merged

Remove Deployment.Client and change Deploy #676

merged 7 commits into from
Oct 17, 2023

Conversation

kegsay
Copy link
Member

@kegsay kegsay commented Oct 13, 2023

  • Deployment.Client was used to get pre-registered clients. Now we want tests to register new users for each test, for dirty runs. So swap for Deployment.Register everywhere.
  • Deploy was used to deploy a blueprint. We don't want this to enable dirty runs. So replace it with the number of servers you need e.g Deploy(t, 2).

- `Deployment.Client` was used to get pre-registered clients. Now we want tests to register new users for each test, for dirty runs. So swap for `Deployment.Register` everywhere.
- `Deploy` was used to deploy a blueprint. We don't want this to enable dirty runs. So replace it with the number of servers you need e.g `Deploy(t, 2)`.
@kegsay kegsay requested review from a team as code owners October 13, 2023 17:48
Copy link
Member

@sandhose sandhose left a comment

Choose a reason for hiding this comment

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

As someone who was very confused when writing complements tests why blueprints were a thing & why some test would use the builtin users and some not, this makes me happy

I've left a few comments here and there, but overall LGTM

test_package.go Show resolved Hide resolved
CSAPIClients []*client.CSAPI
CSAPIClientsMutex sync.Mutex

// track all clients so if Restart() is called we can repoint to the new high-numbered port
Copy link
Member

Choose a reason for hiding this comment

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

I'm failing to understand this comment, but maybe I'll get it once I'm further in the review

test_package.go Show resolved Hide resolved
@kegsay kegsay merged commit a669c75 into main Oct 17, 2023
4 checks passed
@kegsay kegsay deleted the kegan/rm-client-2 branch October 17, 2023 17:07
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