Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoucheng361 committed Dec 29, 2024
1 parent 768818a commit 4574e70
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/scripts/command/gateway2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ META_URL=$(get_meta_url $META)
if ! docker ps --filter "name=minio_old$" | grep minio_old; then
echo start minio_old
docker run -d -p 9000:9000 --name minio_old -e "MINIO_ACCESS_KEY=minioadmin" -e "MINIO_SECRET_KEY=minioadmin" minio/minio:RELEASE.2021-04-22T15-44-28Z server /tmp/minio_old
while ! curl -s http://localhost:9000/minio/health/live > /dev/null; do
echo "Waiting for MinIO to be ready..."
sleep 1
done
echo "MinIO is ready."
fi

timeout 30 bash -c 'counter=0; until lsof -i:9000; do echo -ne "wait port ready in $counter\r" && ((counter++)) && sleep 1; done'
Expand Down
2 changes: 2 additions & 0 deletions .github/scripts/hypo/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,8 @@ def add_policy(self, policy_name, policy_document, alias=ROOT_ALIAS):
)
@precondition(lambda self: 'remove_policy' not in self.EXCLUDE_RULES)
def remove_policy(self, policy_name, alias=ROOT_ALIAS):
assume(policy_name not in BUILD_IN_POLICIES)
assert policy_name not in BUILD_IN_POLICIES, f'policy_name {policy_name} is in BUILD_IN_POLICIES'
result1 = self.client1.do_remove_policy(policy_name, alias)
result2 = self.client2.do_remove_policy(policy_name, alias)
assert self.equal(result1, result2), f'\033[31mremove_policy:\nresult1 is {result1}\nresult2 is {result2}\033[0m'
Expand Down

0 comments on commit 4574e70

Please sign in to comment.