Browse Source

fix mssql tests

Maurits van der Schee 5 years ago
parent
commit
15c894328f

+ 35
- 0
tests/functional/003_columns/004_update_barcodes_id_column.log View File

1
+PUT /columns/barcodes/id
2
+
3
+{"name":"id2","type":"bigint"}
4
+===
5
+200
6
+Content-Type: application/json
7
+Content-Length: 4
8
+
9
+true
10
+===
11
+GET /columns/barcodes/id2
12
+===
13
+200
14
+Content-Type: application/json
15
+Content-Length: 40
16
+
17
+{"name":"id2","type":"bigint","pk":true}
18
+===
19
+PUT /columns/barcodes/id2
20
+
21
+{"name":"id","type":"integer"}
22
+===
23
+200
24
+Content-Type: application/json
25
+Content-Length: 4
26
+
27
+true
28
+===
29
+GET /columns/barcodes/id
30
+===
31
+200
32
+Content-Type: application/json
33
+Content-Length: 40
34
+
35
+{"name":"id","type":"integer","pk":true}

+ 35
- 0
tests/functional/003_columns/005_update_barcodes_product_id_nullable.log View File

1
+PUT /columns/barcodes/product_id
2
+
3
+{"nullable":true}
4
+===
5
+200
6
+Content-Type: application/json
7
+Content-Length: 4
8
+
9
+true
10
+===
11
+GET /columns/barcodes/product_id
12
+===
13
+200
14
+Content-Type: application/json
15
+Content-Length: 70
16
+
17
+{"name":"product_id","type":"integer","nullable":true,"fk":"products"}
18
+===
19
+PUT /columns/barcodes/product_id
20
+
21
+{"nullable":false}
22
+===
23
+200
24
+Content-Type: application/json
25
+Content-Length: 4
26
+
27
+true
28
+===
29
+GET /columns/barcodes/product_id
30
+===
31
+200
32
+Content-Type: application/json
33
+Content-Length: 54
34
+
35
+{"name":"product_id","type":"integer","fk":"products"}

+ 61
- 0
tests/functional/003_columns/006_update_events_visitors_pk.log View File

1
+PUT /columns/events/visitors
2
+
3
+{"nullable":false,"pk":true}
4
+===
5
+200
6
+Content-Type: application/json
7
+Content-Length: 4
8
+
9
+true
10
+===
11
+GET /columns/events/visitors
12
+===
13
+200
14
+Content-Type: application/json
15
+Content-Length: 45
16
+
17
+{"name":"visitors","type":"bigint","pk":true}
18
+===
19
+GET /columns/events/id
20
+===
21
+200
22
+Content-Type: application/json
23
+Content-Length: 30
24
+
25
+{"name":"id","type":"integer"}
26
+===
27
+PUT /columns/events/visitors
28
+
29
+{"pk":false}
30
+===
31
+200
32
+Content-Type: application/json
33
+Content-Length: 4
34
+
35
+true
36
+===
37
+GET /columns/events/visitors
38
+===
39
+200
40
+Content-Type: application/json
41
+Content-Length: 35
42
+
43
+{"name":"visitors","type":"bigint"}
44
+===
45
+PUT /columns/events/id
46
+
47
+{"pk":true}
48
+===
49
+200
50
+Content-Type: application/json
51
+Content-Length: 4
52
+
53
+true
54
+===
55
+GET /columns/events/id
56
+===
57
+200
58
+Content-Type: application/json
59
+Content-Length: 40
60
+
61
+{"name":"id","type":"integer","pk":true}

+ 35
- 0
tests/functional/003_columns/007_update_barcodes_product_id_fk.log View File

1
+PUT /columns/barcodes/product_id
2
+
3
+{"fk":""}
4
+===
5
+200
6
+Content-Type: application/json
7
+Content-Length: 4
8
+
9
+true
10
+===
11
+GET /columns/barcodes/product_id
12
+===
13
+200
14
+Content-Type: application/json
15
+Content-Length: 38
16
+
17
+{"name":"product_id","type":"integer"}
18
+===
19
+PUT /columns/barcodes/product_id
20
+
21
+{"fk":"products"}
22
+===
23
+200
24
+Content-Type: application/json
25
+Content-Length: 4
26
+
27
+true
28
+===
29
+GET /columns/barcodes/product_id
30
+===
31
+200
32
+Content-Type: application/json
33
+Content-Length: 54
34
+
35
+{"name":"product_id","type":"integer","fk":"products"}

+ 35
- 0
tests/functional/003_columns/008_update_barcodes_table.log View File

1
+PUT /columns/barcodes
2
+
3
+{"name":"barcodes2"}
4
+===
5
+200
6
+Content-Type: application/json
7
+Content-Length: 4
8
+
9
+true
10
+===
11
+GET /columns/barcodes2
12
+===
13
+200
14
+Content-Type: application/json
15
+Content-Length: 217
16
+
17
+{"name":"barcodes2","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"product_id","type":"integer","fk":"products"},{"name":"hex","type":"varchar","length":255},{"name":"bin","type":"blob"}]}
18
+===
19
+PUT /columns/barcodes2
20
+
21
+{"name":"barcodes"}
22
+===
23
+200
24
+Content-Type: application/json
25
+Content-Length: 4
26
+
27
+true
28
+===
29
+GET /columns/barcodes
30
+===
31
+200
32
+Content-Type: application/json
33
+Content-Length: 216
34
+
35
+{"name":"barcodes","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"product_id","type":"integer","fk":"products"},{"name":"hex","type":"varchar","length":255},{"name":"bin","type":"blob"}]}

+ 35
- 0
tests/functional/003_columns/009_update_barcodes_hex_type.log View File

1
+PUT /columns/barcodes/hex
2
+
3
+{"type":"clob"}
4
+===
5
+200
6
+Content-Type: application/json
7
+Content-Length: 4
8
+
9
+true
10
+===
11
+GET /columns/barcodes/hex
12
+===
13
+200
14
+Content-Type: application/json
15
+Content-Length: 28
16
+
17
+{"name":"hex","type":"clob"}
18
+===
19
+PUT /columns/barcodes/hex
20
+
21
+{"type":"varchar","length":255}
22
+===
23
+200
24
+Content-Type: application/json
25
+Content-Length: 4
26
+
27
+true
28
+===
29
+GET /columns/barcodes/hex
30
+===
31
+200
32
+Content-Type: application/json
33
+Content-Length: 44
34
+
35
+{"name":"hex","type":"varchar","length":255}

+ 25
- 0
tests/functional/003_columns/010_create_barcodes_table.log View File

1
+POST /columns
2
+
3
+{"name":"barcodes2","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"product_id","type":"integer","fk":"products"},{"name":"hex","type":"varchar","length":255},{"name":"bin","type":"blob"}]}
4
+===
5
+200
6
+Content-Type: application/json
7
+Content-Length: 4
8
+
9
+true
10
+===
11
+GET /columns/barcodes2
12
+===
13
+200
14
+Content-Type: application/json
15
+Content-Length: 217
16
+
17
+{"name":"barcodes2","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"product_id","type":"integer","fk":"products"},{"name":"hex","type":"varchar","length":255},{"name":"bin","type":"blob"}]}
18
+===
19
+DELETE /columns/barcodes2
20
+===
21
+200
22
+Content-Type: application/json
23
+Content-Length: 4
24
+
25
+true

+ 25
- 0
tests/functional/003_columns/011_create_barcodes_column.log View File

1
+POST /columns/barcodes
2
+
3
+{"name":"alternative_product_id","type":"integer","nullable":true,"fk":"products"}
4
+===
5
+200
6
+Content-Type: application/json
7
+Content-Length: 4
8
+
9
+true
10
+===
11
+GET /columns/barcodes/alternative_product_id
12
+===
13
+200
14
+Content-Type: application/json
15
+Content-Length: 82
16
+
17
+{"name":"alternative_product_id","type":"integer","nullable":true,"fk":"products"}
18
+===
19
+DELETE /columns/barcodes/alternative_product_id
20
+===
21
+200
22
+Content-Type: application/json
23
+Content-Length: 4
24
+
25
+true

Loading…
Cancel
Save