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

feature: ZENKO-367 CRR to Azure end-to-end tests #199

Merged
merged 1 commit into from
Jul 20, 2018

Conversation

bennettbuchanan
Copy link

This PR adds CRR to Azure replication end-to-end tests. I've skipped tests which were previously passing but are not currently in Zenko—these skipped tests require further investigation.

@bennettbuchanan bennettbuchanan force-pushed the feature/ZENKO-367/backbeat-end-to-end-tests-azure branch 2 times, most recently from 0afbbbc to ea12006 Compare July 19, 2018 22:38
export AWS_S3_BACKBEAT_BUCKET_NAME=<destination-bucket-name>
export AWS_DESTINATION_LOCATION=<destination-location-name>
export AWS_SOURCE_LOCATION=<source-location-name>
export AWS_S3_BACKBEAT_BUCKET_NAME=<destination-aws-bucket-name>
Copy link
Contributor

Choose a reason for hiding this comment

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

instead of having all the exports examples here, the step can be to edit the example file (which can be updated with the examples) and source .secrets.env

https://github.com/scality/Zenko/blob/master/tests/.secrets.env.example
https://github.com/scality/Zenko/blob/master/tests/.env

Copy link
Author

Choose a reason for hiding this comment

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

Good idea—this will help us align with pre-existing tests and help eventually with automation. I've updated to use any pre-existing env variables and updated those files accordingly.

@bennettbuchanan bennettbuchanan force-pushed the feature/ZENKO-367/backbeat-end-to-end-tests-azure branch from 9f7b312 to ef25ee4 Compare July 20, 2018 18:44
```

5. Run the test suite: `npm run test_crr`.
7. If using `*.env` files, source the files:
`source .secrets.env && source .secrets.env`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need to source the secrets twice?

Copy link
Author

@bennettbuchanan bennettbuchanan Jul 20, 2018

Choose a reason for hiding this comment

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

You don't need to, of course. Since, in this guide, we update the file in two different steps in the guide, I figured it would help ensure that it's not forgotten.

Copy link
Contributor

Choose a reason for hiding this comment

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

I meant more so why source .secrets.env && source .secrets.env vs source .secrets.env

@@ -10,34 +10,44 @@
```

2. Create an account using Orbit.
3. Export the access key and secret key of that account:
3. Export the access key and secret key of that account (for example, in
Copy link
Contributor

Choose a reason for hiding this comment

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

I think 3 and 7 can easily be combined into one step. Something like Secrets can be added to the secret.env file and sourced into your test environment

Copy link
Author

Choose a reason for hiding this comment

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

Okay, I've moved them as two sequential steps. I've kept them as distinct numbers though to maintain the indentation.


### Tests for CRR to AWS:

1. Create a bucket on AWS `<destination-bucket-name>` with versioning enabled.
2. In Orbit, create an AWS location `<destination-location-name>` with an AWS
`<destination-bucket-name>`.
3. In Orbit, create an AWS location `<source-location-name>`.
4. Export the access key, secret key, AWS bucket name, and AWS location:
4. Export the access key, secret key, bucket and container names, and storage
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here with 4 and 6 can be easily combined.

@@ -47,10 +57,10 @@ export AWS_SOURCE_LOCATION=<source-location-name>
3. Export the access key, secret key, AWS bucket name, and AWS location:
Copy link
Contributor

Choose a reason for hiding this comment

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

For consistency, I would suggest adding the source instructions in this section as well. I agree with you, it would help ensure that it's not forgotten.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks! Updated.

@bennettbuchanan bennettbuchanan force-pushed the feature/ZENKO-367/backbeat-end-to-end-tests-azure branch 3 times, most recently from 3d33afd to c8e61a6 Compare July 20, 2018 21:01
@bennettbuchanan bennettbuchanan force-pushed the feature/ZENKO-367/backbeat-end-to-end-tests-azure branch from c8e61a6 to bdd3f75 Compare July 20, 2018 21:02
@ssalaues ssalaues merged commit 82be3e8 into master Jul 20, 2018
@ssalaues ssalaues deleted the feature/ZENKO-367/backbeat-end-to-end-tests-azure branch July 20, 2018 21:38
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.

5 participants