(t *testing.T)
| 75 | } |
| 76 | |
| 77 | func TestNewApplicationDoesNotAffectNamespace(t *testing.T) { |
| 78 | ns := &Namespace{name: "test"} |
| 79 | ns.addApplication(ApplicationSettings{Name: "existing", Host: "existing.localhost"}) |
| 80 | |
| 81 | // NewApplication creates a standalone app without adding it to the namespace |
| 82 | app := NewApplication(ns, ApplicationSettings{Name: "standalone", Host: "standalone.localhost"}) |
| 83 | |
| 84 | assert.Nil(t, ns.Application("standalone")) |
| 85 | assert.False(t, ns.HostInUse("standalone.localhost")) |
| 86 | assert.Len(t, ns.Applications(), 1) |
| 87 | assert.Equal(t, "standalone", app.Settings.Name) |
| 88 | } |
| 89 | |
| 90 | func TestContainerAppName(t *testing.T) { |
| 91 | ns := &Namespace{name: "once"} |
nothing calls this directly
no test coverage detected
searching dependent graphs…