<commit_before>package v7pushaction_test

import (
	"errors"
	"strings"

	"code.cloudfoundry.org/cli/actor/actionerror"

	"code.cloudfoundry.org/cli/actor/v7action"
	. "code.cloudfoundry.org/cli/actor/v7pushaction"
	"code.cloudfoundry.org/cli/actor/v7pushaction/v7pushactionfakes"

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

var _ = Describe("Routes", func() {
	var (
		actor                   *Actor
		fakeV7Actor             *v7pushactionfakes.FakeV7Actor
		fakeRandomWordGenerator *v7pushactionfakes.FakeRandomWordGenerator
	)

	BeforeEach(func() {
		actor, fakeV7Actor, _ = getTestPushActor()

		fakeRandomWordGenerator = new(v7pushactionfakes.FakeRandomWordGenerator)
		actor.RandomWordGenerator = fakeRandomWordGenerator
	})

	Describe("CreateAndMapRoute", func() {
		var (
			warnings   Warnings
			executeErr error

			orgGUID   string
			spaceGUID string
			app       v7action.Application
			gt        GenesisTechnique
		)

		BeforeEach(func() {
			orgGUID = "org-guid"
			spaceGUID = "space-guid"
			app = v7action.Application{Name: "app-name", GUID: "app-guid"}
			fakeV7Actor.GetDefaultDomainReturns(
				v7action.Domain{GUID: "domain-guid", Name: "domain-name"},
				v7action.Warnings{"get-default-domain-warning"},
				nil,<commit_msg>Explicitly set GT so we get default route<commit_after>package v7pushaction_test

import (
	"errors"
	"strings"

	"code.cloudfoundry.org/cli/actor/actionerror"

	"code.cloudfoundry.org/cli/actor/v7action"
	. "code.cloudfoundry.org/cli/actor/v7pushaction"
	"code.cloudfoundry.org/cli/actor/v7pushaction/v7pushactionfakes"

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

var _ = Describe("Routes", func() {
	var (
		actor                   *Actor
		fakeV7Actor             *v7pushactionfakes.FakeV7Actor
		fakeRandomWordGenerator *v7pushactionfakes.FakeRandomWordGenerator
	)

	BeforeEach(func() {
		actor, fakeV7Actor, _ = getTestPushActor()

		fakeRandomWordGenerator = new(v7pushactionfakes.FakeRandomWordGenerator)
		actor.RandomWordGenerator = fakeRandomWordGenerator
	})

	Describe("CreateAndMapRoute", func() {
		var (
			warnings   Warnings
			executeErr error

			orgGUID   string
			spaceGUID string
			app       v7action.Application
			gt        GenesisTechnique
		)

		BeforeEach(func() {
			orgGUID = "org-guid"
			spaceGUID = "space-guid"
			app = v7action.Application{Name: "app-name", GUID: "app-guid"}
			gt = DefaultRoute
			fakeV7Actor.GetDefaultDomainReturns(
				v7action.Domain{GUID: "domain-guid", Name: "domain-name"},
				v7action.Warnings{"get-default-domain-warning"},
				nil,
{'fraction_non_alphanumeric': 0.11128344319503683, 'fraction_numerical': 0.01240791004265219, 'mean_word_length': 3.8134328358208953, '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': '6322219', 'n_tokens_mistral': 984, 'n_tokens_neox': 899, 'n_words': 130}