Skip to content

Commit

Permalink
Add system test
Browse files Browse the repository at this point in the history
CMK-17430
  • Loading branch information
SoloJacobs committed May 28, 2024
1 parent d4a4394 commit c1b11cc
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/system_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ jobs:
name: rcc
path: C:\
- uses: actions/checkout@v4
- run: mkdir C:\managed_robots
- run: cd data\retry_rcc\
- run: tar -c -a -f C:\managed_robots\retry_rcc_defN.zip .
- run: cd ..\..
- uses: actions-rust-lang/[email protected]
with:
target: x86_64-pc-windows-gnu
Expand Down
33 changes: 32 additions & 1 deletion tests/test_scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,37 @@ fn create_config(
variant: "".into(),
},
},
PlanConfig {
id: "managed_robot_zip".into(),
zip_file: Some("C:\\zips\\restry_rcc_defN.zip".into()),
robot_config: RobotConfig {
robot_target: test_dir
.join("managed_robots\\managed_robot_zip\\tasks.robot"),
command_line_args: vec![],
},
execution_config: ExecutionConfig {
n_attempts_max: 1,
retry_strategy: RetryStrategy::Complete,
timeout: 15,
},
environment_config: EnvironmentConfig::Rcc(RCCEnvironmentConfig {
robot_yaml_path: test_dir
.join("managed_robots\\managed_robot_zip\\tasks.robot"),
build_timeout: 1200,
}),
session_config: SessionConfig::SpecificUser(UserSessionConfig {
user_name: user_name_headed.into(),
}),
working_directory_cleanup_config: WorkingDirectoryCleanupConfig::MaxAgeSecs(
120,
),
host: Host::Source,
metadata: PlanMetadata {
application: "managed".into(),
suite_name: "robot_zip".into(),
variant: "".into(),
},
},
],
execution_interval: 30,
},
Expand Down Expand Up @@ -261,7 +292,7 @@ async fn assert_working_directory(
);
assert_eq!(
directory_entries(working_directory.join("plans"), 1),
["no_rcc", "rcc_headed", "rcc_headless"]
["managed_robot_zip", "no_rcc", "rcc_headed", "rcc_headless"]
);

// We expliclitly don't check for the rebot files in the case without RCC, since this must also
Expand Down

0 comments on commit c1b11cc

Please sign in to comment.