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

As an authenticated user, I can create an Artifact by uploading a file #726

Closed
nixocio opened this issue Jul 28, 2017 · 0 comments
Closed

Comments

@nixocio
Copy link

nixocio commented Jul 28, 2017

Add tests to explore the creation of artifacts in Pulp3.

See: 2843

@nixocio nixocio added this to the Pulp3 Smoke Tests milestone Feb 19, 2018
nixocio pushed a commit to nixocio/pulp-smash that referenced this issue Feb 22, 2018
nixocio pushed a commit to nixocio/pulp-smash that referenced this issue Feb 26, 2018
nixocio pushed a commit to nixocio/pulp-smash that referenced this issue Feb 26, 2018
nixocio pushed a commit to nixocio/pulp-smash that referenced this issue Feb 26, 2018
nixocio pushed a commit to nixocio/pulp-smash that referenced this issue Feb 27, 2018
As of this writing, pulp3 does not handle upload of duplicate files.
Due that, there is a need to clean the artifacts present in pulp3, before
attempt to upload a new file to pulp3.
However, if a file exists as content unit and as artifact, the file has
to be deleted first as a content unit then as an artifact.
To solve this issue, 2 new functions were added to pulp3/utils.

- `clean_content_units()`
- `clean_artifacts()`

Add tests to CRD artifacts.

1. Create an artifact by uploading a file to pulp3.
2. Reads an artifact by its href.
3. Delete an artifact.

Closes: pulp#726
@nixocio nixocio self-assigned this Feb 27, 2018
nixocio pushed a commit to nixocio/pulp-smash that referenced this issue Feb 28, 2018
As of this writing, pulp3 does not handle upload of duplicate files.
Due that, there is a need to clean the artifacts present in pulp3, before
attempt to upload a new file to pulp3.
However, if a file exists as content unit and as artifact, the file has
to be deleted first as a content unit then as an artifact.
To solve this issue, 2 new functions were added to pulp3/utils.

- `clean_content_units()`
- `clean_artifacts()`

Add tests to CRD artifacts.

1. Create an artifact by uploading a file to pulp3.
2. Reads an artifact by its href.
3. Delete an artifact.

Closes: pulp#726
nixocio pushed a commit to nixocio/pulp-smash that referenced this issue Feb 28, 2018
As of this writing, pulp3 does not handle upload of duplicate files.
Due that, there is a need to clean the artifacts present in pulp3, before
attempt to upload a new file to pulp3.
However, if a file exists as content unit and as artifact, the file has
to be deleted first as a content unit then as an artifact.
To solve this issue, 2 new functions were added to pulp3/utils.

- `clean_content_units()`
- `clean_artifacts()`

Add tests to CRD artifacts.

1. Create an artifact by uploading a file to pulp3.
2. Reads an artifact by its href.
3. Delete an artifact.

Closes: pulp#726
nixocio pushed a commit to nixocio/pulp-smash that referenced this issue Feb 28, 2018
As of this writing, pulp3 does not handle upload of duplicate files.
Due that, there is a need to clean the artifacts present in pulp3, before
attempt to upload a new file to pulp3.
However, if a file exists as content unit and as artifact, the file has
to be deleted first as a content unit then as an artifact.
To solve this issue, 2 new functions were added to pulp3/utils.

- `clean_content_units()`
- `clean_artifacts()`

Add tests to CRD artifacts.

1. Create an artifact by uploading a file to pulp3.
2. Reads an artifact by its href.
3. Delete an artifact.

Closes: pulp#726
nixocio pushed a commit to nixocio/pulp-smash that referenced this issue Mar 1, 2018
As of this writing, pulp3 does not handle upload of duplicate files.
Due that, there is a need to clean the artifacts present in pulp3, before
attempt to upload a new file to pulp3.
However, if a file exists as content unit and as artifact, the file has
to be deleted first as a content unit then as an artifact.
To solve this issue, 2 new functions were added to pulp3/utils.

- `clean_content_units()`
- `clean_artifacts()`

Add tests to CRD artifacts.

1. Create an artifact by uploading a file to pulp3.
2. Reads an artifact by its href.
3. Delete an artifact.

Closes: pulp#726
nixocio pushed a commit to nixocio/pulp-smash that referenced this issue Apr 23, 2018
Add two extra test cases:

 * Create an artifact providing the wrong digest and size.
 * Create an artifact providing the right digest and size.

These tests were created using the MVP, and the auto generated API
documentation as technical reference.

See:pulp#726
nixocio pushed a commit to nixocio/pulp-smash that referenced this issue Apr 24, 2018
Add two extra test cases:

 * Create an artifact providing the wrong digest and size.
 * Create an artifact providing the right digest and size.

These tests were created using the MVP, and the auto generated API
documentation as technical reference.

See:pulp#726
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant