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

Update tests that extract RDF graphs from responses to: #143

Merged
merged 1 commit into from Nov 13, 2013

Conversation

cbeer
Copy link
Contributor

@cbeer cbeer commented Nov 7, 2013

  • validate it receives RDF
  • select an appropriate RDF serialization for the Content-Type
  • consistently fetch the graph using test helpers

@cbeer
Copy link
Contributor Author

cbeer commented Nov 13, 2013

@awoods ?

@awoods
Copy link

awoods commented Nov 13, 2013

Is there a ticket for this? ...mostly because tickets help establish an accurate velocity.

@cbeer
Copy link
Contributor Author

cbeer commented Nov 13, 2013

This falls under part of the Jersey 2.x migration (https://www.pivotaltracker.com/story/show/52200823). There isn't a stand-alone ticket, no.

new HttpPost(txLocation + "/object-in-tx-rollback");
HttpResponse resp = execute(postNew);
assertEquals(201, resp.getStatusLine().getStatusCode());
execute(new HttpPost(txLocation + "/object-in-tx-rollback"));
Copy link

Choose a reason for hiding this comment

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

Is the status-code check removed because it was failing? or is there another reason for not inspecting the HttpResponse?

@awoods
Copy link

awoods commented Nov 13, 2013

Ready to go, pending minor comments.

@cbeer
Copy link
Contributor Author

cbeer commented Nov 13, 2013

I can restore those checks if you want. It's not clear that we care about the response, or in what circumstances it'd actually fail.

@awoods
Copy link

awoods commented Nov 13, 2013

They are simple checks. Please feel free to re-add and commit/merge.

@cbeer
Copy link
Contributor Author

cbeer commented Nov 13, 2013

Will do.

 - validate it receives RDF
 - select an appropriate RDF serialization for the Content-Type
 - consistently fetch the graph using test helpers
@cbeer
Copy link
Contributor Author

cbeer commented Nov 13, 2013

Done, and rebased.

awoods pushed a commit that referenced this pull request Nov 13, 2013
Update tests that extract RDF graphs from responses to:
@awoods awoods merged commit c8869a8 into master Nov 13, 2013
@awoods awoods deleted the rdf-test-cleanup branch November 13, 2013 20:45
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.

None yet

2 participants