Specs: []map[string]testdata.GenGenSpec{ map[string]testdata.GenGenSpec{ "service": testdata.GenGenSpec{ Fixed: &testdata.FixedOptions{ Value: "Service 0", }, }, }, }, }) Expect(err).NotTo(HaveOccurred()) }) It("should generate 10 point", func() { lst := gen.GenerateList() Expect(lst).To(HaveLen(10)) }) It("should generate the same value for all", func() { lst := gen.GenerateList() for _, el := range lst { str, ok := el["service"].(string) Expect(ok).To(BeTrue()) Expect(str).To(Equal("Service 0")) } }) }) Context("Simple fixed number generation", func() {