Skip to content

Commit

Permalink
[Amir] changing test data email domain to example.com
Browse files Browse the repository at this point in the history
  • Loading branch information
anagri committed Sep 27, 2018
1 parent b9d9595 commit 69c402b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions proctord/audit/auditor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestExecutionAuditor(t *testing.T) {
executedJobName := "proctor-123"
imageName := "any/image:name"
jobArgs := map[string]string{"key": "value"}
userEmail := "mrproctor@go-jek.com"
userEmail := "mrproctor@example.com"

ctx := context.WithValue(context.Background(), utility.JobSubmissionStatusContextKey, utility.JobSubmissionSuccess)
ctx = context.WithValue(ctx, utility.JobNameContextKey, jobName)
Expand All @@ -44,7 +44,7 @@ func TestExecutionAuditorClientError(t *testing.T) {
mockStore := &storage.MockStore{}
mockKubeClient := &kubernetes.MockClient{}
testAuditor := New(mockStore, mockKubeClient)
userEmail := "mrproctor@go-jek.com"
userEmail := "mrproctor@example.com"

ctx := context.WithValue(context.Background(), utility.JobSubmissionStatusContextKey, utility.JobSubmissionClientError)
ctx = context.WithValue(ctx, utility.UserEmailContextKey, userEmail)
Expand All @@ -61,7 +61,7 @@ func TestExecutionAuditorServerError(t *testing.T) {
mockStore := &storage.MockStore{}
mockKubeClient := &kubernetes.MockClient{}
testAuditor := New(mockStore, mockKubeClient)
userEmail := "mrproctor@go-jek.com"
userEmail := "mrproctor@example.com"

ctx := context.WithValue(context.Background(), utility.JobSubmissionStatusContextKey, utility.JobSubmissionServerError)
ctx = context.WithValue(ctx, utility.UserEmailContextKey, userEmail)
Expand Down
8 changes: 4 additions & 4 deletions proctord/jobs/execution/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (suite *ExecutionerTestSuite) TestSuccessfulJobExecution() {
t := suite.T()

jobName := "sample-job-name"
userEmail := "mrproctor@go-jek.com"
userEmail := "mrproctor@example.com"
jobArgs := map[string]string{
"argOne": "sample-arg",
"argTwo": "another-arg",
Expand Down Expand Up @@ -137,7 +137,7 @@ func (suite *ExecutionerTestSuite) TestJobExecutionOnImageLookupFailuer() {
t := suite.T()

jobName := "sample-job-name"
userEmail := "mrproctor@go-jek.com"
userEmail := "mrproctor@example.com"
job := Job{
Name: jobName,
}
Expand Down Expand Up @@ -172,7 +172,7 @@ func (suite *ExecutionerTestSuite) TestJobExecutionOnSecretsFetchFailuer() {
t := suite.T()

jobName := "sample-job-name"
userEmail := "mrproctor@go-jek.com"
userEmail := "mrproctor@example.com"
job := Job{
Name: jobName,
}
Expand Down Expand Up @@ -211,7 +211,7 @@ func (suite *ExecutionerTestSuite) TestJobExecutionOnExecutionFailure() {
t := suite.T()

jobName := "sample-job-name"
userEmail := "mrproctor@go-jek.com"
userEmail := "mrproctor@example.com"
emptyMap := make(map[string]string)
job := Job{
Name: jobName,
Expand Down
2 changes: 1 addition & 1 deletion proctord/storage/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestJobsExecutionAuditLog(t *testing.T) {

jobName := "any-job"
imageName := "any-image"
userEmail := "mrproctor@go-jek.com"
userEmail := "mrproctor@example.com"
JobNameSubmittedForExecution := "any-submission"
jobArgs := map[string]string{"key": "value"}
jobSubmissionStatus := "any-status"
Expand Down

0 comments on commit 69c402b

Please sign in to comment.