Skip to content

Commit cd01a5a

Browse files
authored
fix oss deny message (#13)
1 parent 4dd46a7 commit cd01a5a

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

.github/workflows/import-scene-test.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,11 @@ jobs:
3030
restore-keys: |
3131
go-${{ runner.os }}-
3232
33-
# TODO enable TestOSSAccessKeyNoPrivilegeImport after the PR is published in prod
3433
- name: Run tests
3534
run: |
3635
if [ -z ${{ github.event.inputs.testCase }} ]; then
3736
echo "Running all tests"
38-
go run gotest.tools/gotestsum@latest --format standard-verbose -- sceneTest/import/* -cid 10278121821273448857 -config "${{ secrets.TEST_CONFIG }}" -skip "TestOSSAccessKeyNoPrivilegeImport" -timeout 30m
37+
go run gotest.tools/gotestsum@latest --format standard-verbose -- sceneTest/import/* -cid 10278121821273448857 -config "${{ secrets.TEST_CONFIG }}" -timeout 30m
3938
else
4039
echo "Running test ${{ github.event.inputs.testCase }}"
4140
go run gotest.tools/gotestsum@latest --format standard-verbose -- sceneTest/import/* -cid 10278121821273448857 -config "${{ secrets.TEST_CONFIG }}" -run ${{ github.event.inputs.testCase }}

sceneTest/import/import_oss_test.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,7 @@ func TestOSSAccessKeyNoPrivilegeImport(t *testing.T) {
4747
}
4848
i, resp, err := r.Execute()
4949
err = util.ParseError(err, resp)
50-
if err != nil {
51-
t.Fatal(err)
52-
}
53-
err = waitImport(ctx, *i.ImportId)
54-
err = expectFail(err, "AccessDenied")
50+
err = expectFail(err, "OSS access deny")
5551
if err != nil {
5652
t.Fatalf("test failed, importId: %s, err: %s", *i.ImportId, err.Error())
5753
} else {

0 commit comments

Comments
 (0)