Run integration tests against deployment#2962
Run integration tests against deployment#2962soapy1 wants to merge 12 commits intonebari-dev:mainfrom
Conversation
f1e7883 to
f857acc
Compare
|
@marcelovilla yep, definitely can do. Just to clarify, you mean like update the ci workflows (eg. test_azure_integration.yaml) to use the change proposed by this PR? |
|
@soapy1 I was actually referring to the Regarding the use of the changes proposed in this PR for CI workflows in cloud integration tests, ideally, it would be great to have both local and cloud integration tests behave consistently, with the only difference being the deployment/destroy process. In other words, it would be beneficial if our tests could run against any Nebari cluster, regardless of how it was deployed. I’m not sure whether incorporating the changes from this PR into those CI workflows is the best approach or if we’d be better off having a separate workflow that allows running tests against any deployment. That is beyond the scope of this PR, but maybe it's worthwhile to keep it mind for the future. Let me know if this makes sense! |
1dc3f8b to
1dfc35e
Compare
…inst an existing cloud
a3a0baf to
f2e7ed0
Compare
|
@marcelovilla looks like tests are passing and this is setup correctly. This PR will make the |
|
@soapy1 that's great, thanks! Now that this PR allows to run tests against an existing cluster, I think we need to split the
The During this discussion, I have noticed the following things:
I think the ideal scenario would be to run all of the tests (i.e., deployment, integration, and end-to-end) against both local and cloud deployments, while having separate logic for deploying Nebari and running the tests. I'd be happy to know your thoughts about this and see if you have any ideas on how to properly set this up. If it's easier, we can also discuss it during one of our internal syncs or community meetings. |
sure, I'll pop into tomorrow's meeting. Thanks! |
|
Closing this PR in favour of a slightly different approach. Follow up PR coming soon. |
Reference Issues or PRs
#2855, #2950
What does this implement/fix?
This PR updates the integration tests to support running against an existing cluster. You can do this by providing the
EXISTING_DEPLOYMENT_DIRenv var (opposed to the--cloudflag) when running the integration tests.EXISTING_DEPLOYMENT_DIRgets a path to an existing nebari config dir (must contain thenebari-config.yamland the output dir/stages). For example seeHow to test this PR?Also adds these tests to the Local Integration Tests GHA workflow.
Put a
xin the boxes that applyTesting
How to test this PR?
Create a local deploy of nebari and then run the integration tests.