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

Cassandra option test (part 2) #724

Merged
merged 4 commits into from
Oct 2, 2020

Conversation

kevindiu
Copy link
Contributor

@kevindiu kevindiu commented Sep 24, 2020

Description:

This PR implements cassandra option test.
It also includes the refactoring of FOP written in guideline.

Related Issue:

How Has This Been Tested?:

Environment:

  • Go Version: 1.15.2
  • Docker Version: 19.03.8
  • Kubernetes Version: 1.18.2
  • NGT Version: 1.12.1

Types of changes:

  • Bug fix [type/bug]
  • New feature [type/feature]
  • Add tests [type/test]
  • Security related changes [type/security]
  • Add documents [type/documentation]
  • Refactoring [type/refactoring]
  • Update dependencies [type/dependency]
  • Update benchmarks and performances [type/bench]
  • Update CI [type/ci]

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable?
  • Have you successfully ran tests with your changes locally?

Checklist:

  • I have read the CONTRIBUTING document.
  • I have checked open Pull Requests for the similar feature or fixes?
  • I have added tests and benchmarks to cover my changes.
  • I have ensured all new and existing tests passed.
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly.

@pull-assistant
Copy link

pull-assistant bot commented Sep 24, 2020

Score: 1.00

Best reviewed: commit by commit


Optimal code review plan

     add test

     add test

     add test

     fix

Powered by Pull Assistant. Last update f258470 ... c1f3e62. Read the comment docs.

@kevindiu
Copy link
Contributor Author

/rebase

@vdaas-ci
Copy link
Collaborator

[CHATOPS:HELP] ChatOps commands.

  • 🙆‍♀️ /approve - approve
  • 💌 /changelog - add changelog comment
  • 🍱 /format - format codes and add licenses
  • /gen-test - generate test codes
  • 🏷️ /label - add labels
  • /rebase - rebase master

@vdaas-ci
Copy link
Collaborator

[REBASE] Rebase triggered by kevindiu for branch: test/internal/cassandra-option-part2

@vdaas-ci vdaas-ci force-pushed the test/internal/cassandra-option-part2 branch from 0a59c20 to 8e5e32a Compare September 24, 2020 09:36
@codecov
Copy link

codecov bot commented Sep 24, 2020

Codecov Report

Merging #724 into master will increase coverage by 0.46%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #724      +/-   ##
==========================================
+ Coverage   14.79%   15.25%   +0.46%     
==========================================
  Files         419      419              
  Lines       19449    19477      +28     
==========================================
+ Hits         2878     2972      +94     
+ Misses      16347    16286      -61     
+ Partials      224      219       -5     
Impacted Files Coverage Δ
internal/db/nosql/cassandra/option.go 58.33% <100.00%> (+34.22%) ⬆️
internal/worker/worker.go 82.29% <0.00%> (+1.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0d5880f...b443696. Read the comment docs.

@kevindiu
Copy link
Contributor Author

/rebase

@vdaas-ci
Copy link
Collaborator

[REBASE] Rebase triggered by kevindiu for branch: test/internal/cassandra-option-part2

@vdaas-ci vdaas-ci force-pushed the test/internal/cassandra-option-part2 branch from 8e5e32a to f258470 Compare September 30, 2020 08:16
@kevindiu kevindiu changed the title [WIP] Cassandra option test (part 2) Cassandra option test (part 2) Oct 1, 2020
@kevindiu kevindiu requested a review from hlts2 October 1, 2020 02:53
want: want{
err: errors.NewErrCriticalOption("consistency", "dummy"),
obj: &T{},
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you please add test about the following link?

actual, ok := consistenciesMap[strings.TrimSpace(strings.Trim(strings.Trim(strings.ToLower(consistency), "_"), "-"))]

I think this code is comprex, so we should add other pattern.

@kevindiu kevindiu requested a review from hlts2 October 1, 2020 06:58
hlts2
hlts2 previously approved these changes Oct 1, 2020
Copy link
Contributor

@hlts2 hlts2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kevindiu kevindiu requested a review from vankichi October 2, 2020 01:30
vankichi
vankichi previously approved these changes Oct 2, 2020
@vankichi
Copy link
Contributor

vankichi commented Oct 2, 2020

/rebase
/format
/approve

@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Oct 2, 2020

[REBASE] Rebase triggered by vankichi for branch: test/internal/cassandra-option-part2

@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Oct 2, 2020

[FORMAT] Updating license headers and formatting go codes triggered by vankichi.

Copy link
Collaborator

@vdaas-ci vdaas-ci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[APPROVED] This PR is approved by vankichi.

@vankichi vankichi merged commit 4410fa4 into master Oct 2, 2020
@vankichi vankichi deleted the test/internal/cassandra-option-part2 branch October 2, 2020 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants