(t *testing.T)
| 284 | } |
| 285 | |
| 286 | func TestSecretVars(t *testing.T) { |
| 287 | t.Parallel() |
| 288 | NewExecutorTest(t, |
| 289 | WithName("secret vars are masked in logs"), |
| 290 | WithExecutorOptions( |
| 291 | task.WithDir("testdata/secrets"), |
| 292 | ), |
| 293 | WithTask("test-secret-masking"), |
| 294 | ) |
| 295 | NewExecutorTest(t, |
| 296 | WithName("multiple secrets masked"), |
| 297 | WithExecutorOptions( |
| 298 | task.WithDir("testdata/secrets"), |
| 299 | ), |
| 300 | WithTask("test-multiple-secrets"), |
| 301 | ) |
| 302 | NewExecutorTest(t, |
| 303 | WithName("mixed secret and public vars"), |
| 304 | WithExecutorOptions( |
| 305 | task.WithDir("testdata/secrets"), |
| 306 | ), |
| 307 | WithTask("test-mixed"), |
| 308 | ) |
| 309 | NewExecutorTest(t, |
| 310 | WithName("deferred command with secrets"), |
| 311 | WithExecutorOptions( |
| 312 | task.WithDir("testdata/secrets"), |
| 313 | ), |
| 314 | WithTask("test-deferred-secret"), |
| 315 | ) |
| 316 | NewExecutorTest(t, |
| 317 | WithName("env secret limitation"), |
| 318 | WithExecutorOptions( |
| 319 | task.WithDir("testdata/secrets"), |
| 320 | ), |
| 321 | WithTask("test-env-secret-limitation"), |
| 322 | ) |
| 323 | NewExecutorTest(t, |
| 324 | WithName("secret vars are masked in summary"), |
| 325 | WithExecutorOptions( |
| 326 | task.WithDir("testdata/secrets"), |
| 327 | task.WithSummary(true), |
| 328 | ), |
| 329 | WithTask("test-secret-masking"), |
| 330 | ) |
| 331 | NewExecutorTest(t, |
| 332 | WithName("dynamic secret masked in verbose"), |
| 333 | WithExecutorOptions( |
| 334 | task.WithDir("testdata/secrets"), |
| 335 | task.WithVerbose(true), |
| 336 | ), |
| 337 | WithTask("test-dynamic-secret-verbose"), |
| 338 | ) |
| 339 | NewExecutorTest(t, |
| 340 | WithName("secret key order independent"), |
| 341 | WithExecutorOptions( |
| 342 | task.WithDir("testdata/secrets"), |
| 343 | ), |
nothing calls this directly
no test coverage detected
searching dependent graphs…