@@ -31,7 +31,6 @@ import (
31
31
"github.com/juju/juju/core/permission"
32
32
"github.com/juju/juju/core/status"
33
33
"github.com/juju/juju/environs"
34
- "github.com/juju/juju/feature"
35
34
"github.com/juju/juju/payload"
36
35
"github.com/juju/juju/state"
37
36
"github.com/juju/juju/state/cloudimagemetadata"
@@ -848,8 +847,6 @@ func (s *MigrationImportSuite) TestApplicationsWithExposedOffers(c *gc.C) {
848
847
}
849
848
850
849
func (s * MigrationImportSuite ) TestExternalControllers (c * gc.C ) {
851
- s .SetFeatureFlags (feature .CMRMigrations )
852
-
853
850
remoteApp , err := s .State .AddRemoteApplication (state.AddRemoteApplicationParams {
854
851
Name : "gravy-rainbow" ,
855
852
URL : "me/model.rainbow" ,
@@ -2113,61 +2110,7 @@ func (s *MigrationImportSuite) TestPayloads(c *gc.C) {
2113
2110
c .Check (testPayload .Machine , gc .Equals , machineID )
2114
2111
}
2115
2112
2116
- // TODO (stickupkid): Remove this once we remove the CMRMigrations feature
2117
- // flag.
2118
- func (s * MigrationImportSuite ) TestRemoteApplicationsWithoutFeatureFlag (c * gc.C ) {
2119
- // For now we want to prevent importing models that have remote
2120
- // applications - cross-model relations don't support relations
2121
- // with the models in different controllers.
2122
- _ , err := s .State .AddRemoteApplication (state.AddRemoteApplicationParams {
2123
- Name : "gravy-rainbow" ,
2124
- URL : "me/model.rainbow" ,
2125
- SourceModel : s .Model .ModelTag (),
2126
- Token : "charisma" ,
2127
- Endpoints : []charm.Relation {{
2128
- Interface : "mysql" ,
2129
- Name : "db" ,
2130
- Role : charm .RoleProvider ,
2131
- Scope : charm .ScopeGlobal ,
2132
- }, {
2133
- Interface : "mysql-root" ,
2134
- Name : "db-admin" ,
2135
- Limit : 5 ,
2136
- Role : charm .RoleProvider ,
2137
- Scope : charm .ScopeGlobal ,
2138
- }, {
2139
- Interface : "logging" ,
2140
- Name : "logging" ,
2141
- Role : charm .RoleProvider ,
2142
- Scope : charm .ScopeGlobal ,
2143
- }},
2144
- })
2145
- c .Assert (err , jc .ErrorIsNil )
2146
-
2147
- out , err := s .State .Export ()
2148
- c .Assert (err , jc .ErrorIsNil )
2149
-
2150
- uuid := utils .MustNewUUID ().String ()
2151
- in := newModel (out , uuid , "new" )
2152
- // Models for this version of Juju don't export remote
2153
- // applications but we still want to guard against accidentally
2154
- // importing any that may exist from earlier versions.
2155
- in .AddRemoteApplication (description.RemoteApplicationArgs {
2156
- SourceModel : coretesting .ModelTag ,
2157
- OfferUUID : utils .MustNewUUID ().String (),
2158
- Tag : names .NewApplicationTag ("remote" ),
2159
- })
2160
-
2161
- _ , newSt , err := s .Controller .Import (in )
2162
- if err == nil {
2163
- defer newSt .Close ()
2164
- }
2165
- c .Assert (err , gc .ErrorMatches , "can't import models with remote applications" )
2166
- }
2167
-
2168
2113
func (s * MigrationImportSuite ) TestRemoteApplications (c * gc.C ) {
2169
- s .SetFeatureFlags (feature .CMRMigrations )
2170
-
2171
2114
remoteApp , err := s .State .AddRemoteApplication (state.AddRemoteApplicationParams {
2172
2115
Name : "gravy-rainbow" ,
2173
2116
URL : "me/model.rainbow" ,
0 commit comments