| 169 | } |
| 170 | |
| 171 | func TestManifests(t *testing.T) { |
| 172 | ansi.DisableColors(true) |
| 173 | |
| 174 | specBeta := map[string]*manifest.MappingResult{ |
| 175 | "default, nginx, Deployment (apps)": { |
| 176 | Name: "default, nginx, Deployment (apps)", |
| 177 | Kind: "Deployment", |
| 178 | Content: ` |
| 179 | apiVersion: apps/v1beta1 |
| 180 | kind: Deployment |
| 181 | metadata: |
| 182 | name: nginx |
| 183 | `, |
| 184 | }, |
| 185 | } |
| 186 | |
| 187 | specRelease := map[string]*manifest.MappingResult{ |
| 188 | "default, nginx, Deployment (apps)": { |
| 189 | Name: "default, nginx, Deployment (apps)", |
| 190 | Kind: "Deployment", |
| 191 | Content: ` |
| 192 | apiVersion: apps/v1 |
| 193 | kind: Deployment |
| 194 | metadata: |
| 195 | name: nginx |
| 196 | `, |
| 197 | }, |
| 198 | } |
| 199 | |
| 200 | specReleaseSpec := map[string]*manifest.MappingResult{ |
| 201 | "default, nginx, Deployment (apps)": { |
| 202 | Name: "default, nginx, Deployment (apps)", |
| 203 | Kind: "Deployment", |
| 204 | Content: ` |
| 205 | apiVersion: apps/v1 |
| 206 | kind: Deployment |
| 207 | metadata: |
| 208 | name: nginx |
| 209 | spec: |
| 210 | replicas: 3 |
| 211 | `, |
| 212 | }, |
| 213 | } |
| 214 | |
| 215 | specReleaseRenamed := map[string]*manifest.MappingResult{ |
| 216 | "default, nginx-renamed, Deployment (apps)": { |
| 217 | Name: "default, nginx-renamed, Deployment (apps)", |
| 218 | Kind: "Deployment", |
| 219 | Content: ` |
| 220 | apiVersion: apps/v1 |
| 221 | kind: Deployment |
| 222 | metadata: |
| 223 | name: nginx-renamed |
| 224 | spec: |
| 225 | replicas: 3 |
| 226 | `, |
| 227 | }, |
| 228 | } |