These are simple end caps for Gilbert Engineering G-Track Permanent Holiday Lighting.
Includes a sold cap, a cap with a slot foe the ribbon style cables and a cap with a slot for a round cable.
These are press-fit but it might not be a bad idea to put a dab of glue on them as well.