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

Refactor gateways #148

Merged
merged 34 commits into from
Jan 16, 2019
Merged

Refactor gateways #148

merged 34 commits into from
Jan 16, 2019

Conversation

VaibhavPage
Copy link
Contributor

@VaibhavPage VaibhavPage added the enhancement New feature or request label Jan 5, 2019
@VaibhavPage VaibhavPage added this to the v0.7 milestone Jan 5, 2019
@VaibhavPage VaibhavPage self-assigned this Jan 5, 2019
Makefile Outdated Show resolved Hide resolved
@VaibhavPage VaibhavPage changed the title WIP: Refactor gateways Refactor gateways Jan 10, 2019
pjediny and others added 5 commits January 10, 2019 17:29
* Refactoring gateway

* Updated state handling of event sources

* updating gateways

* refactor resource gateway

* updating gateways

* updating gateways

* updating gateways

* updating gateways

* updating gateways

* refactoring sensor

* refactoring controllers

* refactoring controllers

* Updating hack

* Updating documentation

* updated examples

* Adding recover in gateways

* Gateway is now deployed as a pod instead of deployment

* refactoring state machine of sensor and gateway

* Updating sensor and gateway state machine

* Updating sensor and gateway state machine

* Updating examples

* Add custom GitHub gateway

Issue #95
controllers/gateway/operator_test.go Outdated Show resolved Hide resolved
controllers/gateway/validate_test.go Outdated Show resolved Hide resolved
controllers/sensor/operator_test.go Outdated Show resolved Hide resolved
@VaibhavPage VaibhavPage changed the title Refactor gateways WIP: Refactor gateways Jan 14, 2019
@VaibhavPage
Copy link
Contributor Author

Added back the tests

@VaibhavPage VaibhavPage changed the title WIP: Refactor gateways Refactor gateways Jan 14, 2019
assert.Equal(t, 2, second.Hour())
assert.Equal(t, 10, second.Minute())
assert.Equal(t, 30, second.Second())
convey.Convey("Given an exclusion date", t, func() {
Copy link
Contributor

Choose a reason for hiding this comment

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

I've never heard of convey testing framework? any reason we're using it?

Copy link
Contributor Author

@VaibhavPage VaibhavPage Jan 16, 2019

Choose a reason for hiding this comment

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

It allows writing behavior driven tests. Plus it has a nice UI where you can see your "test stories", which part of your is covered by tests, coverage increment/decrement since last run, past test runs statistics etc. http://goconvey.co/

Copy link
Contributor

Choose a reason for hiding this comment

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

that's pretty neat. are there others using this? how does it compare to Ginko?

Copy link
Contributor Author

@VaibhavPage VaibhavPage Jan 16, 2019

Choose a reason for hiding this comment

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

Both are behavior driven testing framework. I tried both Ginko and Convey and both are kind of on the same level in terms of ease of use , but Convey has a nice UI and it is more popular than Ginko

@VaibhavPage VaibhavPage merged commit 98de845 into master Jan 16, 2019
@magaldima magaldima deleted the refactor-gateways branch February 3, 2019 20:18
juliev0 pushed a commit to juliev0/argo-events that referenced this pull request Mar 29, 2022
* Refactoring gateway

* Updated state handling of event sources

* updating gateways

* refactor resource gateway

* updating gateways

* updating gateways

* updating gateways

* updating gateways

* updating gateways

* refactoring sensor

* refactoring controllers

* refactoring controllers

* Updating hack

* Updating documentation

* updated examples

* Adding recover in gateways

* Gateway is now deployed as a pod instead of deployment

* refactoring state machine of sensor and gateway

* Updating sensor and gateway state machine

* Updating sensor and gateway state machine

* Updating examples

* Updating resource gateway

* Updating gateway validation

* reverting examples

* Add custom GitHub gateway (argoproj#150)

* Refactoring gateway

* Updated state handling of event sources

* updating gateways

* refactor resource gateway

* updating gateways

* updating gateways

* updating gateways

* updating gateways

* updating gateways

* refactoring sensor

* refactoring controllers

* refactoring controllers

* Updating hack

* Updating documentation

* updated examples

* Adding recover in gateways

* Gateway is now deployed as a pod instead of deployment

* refactoring state machine of sensor and gateway

* Updating sensor and gateway state machine

* Updating sensor and gateway state machine

* Updating examples

* Add custom GitHub gateway

Issue argoproj#95

* minor docs fix

* minor docs fix

* minor docs fix

* Adding tests back

* Adding tests back

* Adding tests back

* Adding tests back

* Adding tests back
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants