Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(terragrunt): add support for gitlab-tags datasource #27903

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
91 changes: 81 additions & 10 deletions lib/modules/manager/terragrunt/__fixtures__/2.hcl
Expand Up @@ -125,42 +125,113 @@ terraform {
foo = "bar"
}

# foobar
# invalid, ignored by test since it does not have source on the next line
terraform {
}

# unsupported terragrunt, ignored by test since it does not have source on the next line
terraform {
source = "https://bitbucket.com/hashicorp/example?ref=v1.0.0"
name = "foo"
dummy = "true"
}


# gittags
terraform {
source = "git::https://bitbucket.com/hashicorp/example?ref=v1.0.0"
source = "git::https://mygit.com/hashicorp/example?ref=v1.0.0"
}

# gittags_badversion
terraform {
source = "git::https://bitbucket.com/hashicorp/example?ref=next"
source = "git::https://mygit.com/hashicorp/example?ref=next"
}

# gittags_subdir
terraform {
source = "git::https://bitbucket.com/hashicorp/example//subdir/test?ref=v1.0.1"
source = "git::https://mygit.com/hashicorp/example//subdir/test?ref=v1.0.1"
}

# gittags_http
terraform {
source = "git::http://bitbucket.com/hashicorp/example?ref=v1.0.2"
source = "git::http://mygit.com/hashicorp/example?ref=v1.0.2"
}

# gittags_ssh
terraform {
source = "git::ssh://git@mygit.com/hashicorp/example?ref=v1.0.3"
}

# bitbucket-tags
terraform {
source = "git::https://bitbucket.com/hashicorp/example?ref=v1.0.0"
}

# bitbucket-tags_badversion
terraform {
source = "git::https://bitbucket.com/hashicorp/example?ref=next"
}

# bitbucket-tags_subdir
terraform {
source = "git::https://bitbucket.com/hashicorp/example//subdir/test?ref=v1.0.1"
}

# bitbucket-tags_http
terraform {
source = "git::http://bitbucket.com/hashicorp/example?ref=v1.0.2"
}

# bitbucket-tags_ssh
terraform {
source = "git::ssh://git@bitbucket.com/hashicorp/example?ref=v1.0.3"
}

# invalid, ignored by test since it does not have source on the next line
# gitlab-tags
terraform {
source = "git::https://gitlab.com/hashicorp/example?ref=v1.0.0"
}

# unsupported terragrunt, ignored by test since it does not have source on the next line
# gitlab-tags_badversion
terraform {
name = "foo"
dummy = "true"
source = "git::https://gitlab.com/hashicorp/example?ref=next"
}

# gitlab-tags_subdir
terraform {
source = "git::https://gitlab.com/hashicorp/example//subdir/test?ref=v1.0.1"
}

# gitlab-tags_http
terraform {
source = "git::http://gitlab.com/hashicorp/example?ref=v1.0.2"
}

# gitlab-tags_ssh
terraform {
source = "git::ssh://git@gitlab.com/hashicorp/example?ref=v1.0.3"
}

# gitea-tags
terraform {
source = "git::https://gitea.com/hashicorp/example?ref=v1.0.0"
}

# gitea-tags_badversion
terraform {
source = "git::https://gitea.com/hashicorp/example?ref=next"
}

# gitea-tags_subdir
terraform {
source = "git::https://gitea.com/hashicorp/example//subdir/test?ref=v1.0.1"
}

# gitea-tags_http
terraform {
source = "git::http://gitea.com/hashicorp/example?ref=v1.0.2"
}

# gitea-tags_ssh
terraform {
source = "git::ssh://git@gitea.com/hashicorp/example?ref=v1.0.3"
}
91 changes: 81 additions & 10 deletions lib/modules/manager/terragrunt/__fixtures__/3.hcl
Expand Up @@ -125,42 +125,113 @@ terraform {
foo = "bar"
}

# foobar
# invalid, ignored by test since it does not have source on the next line
terraform {
}

# unsupported terragrunt, ignored by test since it does not have source on the next line
terraform {
source = "https://bitbucket.com/hashicorp/example?ref=v1.0.0&depth=1"
name = "foo"
dummy = "true"
}


# gittags
terraform {
source = "git::https://bitbucket.com/hashicorp/example?ref=v1.0.0&depth=1"
source = "git::https://mygit.com/hashicorp/example?ref=v1.0.0&depth=1"
}

# gittags_badversion
terraform {
source = "git::https://bitbucket.com/hashicorp/example?ref=next&depth=1"
source = "git::https://mygit.com/hashicorp/example?ref=next&depth=1"
}

# gittags_subdir
terraform {
source = "git::https://bitbucket.com/hashicorp/example//subdir/test?ref=v1.0.1&depth=1"
source = "git::https://mygit.com/hashicorp/example//subdir/test?ref=v1.0.1&depth=1"
}

# gittags_http
terraform {
source = "git::http://bitbucket.com/hashicorp/example?ref=v1.0.2&depth=1"
source = "git::http://mygit.com/hashicorp/example?ref=v1.0.2&depth=1"
}

# gittags_ssh
terraform {
source = "git::ssh://git@mygit.com/hashicorp/example?ref=v1.0.3&depth=1"
}

# bitbucket-tags
terraform {
source = "git::https://bitbucket.com/hashicorp/example?ref=v1.0.0&depth=1"
}

# bitbucket-tags_badversion
terraform {
source = "git::https://bitbucket.com/hashicorp/example?ref=next&depth=1"
}

# bitbucket-tags_subdir
terraform {
source = "git::https://bitbucket.com/hashicorp/example//subdir/test?ref=v1.0.1&depth=1"
}

# bitbucket-tags_http
terraform {
source = "git::http://bitbucket.com/hashicorp/example?ref=v1.0.2&depth=1"
}

# bitbucket-tags_ssh
terraform {
source = "git::ssh://git@bitbucket.com/hashicorp/example?ref=v1.0.3&depth=1"
}

# invalid, ignored by test since it does not have source on the next line
# gitlab-tags
terraform {
source = "git::https://gitlab.com/hashicorp/example?ref=v1.0.0&depth=1"
}

# unsupported terragrunt, ignored by test since it does not have source on the next line
# gitlab-tags_badversion
terraform {
name = "foo"
dummy = "true"
source = "git::https://gitlab.com/hashicorp/example?ref=next&depth=1"
}

# gitlab-tags_subdir
terraform {
source = "git::https://gitlab.com/hashicorp/example//subdir/test?ref=v1.0.1&depth=1"
}

# gitlab-tags_http
terraform {
source = "git::http://gitlab.com/hashicorp/example?ref=v1.0.2&depth=1"
}

# gitlab-tags_ssh
terraform {
source = "git::ssh://git@gitlab.com/hashicorp/example?ref=v1.0.3&depth=1"
}

# gitea-tags
terraform {
source = "git::https://gitea.com/hashicorp/example?ref=v1.0.0&depth=1"
}

# gitea-tags_badversion
terraform {
source = "git::https://gitea.com/hashicorp/example?ref=next&depth=1"
}

# gitea-tags_subdir
terraform {
source = "git::https://gitea.com/hashicorp/example//subdir/test?ref=v1.0.1&depth=1"
}

# gitea-tags_http
terraform {
source = "git::http://gitea.com/hashicorp/example?ref=v1.0.2&depth=1"
}

# gitea-tags_ssh
terraform {
source = "git::ssh://git@gitea.com/hashicorp/example?ref=v1.0.3&depth=1"
}
90 changes: 80 additions & 10 deletions lib/modules/manager/terragrunt/__fixtures__/4.hcl
Expand Up @@ -125,42 +125,112 @@ terraform {
foo = "bar"
}

# foobar
# invalid, ignored by test since it does not have source on the next line
terraform {
}

# unsupported terragrunt, ignored by test since it does not have source on the next line
terraform {
source = "https://bitbucket.com/hashicorp/example?depth=1&ref=v1.0.0"
name = "foo"
dummy = "true"
}

# gittags
terraform {
source = "git::https://bitbucket.com/hashicorp/example?depth=1&ref=v1.0.0"
source = "git::https://mygit.com/hashicorp/example?depth=1&ref=v1.0.0"
}

# gittags_badversion
terraform {
source = "git::https://bitbucket.com/hashicorp/example?depth=1&ref=next"
source = "git::https://mygit.com/hashicorp/example?depth=1&ref=next"
}

# gittags_subdir
terraform {
source = "git::https://bitbucket.com/hashicorp/example//subdir/test?depth=1&ref=v1.0.1"
source = "git::https://mygit.com/hashicorp/example//subdir/test?depth=1&ref=v1.0.1"
}

# gittags_http
terraform {
source = "git::http://bitbucket.com/hashicorp/example?depth=1&ref=v1.0.2"
source = "git::http://mygit.com/hashicorp/example?depth=1&ref=v1.0.2"
}

# gittags_ssh
terraform {
source = "git::ssh://git@mygit.com/hashicorp/example?depth=1&ref=v1.0.3"
}

# bitbucket-tags
terraform {
source = "git::https://bitbucket.com/hashicorp/example?depth=1&ref=v1.0.0"
}

# bitbucket-tags_badversion
terraform {
source = "git::https://bitbucket.com/hashicorp/example?depth=1&ref=next"
}

# bitbucket-tags_subdir
terraform {
source = "git::https://bitbucket.com/hashicorp/example//subdir/test?depth=1&ref=v1.0.1"
}

# bitbucket-tags_http
terraform {
source = "git::http://bitbucket.com/hashicorp/example?depth=1&ref=v1.0.2"
}

# bitbucket-tags_ssh
terraform {
source = "git::ssh://git@bitbucket.com/hashicorp/example?depth=1&ref=v1.0.3"
}

# invalid, ignored by test since it does not have source on the next line
# gitlab-tags
terraform {
source = "git::https://gitlab.com/hashicorp/example?depth=1&ref=v1.0.0"
}

# unsupported terragrunt, ignored by test since it does not have source on the next line
# gitlab-tags_badversion
terraform {
name = "foo"
dummy = "true"
source = "git::https://gitlab.com/hashicorp/example?depth=1&ref=next"
}

# gitlab-tags_subdir
terraform {
source = "git::https://gitlab.com/hashicorp/example//subdir/test?depth=1&ref=v1.0.1"
}

# gitlab-tags_http
terraform {
source = "git::http://gitlab.com/hashicorp/example?depth=1&ref=v1.0.2"
}

# gitlab-tags_ssh
terraform {
source = "git::ssh://git@gitlab.com/hashicorp/example?depth=1&ref=v1.0.3"
}

# gitea-tags
terraform {
source = "git::https://gitea.com/hashicorp/example?depth=1&ref=v1.0.0"
}

# gitea-tags_badversion
terraform {
source = "git::https://gitea.com/hashicorp/example?depth=1&ref=next"
}

# gitea-tags_subdir
terraform {
source = "git::https://gitea.com/hashicorp/example//subdir/test?depth=1&ref=v1.0.1"
}

# gitea-tags_http
terraform {
source = "git::http://gitea.com/hashicorp/example?depth=1&ref=v1.0.2"
}

# gitea-tags_ssh
terraform {
source = "git::ssh://git@gitea.com/hashicorp/example?depth=1&ref=v1.0.3"
}