github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/cts/v1/tracker/testing/fixtures.go (about)

     1  package testing
     2  
     3  var createRequest = `
     4  {
     5   "bucket_name": "obs-e51d",
     6   "file_prefix_name": "yO8Q",
     7   "smn": {
     8    "is_support_smn": true,
     9    "topic_id": "urn:smn:eu-de:626ce20e52a346c090b09cffc3e038e5:c2c-topic",
    10    "is_send_all_key_operation":false,
    11    "operations": ["login"],
    12    "need_notify_user_list": ["user1","user2"]
    13  
    14   }
    15  }
    16  `
    17  
    18  var createResponse = `
    19  {
    20      "bucket_name": "obs-e51d",
    21      "file_prefix_name": "yO8Q",
    22      "smn": {
    23          "is_support_smn": true,
    24          "topic_id": "urn:smn:eu-de:626ce20e52a346c090b09cffc3e038e5:c2c-topic",
    25          "is_send_all_key_operation": false,
    26          "operations": [
    27              "login"
    28          ],
    29          "need_notify_user_list": [
    30              "user1",
    31              "user2"
    32          ]
    33      },
    34      "status": "enabled",
    35      "tracker_name": "system"
    36  }
    37  `
    38  
    39  var updateRequest = `
    40  { 
    41   "bucket_name" : "cirros-img", 
    42   "file_prefix_name" : "yO8Q", 
    43   "smn": {
    44    "is_support_smn": false,
    45    "topic_id": "urn:smn:eu-de:626ce20e52a346c090b09cffc3e038e5:c2c-topic",
    46    "is_send_all_key_operation":false,
    47    "operations": ["delete","create","login"],
    48    "need_notify_user_list": ["user1","user2"]
    49   },
    50    "status" : "disabled"   
    51  }
    52  `
    53  
    54  var updateResponse = `
    55  {
    56      "bucket_name": "cirros-img",
    57      "file_prefix_name": "yO8Q",
    58      "smn": {
    59          "is_support_smn": false,
    60          "topic_id": "urn:smn:eu-de:626ce20e52a346c090b09cffc3e038e5:c2c-topic",
    61          "is_send_all_key_operation": false,
    62          "operations": [
    63              "delete",
    64              "create",
    65              "login"
    66          ],
    67          "need_notify_user_list": [
    68              "user1",
    69              "user2"
    70          ]
    71      },
    72      "status": "disabled",
    73      "tracker_name": "system"
    74  }
    75  `
    76  
    77  var getResponse = `
    78  [
    79      {
    80          "bucket_name": "tf-test-bucket",
    81          "file_prefix_name": "yO8Q",
    82          "smn": {
    83              "is_send_all_key_operation": false,
    84              "is_support_smn": true,
    85              "need_notify_user_list": [
    86                  "user1"
    87              ],
    88              "operations": [
    89                  "login"
    90              ],
    91              "topic_id": "urn:smn:eu-de:626ce20e52a346c090b09cffc3e038e5:tf-test-topic"
    92          },
    93          "status": "enabled",
    94          "tracker_name": "system"
    95      }
    96  ]
    97  `