Your 3” stainless pipe should be OK. The nominal wall of sch 10 pipe is .120”. Assuming 30,000 psi yield strength of the material, the pressure to yield the wall would be about 2000 psi (sig=PD/2t).
It would be wise with this light wall to use caps, as you mention, or other externally engaging end fittings to keep the threads from dilating and going out of engagement. Assure the closures are also of comparable capacity. Then hydrotest, as mentioned above, to 2 or 3 times the operating pressure in a safe situation--secondary containment, under water, etc.
In stead of all that it may be worth the effort to do more looking for commercially available solutions--air tanks, air cylinders, hydraulic cylinders etc. You could probably get a commercial air cylinder assembled with caps on both ends (no rod or rod hole) which would have ports and such already included, i.e. Bimba.