Parent Epic: #34 - Implement Create Environment Command
Depends On: #36 - Application Layer Command
Estimated Time: 1-2 hours
Overview
Update the src/bin/e2e_tests_full.rs to use the new create command handler instead of direct environment creation. This ensures the full E2E test exercises the complete create command functionality as part of the comprehensive test suite.
Goals
Implementation Summary
- Location:
src/bin/e2e_tests_full.rs
- Approach: Add
create_environment_via_command() function that uses CreateCommand handler
- Integration: Replace direct environment creation with command-based creation
- Testing: Not black-box like Subissue 4 - this uses the command handler directly
Key Changes
// Add function to create environment using CreateCommand
async fn create_environment_via_command(context: &TestContext) -> Result<Environment<Created>> {
let create_command = CreateCommand::new(context.environment_repository.clone());
let config = EnvironmentCreationConfig {
environment_name: context.environment_name.clone(),
ssh_credentials: context.ssh_credentials.clone(),
};
create_command.execute(config)
}
// Replace direct environment creation in main test function
let environment = create_environment_via_command(&context)
.await
.expect("Failed to create environment via command");
Acceptance Criteria
For detailed specification, see: docs/issues/epic-create-environment-command-subissue-5-update-e2e-full-tests.md
Parent Epic: #34 - Implement Create Environment Command
Depends On: #36 - Application Layer Command
Estimated Time: 1-2 hours
Overview
Update the
src/bin/e2e_tests_full.rsto use the new create command handler instead of direct environment creation. This ensures the full E2E test exercises the complete create command functionality as part of the comprehensive test suite.Goals
Implementation Summary
src/bin/e2e_tests_full.rscreate_environment_via_command()function that uses CreateCommand handlerKey Changes
Acceptance Criteria
For detailed specification, see: docs/issues/epic-create-environment-command-subissue-5-update-e2e-full-tests.md