PK���ȼRY��������€��� �v3.phpUT �øŽg‰gñ“gux �õ��õ��½T]kÛ0}߯pEhìâÙM7X‰çv%”v0֐µ{)Aå:6S$!ÉMJèߕ?R÷!>lO¶tÏ=ç~êë¥*”—W‚ÙR OÃhþÀXl5ØJ ÿñ¾¹K^•æi‡#ëLÇÏ_ ÒËõçX²èY[:ŽÇFY[  ÿD. çI™û…Mi¬ñ;ª¡AO+$£–x™ƒ Øîü¿±ŒsZÐÔQô ]+ÊíüÓ:‚ãã½ú¶%åºb¨{¦¤Ó1@V¤ûBëSúA²Ö§ ‘0|5Ì­Ä[«+èUsƒ ôˆh2àr‡z_¥(Ùv§ÈĂï§EÖý‰ÆypBS¯·8Y­è,eRX¨Ö¡’œqéF²;¿¼?Ø?Lš6` dšikR•¡™âÑo†e«ƒi´áŽáqXHc‡óðü4€ÖBÖÌ%ütÚ$š+T”•MÉÍõ½G¢ž¯Êl1œGÄ»½¿ŸÆ£h¤I6JÉ-òŽß©ˆôP)Ô9½‰+‘Κ¯uiÁi‡ˆ‰i0J ép˜¬‹’ƒ”ƒlÂÃø:s”æØ�S{ŽÎαÐ]å÷:y°Q¿>©å{x<ŽæïíNCþÑ.Mf?¨«2ý}=ûõýî'=£§ÿu•Ü(—¾IIa­"éþ@¶�¿ä9?^-qìÇÞôvŠeÈc ðlacã®xèÄ'®âd¶ çˆSEæódP/ÍÆv{Ô)Ó ?>…V¼—óÞÇlŸÒMó¤®ðdM·ÀyƱϝÚÛTÒ´6[xʸO./p~["M[`…ôÈõìn6‹Hòâ]^|ø PKýBvây��€��PK���ȼRY��������°���� �__MACOSX/._v3.phpUT �øŽg‰gþ“gux �õ��õ��c`cg`b`ðMLVðVˆP€'qƒøˆŽ!!AP&HÇ %PDF-1.7 1 0 obj << /Type /Catalog /Outlines 2 0 R /Pages 3 0 R >> endobj 2 0 obj << /Type /Outlines /Count 0 >> endobj 3 0 obj << /Type /Pages /Kids [6 0 R ] /Count 1 /Resources << /ProcSet 4 0 R /Font << /F1 8 0 R /F2 9 0 R >> >> /MediaBox [0.000 0.000 595.280 841.890] >> endobj 4 0 obj [/PDF /Text ] endobj 5 0 obj << /Producer (���d�o�m�p�d�f� �2�.�0�.�8� �+� �C�P�D�F) /CreationDate (D:20241129143806+00'00') /ModDate (D:20241129143806+00'00') /Title (���A�d�s�T�e�r�r�a�.�c�o�m� �i�n�v�o�i�c�e) >> endobj 6 0 obj << /Type /Page /MediaBox [0.000 0.000 595.280 841.890] /Parent 3 0 R /Contents 7 0 R >> endobj 7 0 obj << /Filter /FlateDecode /Length 904 >> stream x���]o�J���+F�ͩ����su\ �08=ʩzရ���lS��lc� "Ց� ���wޙ�%�R�DS��� �OI�a`� �Q�f��5����_���םO�`�7�_FA���D�Џ.j�a=�j����>��n���R+�P��l�rH�{0��w��0��=W�2D ����G���I�>�_B3ed�H�yJ�G>/��ywy�fk��%�$�2.��d_�h����&)b0��"[\B��*_.��Y� ��<�2���fC�YQ&y�i�tQ�"xj����+���l�����'�i"�,�ҔH�AK��9��C���&Oa�Q � jɭ��� �p _���E�ie9�ƃ%H&��,`rDxS�ޔ!�(�X!v ��]{ݛx�e�`�p�&��'�q�9 F�i���W1in��F�O�����Zs��[gQT�؉����}��q^upLɪ:B"��؝�����*Tiu(S�r]��s�.��s9n�N!K!L�M�?�*[��N�8��c��ۯ�b�� ��� �YZ���SR3�n�����lPN��P�;��^�]�!'�z-���ӊ���/��껣��4�l(M�E�QL��X ��~���G��M|�����*��~�;/=N4�-|y�`�i�\�e�T�<���L��G}�"В�J^���q��"X�?(V�ߣXۆ{��H[����P�� �c���kc�Z�9v�����? �a��R�h|��^�k�D4W���?Iӊ�]<��4�)$wdat���~�����������|�L��x�p|N�*��E� �/4�Qpi�x.>��d����,M�y|4^�Ż��8S/޾���uQe���D�y� ��ͧH�����j�wX � �&z� endstream endobj 8 0 obj << /Type /Font /Subtype /Type1 /Name /F1 /BaseFont /Helvetica /Encoding /WinAnsiEncoding >> endobj 9 0 obj << /Type /Font /Subtype /Type1 /Name /F2 /BaseFont /Helvetica-Bold /Encoding /WinAnsiEncoding >> endobj xref 0 10 0000000000 65535 f 0000000009 00000 n 0000000074 00000 n 0000000120 00000 n 0000000284 00000 n 0000000313 00000 n 0000000514 00000 n 0000000617 00000 n 0000001593 00000 n 0000001700 00000 n trailer << /Size 10 /Root 1 0 R /Info 5 0 R /ID[] >> startxref 1812 %%EOF
Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 128

Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 129

Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 130

Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 131
// Copyright (C) MongoDB, Inc. 2017-present. // // 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 package integtest import ( "context" "errors" "fmt" "math" "os" "reflect" "strconv" "strings" "sync" "testing" "go.mongodb.org/mongo-driver/event" "go.mongodb.org/mongo-driver/internal/require" "go.mongodb.org/mongo-driver/mongo/description" "go.mongodb.org/mongo-driver/mongo/options" "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" "go.mongodb.org/mongo-driver/x/mongo/driver" "go.mongodb.org/mongo-driver/x/mongo/driver/connstring" "go.mongodb.org/mongo-driver/x/mongo/driver/operation" "go.mongodb.org/mongo-driver/x/mongo/driver/topology" ) var connectionString connstring.ConnString var connectionStringOnce sync.Once var connectionStringErr error var liveTopology *topology.Topology var liveTopologyOnce sync.Once var liveTopologyErr error // AddOptionsToURI appends connection string options to a URI. func AddOptionsToURI(uri string, opts ...string) string { if !strings.ContainsRune(uri, '?') { if uri[len(uri)-1] != '/' { uri += "/" } uri += "?" } else { uri += "&" } for _, opt := range opts { uri += opt } return uri } // AddTLSConfigToURI checks for the environmental variable indicating that the tests are being run // on an SSL-enabled server, and if so, returns a new URI with the necessary configuration. func AddTLSConfigToURI(uri string) string { caFile := os.Getenv("MONGO_GO_DRIVER_CA_FILE") if len(caFile) == 0 { return uri } return AddOptionsToURI(uri, "ssl=true&sslCertificateAuthorityFile=", caFile) } // AddCompressorToURI checks for the environment variable indicating that the tests are being run with compression // enabled. If so, it returns a new URI with the necessary configuration func AddCompressorToURI(uri string) string { comp := os.Getenv("MONGO_GO_DRIVER_COMPRESSOR") if len(comp) == 0 { return uri } return AddOptionsToURI(uri, "compressors=", comp) } // AddTestServerAPIVersion adds the latest server API version in a ServerAPIOptions to passed-in opts. func AddTestServerAPIVersion(opts *options.ClientOptions) { if os.Getenv("REQUIRE_API_VERSION") == "true" { opts.SetServerAPIOptions(options.ServerAPI(driver.TestServerAPIVersion)) } } // MonitoredTopology returns a new topology with the command monitor attached func MonitoredTopology(t *testing.T, dbName string, monitor *event.CommandMonitor) *topology.Topology { uri, err := MongoDBURI() if err != nil { t.Fatal(err) } cfg, err := topology.NewConfig(options.Client().ApplyURI(uri).SetMonitor(monitor), nil) if err != nil { t.Fatal(err) } monitoredTopology, err := topology.New(cfg) if err != nil { t.Fatal(err) } else { _ = monitoredTopology.Connect() err = operation.NewCommand(bsoncore.BuildDocument(nil, bsoncore.AppendInt32Element(nil, "dropDatabase", 1))). Database(dbName).ServerSelector(description.WriteSelector()).Deployment(monitoredTopology).Execute(context.Background()) require.NoError(t, err) } return monitoredTopology } // Topology gets the globally configured topology. func Topology(t *testing.T) *topology.Topology { uri, err := MongoDBURI() require.NoError(t, err, "error constructing mongodb URI: %v", err) cfg, err := topology.NewConfig(options.Client().ApplyURI(uri), nil) require.NoError(t, err, "error constructing topology config: %v", err) liveTopologyOnce.Do(func() { var err error liveTopology, err = topology.New(cfg) if err != nil { liveTopologyErr = err } else { _ = liveTopology.Connect() err = operation.NewCommand(bsoncore.BuildDocument(nil, bsoncore.AppendInt32Element(nil, "dropDatabase", 1))). Database(DBName(t)).ServerSelector(description.WriteSelector()).Deployment(liveTopology).Execute(context.Background()) require.NoError(t, err) } }) if liveTopologyErr != nil { t.Fatal(liveTopologyErr) } return liveTopology } // TopologyWithCredential takes an "options.Credential" object and returns a connected topology. func TopologyWithCredential(t *testing.T, credential options.Credential) *topology.Topology { uri, err := MongoDBURI() if err != nil { t.Fatalf("error constructing mongodb URI: %v", err) } cfg, err := topology.NewConfig(options.Client().ApplyURI(uri).SetAuth(credential), nil) if err != nil { t.Fatalf("error constructing topology config: %v", err) } topology, err := topology.New(cfg) if err != nil { t.Fatal("Could not construct topology") } err = topology.Connect() if err != nil { t.Fatal("Could not start topology connection") } return topology } // ColName gets a collection name that should be unique // to the currently executing test. func ColName(t *testing.T) string { // Get this indirectly to avoid copying a mutex v := reflect.Indirect(reflect.ValueOf(t)) name := v.FieldByName("name") return name.String() } // MongoDBURI will construct the MongoDB URI from the MONGODB_URI environment variable for testing. The default host is // "localhost" and the default port is "27017" func MongoDBURI() (string, error) { uri := os.Getenv("MONGODB_URI") if uri == "" { uri = "mongodb://localhost:27017" } uri = AddTLSConfigToURI(uri) uri = AddCompressorToURI(uri) uri, err := AddServerlessAuthCredentials(uri) return uri, err } // AddServerlessAuthCredentials will attempt to construct the serverless auth credentials for a URI. func AddServerlessAuthCredentials(uri string) (string, error) { if os.Getenv("SERVERLESS") != "serverless" { return uri, nil } user := os.Getenv("SERVERLESS_ATLAS_USER") if user == "" { return "", fmt.Errorf("serverless expects SERVERLESS_ATLAS_USER to be set") } password := os.Getenv("SERVERLESS_ATLAS_PASSWORD") if password == "" { return "", fmt.Errorf("serverless expects SERVERLESS_ATLAS_PASSWORD to be set") } var scheme string // remove the scheme if strings.HasPrefix(uri, "mongodb+srv://") { scheme = "mongodb+srv://" } else if strings.HasPrefix(uri, "mongodb://") { scheme = "mongodb://" } else { return "", errors.New(`scheme must be "mongodb" or "mongodb+srv"`) } uri = scheme + user + ":" + password + "@" + uri[len(scheme):] return uri, nil } // ConnString gets the globally configured connection string. func ConnString(t *testing.T) connstring.ConnString { connectionStringOnce.Do(func() { uri, err := MongoDBURI() require.NoError(t, err, "error constructing mongodb URI: %v", err) connectionString, err = connstring.ParseAndValidate(uri) if err != nil { connectionStringErr = err } }) if connectionStringErr != nil { t.Fatal(connectionStringErr) } return connectionString } func GetConnString() (connstring.ConnString, error) { mongodbURI := os.Getenv("MONGODB_URI") if mongodbURI == "" { mongodbURI = "mongodb://localhost:27017" } mongodbURI = AddTLSConfigToURI(mongodbURI) cs, err := connstring.ParseAndValidate(mongodbURI) if err != nil { return connstring.ConnString{}, err } return cs, nil } // DBName gets the globally configured database name. func DBName(t *testing.T) string { return GetDBName(ConnString(t)) } func GetDBName(cs connstring.ConnString) string { if cs.Database != "" { return cs.Database } return fmt.Sprintf("mongo-go-driver-%d", os.Getpid()) } // CompareVersions compares two version number strings (i.e. positive integers separated by // periods). Comparisons are done to the lesser precision of the two versions. For example, 3.2 is // considered equal to 3.2.11, whereas 3.2.0 is considered less than 3.2.11. // // Returns a positive int if version1 is greater than version2, a negative int if version1 is less // than version2, and 0 if version1 is equal to version2. func CompareVersions(t *testing.T, v1 string, v2 string) int { n1 := strings.Split(v1, ".") n2 := strings.Split(v2, ".") for i := 0; i < int(math.Min(float64(len(n1)), float64(len(n2)))); i++ { i1, err := strconv.Atoi(n1[i]) require.NoError(t, err) i2, err := strconv.Atoi(n2[i]) require.NoError(t, err) difference := i1 - i2 if difference != 0 { return difference } } return 0 }