Rename "deployment" to "environment": code
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
This commit is contained in:
@@ -7,15 +7,15 @@ import (
|
||||
)
|
||||
|
||||
func TestInputDir(t *testing.T) {
|
||||
st := &DeploymentState{
|
||||
st := &EnvironmentState{
|
||||
PlanSource: DirInput("/tmp/source", []string{}),
|
||||
}
|
||||
require.NoError(t, st.SetInput("www.source", DirInput("/", []string{})))
|
||||
|
||||
deployment, err := NewDeployment(st)
|
||||
environment, err := NewEnvironment(st)
|
||||
require.NoError(t, err)
|
||||
|
||||
localdirs := deployment.LocalDirs()
|
||||
localdirs := environment.LocalDirs()
|
||||
require.Len(t, localdirs, 2)
|
||||
require.Contains(t, localdirs, "/")
|
||||
require.Contains(t, localdirs, "/tmp/source")
|
||||
|
Reference in New Issue
Block a user