Sha256: b1fdab122ae9561f4905af4c62cf3f4e11f66afd67957e6cf1ddd9f87fb29c7d

Contents?: true

Size: 1.14 KB

Versions: 8

Compression:

Stored size: 1.14 KB

Contents

!c !3 Updating an Imported Wiki
Once a wiki has been imported, the import can be updated.  When updating the remoteUrl parameter is no longer needed.

Create an importing page.
!|Page creator.|
|Page name.   |Page contents.|valid?|
|ImportingPage|!contents   |true   |

This !-ImportingPage-! will now import the !-SampleWiki-! page.
!|Response Requester.|
|uri   |valid?|
|ImportingPage?responder=import&remoteUrl=http://localhost:9123/SampleWiki|true|

Now we'll change the content of one of the local pages.
!|Save Page Requester|
|uri   |save contents|status!|contents?|
|ImportingPage.ChildPageOne?edit|3.141592|303||

Update the imported wiki.
!|Response Requester.|
|uri   |valid?|
|ImportingPage?responder=import&nochunk=true|true|

The !-ChildPageOne-! page will be listed.
!|Response Examiner|
|type|pattern|matches?|wrapped html?|
|contents|0 pages were imported|true||

When we view !-ChildPageOne-!...
!|Response Requester.|
|uri   |valid?|
|ImportingPage.ChildPageOne|true|

We'll see the changed content since the page on the server was not modified.
!|Response Examiner|
|type|pattern|matches?|
|contents|child page one|false|
|contents|3.141592|true|

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
xcfit-0.9.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWikiImportTests/TestUpdatingImportedWiki/content.txt
xcfit-0.8.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWikiImportTests/TestUpdatingImportedWiki/content.txt
xcfit-0.7.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWikiImportTests/TestUpdatingImportedWiki/content.txt
xcfit-0.6.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWikiImportTests/TestUpdatingImportedWiki/content.txt
xcfit-0.5.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWikiImportTests/TestUpdatingImportedWiki/content.txt
xcfit-0.4.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWikiImportTests/TestUpdatingImportedWiki/content.txt
xcfit-0.3.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWikiImportTests/TestUpdatingImportedWiki/content.txt
xcfit-0.2.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWikiImportTests/TestUpdatingImportedWiki/content.txt