# -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals

from snapshottest import Snapshot


snapshots = Snapshot()

snapshots['TestDatasetMutations.test_create_dataset 1'] = {
    'data': {
        'createDataset': {
            'dataset': {
                'datasetType': {
                    'description': 'Dataset storage provided by your Gigantum account supporting files up to 5GB in size',
                    'id': 'R<KEY>',
                    'name': 'Gigantum Cloud'
                },
                'description': 'my test dataset',
                'id': 'R<KEY>',
                'name': 'test-dataset-1',
                'schemaVersion': 2
            }
        }
    }
}

snapshots['TestDatasetMutations.test_create_dataset 2'] = {
    'data': {
        'dataset': {
            'datasetType': {
                'description': 'Dataset storage provided by your Gigantum account supporting files up to 5GB in size',
                'id': '<KEY>',
                'name': 'Gigantum Cloud'
            },
            'description': 'my test dataset',
            'id': '<KEY>',
            'name': 'test-dataset-1',
            'schemaVersion': 2
        }
    }
}

snapshots['TestDatasetMutations.test_download_dataset_files 1'] = {
    'data': {
        'downloadDatasetFiles': {
            'updatedFileEdges': [
                {
                    'node': {
                        'isLocal': True,
                        'key': 'test1.txt',
                        'name': 'dataset100',
                        'size': '10'
                    }
                }
            ]
        }
    }
}

snapshots['TestDatasetMutations.test_download_dataset_files 2'] = {
    'data': {
        'downloadDatasetFiles': {
            'updatedFileEdges': [
                {
                    'node': {
                        'id': 'RGF0YXNldEZpbGU6ZGVmYXVsdCZkYXRhc2V0MTAwJnRlc3QyLnR4dA==',
                        'isLocal': True,
                        'name': 'dataset100',
                        'size': '7'
                    }
                }
            ]
        }
    }
}

snapshots['TestDatasetMutations.test_modify_dataset_link 1'] = {
    'data': {
        'modifyDatasetLink': {
            'newLabbookEdge': {
                'node': {
                    'description': 'testing dataset links',
                    'id': 'TGFiYm9vazpkZWZhdWx0JnRlc3QtbGI=',
                    'linkedDatasets': [
                        {
                            'name': 'dataset100'
                        }
                    ],
                    'name': 'test-lb'
                }
            }
        }
    }
}

snapshots['TestDatasetMutations.test_modify_dataset_link 2'] = {
    'data': {
        'modifyDatasetLink': {
            'newLabbookEdge': {
                'node': {
                    'description': 'testing dataset links',
                    'id': 'TGFiYm9vazpkZWZhdWx0JnRlc3QtbGI=',
                    'linkedDatasets': [
                    ],
                    'name': 'test-lb'
                }
            }
        }
    }
}

snapshots['TestDatasetMutations.test_modify_dataset_link_errors 1'] = {
    'data': {
        'modifyDatasetLink': None
    },
    'errors': [
        {
            'locations': [
                {
                    'column': 22,
                    'line': 4
                }
            ],
            'message': 'Unsupported action. Use `link` or `unlink`',
            'path': [
                'modifyDatasetLink'
            ]
        }
    ]
}

# -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals

from snapshottest import Snapshot


snapshots = Snapshot()

snapshots['TestDatasetMutations.test_create_dataset 1'] = {
    'data': {
        'createDataset': {
            'dataset': {
                'datasetType': {
                    'description': 'Dataset storage provided by your Gigantum account supporting files up to 5GB in size',
                    'id': 'R<KEY>',
                    'name': 'Gigantum Cloud'
                },
                'description': 'my test dataset',
                'id': 'R<KEY>',
                'name': 'test-dataset-1',
                'schemaVersion': 2
            }
        }
    }
}

snapshots['TestDatasetMutations.test_create_dataset 2'] = {
    'data': {
        'dataset': {
            'datasetType': {
                'description': 'Dataset storage provided by your Gigantum account supporting files up to 5GB in size',
                'id': '<KEY>',
                'name': 'Gigantum Cloud'
            },
            'description': 'my test dataset',
            'id': '<KEY>',
            'name': 'test-dataset-1',
            'schemaVersion': 2
        }
    }
}

snapshots['TestDatasetMutations.test_download_dataset_files 1'] = {
    'data': {
        'downloadDatasetFiles': {
            'updatedFileEdges': [
                {
                    'node': {
                        'isLocal': True,
                        'key': 'test1.txt',
                        'name': 'dataset100',
                        'size': '10'
                    }
                }
            ]
        }
    }
}

snapshots['TestDatasetMutations.test_download_dataset_files 2'] = {
    'data': {
        'downloadDatasetFiles': {
            'updatedFileEdges': [
                {
                    'node': {
                        'id': 'RGF0YXNldEZpbGU6ZGVmYXVsdCZkYXRhc2V0MTAwJnRlc3QyLnR4dA==',
                        'isLocal': True,
                        'name': 'dataset100',
                        'size': '7'
                    }
                }
            ]
        }
    }
}

snapshots['TestDatasetMutations.test_modify_dataset_link 1'] = {
    'data': {
        'modifyDatasetLink': {
            'newLabbookEdge': {
                'node': {
                    'description': 'testing dataset links',
                    'id': 'TGFiYm9vazpkZWZhdWx0JnRlc3QtbGI=',
                    'linkedDatasets': [
                        {
                            'name': 'dataset100'
                        }
                    ],
                    'name': 'test-lb'
                }
            }
        }
    }
}

snapshots['TestDatasetMutations.test_modify_dataset_link 2'] = {
    'data': {
        'modifyDatasetLink': {
            'newLabbookEdge': {
                'node': {
                    'description': 'testing dataset links',
                    'id': 'TGFiYm9vazpkZWZhdWx0JnRlc3QtbGI=',
                    'linkedDatasets': [
                    ],
                    'name': 'test-lb'
                }
            }
        }
    }
}

snapshots['TestDatasetMutations.test_modify_dataset_link_errors 1'] = {
    'data': {
        'modifyDatasetLink': None
    },
    'errors': [
        {
            'locations': [
                {
                    'column': 22,
                    'line': 4
                }
            ],
            'message': 'Unsupported action. Use `link` or `unlink`',
            'path': [
                'modifyDatasetLink'
            ]
        }
    ]
}

# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc