Skip to content

Commit

Permalink
fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
airycanon committed Dec 30, 2024
1 parent 2d305e5 commit 6f31472
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/apitests/python/test_del_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def testDelRepo(self):
TestProjects.project_del_repo_id, TestProjects.project_del_repo_name = self.project.create_project(metadata = {"public": "false"}, **TestProjects.USER_del_repo_CLIENT)

#3. Create a new repository(RA) in project(PA) by user(UA);
repo_name, _ = push_self_build_image_to_project(TestProjects.project_del_repo_name, harbor_server, admin_user, admin_pwd, "test_del_repo", "latest", size=512)
repo_name, _ = push_self_build_image_to_project(TestProjects.project_del_repo_name, harbor_server, admin_user, admin_pwd, "test_del_repo", "latest", size=16)

#4. Get repository in project(PA), there should be one repository which was created by user(UA);
repo_data = self.repo.list_repositories(TestProjects.project_del_repo_name, **TestProjects.USER_del_repo_CLIENT)
Expand Down
2 changes: 1 addition & 1 deletion tests/resources/Docker-Util.robot
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Get Container IP
Start Docker Daemon Locally
${pid}= Run ps aux | grep -v grep | grep /usr/local/bin/dockerd | awk '{print $2}'
${rc} ${output}= Run And Return Rc And Output ./tests/robot-cases/Group0-Util/docker_config.sh
Log ${output}
Log To Console output: ${output}
Should Be Equal As Integers ${rc} 0
Log To Console pid: ${pid}
Return From Keyword If '${pid}' != '${EMPTY}'
Expand Down
9 changes: 8 additions & 1 deletion tests/robot-cases/Group0-Util/docker_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ mkdir -p /etc/docker
if [ "$HARBOR_HOST_SCHEMA" = "http" ]; then
cat > /etc/docker/daemon.json <<EOF
{
"insecure-registries": ["0.0.0.0/0", "${HARBOR_HOST}"]
"insecure-registries": ["0.0.0.0/0", "${HARBOR_HOST}"],
"default-shm-size": "256m"
}
EOF
else
cat > /etc/docker/daemon.json <<EOF
{
"default-shm-size": "256m"
}
EOF
fi
Expand Down

0 comments on commit 6f31472

Please sign in to comment.