Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
bc122a95
Commit
bc122a95
authored
8 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
Revert "WIP"
This reverts commit
d135802c
.
parent
d135802c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
catalogue/CMakeLists.txt
+1
-3
1 addition, 3 deletions
catalogue/CMakeLists.txt
catalogue/CreateAdminUserCmdLineArgsTest.cpp
+10
-10
10 additions, 10 deletions
catalogue/CreateAdminUserCmdLineArgsTest.cpp
with
11 additions
and
13 deletions
catalogue/CMakeLists.txt
+
1
−
3
View file @
bc122a95
...
...
@@ -217,9 +217,7 @@ install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/cta-catalogue-admin-host-create.1cta
set
(
CATALOGUE_CMD_LINE_UNIT_TESTS_LIB_SRC_FILES
CreateAdminHostCmdLineArgs.cpp
CreateAdminHostCmdLineArgsTest.cpp
CreateAdminUserCmdLineArgs.cpp
CreateAdminUserCmdLineArgsTest.cpp
)
CreateAdminHostCmdLineArgsTest.cpp
)
add_library
(
ctacataloguecmdlineunittests SHARED
${
CATALOGUE_CMD_LINE_UNIT_TESTS_LIB_SRC_FILES
}
)
This diff is collapsed.
Click to expand it.
catalogue/CreateAdminUserCmdLineArgsTest.cpp
+
10
−
10
View file @
bc122a95
...
...
@@ -82,7 +82,7 @@ TEST_F(cta_catalogue_CreateAdminUserCmdLineArgsTest, help_short) {
ASSERT_TRUE
(
cmdLine
.
help
);
ASSERT_TRUE
(
cmdLine
.
dbConfigPath
.
empty
());
ASSERT_TRUE
(
cmdLine
.
adminUser
n
ame
.
empty
());
ASSERT_TRUE
(
cmdLine
.
adminUser
N
ame
.
empty
());
ASSERT_TRUE
(
cmdLine
.
comment
.
empty
());
}
...
...
@@ -101,11 +101,11 @@ TEST_F(cta_catalogue_CreateAdminUserCmdLineArgsTest, help_long) {
ASSERT_TRUE
(
cmdLine
.
help
);
ASSERT_TRUE
(
cmdLine
.
dbConfigPath
.
empty
());
ASSERT_TRUE
(
cmdLine
.
adminUser
n
ame
.
empty
());
ASSERT_TRUE
(
cmdLine
.
adminUser
N
ame
.
empty
());
ASSERT_TRUE
(
cmdLine
.
comment
.
empty
());
}
TEST_F
(
cta_catalogue_CreateAdminUserCmdLineArgsTest
,
user
name_short
)
{
TEST_F
(
cta_catalogue_CreateAdminUserCmdLineArgsTest
,
host
name_short
)
{
using
namespace
cta
::
catalogue
;
Argcv
*
args
=
new
Argcv
();
...
...
@@ -114,8 +114,8 @@ TEST_F(cta_catalogue_CreateAdminUserCmdLineArgsTest, username_short) {
args
->
argv
=
new
char
*
[
7
];
args
->
argv
[
0
]
=
dupString
(
"cta-catalogue-admin-user-create"
);
args
->
argv
[
1
]
=
dupString
(
"dbConfigPath"
);
args
->
argv
[
2
]
=
dupString
(
"-
u
"
);
args
->
argv
[
3
]
=
dupString
(
"adminUser
n
ame"
);
args
->
argv
[
2
]
=
dupString
(
"-
n
"
);
args
->
argv
[
3
]
=
dupString
(
"adminUser
N
ame"
);
args
->
argv
[
4
]
=
dupString
(
"-c"
);
args
->
argv
[
5
]
=
dupString
(
"comment"
);
args
->
argv
[
6
]
=
NULL
;
...
...
@@ -124,11 +124,11 @@ TEST_F(cta_catalogue_CreateAdminUserCmdLineArgsTest, username_short) {
ASSERT_FALSE
(
cmdLine
.
help
);
ASSERT_EQ
(
std
::
string
(
"dbConfigPath"
),
cmdLine
.
dbConfigPath
);
ASSERT_EQ
(
std
::
string
(
"adminUser
n
ame"
),
cmdLine
.
adminUser
n
ame
);
ASSERT_EQ
(
std
::
string
(
"adminUser
N
ame"
),
cmdLine
.
adminUser
N
ame
);
ASSERT_EQ
(
std
::
string
(
"comment"
),
cmdLine
.
comment
);
}
TEST_F
(
cta_catalogue_CreateAdminUserCmdLineArgsTest
,
user
name_long
)
{
TEST_F
(
cta_catalogue_CreateAdminUserCmdLineArgsTest
,
host
name_long
)
{
using
namespace
cta
::
catalogue
;
Argcv
*
args
=
new
Argcv
();
...
...
@@ -137,8 +137,8 @@ TEST_F(cta_catalogue_CreateAdminUserCmdLineArgsTest, username_long) {
args
->
argv
=
new
char
*
[
7
];
args
->
argv
[
0
]
=
dupString
(
"cta-catalogue-admin-user-create"
);
args
->
argv
[
1
]
=
dupString
(
"dbConfigPath"
);
args
->
argv
[
2
]
=
dupString
(
"--
user
name"
);
args
->
argv
[
3
]
=
dupString
(
"adminUser
n
ame"
);
args
->
argv
[
2
]
=
dupString
(
"--
host
name"
);
args
->
argv
[
3
]
=
dupString
(
"adminUser
N
ame"
);
args
->
argv
[
4
]
=
dupString
(
"--comment"
);
args
->
argv
[
5
]
=
dupString
(
"comment"
);
args
->
argv
[
6
]
=
NULL
;
...
...
@@ -147,7 +147,7 @@ TEST_F(cta_catalogue_CreateAdminUserCmdLineArgsTest, username_long) {
ASSERT_FALSE
(
cmdLine
.
help
);
ASSERT_EQ
(
std
::
string
(
"dbConfigPath"
),
cmdLine
.
dbConfigPath
);
ASSERT_EQ
(
std
::
string
(
"adminUser
n
ame"
),
cmdLine
.
adminUser
n
ame
);
ASSERT_EQ
(
std
::
string
(
"adminUser
N
ame"
),
cmdLine
.
adminUser
N
ame
);
ASSERT_EQ
(
std
::
string
(
"comment"
),
cmdLine
.
comment
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment