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

Update staging monitor tests #805

Merged
merged 4 commits into from
Feb 8, 2024

Conversation

mgcam
Copy link
Member

@mgcam mgcam commented Jan 30, 2024

and remove old test data

mgcam added 3 commits January 30, 2024 11:02
Used current staging directories structure.
Used run Illumina's native run folder names.
Stopped using HiSeq-specific run folder files.
@jmtcsngr jmtcsngr self-assigned this Feb 8, 2024
Copy link
Member

@jmtcsngr jmtcsngr left a comment

Choose a reason for hiding this comment

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

Typos and some suggestions.

$test = Monitor::RunFolder::Staging->new( runfolder_path => '/export/sf25/ILorHSany_sf25/incoming/110712_HS8_06541_B_B0A6DABXX');
is($test->_get_folder_path_glob, '/{export,nfs}/sf25/ILorHSany_sf25/*/', 'glob for /export/sf25 incoming');
}
subtest 'seting file system permissions' => sub {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
subtest 'seting file system permissions' => sub {
subtest 'setting file system permissions' => sub {

for my $dir (qw/incoming analysis outgoing/) {
my $rfpath = $path;
$rfpath =~ s/outgoing/$dir/;
note $rfpath;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
note $rfpath;
note 'Testing ' . $rfpath;


for my $file_name (qw[CopyComplete Copycomplete
copycomplete CopyComplete_old.txt ]) {
note $file_name;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
note $file_name;
note 'Testing ' . $file_name;

@@ -99,42 +96,39 @@ subtest 'updating run data from filesystem' => sub {
expected_cycle_count => 310,
actual_cycle_count => 0,
Copy link
Member

Choose a reason for hiding this comment

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

Just to make sure we have setup thing for following tests and rely less on the yml fixture loading

Suggested change
actual_cycle_count => 0,
actual_cycle_count => 0,
folder_name => undef,
folder_path_glob => undef,

open my $fh2, '>', join(q[/], $rf, 'runParameters.xml');
print $fh2 $run_parameters;
close $fh2;

# Creade 8 lane records in the database
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# Creade 8 lane records in the database
# Create 8 lane records in the database

@jmtcsngr jmtcsngr merged commit 3cb3e10 into wtsi-npg:devel Feb 8, 2024
2 checks passed
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.

2 participants