You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: org_test.go
    path of file: ./repos/erda/internal/core/org
    
    the code of the file until where you have to start completion: // Copyright (c) 2021 Terminus, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package org

import (
	"context"
	"fmt"
	"reflect"
	"testing"

	"bou.ke/monkey"
	"github.com/stretchr/testify/assert"
	"github.com/stretchr/testify/require"

	"github.com/erda-project/erda-proto-go/core/org/pb"
	"github.com/erda-project/erda/internal/core/org/db"
	"github.com/erda-project/erda/pkg/common/apis"
)

func TestGetOrgByDomainAndOrgName(t *testing.T) {
	org := &db.Org{Name: "org0"}
	dbClient := &db.DB
    
func TestGetAuditMessage(t *testing.T) {
	tt := []struct {
		org  db.Org
		req  pb.UpdateOrgRequest
		want *pb.AuditMessage
	}{
		{
			db.Org{DisplayName: "dice"},
			pb.UpdateOrgRequest{DisplayName: "erda"},
			&pb.AuditMessage{
				MessageZH: "组织名称由 dice 改为 erda ",
				MessageEN: "org name updated from dice to erda ",
			},
		},
		{
			db.Org{Locale: "en-US"},
			pb.UpdateOrgRequest{Locale: "zh-CN"},
			&pb.AuditMessage{
				MessageZH: "通知语言改为中文 ",
				MessageEN: "language updated to zh-CN ",
			},
		},
		{
			db.Org{IsPublic: true},
			pb.UpdateOrgRequest{IsPublic: false},
			&pb.AuditMessage{
				MessageZH: "改为私有组织 ",
				MessageEN: "org updated to private ",
			},
		},
		{
			db.Org{Logo: ""},
			pb.UpdateOrgRequest{Logo: "foo.png"},
			&pb.AuditMessage{
				MessageZH: "组织Logo发生变更 ",
				MessageEN: "org Logo changed ",
			},
		},
		{
			db.Org{Desc: ""},
			pb.UpdateOrgRequest{Desc: "bar"},
			&pb.AuditMessage{
				MessageZH: "组织描述信息发生变更 ",
				MessageEN: "org desc changed ",
			},
		},
		{
			db.Org{BlockoutConfig: db.BlockoutConfig{
				BlockDEV:   false,
				BlockTEST:  false,
				BlockStage: true,
				BlockProd:  true,
			}},
			pb.UpdateOrgRequest{BlockoutConfig: &pb.BlockoutConfig{
				BlockDev:   true,
				BlockTest:  true,
				BlockStage: false,
				BlockProd:  false,
			}},
			&pb.AuditMessage{
				MessageZH: "开发环境开启封网 测试环境开启封网 预发环境关闭封网 生产环境关闭封网 ",
				MessageEN: "block network opened in dev environment block network opened in test environment block network closed in staging environment block network closed in prod environment ",
			},
		},
		{
			db.Org{BlockoutConfig: db.BlockoutConfig{
				BlockDEV:   true,
				BlockTEST:  true,
				BlockStage: true,
				BlockProd:  true,
			},
				DisplayName: "dice", Locale: "en-US", IsPublic: true, Logo: "", Desc: ""},
			pb.UpdateOrgRequest{BlockoutConfig: &pb.BlockoutConfig{
				BlockDev:   true,
				BlockTest:  true,
				BlockStage: true,
				BlockProd:  true,
			},
				DisplayName: "dice", Locale: "en-US", IsPublic: true, Logo: "", Desc: ""},
			&pb.AuditMessage{
				MessageZH: "无信息变更",
				MessageEN: "no message changed",
			},
		},
	}
	for _, v := range tt {
		message := getAuditMessage(v.org, &v.req)
		if v.want.MessageEN != message.MessageEN {
			t.Error("fail")
		}
		if v.want.MessageZH != message.MessageZH {
			t.Error("fail")
		}

	}
}