Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/sebastian/prod-2721-think-up-a-t…
Browse files Browse the repository at this point in the history
…est-strategy-for-plural-up' into sebastian/prod-2721-think-up-a-test-strategy-for-plural-up
  • Loading branch information
maciaszczykm committed Nov 26, 2024
2 parents ad23a39 + 3c78e81 commit b537758
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 15 deletions.
3 changes: 2 additions & 1 deletion pkg/up/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ import (
"strings"

"github.com/AlecAivazis/survey/v2"
"github.com/samber/lo"

"github.com/pluralsh/plural-cli/pkg/bundle"
"github.com/pluralsh/plural-cli/pkg/config"
"github.com/pluralsh/plural-cli/pkg/manifest"
"github.com/pluralsh/plural-cli/pkg/provider"
"github.com/pluralsh/plural-cli/pkg/utils"
"github.com/pluralsh/plural-cli/pkg/utils/git"
"github.com/samber/lo"

"github.com/mitchellh/go-homedir"
)
Expand Down
5 changes: 0 additions & 5 deletions test/plural/lib/check-required.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@ steps:
assertions:
- result.systemout ShouldMatchRegex '^Plural Home .+$'

- name: Git Repo Private Key
script: "echo Git Repo Private Key {{ .input.gitRepoPrivateKey }}"
assertions:
- result.systemout ShouldMatchRegex '^Git Repo Private Key .+$'

- name: Project
script: "echo Project {{ .input.project }}"
assertions:
Expand Down
8 changes: 5 additions & 3 deletions test/plural/lib/context-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ executor: context-setup
input:
directory: ''
gitRepo: ''
gitRepoPrivateKey: ''
gitRepoPrivateKeyPath: ''
steps:
- script: |
PRIVATE_KEY=$(cat {{ .input.gitRepoPrivateKeyPath }} | sed 's/^/ /') ;\
cat << EOF > {{ .input.directory }}/context.yaml
apiVersion: plural.sh/v1alpha1
kind: Context
Expand All @@ -15,5 +16,6 @@ steps:
configuration:
console:
repo_url: {{ .input.gitRepo }}
private_key: {{ .input.gitRepoPrivateKey | b64dec }}
private_key: |-
$PRIVATE_KEY
EOF
6 changes: 0 additions & 6 deletions test/plural/up.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ vars:
token: ''
# Local plural home directory used to store plural files
pluralHome: ''
# SSH key used to access git repository
gitRepoPrivateKey: ''
# Provider-specific project name/id
project: ''
# Provider name: gcp, azure, aws
Expand Down Expand Up @@ -48,7 +46,6 @@ vars:
secrets:
- pluralKey
- token
- gitRepoPrivateKey
- gcpSAKeyFile
- gcpOrgID
- gcpBillingID
Expand Down Expand Up @@ -81,9 +78,6 @@ testcases:
- name: Setup context file
steps:
- type: context-setup
directory: {{ .directory }}
gitRepo: {{ .gitRepo }}
gitRepoPrivateKey: {{ .gitRepoPrivateKey }}

- name: Plural login
steps:
Expand Down

0 comments on commit b537758

Please sign in to comment.