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

init piccolo #503

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

init piccolo #503

wants to merge 4 commits into from

Conversation

youngtaekiim
Copy link

Please understand that I accidentally changed the repository and made a wrong commit fix (amend), which caused the existing PR to be closed.
I will also post response to existing your code reviews here.

previous : #502


The Get() method and Apply() method should be consistent. For example, the Get() method gets by the path "workload.type/workload.name", while the Apply() method posts to path component.Name, which isn't necessary the same with workload.name. If workload.name and component.name are the same, probably we should exclude workload.name in properties and use component.Name in Get()
→ Thanks for letting me know I didn't know that. Also fixed it to use workload.name when Apply()

Also, the Apply() method doesn't use workload.type. Maybe workload.type should be included in the request properties?
→ In fact workload.type was created in advance because it was supposed to be applied in the future. It was removed because it is not needed now.

Extract url from properties here. Throw COAError if url is not found in properties.
→ Fixed to get Url grom properties and use default value on failure.

- delete workload.type
- add Piccolo URL setting
- use workload.name instead of component name during Apply
if testPiccoloProvider == "" {
t.Skip("Skipping because TEST_PICCOLO_PROVIDER enviornment variable is not set")
}
config := PiccoloTargetProviderConfig{}
Copy link
Contributor

Choose a reason for hiding this comment

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

There are several places that the service Url needs to be set before the test can pass. We've checked in the mock server to docs/mocks/piccolo-mock folder, please make sure you can test against the server.

Copy link
Author

Choose a reason for hiding this comment

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

I haven't paid attention for a while, but thanks for taking the time about this. I've made some changes to Piccolo providers and mock server code, and golang test codes. All tests pass, but since I use podman as my container runtime, others need to fix that part in a docker environment.

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