create_test_data.py¶
The NLA test system copies a number of files to an area of disk, which it then treats as an emulated version of
the StorageD system. These files need to be added to the NLA test system, as entries into the underlying database.
This could be done manually via the Django admin interface. This script adds the ukmo-mslp dataset from the archive
(/badc/ukmo-mslp/data
) to the NLA test system.
-
nla_control.scripts.create_test_data.
run
()¶ Entry point for the Django script.
First create a Partition for the data to reside in.
Then create the ukmo-mslp Fileset, including creating the logical_path and setting the Fileset to be
primary_on_tape = True
.