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

Fix data_test #345

Merged
merged 1 commit into from
Oct 10, 2019
Merged

Fix data_test #345

merged 1 commit into from
Oct 10, 2019

Conversation

DeepikaDixit
Copy link
Contributor

Change Overview

data_test failing due to wrong/incorrect directory path.

Pull request type

Please check the type of change your PR introduces:

  • Work in Progress
  • Refactoring (no functional changes, no api changes)
  • Trivial/Minor
  • Bugfix
  • Feature
  • Documentation

Test Plan

travis ci does not run data_test. It passed locally, should have been caught earlier

  • Manual
  • Unit test
$ go test -check.vv -check.f=TestDescribeBackupsWrongPassword
go: finding github.com/graymeta/stow v0.0.0-00010101000000-000000000000
START: data_test.go:57: DataSuite.SetUpSuite
PASS: data_test.go:57: DataSuite.SetUpSuite	5.132s

START: data_test.go:586: DataSuite.TestDescribeBackupsWrongPassword
INFO[0013] Pod: test-statefulset-b5w4h-0 Container: test-container Out: Fatal: unable to open config file: Stat: The specified key does not exist. 
INFO[0013] Pod: test-statefulset-b5w4h-0 Container: test-container Out: Is there a repository at the following location? 
INFO[0013] Pod: test-statefulset-b5w4h-0 Container: test-container Out: s3:s3.amazonaws.com/kio-store-tests/testBackupRestoreLocDelete/abd 
INFO[0013] Pod: test-statefulset-b5w4h-0 Container: test-container Out: Fatal: unable to open config file: Stat: The specified key does not exist. 
INFO[0013] Pod: test-statefulset-b5w4h-0 Container: test-container Out: Is there a repository at the following location? 
INFO[0013] Pod: test-statefulset-b5w4h-0 Container: test-container Out: s3:s3.amazonaws.com/kio-store-tests/testBackupRestoreLocDelete/abd 
INFO[0015] Pod: test-statefulset-b5w4h-0 Container: test-container Out: created restic repository 0c1fd09cb4 at s3:s3.amazonaws.com/kio-store-tests/testBackupRestoreLocDelete/abd 
INFO[0015] Pod: test-statefulset-b5w4h-0 Container: test-container Out: Please note that knowledge of your password is required to access 
INFO[0015] Pod: test-statefulset-b5w4h-0 Container: test-container Out: the repository. Losing your password means that your data is 
INFO[0015] Pod: test-statefulset-b5w4h-0 Container: test-container Out: irrecoverably lost. 
INFO[0018] Pod: test-statefulset-b5w4h-0 Container: test-container Out: created new cache in /root/.cache/restic 
INFO[0018] Pod: test-statefulset-b5w4h-0 Container: test-container Out: Files:          63 new,     0 changed,     0 unmodified 
INFO[0018] Pod: test-statefulset-b5w4h-0 Container: test-container Out: Dirs:            0 new,     0 changed,     0 unmodified 
INFO[0018] Pod: test-statefulset-b5w4h-0 Container: test-container Out: Added to the repo: 392.751 KiB 
INFO[0018] Pod: test-statefulset-b5w4h-0 Container: test-container Out: processed 63 files, 631.952 KiB in 0:00 
INFO[0018] Pod: test-statefulset-b5w4h-0 Container: test-container Out: snapshot ebdf7350 saved 
INFO[0026] Pod: describe-backups-6b5h9 Container: container Out: Fatal: wrong password or no key found 
PASS: data_test.go:586: DataSuite.TestDescribeBackupsWrongPassword	21.161s

START: data_test.go:108: DataSuite.TearDownSuite
PASS: data_test.go:108: DataSuite.TearDownSuite	1.276s

START: data_test.go:57: DataSuite.SetUpSuite
SKIP: data_test.go:57: DataSuite.SetUpSuite (Test  requires the environemnt variable 'GOOGLE_APPLICATION_CREDENTIALS')

START: data_test.go:586: DataSuite.TestDescribeBackupsWrongPassword
SKIP: data_test.go:586: DataSuite.TestDescribeBackupsWrongPassword

START: data_test.go:108: DataSuite.TearDownSuite
PASS: data_test.go:108: DataSuite.TearDownSuite	0.029s

OK: 1 passed, 1 skipped
PASS
ok  	github.com/kanisterio/kanister/pkg/function	29.477s

$ go test -check.vv -check.f=TestDescribeBackupsRepoNotAvailable
go: finding github.com/graymeta/stow v0.0.0-00010101000000-000000000000
START: data_test.go:57: DataSuite.SetUpSuite
PASS: data_test.go:57: DataSuite.SetUpSuite	1.917s

START: data_test.go:604: DataSuite.TestDescribeBackupsRepoNotAvailable
INFO[0006] Pod: test-statefulset-8xxkb-0 Container: test-container Out: Fatal: unable to open config file: Stat: The specified key does not exist. 
INFO[0006] Pod: test-statefulset-8xxkb-0 Container: test-container Out: Is there a repository at the following location? 
INFO[0006] Pod: test-statefulset-8xxkb-0 Container: test-container Out: s3:s3.amazonaws.com/kio-store-tests/testBackupRestoreLocDelete 
INFO[0006] Pod: test-statefulset-8xxkb-0 Container: test-container Out: Fatal: unable to open config file: Stat: The specified key does not exist. 
INFO[0006] Pod: test-statefulset-8xxkb-0 Container: test-container Out: Is there a repository at the following location? 
INFO[0006] Pod: test-statefulset-8xxkb-0 Container: test-container Out: s3:s3.amazonaws.com/kio-store-tests/testBackupRestoreLocDelete 
INFO[0010] Pod: test-statefulset-8xxkb-0 Container: test-container Out: created restic repository 1d5784def5 at s3:s3.amazonaws.com/kio-store-tests/testBackupRestoreLocDelete 
INFO[0010] Pod: test-statefulset-8xxkb-0 Container: test-container Out: Please note that knowledge of your password is required to access 
INFO[0010] Pod: test-statefulset-8xxkb-0 Container: test-container Out: the repository. Losing your password means that your data is 
INFO[0010] Pod: test-statefulset-8xxkb-0 Container: test-container Out: irrecoverably lost. 
INFO[0012] Pod: test-statefulset-8xxkb-0 Container: test-container Out: created new cache in /root/.cache/restic 
INFO[0012] Pod: test-statefulset-8xxkb-0 Container: test-container Out: Files:          63 new,     0 changed,     0 unmodified 
INFO[0012] Pod: test-statefulset-8xxkb-0 Container: test-container Out: Dirs:            0 new,     0 changed,     0 unmodified 
INFO[0012] Pod: test-statefulset-8xxkb-0 Container: test-container Out: Added to the repo: 392.751 KiB 
INFO[0012] Pod: test-statefulset-8xxkb-0 Container: test-container Out: processed 63 files, 631.952 KiB in 0:00 
INFO[0012] Pod: test-statefulset-8xxkb-0 Container: test-container Out: snapshot 2339564f saved 
INFO[0017] Pod: describe-backups-xp222 Container: container Out: Fatal: unable to open config file: Stat: The specified key does not exist. 
INFO[0017] Pod: describe-backups-xp222 Container: container Out: Is there a repository at the following location? 
INFO[0017] Pod: describe-backups-xp222 Container: container Out: s3:s3.amazonaws.com/kio-store-tests/testBackupRestoreLocDelete/foobar 
PASS: data_test.go:604: DataSuite.TestDescribeBackupsRepoNotAvailable	15.085s

START: data_test.go:108: DataSuite.TearDownSuite
PASS: data_test.go:108: DataSuite.TearDownSuite	1.235s

START: data_test.go:57: DataSuite.SetUpSuite
SKIP: data_test.go:57: DataSuite.SetUpSuite (Test  requires the environemnt variable 'GOOGLE_APPLICATION_CREDENTIALS')

START: data_test.go:604: DataSuite.TestDescribeBackupsRepoNotAvailable
SKIP: data_test.go:604: DataSuite.TestDescribeBackupsRepoNotAvailable

START: data_test.go:108: DataSuite.TearDownSuite
PASS: data_test.go:108: DataSuite.TearDownSuite	0.034s

OK: 1 passed, 1 skipped
PASS
ok  	github.com/kanisterio/kanister/pkg/function	20.144s
  • E2E

@mergify mergify bot merged commit afdf547 into master Oct 10, 2019
@mergify mergify bot deleted the fix-data-test branch October 10, 2019 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants