Skip to content

Added test to get info of a specific share id - #20429

Merged
DeepDiver1975 merged 1 commit into
masterfrom
sharing-api-integration-tests-get-share-by-id
Nov 10, 2015
Merged

DeepDiver1975 merged 1 commit into
masterfrom
sharing-api-integration-tests-get-share-by-id

Conversation

@SergioBertolinSG

Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'd prefer to have a more explicit validation here for all xml elements.
We can even use PyString - http://docs.behat.org/en/v2.5/guides/1.gherkin.html#pystrings - to specific the explicit xml response.

@SergioBertolinSG please let me know if you need support

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes please validate all elements currently there. So we know if we break the API. Now for a lot of stuff you can probably only check if they are there. Or you need to have database access in the process.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ok, I'll modify this to check all elements.

@SergioBertolinSG

Copy link
Copy Markdown
Contributor Author

I've chosen TableNode instead of PyString, suits better to check the fields.
There are four fields which are different everytime a share is created they are:
storage, file_parent, file_source, item_source.
I don't know what they are used for, but the content changes.
Do we want to check them?

@rullzer

rullzer commented Nov 10, 2015

Copy link
Copy Markdown
Contributor

I've chosen TableNode instead of PyString, suits better to check the fields.
There are four fields which are different everytime a share is created they are:
storage, file_parent, file_source, item_source.
I don't know what they are used for, but the content changes.
Do we want to check them?

Yeah that is likely to happen. Just make sure they are set in the return for now.

@SergioBertolinSG

Copy link
Copy Markdown
Contributor Author

I've added all remaining fields just checking if they have numeric values.

@DeepDiver1975 DeepDiver1975 added this to the 9.0-current milestone Nov 10, 2015
@rullzer

rullzer commented Nov 10, 2015

Copy link
Copy Markdown
Contributor

@SergioBertolinSG awesome thanks!

👍

@DeepDiver1975

Copy link
Copy Markdown
Contributor

please squash

@rullzer

rullzer commented Nov 10, 2015

Copy link
Copy Markdown
Contributor

Could you for a next PR do this for link shares? Since they have different files (token/url, possibly expiration).

Check fields of the share response

Added missing fields to check if their values are numbers
@DeepDiver1975
DeepDiver1975 force-pushed the sharing-api-integration-tests-get-share-by-id branch from 65332bc to 7aa6e9b Compare November 10, 2015 15:25
@DeepDiver1975

Copy link
Copy Markdown
Contributor

please squash

done 🙊

@SergioBertolinSG

Copy link
Copy Markdown
Contributor Author

@rullzer sure.

@SergioBertolinSG

Copy link
Copy Markdown
Contributor Author

merge?

DeepDiver1975 added a commit that referenced this pull request Nov 10, 2015
…-get-share-by-id

Added test to get info of a specific share id
@DeepDiver1975
DeepDiver1975 merged commit 27e3d13 into master Nov 10, 2015
@DeepDiver1975
DeepDiver1975 deleted the sharing-api-integration-tests-get-share-by-id branch November 10, 2015 16:40
@DeepDiver1975

Copy link
Copy Markdown
Contributor

👍

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants