Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 12.4 KB

TESTS.md

File metadata and controls

35 lines (23 loc) · 12.4 KB

newUserFirstPlant

tether send --topic server/0/serverInstructDisplays --message='{"name":"newUserFirstPlant","payload":{"plant":{"id":"cowslip","commonName":"Cowslip","description":"Cowslip plants have clusters of small, bright yellow flowers and soft, green, oval leaves. They typically grow in clumps and reach about 30 cm in height.","properties":{"flowerColour":"Yellow","flowerColourRGB":"#FFFF00","petalCountRange":"5","petalShape":"Round","leafColour":"Green","leafColourRGB":"#008000","leafShape":"Oval","leafMarginDescription":"Smooth","heightInMetres":0.3,"funFact":"Cowslip is a traditional English wildflower, often found in meadows and known for its cluster of drooping yellow flowers in spring."},"imageUrl":"/plants/cowslip.png","parent1":null,"parent2":null,"authorTop":null,"authorBottom":null},"user":{"id":"tpkt7h776rxu3on4","username":"tester4"}},"timeout":30000}'

newPollinationStart

tether send --topic server/0/serverInstructDisplays --message='{"name":"newPollinationStarting","payload":{"authorTop":{"id":"65cracenfmc62oev","username":"newguy4"},"authorBottom":{"username":"tester4","id":"c5etuslnwckgegzz"},"plantTop":{"id":"cork_oak","commonName":"Cork Oak","description":"Cork Oak is a medium-sized evergreen tree with thick, rugged bark used for cork production. It has dark green, serrated, oval leaves and can grow up to 20 meters tall.","properties":{"flowerColour":"Yellow","flowerColourRGB":"#FFFF00","petalCountRange":"None","petalShape":"None","leafColour":"Dark Green","leafColourRGB":"#006400","leafShape":"Oval","leafMarginDescription":"Serrated","heightInMetres":20,"funFact":"Cork Oak is notable for its thick, spongy bark that is harvested to make cork products, and the tree does not need to be cut down to harvest the bark."},"imageUrl":"/plants/corkoak.png","parent1":null,"parent2":null,"authorTop":null,"authorBottom":null},"plantBottom":{"id":"bamboo_orchid","commonName":"Bamboo Orchid","description":"Bamboo orchids have tall, cane-like stems that resemble bamboo, topped with elongated purple petals that form delicate flowers. The lanceolate, green leaves grow along the stem, contributing to its graceful appearance. These orchids can reach up to 1.2 meters in height.","properties":{"flowerColour":"Purple","flowerColourRGB":"#800080","petalCountRange":"5","petalShape":"Elongated","leafColour":"Green","leafColourRGB":"#008000","leafShape":"Lanceolate","leafMarginDescription":"Smooth","heightInMetres":1.2,"funFact":"The bamboo orchid, aptly named for its bamboo-like stems, is known for its vibrant purple flowers and is a popular choice for tropical gardens."},"imageUrl":"/plants/bambooorchid.png","parent1":null,"parent2":null,"authorTop":null,"authorBottom":null}},"timeout":30000}'

tether send --topic server/0/serverInstructDisplays --message='{"name":"newPollinationStarting","payload":{"authorTop":{"id":"tpkt7h776rxu3on4","username":"tester4"},"authorBottom":{"username":"stephen","id":"qxtjczz5bykdbgcg"},"plantTop":{"id":"cowslip","commonName":"Cowslip","description":"Cowslip plants have clusters of small, bright yellow flowers and soft, green, oval leaves. They typically grow in clumps and reach about 30 cm in height.","properties":{"flowerColour":"Yellow","flowerColourRGB":"#FFFF00","petalCountRange":"5","petalShape":"Round","leafColour":"Green","leafColourRGB":"#008000","leafShape":"Oval","leafMarginDescription":"Smooth","heightInMetres":0.3,"funFact":"Cowslip is a traditional English wildflower, often found in meadows and known for its cluster of drooping yellow flowers in spring."},"imageUrl":"/plants/cowslip.png","parent1":null,"parent2":null,"authorTop":null,"authorBottom":null},"plantBottom":{"id":"buddleia","commonName":"Butterfly Bush","description":"Butterfly Bush is renowned for its long, cone-shaped clusters of fragrant purple flowers and lanceolate leaves. It typically grows up to 3 meters tall and is a magnet for butterflies and other pollinators.","properties":{"flowerColour":"Purple","flowerColourRGB":"#800080","petalCountRange":"Many","petalShape":"Tubular","leafColour":"Green","leafColourRGB":"#008000","leafShape":"Lanceolate","leafMarginDescription":"Smooth","heightInMetres":3,"funFact":"Buddleia is dubbed Butterfly Bush for its ability to attract butterflies with its long, fragrant flower spikes."},"imageUrl":"/plants/butterflybush.png","parent1":null,"parent2":null,"authorTop":null,"authorBottom":null}},"timeout":30000}'

newPlantSprouted

tether send --topic server/0/serverInstructDisplays --message='{"name":"newPlantSprouted","payload":{"newPlant":{"id":"36de968e-3c7e-40f7-941a-f47e94b5a38c","commonName":"newg5xtester4Plant","description":"The newg5xtester4Plant epitomizes an enchanting blend of orchid and daffodil traits, growing to about 80 cm in height. It features vibrant lemon-yellow flowers with subtler purple accents near the center, combining the daffodils trumpet shape with the more slender, elongated petal forms characteristic of bamboo orchids. The leaves are a rich green, marrying the daffodils linear form with the lanceolate elegance of the orchid.","properties":{"flowerColour":"Yellow with purple accents","petalCountRange":"5-6","petalShape":"Elongated trumpet","leafColour":"Green","leafShape":"Semi-linear, semi-lanceolate","leafMarginDescription":"Smooth","heightInMetres":0.8,"funFact":"The newg5xtester4Plant, as a delightful hybrid, bears flowers that seem to shine brightly with a halo of purple, symbolizing a fusion of earthly vigor and ethereal grace."},"imageUrl":"https://random-the-garden.s3.eu-north-1.amazonaws.com/3fee6dae-a20f-4afa-bde2-0dc7d02d5bb8.png","parent1":"daffodil","parent2":"bamboo_orchid","authorTop":"k4tauvdbhjyr4qsa","authorBottom":"c5etuslnwckgegzz"},"authorTop":{"id":"k4tauvdbhjyr4qsa","username":"newg5"},"authorBottom":{"id":"c5etuslnwckgegzz","username":"tester4"}},"timeout":30000}'
tether send --topic server/0/serverInstructDisplays --message='{"name":"newPlantSprouted","payload":{"newPlant":{"id":"dbccb39e-58e4-4c5c-81f5-6c812e54ac77","commonName":"ThePlant","description":"ThePlant features enchanting, cone-shaped clusters of radiant golden-purple flowers, harmoniously blending the hues of its parent species. It stands majestically at an intermediate height of approximately 1.65 meters, featuring lanceolate leaves with a tender green hue and smooth margins. This hybrid retains the charming appeal of the Cowslip and the butterfly-attracting prowess of the Butterfly Bush, making it a delightful addition to any garden.","properties":{"flowerColour":"Golden-Purple","petalCountRange":"Many","petalShape":"Tubular with round tips","leafColour":"Green","leafShape":"Lanceolate with subtle oval hints","leafMarginDescription":"Smooth","heightInMetres":1.65,"funFact":"The Plant, a striking botanical hybrid, elegantly combines its parents features to attract an array of pollinators while adding a picturesque quality to landscapes."},"imageUrl":"https://random-the-garden.s3.eu-north-1.amazonaws.com/a842a2ff-1b9d-497a-91a8-a9eb40d29c89.png","parent1":"cowslip","parent2":"buddleia","authorTop":"tpkt7h776rxu3on4","authorBottom":"qxtjczz5bykdbgcg"},"authorTop":{"id":"tpkt7h776rxu3on4","username":"tester4"},"authorBottom":{"id":"qxtjczz5bykdbgcg","username":"stephen"}},"timeout":30000}'

showFeaturedPlant

i.e. DisplayEventNames.DETAIL

tether send --topic server/0/serverInstructDisplays --message='{"name":"showFeaturedPlant","payload":{"user":{"id":"5uzckhkrvd3lqnp6","username":"tester3"},"plant":{"id":"coconut","commonName":"Coconut","description":"Coconut trees are tall, slender palms that reach up to 30 meters, characterized by long pinnate leaves and large, fibrous fruits known as coconuts. They thrive in tropical climates along sandy coastlines.","properties":{"flowerColour":"Yellow","flowerColourRGB":"#FFFF00","petalCountRange":"None","petalShape":"None","leafColour":"Green","leafColourRGB":"#008000","leafShape":"Pinnate","leafMarginDescription":"Smooth","heightInMetres":30,"funFact":"Coconut trees are part of the palm family and are known for their large, edible seeds, which are also called coconuts."},"imageUrl":"/plants/coconut.png","parent1":null,"parent2":null,"authorTop":null,"authorBottom":null}},"timeout":30000}'

showMultipleFeaturedPlants

tether send --topic server/0/serverInstructDisplays --message='{"name":"showMultipleFeaturedPlants","payload":[{"plant":{"id":"edf2dedf-ff84-4f84-a3d7-1f90cad4bb85","commonName":"Theplant","description":"Theplant is a captivating hybrid that combines the alluring characteristics of both Catnip and Butterfly Bush, standing at an impressive height of 1.75 meters. It possesses heart-lanceolate leaves which are green with a slightly serrated edge, and vibrant clusters of bicolor purple and white tubular flowers that attract both butterflies and cats alike. Theplant maintains an enchanting presence in gardens, offering both aesthetic appeal and a functional role in attracting a variety of pollinators and feline admirers.","properties":{"flowerColour":"Bicolor Purple and White","petalCountRange":"Many","petalShape":"Tubular","leafColour":"Green","leafShape":"Heart-lanceolate","leafMarginDescription":"Slightly serrated","heightInMetres":1.75,"funFact":"Theplant not only continues the legacy of its parents by attracting butterflies and cats, but it also combines their strengths, becoming a focal point in any garden due to its unique dual-color flowers and blend of leaf shapes."},"imageUrl":"https://random-the-garden.s3.eu-north-1.amazonaws.com/e2f97d71-3f16-49f4-a9fa-51bb94573043.png","parent1":"catnip","parent2":"buddleia","authorTop":"lvlojic3wgifdqwt","authorBottom":"qxtjczz5bykdbgcg"},"user":{"id":"qxtjczz5bykdbgcg","username":"stephen"}},{"plant":{"id":"chicory","commonName":"Chicory","description":"Chicory is a hardy plant with bright blue flowers and lanceolate green leaves. It reaches about 1 meter in height and is often found along roadsides and in open fields.","properties":{"flowerColour":"Blue","flowerColourRGB":"#0000FF","petalCountRange":"Many","petalShape":"Round","leafColour":"Green","leafColourRGB":"#008000","leafShape":"Lanceolate","leafMarginDescription":"Serrated","heightInMetres":1,"funFact":"Chicory is known for its edible leaves and roots, with the roots often used as a coffee substitute or additive."},"imageUrl":"/plants/chicory.png","parent1":null,"parent2":null,"authorTop":null,"authorBottom":null},"user":{"id":"w56cfs5qr7aupp7f","username":"tester2"}},{"plant":{"id":"cowslip","commonName":"Cowslip","description":"Cowslip plants have clusters of small, bright yellow flowers and soft, green, oval leaves. They typically grow in clumps and reach about 30 cm in height.","properties":{"flowerColour":"Yellow","flowerColourRGB":"#FFFF00","petalCountRange":"5","petalShape":"Round","leafColour":"Green","leafColourRGB":"#008000","leafShape":"Oval","leafMarginDescription":"Smooth","heightInMetres":0.3,"funFact":"Cowslip is a traditional English wildflower, often found in meadows and known for its cluster of drooping yellow flowers in spring."},"imageUrl":"/plants/cowslip.png","parent1":null,"parent2":null,"authorTop":null,"authorBottom":null},"user":{"id":"tpkt7h776rxu3on4","username":"tester4"}},{"plant":{"id":"edf2dedf-ff84-4f84-a3d7-1f90cad4bb85","commonName":"Theplant","description":"Theplant is a captivating hybrid that combines the alluring characteristics of both Catnip and Butterfly Bush, standing at an impressive height of 1.75 meters. It possesses heart-lanceolate leaves which are green with a slightly serrated edge, and vibrant clusters of bicolor purple and white tubular flowers that attract both butterflies and cats alike. Theplant maintains an enchanting presence in gardens, offering both aesthetic appeal and a functional role in attracting a variety of pollinators and feline admirers.","properties":{"flowerColour":"Bicolor Purple and White","petalCountRange":"Many","petalShape":"Tubular","leafColour":"Green","leafShape":"Heart-lanceolate","leafMarginDescription":"Slightly serrated","heightInMetres":1.75,"funFact":"Theplant not only continues the legacy of its parents by attracting butterflies and cats, but it also combines their strengths, becoming a focal point in any garden due to its unique dual-color flowers and blend of leaf shapes."},"imageUrl":"https://random-the-garden.s3.eu-north-1.amazonaws.com/e2f97d71-3f16-49f4-a9fa-51bb94573043.png","parent1":"catnip","parent2":"buddleia","authorTop":"lvlojic3wgifdqwt","authorBottom":"qxtjczz5bykdbgcg"},"user":{"id":"lvlojic3wgifdqwt","username":"tester"}}],"timeout":30000}'