<commit_before>package _tests_test

import (
	. "github.com/onsi/ginkgo"
	// . "github.com/onsi/gomega"
)

var _ = Describe("Config", func() {
	Context("with a deployed app", func() {

		XIt("can list environment variables", func() {
			// "deis config:set FOO=bar--app=%s"
			// "deis run env --app=%s"
			// "deis config:list --app=%s"
		})

		XIt("can set an integer environment variable", func() {
			// "deis config:set FOO=10 --app=%s"
			// "deis run env --app=%s"
		})

		XIt("can set an environment variable containing spaces", func() {
			// "config:set POWERED_BY=\"the Deis team\" --app={{.AppName}}"
			// "deis run env --app=%s"
		})

		XIt("can set a multi-line environment variable", func() {<commit_msg>feat(_tests/config_test.go): add more config tests<commit_after>package _tests_test

import (
	. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"
)

var _ = Describe("Config", func() {
	Context("with a deployed app", func() {
		appName := getRandAppName()
		BeforeEach(func() {
			login(url, testUser, testPassword)
		})

		It("can create a new app", func() {
			output, err := execute("deis apps:create %s", appName)
			Expect(err).NotTo(HaveOccurred())
			Expect(output).To(SatisfyAll(
				ContainSubstring("Creating Application... done, created %s", appName),
				ContainSubstring("Git remote deis added"),
				ContainSubstring("remote available at ")))
		})

		It("can list environment variables", func() {
			out, err := execute("deis config:set FOO=bar -a=%s", appName)
			Expect(err).NotTo(HaveOccurred())
			Expect(out).To(SatisfyAll(
				ContainSubstring("Creating config... done"),
				ContainSubstring("FOO      bar"),
				ContainSubstring("=== %s Config", appName),
			))
			out, err = execute("deis config:list --a=%s", appName)
			Expect(err).NotTo(HaveOccurred())
			Expect(out).To(SatisfyAll(
				ContainSubstring("=== %s Config", appName),
				ContainSubstring("FOO      bar"),
			))
			// TODO: the following won't work as-is because there is no app running
			// "deis run env --app=%s"

		})

		XIt("can set an integer environment variable", func() {
			// "deis config:set FOO=10 --app=%s"
			// "deis run env --app=%s"
		})

		XIt("can set an environment variable containing spaces", func() {
			// "config:set POWERED_BY=\"the Deis team\" --app={{.AppName}}"
			// "deis run env --app=%s"
		})

		XIt("can set a multi-line environment variable", func() {
{'fraction_non_alphanumeric': 0.17784256559766765, 'fraction_numerical': 0.001665972511453561, 'mean_word_length': 3.5150375939849625, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7110168', 'n_tokens_mistral': 936, 'n_tokens_neox': 826, 'n_words': 209}