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

Orca 845 #89

Merged
merged 34 commits into from
Aug 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
db8317f
Current progress
isatasan Jul 1, 2021
4afd452
Websocket implementation
isatasan Jul 7, 2021
14603fb
Fixing routes
isatasan Jul 7, 2021
d2db005
Adding url
isatasan Jul 7, 2021
ea40187
Fixed websocket connection
isatasan Jul 8, 2021
c914f02
Progress 7/9
isatasan Jul 9, 2021
1b87580
Added some channel logic
isatasan Jul 13, 2021
37f1aec
Changes to models.go
isatasan Jul 13, 2021
d8a4043
Working on log streaming for plan
isatasan Jul 14, 2021
41794f9
Beginning tests/Having errors
isatasan Jul 15, 2021
75682d1
Log Streaming Logic
isatasan Jul 15, 2021
3adca15
fixed test
isatasan Jul 16, 2021
6b47f89
Added Testing
isatasan Jul 19, 2021
a0ca5cd
Fixed websocket connection
isatasan Jul 19, 2021
706177c
Async implementation and test error fixes
isatasan Jul 26, 2021
29ab19d
Changes to variables in tests
isatasan Jul 26, 2021
7a7520d
Debugging
isatasan Jul 26, 2021
9825a13
Fixed UI in webpage terminal
isatasan Jul 28, 2021
63d8c0c
Fixing Run make-test coverage
isatasan Jul 28, 2021
6484035
Merge branch 'release-v0.17.1-lyft.1' into orca-845
msarvar Jul 28, 2021
8ddbd88
Fixing tests
isatasan Jul 28, 2021
b0fc54d
Testing
isatasan Jul 29, 2021
2df2e48
Deleted txt.act files
isatasan Jul 29, 2021
c6bf4f9
Fixing broken tests
msarvar Jul 29, 2021
4e5dc97
Changes to terraform_client testing
isatasan Jul 30, 2021
cbe65bd
Fixed tests in terraform_client_internal_test.go
isatasan Jul 30, 2021
3c8e8c9
Fixed failing test
isatasan Jul 30, 2021
ec8b863
Deleted lines causing test to fail
isatasan Jul 30, 2021
0d21c25
Reformating
isatasan Aug 2, 2021
176a6cd
More Reformatting
isatasan Aug 2, 2021
6a9a97c
Run make check-lint corrections
isatasan Aug 2, 2021
1b72113
Added error check
isatasan Aug 2, 2021
4b95f6d
Fixing check-lint test
isatasan Aug 2, 2021
0a8d352
Suggested changes prior to merge
isatasan Aug 2, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion server/controllers/events/events_controller_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,7 @@ func setupE2E(t *testing.T, repoDir string) (events_controllers.VCSEventsControl
e2eStatusUpdater := &events.DefaultCommitStatusUpdater{Client: e2eVCSClient}
e2eGithubGetter := mocks.NewMockGithubPullGetter()
e2eGitlabGetter := mocks.NewMockGitlabMergeRequestGetter()
tempchan := make(chan *models.TerraformOutputLine)

// Real dependencies.
logger := logging.NewNoopLogger(t)
Expand All @@ -680,7 +681,7 @@ func setupE2E(t *testing.T, repoDir string) (events_controllers.VCSEventsControl
GithubUser: "github-user",
GitlabUser: "gitlab-user",
}
terraformClient, err := terraform.NewClient(logger, binDir, cacheDir, "", "", "", "default-tf-version", "https://releases.hashicorp.com", &NoopTFDownloader{}, false)
terraformClient, err := terraform.NewClient(logger, binDir, cacheDir, "", "", "", "default-tf-version", "https://releases.hashicorp.com", &NoopTFDownloader{}, false, tempchan)
Ok(t, err)
boltdb, err := db.New(dataDir)
Ok(t, err)
Expand Down Expand Up @@ -792,6 +793,7 @@ func setupE2E(t *testing.T, repoDir string) (events_controllers.VCSEventsControl
WorkingDir: workingDir,
Webhooks: &mockWebhookSender{},
WorkingDirLocker: locker,
TerraformOutputChan: tempchan,
}

dbUpdater := &events.DBUpdater{
Expand Down Expand Up @@ -893,6 +895,11 @@ func setupE2E(t *testing.T, repoDir string) (events_controllers.VCSEventsControl
repoAllowlistChecker, err := events.NewRepoAllowlistChecker("*")
Ok(t, err)

go func() {
for range tempchan {
}
}()

ctrl := events_controllers.VCSEventsController{
TestingMode: true,
CommandRunner: commandRunner,
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading