Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

commands/group, commands/ldap: add e2e tests batch 1 #337

Merged
merged 4 commits into from
Apr 6, 2021

Conversation

isacikgoz
Copy link
Member

Summary

Add e2e tests for:

  • listLdapGroupsCmdF
  • channelGroupStatusCmdF
  • channelGroupListCmdF
  • ldapSyncCmdF
  • ldapIDMigrateCmdF

Ticket Link

PS: will change base to master once we merge #310, alternatively we can merge to enable_enterprise branch.

@isacikgoz isacikgoz added 2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester labels Mar 15, 2021
Copy link
Member

@mgdelacroix mgdelacroix left a comment

Choose a reason for hiding this comment

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

LGTM! 👍 jus added a nonblocking question, awesome work!! 🚀

printer.Clean()

// we rely on the test data generated for the openldap server
// i.e. "test-data.ldif" script
Copy link
Member

Choose a reason for hiding this comment

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

thanks for making this explicit!

jobs, appErr = s.th.App.GetJobsByTypePage(model.JOB_TYPE_LDAP_SYNC, 0, 100)
s.Require().Nil(appErr)
s.Require().NotEmpty(jobs)
s.Assert().Greater(len(jobs), initialNumJobs)
Copy link
Member

Choose a reason for hiding this comment

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

does it make sense to be more precise and test for len(jobs) + 1?

Copy link
Member Author

Choose a reason for hiding this comment

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

Makes sense 👍

@isacikgoz isacikgoz requested a review from lindy65 March 29, 2021 12:52
@isacikgoz isacikgoz removed the 2: Dev Review Requires review by a core committer label Mar 29, 2021
* commands/group: add e2e tests batch 2

* reflect review comments

* add TM4J test codes
@codecov-io
Copy link

Codecov Report

Merging #337 (31a072d) into enable_enterprise (531f14f) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@                Coverage Diff                 @@
##           enable_enterprise     #337   +/-   ##
==================================================
  Coverage              73.34%   73.34%           
==================================================
  Files                     38       38           
  Lines                   3204     3204           
==================================================
  Hits                    2350     2350           
  Misses                   710      710           
  Partials                 144      144           

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 531f14f...31a072d. Read the comment docs.

Copy link
Contributor

@lindy65 lindy65 left a comment

Choose a reason for hiding this comment

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

Thanks @isacikgoz - these commands will be tested after merge 👍

Please help add Zephyr test codes to s.Run lines:

image

image

@lindy65 lindy65 added 4: Reviews Complete All reviewers have approved the pull request and removed 3: QA Review Requires review by a QA tester labels Apr 5, 2021
@isacikgoz isacikgoz merged commit 6d45a42 into enable_enterprise Apr 6, 2021
@isacikgoz isacikgoz deleted the ee_e2e_batch_1 branch April 6, 2021 11:48
mgdelacroix pushed a commit that referenced this pull request Sep 23, 2021
* enable ee build for e2e tests

* update server dependency

* commands/permissions and commands/permissions_role: add some e2e tests (batch 3) (#339)

* commands/permissions: add some e2e tests

* clear busy status

* add test codes

* commands/license and commands/ststem: add some e2e tests (batch 4) (#340)

* commands/license and commands/ststem: add some e2e tests

* remove system_e2e_test.go

* add test codes

* add system

* commands/group, commands/ldap: add e2e tests batch 1 (#337)

* commands/group, commands/ldap: add e2e tests batch 1

* reflect revivew comments

* commands/group: add e2e tests batch 2 (#338)

* commands/group: add e2e tests batch 2

* reflect review comments

* add TM4J test codes

* add test codes

* update v6

* mod vendor

* update server dependencies

* add ci files (similar to server)

* renanme step

* fix cp path

* fix db driver constant

* Enable ee tests (#395)

* Fix GitLab side

* Update .gitlab-ci.yml

Co-authored-by: Elisabeth Kulzer <elikul@elikul.de>

Co-authored-by: Elisabeth Kulzer <elikul@elikul.de>
cpanato pushed a commit that referenced this pull request Nov 24, 2021
* enable ee build for e2e tests

* update server dependency

* commands/permissions and commands/permissions_role: add some e2e tests (batch 3) (#339)

* commands/permissions: add some e2e tests

* clear busy status

* add test codes

* commands/license and commands/ststem: add some e2e tests (batch 4) (#340)

* commands/license and commands/ststem: add some e2e tests

* remove system_e2e_test.go

* add test codes

* add system

* commands/group, commands/ldap: add e2e tests batch 1 (#337)

* commands/group, commands/ldap: add e2e tests batch 1

* reflect revivew comments

* commands/group: add e2e tests batch 2 (#338)

* commands/group: add e2e tests batch 2

* reflect review comments

* add TM4J test codes

* add test codes

* update v6

* mod vendor

* update server dependencies

* add ci files (similar to server)

* renanme step

* fix cp path

* fix db driver constant

* Enable ee tests (#395)

* Fix GitLab side

* Update .gitlab-ci.yml

Co-authored-by: Elisabeth Kulzer <elikul@elikul.de>

Co-authored-by: Elisabeth Kulzer <elikul@elikul.de>
cpanato pushed a commit that referenced this pull request Nov 24, 2021
* [MM-38097] Update client (#385)

* update deps

* add human package

* fix typo

* unskip log tests

* mmctl plugin add: introduce optional 'force' flag to allow existing plugins to be replaced (#390)

* mmctl plugin add: introduce default-replace 'force' flag

This allows users to add a plugin with add-and-replace-if-exists semantics when using the `mmctl plugin add`, by specifying the `--force` flag.

This is implemented by calling the `client.UploadPluginForced` function.

* Update documentation

* Add end-to-end test (test-e2e) coverage for plugin addition in the presence of an existing copy of the plugin

* lint fixup: remove unnecessary use of fmt.Sprintf

* Remove redundant error string assertion

* Clear contents of output printer between repeated 'plugin add' actions

* Add output message check for successful forced plugin replacement via 'plugin add'

* printer: add pager option (#377)

* printer: add pager option

* add pager flag

* Apply suggestions from code review

Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>

* add print warning function

* Apply suggestions from code review

Co-authored-by: Claudio Costa <cstcld91@gmail.com>

* reflect review comments

* remove progress indicator

Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
Co-authored-by: Claudio Costa <cstcld91@gmail.com>

* fix a merge error (#396)

* Enable ee build for e2e tests (#310)

* enable ee build for e2e tests

* update server dependency

* commands/permissions and commands/permissions_role: add some e2e tests (batch 3) (#339)

* commands/permissions: add some e2e tests

* clear busy status

* add test codes

* commands/license and commands/ststem: add some e2e tests (batch 4) (#340)

* commands/license and commands/ststem: add some e2e tests

* remove system_e2e_test.go

* add test codes

* add system

* commands/group, commands/ldap: add e2e tests batch 1 (#337)

* commands/group, commands/ldap: add e2e tests batch 1

* reflect revivew comments

* commands/group: add e2e tests batch 2 (#338)

* commands/group: add e2e tests batch 2

* reflect review comments

* add TM4J test codes

* add test codes

* update v6

* mod vendor

* update server dependencies

* add ci files (similar to server)

* renanme step

* fix cp path

* fix db driver constant

* Enable ee tests (#395)

* Fix GitLab side

* Update .gitlab-ci.yml

Co-authored-by: Elisabeth Kulzer <elikul@elikul.de>

Co-authored-by: Elisabeth Kulzer <elikul@elikul.de>

* commands/user: add migrate auth e2e tests (#341)

* add arm64 targets and update mm deps to 6.0.2 (#402)

* add arm64 targets and update mm deps to 6.0.2

* add vendor

* refactor lint job

* update deprecated lint

* fix lints

Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>
Co-authored-by: James Addison <james.addison@collabora.com>
Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
Co-authored-by: Claudio Costa <cstcld91@gmail.com>
Co-authored-by: Elisabeth Kulzer <elikul@elikul.de>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4: Reviews Complete All reviewers have approved the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants