-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add functional tests #262
Add functional tests #262
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: omersch381 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
1723d0f
to
12d550d
Compare
Updated unit job to functional job, Need by [1] [1] openstack-k8s-operators/designate-operator#262
12d550d
to
abdf61b
Compare
Updated unit job to functional job, Need by [1] [1] openstack-k8s-operators/designate-operator#262
Updated unit job to functional job, Need by [1] [1] openstack-k8s-operators/designate-operator#262
…9930) Updated unit job to functional job, Need by [1] [1] openstack-k8s-operators/designate-operator#262
abdf61b
to
32efa93
Compare
6dfe158
to
32efa93
Compare
32efa93
to
d33a99f
Compare
d33a99f
to
b2b0dc3
Compare
…enshift#59930) Updated unit job to functional job, Need by [1] [1] openstack-k8s-operators/designate-operator#262
b2b0dc3
to
0cafccd
Compare
api/v1beta1/conditions.go
Outdated
// DesignateRabbitMqTransportURLReadyCondition Status=True condition which indicates if the RabbitMQ TransportURLUrl is ready | ||
DesignateRabbitMqTransportURLReadyCondition condition.Type = "DesignateRabbitMqTransportURLReady" | ||
// RabbitMqTransportURLReadyCondition Status=True condition which indicates if the RabbitMQ TransportURLUrl is ready | ||
RabbitMqTransportURLReadyCondition condition.Type = "RabbitMqTransportURLReady" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For future reference:a PR that adds tests probably should avoid changing other code. I think it's a decent change in any case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I changed it because I wanted it to match:
https://github.com/openstack-k8s-operators/lib-common/blob/d172b3ac0f4ee7d91b54be6efe312bdf1f012ee2/modules/common/condition/conditions.go#L313
before I changed it, some tests failed as that condition module didn't have DesignateRabbitMqTransportURLReadyCondition
In that matter, the tests helped me improve the non-testing code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah you are right. In fact it seems we should not be redefining these and instead use the conditions and messages from lib-common
api/v1beta1/conditions.go
Outdated
// DesignateRabbitMqTransportURLReadyInitMessage | ||
DesignateRabbitMqTransportURLReadyInitMessage = "DesignateRabbitMqTransportURL not started" | ||
// RabbitMqTransportURLReadyInitMessage | ||
RabbitMqTransportURLReadyInitMessage = "RabbitMqTransportURL not started" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you're changing them anyways, can you check the messages this against messages in other operators like nova? These were copy/pasted early on without too much critical thought and the text messages aren't super helpful as they refer to constant names.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't find a rabbitmq condition in nova:
~/nova-operator main > rg 'RabbitMq' | rg condition
~/nova-operator main >
however, I did find this line https://github.com/openstack-k8s-operators/lib-common/blob/d172b3ac0f4ee7d91b54be6efe312bdf1f012ee2/modules/common/condition/conditions.go#L313
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work! Just a question about the message text.
0cafccd
to
d83ccad
Compare
hmm the only change I did was replacing designatev1beta.RabbitMqTransportURLReadyCondition with condition.RabbitMqTransportURLReadyCondition and it is not even used in the test. |
/retest functional |
@omersch381: The
Use In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/test functional |
d83ccad
to
6e37d30
Compare
@omersch381: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
6e37d30
to
39b737e
Compare
/lgtm |
4a66d30
into
openstack-k8s-operators:main
No description provided.