From 8f9ddb058f922fbd33c4d15986eeb1f5be521cc5 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Mon, 11 Apr 2011 20:22:38 -0500 Subject: Entitlement import. The entitlement facet will invoke entitle_status to check the entitlement status and show the appropriate buttons. If it's unregistered it will show Register and Import button. If it's registered it will show the Consume button only. If it's imported it will show the Import button only. The Import button will open a dialog box for importing entitlement certificate. Ticket #277 --- install/ui/test/data/entitle_get_unregistered.json | 11 ----------- install/ui/test/data/entitle_import.json | 12 ++++++++++++ install/ui/test/data/entitle_status_offline.json | 12 ++++++++++++ install/ui/test/data/entitle_status_online.json | 12 ++++++++++++ install/ui/test/data/entitle_status_unregistered.json | 11 +++++++++++ 5 files changed, 47 insertions(+), 11 deletions(-) delete mode 100644 install/ui/test/data/entitle_get_unregistered.json create mode 100644 install/ui/test/data/entitle_import.json create mode 100644 install/ui/test/data/entitle_status_offline.json create mode 100644 install/ui/test/data/entitle_status_online.json create mode 100644 install/ui/test/data/entitle_status_unregistered.json (limited to 'install/ui/test') diff --git a/install/ui/test/data/entitle_get_unregistered.json b/install/ui/test/data/entitle_get_unregistered.json deleted file mode 100644 index 47dce1f1..00000000 --- a/install/ui/test/data/entitle_get_unregistered.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "error": { - "code": 4306, - "message": "Not registered yet", - "name": { - "__base64__": "Tm90UmVnaXN0ZXJlZEVycm9y" - } - }, - "id": 0, - "result": null -} \ No newline at end of file diff --git a/install/ui/test/data/entitle_import.json b/install/ui/test/data/entitle_import.json new file mode 100644 index 00000000..f6dc905b --- /dev/null +++ b/install/ui/test/data/entitle_import.json @@ -0,0 +1,12 @@ +{ + "error": null, + "id": null, + "result": { + "result": { + "consumed": 1, + "product": "Multiplier Product Client Pack (50)", + "quantity": 1, + "uuid": "IMPORTED" + } + } +} diff --git a/install/ui/test/data/entitle_status_offline.json b/install/ui/test/data/entitle_status_offline.json new file mode 100644 index 00000000..44fe79e1 --- /dev/null +++ b/install/ui/test/data/entitle_status_offline.json @@ -0,0 +1,12 @@ +{ + "error": null, + "id": 0, + "result": { + "result": { + "consumed": 2, + "product": "MKT-multiplier-client-50", + "quantity": 250, + "uuid": "IMPORTED" + } + } +} diff --git a/install/ui/test/data/entitle_status_online.json b/install/ui/test/data/entitle_status_online.json new file mode 100644 index 00000000..1cfdfe64 --- /dev/null +++ b/install/ui/test/data/entitle_status_online.json @@ -0,0 +1,12 @@ +{ + "error": null, + "id": 0, + "result": { + "result": { + "consumed": 2, + "product": "MKT-multiplier-client-50", + "quantity": 250, + "uuid": "a3865364-33cc-4ce3-b000-0f08498cc085" + } + } +} diff --git a/install/ui/test/data/entitle_status_unregistered.json b/install/ui/test/data/entitle_status_unregistered.json new file mode 100644 index 00000000..8a691ada --- /dev/null +++ b/install/ui/test/data/entitle_status_unregistered.json @@ -0,0 +1,11 @@ +{ + "error": { + "code": 4306, + "message": "Not registered yet", + "name": { + "__base64__": "Tm90UmVnaXN0ZXJlZEVycm9y" + } + }, + "id": 0, + "result": null +} -- cgit