Not sure if already covered, but an important point is what the pipe material is, and determining what failures could occur and what the failure mechanism is.
e.g. plastic pipe has a Youngs Mod orders of magnitude lower than steel, i.e. it stretches more, so stores more volume, also some types...