gitlab.go 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. Licensed under the Apache License, Version 2.0 (the "License");
  3. you may not use this file except in compliance with the License.
  4. You may obtain a copy of the License at
  5. http://www.apache.org/licenses/LICENSE-2.0
  6. Unless required by applicable law or agreed to in writing, software
  7. distributed under the License is distributed on an "AS IS" BASIS,
  8. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  9. limitations under the License.
  10. */
  11. package gitlab
  12. // TODO - GitLab only accepts variable names with alphanumeric and '_'
  13. // whereas ESO only accepts names with alphanumeric and '-'.
  14. // Current workaround is to remove all hyphens and underscores set in e2e/framework/util/util.go
  15. // and in e2e/suite/common/common.go, but this breaks Azure provider.
  16. import (
  17. // nolint
  18. . "github.com/onsi/ginkgo/v2"
  19. "github.com/external-secrets/external-secrets-e2e/framework"
  20. "github.com/external-secrets/external-secrets-e2e/suites/provider/cases/common"
  21. )
  22. var _ = Describe("[gitlab]", Label("gitlab"), func() {
  23. f := framework.New("eso-gitlab")
  24. prov := newFromEnv(f)
  25. DescribeTable("sync secrets", framework.TableFuncWithExternalSecret(f, prov),
  26. Entry(common.SimpleDataSync(f)),
  27. Entry(common.JSONDataWithProperty(f)),
  28. Entry(common.JSONDataFromSync(f)),
  29. Entry(common.JSONDataFromRewrite(f)),
  30. Entry(common.NestedJSONWithGJSON(f)),
  31. Entry(common.JSONDataWithTemplate(f)),
  32. Entry(common.SyncWithoutTargetName(f)),
  33. Entry(common.JSONDataWithoutTargetName(f)),
  34. )
  35. })