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

Handling Status for revoking request and test for revoke action #773

Merged
merged 3 commits into from
Feb 5, 2016

Conversation

trishnaguha
Copy link
Contributor

Trying to fix #645

'/updates/%s/request' % args['builds'],
{'request': 'revoke', 'csrf_token': self.get_csrf_token()})
eq_(resp.json['update']['request'], None)
eq_(resp.json['update']['status'], 'pending')
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't the status be unpushed here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pypingou I did unpushed . But It is failing for unpushed. So I kept it as pending intentionally for the review.

Copy link
Member

Choose a reason for hiding this comment

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

@trishnaguha if the test is failing then I guess there is a bug in the code :/
Since clearly according to your code the status should be unpushed: https://github.com/fedora-infra/bodhi/pull/773/files#diff-55c0d4c740a773e117d1f620f264f793R1119

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pypingou I'm trying to fix it. It would be helpful if you can give me some clue here :)

Copy link
Member

Choose a reason for hiding this comment

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

I have honestly none, I just ran into this while reading your code nothing more.

Maybe try to add some debugging prints and see if the test goes through the code you added?

notifications.publish(topic=topic, msg=dict(
update=self, agent=username))
return

Copy link
Member

Choose a reason for hiding this comment

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

So what happens to a request that is in testing, not pending for anything and being revoked?

@pypingou
Copy link
Member

pypingou commented Feb 4, 2016

This looks good to me, nice job @trishnaguha :)

@lmacken
Copy link
Contributor

lmacken commented Feb 5, 2016

Looks good to me as well. Nice work @trishnaguha 💥 👍 ⚡

lmacken added a commit that referenced this pull request Feb 5, 2016
Handling Status for revoking request and test for revoke action
@lmacken lmacken merged commit 16ead7b into fedora-infra:develop Feb 5, 2016
@trishnaguha trishnaguha deleted the revoke-request branch February 5, 2016 16:59
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.

revoking the request on a pending update should set the status to revoked
3 participants