mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-18 13:41:21 +01:00
Add ldap user to project member test
This commit is contained in:
parent
944fd1d97a
commit
b7670a39b3
@ -29,6 +29,7 @@ dn: cn=harbor_users,ou=groups,dc=example,dc=com
|
|||||||
cn: harbor_users
|
cn: harbor_users
|
||||||
description: All users
|
description: All users
|
||||||
member: cn=mike,ou=people,dc=example,dc=com
|
member: cn=mike,ou=people,dc=example,dc=com
|
||||||
|
member: cn=mike02,ou=people,dc=example,dc=com
|
||||||
objectclass: groupOfNames
|
objectclass: groupOfNames
|
||||||
objectclass: top
|
objectclass: top
|
||||||
|
|
||||||
@ -50,4 +51,24 @@ sn: Joe
|
|||||||
uid: mike
|
uid: mike
|
||||||
uidnumber: 5000
|
uidnumber: 5000
|
||||||
userpassword: {MD5}wb68DeX0CyENafzUADNn9A==
|
userpassword: {MD5}wb68DeX0CyENafzUADNn9A==
|
||||||
|
memberof: cn=harbor_users,ou=groups,dc=example,dc=com
|
||||||
|
|
||||||
|
# User entry to add project member testcase
|
||||||
|
dn: cn=mike02,ou=people,dc=example,dc=com
|
||||||
|
cn: mike02
|
||||||
|
gidnumber: 10000
|
||||||
|
givenname: mike02
|
||||||
|
homedirectory: /home/mike02
|
||||||
|
loginshell: /bin/bash
|
||||||
|
mail: mike02@example.com
|
||||||
|
objectclass: top
|
||||||
|
objectclass: posixAccount
|
||||||
|
objectclass: shadowAccount
|
||||||
|
objectclass: inetOrgPerson
|
||||||
|
objectclass: organizationalPerson
|
||||||
|
objectclass: person
|
||||||
|
sn: Mike02
|
||||||
|
uid: mike02
|
||||||
|
uidnumber: 5001
|
||||||
|
userpassword: {MD5}wb68DeX0CyENafzUADNn9A==
|
||||||
memberof: cn=harbor_users,ou=groups,dc=example,dc=com
|
memberof: cn=harbor_users,ou=groups,dc=example,dc=com
|
@ -49,7 +49,8 @@ Logout Harbor
|
|||||||
Wait Until Element Is Enabled xpath=/html/body/harbor-app/harbor-shell/clr-main-container/navigator/clr-header/div[3]/clr-dropdown[2]/button/span
|
Wait Until Element Is Enabled xpath=/html/body/harbor-app/harbor-shell/clr-main-container/navigator/clr-header/div[3]/clr-dropdown[2]/button/span
|
||||||
Click Element xpath=/html/body/harbor-app/harbor-shell/clr-main-container/navigator/clr-header/div[3]/clr-dropdown[2]/button/span
|
Click Element xpath=/html/body/harbor-app/harbor-shell/clr-main-container/navigator/clr-header/div[3]/clr-dropdown[2]/button/span
|
||||||
Sleep 2
|
Sleep 2
|
||||||
Click Element xpath=//harbor-app/harbor-shell/clr-main-container/navigator/clr-header//clr-dropdown//a[4]
|
Click Link Log Out
|
||||||
|
#Click Element xpath=//harbor-app/harbor-shell/clr-main-container/navigator/clr-header//clr-dropdown//a[4]
|
||||||
Sleep 1
|
Sleep 1
|
||||||
Capture Page Screenshot Logout.png
|
Capture Page Screenshot Logout.png
|
||||||
Sleep 2
|
Sleep 2
|
||||||
|
@ -351,6 +351,8 @@ Test Case - Ldap User Create Project
|
|||||||
${d}= Get Current Date result_format=%m%s
|
${d}= Get Current Date result_format=%m%s
|
||||||
Sign In Harbor ${HARBOR_URL} mike zhu88jie
|
Sign In Harbor ${HARBOR_URL} mike zhu88jie
|
||||||
Create An New Project project${d}
|
Create An New Project project${d}
|
||||||
|
Logout Harbor
|
||||||
|
Manage Project Member %{HARBOR_ADMIN} %{HARBOR_PASSWORD} project${d} mike02 Add
|
||||||
Close Browser
|
Close Browser
|
||||||
|
|
||||||
Test Case - Ldap User Push An Image
|
Test Case - Ldap User Push An Image
|
||||||
|
Loading…
Reference in New Issue
Block a user